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
10572 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10576 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10579 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10584 if test "$PKG_CONFIG" = "no" ; then
10587 PKG_CONFIG_MIN_VERSION
=0.9.0
10588 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10590 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10592 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10593 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10594 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10601 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10602 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10604 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10611 ## If we have a custom action on failure, don't print errors, but
10612 ## do set a variable so people can do so. Do it in a subshell
10613 ## to capture any diagnostics in invoking pkg-config.
10614 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10626 if test $succeeded = yes; then
10632 if test "$pkg_check_gtk" = "no" &&
10633 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10635 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10639 if test x
"$pkg_check_gtk" = xyes
; then
10643 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10644 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10645 LIBS
="$GTK_LIBS $LIBS"
10647 for ac_func
in gtk_main
10649 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10650 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10651 cat >>confdefs.h
<<_ACEOF
10652 #define HAVE_GTK_MAIN 1
10658 if test "${GTK_COMPILES}" != "yes"; then
10659 if test "$USE_X_TOOLKIT" != "maybe"; then
10660 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10665 $as_echo "#define USE_GTK 1" >>confdefs.h
10667 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10669 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10673 closing open displays. This is no problem if you just use
10674 one display, but if you use more than one and close one of them
10675 Emacs may crash." >&5
10676 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10677 closing open displays. This is no problem if you just use
10678 one display, but if you use more than one and close one of them
10679 Emacs may crash." >&2;}
10688 if test "${HAVE_GTK}" = "yes"; then
10690 if test "$with_toolkit_scroll_bars" != no
; then
10691 with_toolkit_scroll_bars
=yes
10694 HAVE_GTK_FILE_SELECTION
=no
10695 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10696 #include <gtk/gtk.h>
10698 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10699 HAVE_GTK_FILE_SELECTION
=yes
10701 HAVE_GTK_FILE_SELECTION
=no
10704 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10705 for ac_func
in gtk_file_selection_new
10707 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10708 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10709 cat >>confdefs.h
<<_ACEOF
10710 #define HAVE_GTK_FILE_SELECTION_NEW 1
10719 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10720 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10721 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10722 gtk_orientable_set_orientation \
10723 gtk_window_set_has_resize_grip
10725 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10726 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10727 eval as_val
=\$
$as_ac_var
10728 if test "x$as_val" = x
""yes; then :
10729 cat >>confdefs.h
<<_ACEOF
10730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10737 term_header
=gtkutil.h
10742 if test "${with_dbus}" = "yes"; then
10746 if test "$PKG_CONFIG" = "no" ; then
10749 PKG_CONFIG_MIN_VERSION
=0.9.0
10750 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10752 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10754 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10755 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10756 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10763 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10764 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10766 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10773 ## If we have a custom action on failure, don't print errors, but
10774 ## do set a variable so people can do so. Do it in a subshell
10775 ## to capture any diagnostics in invoking pkg-config.
10776 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10788 if test $succeeded = yes; then
10794 if test "$HAVE_DBUS" = yes; then
10795 LIBS
="$LIBS $DBUS_LIBS"
10797 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10799 for ac_func
in dbus_watch_get_unix_fd \
10800 dbus_type_is_valid \
10801 dbus_validate_bus_name \
10802 dbus_validate_path \
10803 dbus_validate_interface \
10804 dbus_validate_member
10806 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10807 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10808 eval as_val
=\$
$as_ac_var
10809 if test "x$as_val" = x
""yes; then :
10810 cat >>confdefs.h
<<_ACEOF
10811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10817 DBUS_OBJ
=dbusbind.o
10823 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10827 if test "$PKG_CONFIG" = "no" ; then
10830 PKG_CONFIG_MIN_VERSION
=0.9.0
10831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10833 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10835 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10836 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10837 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10844 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10845 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10847 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 GSETTINGS_CFLAGS
=""
10854 ## If we have a custom action on failure, don't print errors, but
10855 ## do set a variable so people can do so. Do it in a subshell
10856 ## to capture any diagnostics in invoking pkg-config.
10857 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10864 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10865 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10869 if test $succeeded = yes; then
10875 if test "$HAVE_GSETTINGS" = "yes"; then
10877 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10879 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10880 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10885 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10889 if test "$PKG_CONFIG" = "no" ; then
10892 PKG_CONFIG_MIN_VERSION
=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10895 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10897 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10898 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10899 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10906 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10907 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10909 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; }
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so. Do it in a subshell
10918 ## to capture any diagnostics in invoking pkg-config.
10919 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10931 if test $succeeded = yes; then
10937 if test "$HAVE_GCONF" = yes; then
10939 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10941 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10942 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10946 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10950 if test "$PKG_CONFIG" = "no" ; then
10953 PKG_CONFIG_MIN_VERSION
=0.9.0
10954 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10956 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10958 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10959 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10960 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10967 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10968 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10970 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10977 ## If we have a custom action on failure, don't print errors, but
10978 ## do set a variable so people can do so. Do it in a subshell
10979 ## to capture any diagnostics in invoking pkg-config.
10980 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
10987 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10988 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10992 if test $succeeded = yes; then
10998 if test "$HAVE_GOBJECT" = "yes"; then
10999 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11000 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11002 SAVE_CFLAGS
="$CFLAGS"
11004 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11005 LIBS
="$SETTINGS_LIBS $LIBS"
11006 for ac_func
in g_type_init
11008 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11009 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11010 cat >>confdefs.h
<<_ACEOF
11011 #define HAVE_G_TYPE_INIT 1
11017 CFLAGS
="$SAVE_CFLAGS"
11026 if test "${with_selinux}" = "yes"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11028 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11029 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11032 ac_check_lib_save_LIBS
=$LIBS
11033 LIBS
="-lselinux $LIBS"
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11043 char lgetfilecon ();
11047 return lgetfilecon ();
11052 if ac_fn_c_try_link
"$LINENO"; then :
11053 ac_cv_lib_selinux_lgetfilecon
=yes
11055 ac_cv_lib_selinux_lgetfilecon
=no
11057 rm -f core conftest.err conftest.
$ac_objext \
11058 conftest
$ac_exeext conftest.
$ac_ext
11059 LIBS
=$ac_check_lib_save_LIBS
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11062 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11063 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11064 HAVE_LIBSELINUX
=yes
11069 if test "$HAVE_LIBSELINUX" = yes; then
11071 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11073 LIBSELINUX_LIBS
=-lselinux
11079 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11080 if test "${with_gnutls}" = "yes" ; then
11084 if test "$PKG_CONFIG" = "no" ; then
11087 PKG_CONFIG_MIN_VERSION
=0.9.0
11088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11090 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11092 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11093 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11094 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11101 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11102 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11104 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 LIBGNUTLS_CFLAGS
=""
11111 ## If we have a custom action on failure, don't print errors, but
11112 ## do set a variable so people can do so. Do it in a subshell
11113 ## to capture any diagnostics in invoking pkg-config.
11114 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11121 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11122 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11126 if test $succeeded = yes; then
11132 if test "${HAVE_GNUTLS}" = "yes"; then
11134 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11138 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11139 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11140 for ac_func
in gnutls_certificate_set_verify_function
11142 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11143 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11144 cat >>confdefs.h
<<_ACEOF
11145 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11147 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11152 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11154 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11164 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11165 if test "$with_xaw3d" != no
; then
11166 if test "${emacs_cv_xaw3d+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 #include <X11/Intrinsic.h>
11173 #include <X11/Xaw3d/Simple.h>
11182 if ac_fn_c_try_link
"$LINENO"; then :
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11184 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11185 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11188 ac_check_lib_save_LIBS
=$LIBS
11189 LIBS
="-lXaw3d $LIBS"
11190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 /* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11199 char XawScrollbarSetThumb ();
11203 return XawScrollbarSetThumb ();
11208 if ac_fn_c_try_link
"$LINENO"; then :
11209 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11211 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11213 rm -f core conftest.err conftest.
$ac_objext \
11214 conftest
$ac_exeext conftest.
$ac_ext
11215 LIBS
=$ac_check_lib_save_LIBS
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11218 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11219 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11228 rm -f core conftest.err conftest.
$ac_objext \
11229 conftest
$ac_exeext conftest.
$ac_ext
11235 if test $emacs_cv_xaw3d = yes; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11237 $as_echo_n "checking for xaw3d... " >&6; }
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11239 $as_echo "yes; using Lucid toolkit" >&6; }
11240 USE_X_TOOLKIT
=LUCID
11244 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11248 $as_echo_n "checking for xaw3d... " >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11252 $as_echo_n "checking for libXaw... " >&6; }
11253 if test "${emacs_cv_xaw+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 #include <X11/Intrinsic.h>
11260 #include <X11/Xaw/Simple.h>
11269 if ac_fn_c_try_link
"$LINENO"; then :
11274 rm -f core conftest.err conftest.
$ac_objext \
11275 conftest
$ac_exeext conftest.
$ac_ext
11278 if test $emacs_cv_xaw = yes; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11280 $as_echo "yes; using Lucid toolkit" >&6; }
11281 USE_X_TOOLKIT
=LUCID
11283 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11284 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11286 as_fn_error
"No X toolkit could be found.
11287 If you are sure you want Emacs compiled without an X toolkit, pass
11288 --with-x-toolkit=no
11289 to configure. Otherwise, install the development libraries for the toolkit
11290 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11295 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11298 if test "${USE_X_TOOLKIT}" != "none"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11300 $as_echo_n "checking X11 toolkit version... " >&6; }
11301 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 #include <X11/Intrinsic.h>
11310 #if XtSpecificationRelease < 6
11318 if ac_fn_c_try_link
"$LINENO"; then :
11319 emacs_cv_x11_toolkit_version_6
=yes
11321 emacs_cv_x11_toolkit_version_6
=no
11323 rm -f core conftest.err conftest.
$ac_objext \
11324 conftest
$ac_exeext conftest.
$ac_ext
11327 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11328 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11330 $as_echo "6 or newer" >&6; }
11332 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11334 LIBXTR6
="-lSM -lICE"
11336 ## Use libw.a along with X11R6 Xt.
11337 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11341 $as_echo "before 6" >&6; }
11345 if test x
$HAVE_X11XTR6 = xyes
; then
11346 LIBS
="-lXt -lSM -lICE $LIBS"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11351 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11352 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11355 ac_check_lib_save_LIBS
=$LIBS
11357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11366 char XmuConvertStandardSelection ();
11370 return XmuConvertStandardSelection ();
11375 if ac_fn_c_try_link
"$LINENO"; then :
11376 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11378 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11380 rm -f core conftest.err conftest.
$ac_objext \
11381 conftest
$ac_exeext conftest.
$ac_ext
11382 LIBS
=$ac_check_lib_save_LIBS
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11385 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11386 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11387 cat >>confdefs.h
<<_ACEOF
11388 #define HAVE_LIBXMU 1
11395 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11401 ## These systems don't supply Xmu.
11403 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11408 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11409 if test "${HAVE_X11}" = "yes"; then
11410 if test "${USE_X_TOOLKIT}" != "none"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11412 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11413 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11416 ac_check_lib_save_LIBS
=$LIBS
11417 LIBS
="-lXext $LIBS"
11418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11427 char XShapeQueryExtension ();
11431 return XShapeQueryExtension ();
11436 if ac_fn_c_try_link
"$LINENO"; then :
11437 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11439 ac_cv_lib_Xext_XShapeQueryExtension
=no
11441 rm -f core conftest.err conftest.
$ac_objext \
11442 conftest
$ac_exeext conftest.
$ac_ext
11443 LIBS
=$ac_check_lib_save_LIBS
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11446 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11447 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11448 cat >>confdefs.h
<<_ACEOF
11449 #define HAVE_LIBXEXT 1
11452 LIBS
="-lXext $LIBS"
11460 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11461 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11462 if test -d /usr
/include
/openmotif
; then
11463 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11464 emacs_cv_openmotif
=yes
11465 case "$canonical" in
11466 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11467 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11470 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11473 emacs_cv_openmotif
=no
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11476 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11477 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11486 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11489 Motif version prior to 2.1.
11495 if ac_fn_c_try_compile
"$LINENO"; then :
11496 emacs_cv_motif_version_2_1
=yes
11498 emacs_cv_motif_version_2_1
=no
11500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11503 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11504 if test $emacs_cv_motif_version_2_1 = yes; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11506 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11507 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11510 ac_check_lib_save_LIBS
=$LIBS
11512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11521 char XpCreateContext ();
11525 return XpCreateContext ();
11530 if ac_fn_c_try_link
"$LINENO"; then :
11531 ac_cv_lib_Xp_XpCreateContext
=yes
11533 ac_cv_lib_Xp_XpCreateContext
=no
11535 rm -f core conftest.err conftest.
$ac_objext \
11536 conftest
$ac_exeext conftest.
$ac_ext
11537 LIBS
=$ac_check_lib_save_LIBS
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11540 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11541 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11545 if test x
$emacs_cv_openmotif = xyes
; then
11546 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11550 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11551 if test "${emacs_cv_lesstif+set}" = set; then :
11552 $as_echo_n "(cached) " >&6
11554 # We put this in CFLAGS temporarily to precede other -I options
11555 # that might be in CFLAGS temporarily.
11556 # We put this in CPPFLAGS where it precedes the other -I options.
11557 OLD_CPPFLAGS
=$CPPFLAGS
11559 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11560 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11572 if ac_fn_c_try_compile
"$LINENO"; then :
11573 emacs_cv_lesstif
=yes
11575 emacs_cv_lesstif
=no
11577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11580 $as_echo "$emacs_cv_lesstif" >&6; }
11581 if test $emacs_cv_lesstif = yes; then
11582 # Make sure this -I option remains in CPPFLAGS after it is set
11583 # back to REAL_CPPFLAGS.
11584 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11585 # have those other -I options anyway. Ultimately, having this
11586 # directory ultimately in CPPFLAGS will be enough.
11587 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11588 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11591 CPPFLAGS
=$OLD_CPPFLAGS
11594 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11595 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11598 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11605 USE_TOOLKIT_SCROLL_BARS
=no
11606 if test "${with_toolkit_scroll_bars}" != "no"; then
11607 if test "${USE_X_TOOLKIT}" != "none"; then
11608 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11609 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11612 USE_TOOLKIT_SCROLL_BARS
=yes
11613 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11614 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11616 USE_TOOLKIT_SCROLL_BARS
=yes
11618 elif test "${HAVE_GTK}" = "yes"; then
11619 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11621 USE_TOOLKIT_SCROLL_BARS
=yes
11622 elif test "${HAVE_NS}" = "yes"; then
11623 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11625 USE_TOOLKIT_SCROLL_BARS
=yes
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 #include <X11/Xlib.h>
11633 #include <X11/Xresource.h>
11642 if ac_fn_c_try_compile
"$LINENO"; then :
11645 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11653 if test "${with_xim}" != "no"; then
11655 $as_echo "#define USE_XIM 1" >>confdefs.h
11660 if test "${HAVE_XIM}" != "no"; then
11661 late_CFLAGS
=$CFLAGS
11662 if test "$GCC" = yes; then
11663 CFLAGS
="$CFLAGS --pedantic-errors"
11665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 #include <X11/Xlib.h>
11669 #include <X11/Xresource.h>
11678 XPointer *client_data;
11680 /* If we're not using GCC, it's probably not XFree86, and this is
11681 probably right, but we can't use something like --pedantic-errors. */
11682 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11683 char*, XIMProc, XPointer*);
11685 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11691 if ac_fn_c_try_compile
"$LINENO"; then :
11692 emacs_cv_arg6_star
=yes
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11695 if test "$emacs_cv_arg6_star" = yes; then
11696 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11699 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11702 CFLAGS
=$late_CFLAGS
11705 ### Start of font-backend (under any platform) section.
11706 # (nothing here yet -- this is a placeholder)
11707 ### End of font-backend (under any platform) section.
11709 ### Start of font-backend (under X11) section.
11710 if test "${HAVE_X11}" = "yes"; then
11714 if test "$PKG_CONFIG" = "no" ; then
11717 PKG_CONFIG_MIN_VERSION
=0.9.0
11718 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11720 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11722 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11723 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11724 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11731 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11732 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11734 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11739 FONTCONFIG_CFLAGS
=""
11741 ## If we have a custom action on failure, don't print errors, but
11742 ## do set a variable so people can do so. Do it in a subshell
11743 ## to capture any diagnostics in invoking pkg-config.
11744 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11756 if test $succeeded = yes; then
11763 ## Use -lXft if available, unless `--with-xft=no'.
11765 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11768 if test "x${with_xft}" != "xno"; then
11773 if test "$PKG_CONFIG" = "no" ; then
11776 PKG_CONFIG_MIN_VERSION
=0.9.0
11777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11779 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11781 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11782 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11783 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11790 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11791 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11793 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11800 ## If we have a custom action on failure, don't print errors, but
11801 ## do set a variable so people can do so. Do it in a subshell
11802 ## to capture any diagnostics in invoking pkg-config.
11803 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11815 if test $succeeded = yes; then
11821 ## Because xftfont.c uses XRenderQueryExtension, we also
11822 ## need to link to -lXrender.
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11825 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11826 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11829 ac_check_lib_save_LIBS
=$LIBS
11830 LIBS
="-lXrender $LIBS"
11831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11840 char XRenderQueryExtension ();
11844 return XRenderQueryExtension ();
11849 if ac_fn_c_try_link
"$LINENO"; then :
11850 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11852 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11854 rm -f core conftest.err conftest.
$ac_objext \
11855 conftest
$ac_exeext conftest.
$ac_ext
11856 LIBS
=$ac_check_lib_save_LIBS
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11859 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11860 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11864 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11865 OLD_CPPFLAGS
="$CPPFLAGS"
11866 OLD_CFLAGS
="$CFLAGS"
11868 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11869 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11870 XFT_LIBS
="-lXrender $XFT_LIBS"
11871 LIBS
="$XFT_LIBS $LIBS"
11872 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11875 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11876 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11879 ac_check_lib_save_LIBS
=$LIBS
11880 LIBS
="-lXft $XFT_LIBS $LIBS"
11881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11890 char XftFontOpen ();
11894 return XftFontOpen ();
11899 if ac_fn_c_try_link
"$LINENO"; then :
11900 ac_cv_lib_Xft_XftFontOpen
=yes
11902 ac_cv_lib_Xft_XftFontOpen
=no
11904 rm -f core conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11906 LIBS
=$ac_check_lib_save_LIBS
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11909 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11910 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11918 if test "${HAVE_XFT}" = "yes"; then
11920 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11923 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11925 CPPFLAGS
="$OLD_CPPFLAGS"
11926 CFLAGS
="$OLD_CFLAGS"
11928 fi # "${HAVE_XFT}" = "yes"
11929 fi # "$HAVE_XFT" != no
11930 fi # "x${with_xft}" != "xno"
11932 ## We used to allow building with FreeType and without Xft.
11933 ## However, the ftx font backend driver is not in good shape.
11934 if test "$HAVE_XFT" != "yes"; then
11941 if test "$PKG_CONFIG" = "no" ; then
11944 PKG_CONFIG_MIN_VERSION
=0.9.0
11945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11947 $as_echo_n "checking for freetype2... " >&6; }
11949 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11950 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11951 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11958 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11959 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11961 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11968 ## If we have a custom action on failure, don't print errors, but
11969 ## do set a variable so people can do so. Do it in a subshell
11970 ## to capture any diagnostics in invoking pkg-config.
11971 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
11978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11983 if test $succeeded = yes; then
11990 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11994 if test "${HAVE_FREETYPE}" = "yes"; then
11996 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11998 if test "${with_libotf}" != "no"; then
12002 if test "$PKG_CONFIG" = "no" ; then
12005 PKG_CONFIG_MIN_VERSION
=0.9.0
12006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12008 $as_echo_n "checking for libotf... " >&6; }
12010 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12011 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12012 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12019 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12020 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12022 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12029 ## If we have a custom action on failure, don't print errors, but
12030 ## do set a variable so people can do so. Do it in a subshell
12031 ## to capture any diagnostics in invoking pkg-config.
12032 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12039 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12040 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12044 if test $succeeded = yes; then
12050 if test "$HAVE_LIBOTF" = "yes"; then
12052 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12055 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12056 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS
=$LIBS
12061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12070 char OTF_get_variation_glyphs ();
12074 return OTF_get_variation_glyphs ();
12079 if ac_fn_c_try_link
"$LINENO"; then :
12080 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12082 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12084 rm -f core conftest.err conftest.
$ac_objext \
12085 conftest
$ac_exeext conftest.
$ac_ext
12086 LIBS
=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12089 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12090 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12091 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12093 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12096 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12098 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12106 if test "${HAVE_LIBOTF}" = yes; then
12107 if test "${with_m17n_flt}" != "no"; then
12111 if test "$PKG_CONFIG" = "no" ; then
12114 PKG_CONFIG_MIN_VERSION
=0.9.0
12115 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12117 $as_echo_n "checking for m17n-flt... " >&6; }
12119 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12120 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12121 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12128 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12129 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12131 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12138 ## If we have a custom action on failure, don't print errors, but
12139 ## do set a variable so people can do so. Do it in a subshell
12140 ## to capture any diagnostics in invoking pkg-config.
12141 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12148 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12149 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12153 if test $succeeded = yes; then
12159 if test "$HAVE_M17N_FLT" = "yes"; then
12161 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12173 ### End of font-backend (under X11) section.
12184 ### Use -lXpm if available, unless `--with-xpm=no'.
12187 if test "${HAVE_X11}" = "yes"; then
12188 if test "${with_xpm}" != "no"; then
12189 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12190 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12192 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12193 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12196 ac_check_lib_save_LIBS
=$LIBS
12197 LIBS
="-lXpm -lX11 $LIBS"
12198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12207 char XpmReadFileToPixmap ();
12211 return XpmReadFileToPixmap ();
12216 if ac_fn_c_try_link
"$LINENO"; then :
12217 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12219 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12221 rm -f core conftest.err conftest.
$ac_objext \
12222 conftest
$ac_exeext conftest.
$ac_ext
12223 LIBS
=$ac_check_lib_save_LIBS
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12226 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12227 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12234 if test "${HAVE_XPM}" = "yes"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12236 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include "X11/xpm.h"
12240 #ifndef XpmReturnAllocPixels
12241 no_return_alloc_pixels
12245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12246 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12254 if test "${HAVE_XPM}" = "yes"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12256 $as_echo "yes" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12264 if test "${HAVE_XPM}" = "yes"; then
12266 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12273 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12276 if test "${HAVE_X11}" = "yes"; then
12277 if test "${with_jpeg}" != "no"; then
12278 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12279 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12281 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12282 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12285 ac_check_lib_save_LIBS
=$LIBS
12286 LIBS
="-ljpeg $LIBS"
12287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12296 char jpeg_destroy_compress ();
12300 return jpeg_destroy_compress ();
12305 if ac_fn_c_try_link
"$LINENO"; then :
12306 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12308 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12310 rm -f core conftest.err conftest.
$ac_objext \
12311 conftest
$ac_exeext conftest.
$ac_ext
12312 LIBS
=$ac_check_lib_save_LIBS
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12315 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12316 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12325 if test "${HAVE_JPEG}" = "yes"; then
12326 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <jpeglib.h>
12331 version=JPEG_LIB_VERSION
12334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12335 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12336 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12340 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12346 if test "${HAVE_JPEG}" = "yes"; then
12352 ### Use -lpng if available, unless `--with-png=no'.
12355 if test "${HAVE_X11}" = "yes"; then
12356 if test "${with_png}" != "no"; then
12357 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12358 # in /usr/include/libpng.
12359 for ac_header
in png.h libpng
/png.h
12361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12363 eval as_val
=\$
$as_ac_Header
12364 if test "x$as_val" = x
""yes; then :
12365 cat >>confdefs.h
<<_ACEOF
12366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12373 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12375 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12376 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS
=$LIBS
12380 LIBS
="-lpng -lz -lm $LIBS"
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12390 char png_get_channels ();
12394 return png_get_channels ();
12399 if ac_fn_c_try_link
"$LINENO"; then :
12400 ac_cv_lib_png_png_get_channels
=yes
12402 ac_cv_lib_png_png_get_channels
=no
12404 rm -f core conftest.err conftest.
$ac_objext \
12405 conftest
$ac_exeext conftest.
$ac_ext
12406 LIBS
=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12409 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12410 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12417 if test "${HAVE_PNG}" = "yes"; then
12419 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12421 LIBPNG
="-lpng -lz -lm"
12423 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12424 # include <libpng/png.h>
12430 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12434 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12442 ### Use -ltiff if available, unless `--with-tiff=no'.
12445 if test "${HAVE_X11}" = "yes"; then
12446 if test "${with_tiff}" != "no"; then
12447 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12448 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12450 # At least one tiff package requires the jpeg library.
12451 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12453 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12454 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12457 ac_check_lib_save_LIBS
=$LIBS
12458 LIBS
="-ltiff $tifflibs $LIBS"
12459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12468 char TIFFGetVersion ();
12472 return TIFFGetVersion ();
12477 if ac_fn_c_try_link
"$LINENO"; then :
12478 ac_cv_lib_tiff_TIFFGetVersion
=yes
12480 ac_cv_lib_tiff_TIFFGetVersion
=no
12482 rm -f core conftest.err conftest.
$ac_objext \
12483 conftest
$ac_exeext conftest.
$ac_ext
12484 LIBS
=$ac_check_lib_save_LIBS
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12487 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12488 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12497 if test "${HAVE_TIFF}" = "yes"; then
12499 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12506 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12509 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12510 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12511 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12512 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12513 # Earlier versions can crash Emacs.
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12515 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12516 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12519 ac_check_lib_save_LIBS
=$LIBS
12521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12530 char EGifPutExtensionLast ();
12534 return EGifPutExtensionLast ();
12539 if ac_fn_c_try_link
"$LINENO"; then :
12540 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12542 ac_cv_lib_gif_EGifPutExtensionLast
=no
12544 rm -f core conftest.err conftest.
$ac_objext \
12545 conftest
$ac_exeext conftest.
$ac_ext
12546 LIBS
=$ac_check_lib_save_LIBS
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12549 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12550 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12560 if test "$HAVE_GIF" = yes; then
12562 elif test "$HAVE_GIF" = maybe
; then
12563 # If gif_lib.h but no libgif, try libungif.
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12565 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12566 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
12569 ac_check_lib_save_LIBS
=$LIBS
12570 LIBS
="-lungif $LIBS"
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12580 char EGifPutExtensionLast ();
12584 return EGifPutExtensionLast ();
12589 if ac_fn_c_try_link
"$LINENO"; then :
12590 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12592 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12594 rm -f core conftest.err conftest.
$ac_objext \
12595 conftest
$ac_exeext conftest.
$ac_ext
12596 LIBS
=$ac_check_lib_save_LIBS
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12599 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12600 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12606 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12609 if test "${HAVE_GIF}" = "yes"; then
12611 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12617 if test "${HAVE_X11}" = "yes"; then
12620 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12621 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12622 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12623 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12624 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12625 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12626 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12627 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12628 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12629 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12631 if test "X${MISSING}" != X
; then
12632 as_fn_error
"The following required libraries were not found:
12634 Maybe some development libraries/packages are missing?
12635 If you don't want to link with them give
12637 as options to configure" "$LINENO" 5
12641 ### Use -lgpm if available, unless `--with-gpm=no'.
12644 if test "${with_gpm}" != "no"; then
12645 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12646 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12648 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12649 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12652 ac_check_lib_save_LIBS
=$LIBS
12654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 /* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12667 return Gpm_Open ();
12672 if ac_fn_c_try_link
"$LINENO"; then :
12673 ac_cv_lib_gpm_Gpm_Open
=yes
12675 ac_cv_lib_gpm_Gpm_Open
=no
12677 rm -f core conftest.err conftest.
$ac_objext \
12678 conftest
$ac_exeext conftest.
$ac_ext
12679 LIBS
=$ac_check_lib_save_LIBS
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12682 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12683 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12691 if test "${HAVE_GPM}" = "yes"; then
12693 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12705 ### Use NeXTstep API to implement GUI.
12706 if test "${HAVE_NS}" = "yes"; then
12708 $as_echo "#define HAVE_NS 1" >>confdefs.h
12710 if test "${NS_IMPL_COCOA}" = "yes"; then
12712 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12715 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12717 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12719 # See also .m.o rule in Makefile.in */
12720 # FIXME: are all these flags really needed? Document here why. */
12721 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12722 ## Extra CFLAGS applied to src/*.m files.
12723 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"
12725 # We also have mouse menus.
12731 ### Use session management (-lSM -lICE) if available
12734 if test "${HAVE_X11}" = "yes"; then
12735 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12736 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12738 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12739 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12742 ac_check_lib_save_LIBS
=$LIBS
12743 LIBS
="-lSM -lICE $LIBS"
12744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 /* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12753 char SmcOpenConnection ();
12757 return SmcOpenConnection ();
12762 if ac_fn_c_try_link
"$LINENO"; then :
12763 ac_cv_lib_SM_SmcOpenConnection
=yes
12765 ac_cv_lib_SM_SmcOpenConnection
=no
12767 rm -f core conftest.err conftest.
$ac_objext \
12768 conftest
$ac_exeext conftest.
$ac_ext
12769 LIBS
=$ac_check_lib_save_LIBS
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12772 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12773 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12781 if test "${HAVE_X_SM}" = "yes"; then
12783 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12785 LIBXSM
="-lSM -lICE"
12788 *) LIBS
="$LIBXSM $LIBS" ;;
12794 ### Use libxml (-lxml2) if available
12796 if test "${with_xml2}" != "no"; then
12797 ### I'm not sure what the version number should be, so I just guessed.
12801 if test "$PKG_CONFIG" = "no" ; then
12804 PKG_CONFIG_MIN_VERSION
=0.9.0
12805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12807 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12809 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12810 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12811 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12818 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12819 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12821 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12828 ## If we have a custom action on failure, don't print errors, but
12829 ## do set a variable so people can do so. Do it in a subshell
12830 ## to capture any diagnostics in invoking pkg-config.
12831 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12839 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12843 if test $succeeded = yes; then
12849 if test "${HAVE_LIBXML2}" = "yes"; then
12850 LIBS
="$LIBXML2_LIBS $LIBS"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12852 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12853 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 ac_check_lib_save_LIBS
=$LIBS
12857 LIBS
="-lxml2 $LIBS"
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12867 char htmlReadMemory ();
12871 return htmlReadMemory ();
12876 if ac_fn_c_try_link
"$LINENO"; then :
12877 ac_cv_lib_xml2_htmlReadMemory
=yes
12879 ac_cv_lib_xml2_htmlReadMemory
=no
12881 rm -f core conftest.err conftest.
$ac_objext \
12882 conftest
$ac_exeext conftest.
$ac_ext
12883 LIBS
=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12886 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12887 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12893 if test "${HAVE_LIBXML2}" = "yes"; then
12895 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12906 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12908 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12909 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12923 if ac_fn_c_try_link
"$LINENO"; then :
12924 emacs_cv_netdb_declares_h_errno
=yes
12926 emacs_cv_netdb_declares_h_errno
=no
12928 rm -f core conftest.err conftest.
$ac_objext \
12929 conftest
$ac_exeext conftest.
$ac_ext
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12932 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12933 if test $emacs_cv_netdb_declares_h_errno = yes; then
12935 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12939 # sqrt and other floating-point functions such as fmod and frexp
12940 # are found in -lm on most systems.
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12942 $as_echo_n "checking for sqrt in -lm... " >&6; }
12943 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12946 ac_check_lib_save_LIBS
=$LIBS
12948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12966 if ac_fn_c_try_link
"$LINENO"; then :
12967 ac_cv_lib_m_sqrt
=yes
12969 ac_cv_lib_m_sqrt
=no
12971 rm -f core conftest.err conftest.
$ac_objext \
12972 conftest
$ac_exeext conftest.
$ac_ext
12973 LIBS
=$ac_check_lib_save_LIBS
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12976 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12977 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12978 cat >>confdefs.h
<<_ACEOF
12979 #define HAVE_LIBM 1
12987 # Check for mail-locking functions in a "mail" library. Probably this should
12988 # have the same check as for liblockfile below.
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12990 $as_echo_n "checking for maillock in -lmail... " >&6; }
12991 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12994 ac_check_lib_save_LIBS
=$LIBS
12995 LIBS
="-lmail $LIBS"
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13009 return maillock ();
13014 if ac_fn_c_try_link
"$LINENO"; then :
13015 ac_cv_lib_mail_maillock
=yes
13017 ac_cv_lib_mail_maillock
=no
13019 rm -f core conftest.err conftest.
$ac_objext \
13020 conftest
$ac_exeext conftest.
$ac_ext
13021 LIBS
=$ac_check_lib_save_LIBS
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13024 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13025 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13031 if test $have_mail = yes; then
13033 LIBS
="$LIBS_MAIL $LIBS"
13035 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13041 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13042 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13045 ac_check_lib_save_LIBS
=$LIBS
13046 LIBS
="-llockfile $LIBS"
13047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13060 return maillock ();
13065 if ac_fn_c_try_link
"$LINENO"; then :
13066 ac_cv_lib_lockfile_maillock
=yes
13068 ac_cv_lib_lockfile_maillock
=no
13070 rm -f core conftest.err conftest.
$ac_objext \
13071 conftest
$ac_exeext conftest.
$ac_ext
13072 LIBS
=$ac_check_lib_save_LIBS
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13075 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13076 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13082 if test $have_lockfile = yes; then
13083 LIBS_MAIL
=-llockfile
13084 LIBS
="$LIBS_MAIL $LIBS"
13086 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13089 # If we have the shared liblockfile, assume we must use it for mail
13090 # locking (e.g. Debian). If we couldn't link against liblockfile
13091 # (no liblockfile.a installed), ensure that we don't need to.
13092 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13093 set dummy liblockfile.so
; ac_word
=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13099 if test -n "$liblockfile"; then
13100 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13103 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13104 for as_dir
in $as_dummy
13107 test -z "$as_dir" && as_dir
=.
13108 for ac_exec_ext
in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_liblockfile
="yes"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13121 liblockfile
=$ac_cv_prog_liblockfile
13122 if test -n "$liblockfile"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13124 $as_echo "$liblockfile" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13131 if test $ac_cv_prog_liblockfile = yes; then
13132 as_fn_error
"Shared liblockfile found but can't link against it.
13133 This probably means that movemail could lose mail.
13134 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13142 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13143 ## interlock access to the mail spool. The alternative is a lock file named
13144 ## /usr/spool/mail/$USER.lock.
13147 aix4-2
) mail_lock
="lockf" ;;
13149 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13151 ## On GNU/Linux systems, both methods are used by various mail programs.
13152 ## I assume most people are using newer mailers that have heard of flock.
13153 ## Change this if you need to.
13154 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13155 ## configure gets the right answers, and that means *NOT* using flock.
13156 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13157 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13158 ## Debian maintainer hasn't provided a clean fix for Emacs.
13159 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13160 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13161 ## correct logic. -- fx
13162 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13163 ## liblockfile is a Free Software replacement for libmail, used on
13164 ## Debian systems and elsewhere. -rfr.
13167 if test $have_mail = yes ||
test $have_lockfile = yes; then
13168 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13174 case "$mail_lock" in
13176 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13180 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13183 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13188 for ac_func
in gethostname \
13189 closedir getrusage get_current_dir_name \
13191 fpathconf
select euidaccess getpagesize setlocale \
13192 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13193 __fpending strsignal setitimer \
13194 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13195 gai_strerror mkstemp getline getdelim fsync sync \
13196 difftime posix_memalign \
13197 getpwent endpwent getgrent endgrent \
13199 cfmakeraw cfsetspeed copysign __executable_start
13201 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13202 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13203 eval as_val
=\$
$as_ac_var
13204 if test "x$as_val" = x
""yes; then :
13205 cat >>confdefs.h
<<_ACEOF
13206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13213 if test $opsys = unixware
; then
13215 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13218 for ac_func
in getwd
13220 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13221 if test "x$ac_cv_func_getwd" = x
""yes; then :
13222 cat >>confdefs.h
<<_ACEOF
13223 #define HAVE_GETWD 1
13231 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13232 ## has a broken `rint' in some library versions including math library
13233 ## version number A.09.05.
13234 ## You can fix the math library by installing patch number PHSS_4630.
13235 ## But we can fix it more reliably for Emacs by just not using rint.
13236 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13239 *) for ac_func
in random rint
13241 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13242 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13243 eval as_val
=\$
$as_ac_var
13244 if test "x$as_val" = x
""yes; then :
13245 cat >>confdefs.h
<<_ACEOF
13246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13255 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13256 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13265 __builtin_unwind_init ();
13270 if ac_fn_c_try_link
"$LINENO"; then :
13271 emacs_cv_func___builtin_unwind_init
=yes
13273 emacs_cv_func___builtin_unwind_init
=no
13275 rm -f core conftest.err conftest.
$ac_objext \
13276 conftest
$ac_exeext conftest.
$ac_ext
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13279 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13280 if test $emacs_cv_func___builtin_unwind_init = yes; then
13282 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13291 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13292 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <sys/types.h> /* for off_t */
13303 int (*fp) (FILE *, off_t, int) = fseeko;
13304 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13309 if ac_fn_c_try_link
"$LINENO"; then :
13310 ac_cv_sys_largefile_source
=no
; break
13312 rm -f core conftest.err conftest.
$ac_objext \
13313 conftest
$ac_exeext conftest.
$ac_ext
13314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 #define _LARGEFILE_SOURCE 1
13317 #include <sys/types.h> /* for off_t */
13322 int (*fp) (FILE *, off_t, int) = fseeko;
13323 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13328 if ac_fn_c_try_link
"$LINENO"; then :
13329 ac_cv_sys_largefile_source
=1; break
13331 rm -f core conftest.err conftest.
$ac_objext \
13332 conftest
$ac_exeext conftest.
$ac_ext
13333 ac_cv_sys_largefile_source
=unknown
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13338 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13339 case $ac_cv_sys_largefile_source in #(
13342 cat >>confdefs.h
<<_ACEOF
13343 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13349 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13350 # in glibc 2.1.3, but that breaks too many other things.
13351 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13352 if test $ac_cv_sys_largefile_source != unknown
; then
13354 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13360 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13361 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
13364 # Use it with a single arg.
13365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 $ac_includes_default
13376 if ac_fn_c_try_compile
"$LINENO"; then :
13377 ac_cv_func_getpgrp_void
=no
13379 ac_cv_func_getpgrp_void
=yes
13381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13385 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13386 if test $ac_cv_func_getpgrp_void = yes; then
13388 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13394 for ac_func
in grantpt
13396 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13397 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13398 cat >>confdefs.h
<<_ACEOF
13399 #define HAVE_GRANTPT 1
13406 # PTY-related GNU extensions.
13407 for ac_func
in getpt posix_openpt
13409 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13411 eval as_val
=\$
$as_ac_var
13412 if test "x$as_val" = x
""yes; then :
13413 cat >>confdefs.h
<<_ACEOF
13414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13421 # Check this now, so that we will NOT find the above functions in ncurses.
13422 # That is because we have not set up to link ncurses in lib-src.
13423 # It's better to believe a function is not available
13424 # than to expect to find it in ncurses.
13425 # Also we need tputs and friends to be able to build at all.
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13427 $as_echo_n "checking for library containing tputs... " >&6; }
13428 # Run a test program that contains a call to tputs, a call that is
13429 # never executed. This tests whether a pre-'main' dynamic linker
13430 # works with the library. It's too much trouble to actually call
13431 # tputs in the test program, due to portability hassles. When
13432 # cross-compiling, assume the test program will run if it links.
13434 # Maybe curses should be tried earlier?
13435 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13436 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13438 if test -z "$tputs_library"; then
13440 msg
='none required'
13442 LIBS_TERMCAP
=-l$tputs_library
13444 LIBS
="$LIBS_TERMCAP $LIBS"
13446 if test "$cross_compiling" = yes; then :
13447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 extern void tputs (const char *, int, int (*)(int));
13451 int main (int argc, char **argv)
13454 tputs (argv[0], 0, 0);
13459 if ac_fn_c_try_link
"$LINENO"; then :
13464 rm -f core conftest.err conftest.
$ac_objext \
13465 conftest
$ac_exeext conftest.
$ac_ext
13467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13470 extern void tputs (const char *, int, int (*)(int));
13471 int main (int argc, char **argv)
13474 tputs (argv[0], 0, 0);
13479 if ac_fn_c_try_run
"$LINENO"; then :
13484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13489 if test "X$msg" != Xno
; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13494 $as_echo "$msg" >&6; }
13495 if test "X$msg" = Xno
; then
13496 as_fn_error
"The required function \`tputs' was not found in any library.
13497 The following libraries were tried (in order):
13498 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13499 Please try installing whichever of these libraries is most appropriate
13500 for your system, together with its header files.
13501 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13504 ## Use termcap instead of terminfo?
13505 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13507 ## FIXME? In the cases below where we unconditionally set
13508 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13509 ## if that was found above to have tputs.
13510 ## Should we use the gnu* logic everywhere?
13512 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13513 ## The ncurses library has been moved out of the System framework in
13514 ## Mac OS X 10.2. So if configure detects it, set the command-line
13515 ## option to use it.
13516 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13518 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13522 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13523 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 #include <osreldate.h>
13532 #if __FreeBSD_version < 400000
13540 if ac_fn_c_try_link
"$LINENO"; then :
13541 emacs_cv_freebsd_terminfo
=yes
13543 emacs_cv_freebsd_terminfo
=no
13545 rm -f core conftest.err conftest.
$ac_objext \
13546 conftest
$ac_exeext conftest.
$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13551 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13553 if test $emacs_cv_freebsd_terminfo = yes; then
13554 LIBS_TERMCAP
="-lncurses"
13557 LIBS_TERMCAP
="-ltermcap"
13562 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13564 LIBS_TERMCAP
="-ltermcap"
13568 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13570 ## hpux: Make sure we get select from libc rather than from libcurses
13571 ## because libcurses on HPUX 10.10 has a broken version of select.
13572 ## We used to use -lc -lcurses, but this may be cleaner.
13573 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13574 # set that way, now it uses the default). Isn't this a contradiction?
13575 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13579 TERMCAP_OBJ
=tparam.o
13580 if test $TERMINFO = yes; then
13582 $as_echo "#define TERMINFO 1" >>confdefs.h
13584 TERMCAP_OBJ
=terminfo.o
13590 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13591 # On Darwin, res_init appears not to be useful: see bug#562 and
13592 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13595 if test $opsys != darwin
; then
13597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 #include <netinet/in.h>
13600 #include <arpa/nameser.h>
13601 #include <resolv.h>
13610 if ac_fn_c_try_link
"$LINENO"; then :
13615 rm -f core conftest.err conftest.
$ac_objext \
13616 conftest
$ac_exeext conftest.
$ac_ext
13617 if test "$have_res_init" = no
; then
13619 LIBS
="$LIBS -lresolv"
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13621 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <netinet/in.h>
13625 #include <arpa/nameser.h>
13626 #include <resolv.h>
13635 if ac_fn_c_try_link
"$LINENO"; then :
13640 rm -f core conftest.err conftest.
$ac_objext \
13641 conftest
$ac_exeext conftest.
$ac_ext
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13643 $as_echo "$have_res_init" >&6; }
13644 if test "$have_res_init" = yes ; then
13650 if test "$have_res_init" = yes; then
13652 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13656 # Do we need the Hesiod library to provide the support routines?
13658 if test "$with_hesiod" != no
; then
13659 # Don't set $LIBS here -- see comments above. FIXME which comments?
13660 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13661 if test "x$ac_cv_func_res_send" = x
""yes; then :
13664 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13665 if test "x$ac_cv_func___res_send" = x
""yes; then :
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13669 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13670 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13671 $as_echo_n "(cached) " >&6
13673 ac_check_lib_save_LIBS
=$LIBS
13674 LIBS
="-lresolv $LIBS"
13675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13688 return res_send ();
13693 if ac_fn_c_try_link
"$LINENO"; then :
13694 ac_cv_lib_resolv_res_send
=yes
13696 ac_cv_lib_resolv_res_send
=no
13698 rm -f core conftest.err conftest.
$ac_objext \
13699 conftest
$ac_exeext conftest.
$ac_ext
13700 LIBS
=$ac_check_lib_save_LIBS
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13703 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13704 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13708 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13709 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13710 $as_echo_n "(cached) " >&6
13712 ac_check_lib_save_LIBS
=$LIBS
13713 LIBS
="-lresolv $LIBS"
13714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13723 char __res_send ();
13727 return __res_send ();
13732 if ac_fn_c_try_link
"$LINENO"; then :
13733 ac_cv_lib_resolv___res_send
=yes
13735 ac_cv_lib_resolv___res_send
=no
13737 rm -f core conftest.err conftest.
$ac_objext \
13738 conftest
$ac_exeext conftest.
$ac_ext
13739 LIBS
=$ac_check_lib_save_LIBS
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13742 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13743 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13753 if test "$resolv" = yes ; then
13758 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13759 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13763 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13764 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13765 $as_echo_n "(cached) " >&6
13767 ac_check_lib_save_LIBS
=$LIBS
13768 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13778 char hes_getmailhost ();
13782 return hes_getmailhost ();
13787 if ac_fn_c_try_link
"$LINENO"; then :
13788 ac_cv_lib_hesiod_hes_getmailhost
=yes
13790 ac_cv_lib_hesiod_hes_getmailhost
=no
13792 rm -f core conftest.err conftest.
$ac_objext \
13793 conftest
$ac_exeext conftest.
$ac_ext
13794 LIBS
=$ac_check_lib_save_LIBS
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13797 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13798 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13807 if test x
"$hesiod" = xyes
; then
13809 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13816 # Do we need libresolv (due to res_init or Hesiod)?
13817 if test "$resolv" = yes && test $opsys != darwin
; then
13819 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13827 # These tell us which Kerberos-related libraries to use.
13834 if test "${with_kerberos}" != no
; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13836 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13837 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13840 ac_check_lib_save_LIBS
=$LIBS
13841 LIBS
="-lcom_err $LIBS"
13842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13860 if ac_fn_c_try_link
"$LINENO"; then :
13861 ac_cv_lib_com_err_com_err
=yes
13863 ac_cv_lib_com_err_com_err
=no
13865 rm -f core conftest.err conftest.
$ac_objext \
13866 conftest
$ac_exeext conftest.
$ac_ext
13867 LIBS
=$ac_check_lib_save_LIBS
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13870 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13871 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13877 if test $have_com_err = yes; then
13878 COM_ERRLIB
=-lcom_err
13879 LIBS
="$COM_ERRLIB $LIBS"
13881 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13885 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13886 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13887 $as_echo_n "(cached) " >&6
13889 ac_check_lib_save_LIBS
=$LIBS
13890 LIBS
="-lcrypto $LIBS"
13891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 /* Override any GCC internal prototype to avoid an error.
13895 Use char because int might match the return type of a GCC
13896 builtin and then its argument prototype would still apply. */
13900 char mit_des_cbc_encrypt ();
13904 return mit_des_cbc_encrypt ();
13909 if ac_fn_c_try_link
"$LINENO"; then :
13910 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13912 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13914 rm -f core conftest.err conftest.
$ac_objext \
13915 conftest
$ac_exeext conftest.
$ac_ext
13916 LIBS
=$ac_check_lib_save_LIBS
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13919 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13920 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13926 if test $have_crypto = yes; then
13928 LIBS
="$CRYPTOLIB $LIBS"
13930 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13934 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13935 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13938 ac_check_lib_save_LIBS
=$LIBS
13939 LIBS
="-lk5crypto $LIBS"
13940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13949 char mit_des_cbc_encrypt ();
13953 return mit_des_cbc_encrypt ();
13958 if ac_fn_c_try_link
"$LINENO"; then :
13959 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13961 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13963 rm -f core conftest.err conftest.
$ac_objext \
13964 conftest
$ac_exeext conftest.
$ac_ext
13965 LIBS
=$ac_check_lib_save_LIBS
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13968 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13969 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13975 if test $have_k5crypto = yes; then
13976 CRYPTOLIB
=-lk5crypto
13977 LIBS
="$CRYPTOLIB $LIBS"
13979 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13983 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13984 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13987 ac_check_lib_save_LIBS
=$LIBS
13988 LIBS
="-lkrb5 $LIBS"
13989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13992 /* Override any GCC internal prototype to avoid an error.
13993 Use char because int might match the return type of a GCC
13994 builtin and then its argument prototype would still apply. */
13998 char krb5_init_context ();
14002 return krb5_init_context ();
14007 if ac_fn_c_try_link
"$LINENO"; then :
14008 ac_cv_lib_krb5_krb5_init_context
=yes
14010 ac_cv_lib_krb5_krb5_init_context
=no
14012 rm -f core conftest.err conftest.
$ac_objext \
14013 conftest
$ac_exeext conftest.
$ac_ext
14014 LIBS
=$ac_check_lib_save_LIBS
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14017 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14018 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14024 if test $have_krb5=yes; then
14026 LIBS
="$KRB5LIB $LIBS"
14028 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14031 if test "${with_kerberos5}" = no
; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14033 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14034 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14035 $as_echo_n "(cached) " >&6
14037 ac_check_lib_save_LIBS
=$LIBS
14038 LIBS
="-ldes425 $LIBS"
14039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14048 char des_cbc_encrypt ();
14052 return des_cbc_encrypt ();
14057 if ac_fn_c_try_link
"$LINENO"; then :
14058 ac_cv_lib_des425_des_cbc_encrypt
=yes
14060 ac_cv_lib_des425_des_cbc_encrypt
=no
14062 rm -f core conftest.err conftest.
$ac_objext \
14063 conftest
$ac_exeext conftest.
$ac_ext
14064 LIBS
=$ac_check_lib_save_LIBS
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14067 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14068 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14074 if test $have_des425 = yes; then
14076 LIBS
="$DESLIB $LIBS"
14078 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14082 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14083 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14086 ac_check_lib_save_LIBS
=$LIBS
14088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14091 /* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
14097 char des_cbc_encrypt ();
14101 return des_cbc_encrypt ();
14106 if ac_fn_c_try_link
"$LINENO"; then :
14107 ac_cv_lib_des_des_cbc_encrypt
=yes
14109 ac_cv_lib_des_des_cbc_encrypt
=no
14111 rm -f core conftest.err conftest.
$ac_objext \
14112 conftest
$ac_exeext conftest.
$ac_ext
14113 LIBS
=$ac_check_lib_save_LIBS
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14116 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14117 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14123 if test $have_des = yes; then
14125 LIBS
="$DESLIB $LIBS"
14127 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14132 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14133 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14136 ac_check_lib_save_LIBS
=$LIBS
14137 LIBS
="-lkrb4 $LIBS"
14138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14141 /* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
14147 char krb_get_cred ();
14151 return krb_get_cred ();
14156 if ac_fn_c_try_link
"$LINENO"; then :
14157 ac_cv_lib_krb4_krb_get_cred
=yes
14159 ac_cv_lib_krb4_krb_get_cred
=no
14161 rm -f core conftest.err conftest.
$ac_objext \
14162 conftest
$ac_exeext conftest.
$ac_ext
14163 LIBS
=$ac_check_lib_save_LIBS
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14166 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14167 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14173 if test $have_krb4 = yes; then
14175 LIBS
="$KRB4LIB $LIBS"
14177 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14181 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14182 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14183 $as_echo_n "(cached) " >&6
14185 ac_check_lib_save_LIBS
=$LIBS
14187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char krb_get_cred ();
14200 return krb_get_cred ();
14205 if ac_fn_c_try_link
"$LINENO"; then :
14206 ac_cv_lib_krb_krb_get_cred
=yes
14208 ac_cv_lib_krb_krb_get_cred
=no
14210 rm -f core conftest.err conftest.
$ac_objext \
14211 conftest
$ac_exeext conftest.
$ac_ext
14212 LIBS
=$ac_check_lib_save_LIBS
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14215 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14216 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14222 if test $have_krb = yes; then
14224 LIBS
="$KRB4LIB $LIBS"
14226 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14232 if test "${with_kerberos5}" != no
; then
14233 for ac_header
in krb5.h
14235 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14236 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14237 cat >>confdefs.h
<<_ACEOF
14238 #define HAVE_KRB5_H 1
14240 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14242 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14244 cat >>confdefs.h
<<_ACEOF
14245 #define HAVE_KRB5_ERROR_TEXT 1
14250 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14252 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14254 cat >>confdefs.h
<<_ACEOF
14255 #define HAVE_KRB5_ERROR_E_TEXT 1
14266 for ac_header
in des.h
14268 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_des_h" = x
""yes; then :
14270 cat >>confdefs.h
<<_ACEOF
14271 #define HAVE_DES_H 1
14275 for ac_header
in kerberosIV
/des.h
14277 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14278 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14279 cat >>confdefs.h
<<_ACEOF
14280 #define HAVE_KERBEROSIV_DES_H 1
14284 for ac_header
in kerberos
/des.h
14286 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14288 cat >>confdefs.h
<<_ACEOF
14289 #define HAVE_KERBEROS_DES_H 1
14304 for ac_header
in krb.h
14306 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14307 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14308 cat >>confdefs.h
<<_ACEOF
14309 #define HAVE_KRB_H 1
14313 for ac_header
in kerberosIV
/krb.h
14315 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14316 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14317 cat >>confdefs.h
<<_ACEOF
14318 #define HAVE_KERBEROSIV_KRB_H 1
14322 for ac_header
in kerberos
/krb.h
14324 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14325 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14326 cat >>confdefs.h
<<_ACEOF
14327 #define HAVE_KERBEROS_KRB_H 1
14343 for ac_header
in com_err.h
14345 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14346 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14347 cat >>confdefs.h
<<_ACEOF
14348 #define HAVE_COM_ERR_H 1
14366 for ac_func
in $ac_func_list
14368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14370 eval as_val
=\$
$as_ac_var
14371 if test "x$as_val" = x
""yes; then :
14372 cat >>confdefs.h
<<_ACEOF
14373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14383 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14384 if test "${emacs_cv_localtime_cache+set}" = set; then :
14385 $as_echo_n "(cached) " >&6
14387 if test x
$ac_cv_func_tzset = xyes
; then
14388 if test "$cross_compiling" = yes; then :
14389 # If we have tzset, assume the worst when cross-compiling.
14390 emacs_cv_localtime_cache
=yes
14392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14395 char TZ_GMT0[] = "TZ=GMT0";
14396 char TZ_PST8[] = "TZ=PST8";
14399 time_t now = time ((time_t *) 0);
14400 int hour_GMT0, hour_unset;
14401 if (putenv (TZ_GMT0) != 0)
14403 hour_GMT0 = localtime (&now)->tm_hour;
14405 hour_unset = localtime (&now)->tm_hour;
14406 if (putenv (TZ_PST8) != 0)
14408 if (localtime (&now)->tm_hour == hour_GMT0)
14411 if (localtime (&now)->tm_hour != hour_unset)
14416 if ac_fn_c_try_run
"$LINENO"; then :
14417 emacs_cv_localtime_cache
=no
14419 emacs_cv_localtime_cache
=yes
14421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14426 # If we lack tzset, report that localtime does not cache TZ,
14427 # since we can't invalidate the cache if we don't have tzset.
14428 emacs_cv_localtime_cache
=no
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14432 $as_echo "$emacs_cv_localtime_cache" >&6; }
14433 if test $emacs_cv_localtime_cache = yes; then
14435 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14440 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14441 if test "x$ac_cv_func_socket" = x
""yes; then :
14447 if test $ok_so_far = yes; then
14448 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14449 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14457 if test $ok_so_far = yes; then
14458 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14459 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14467 if test $ok_so_far = yes; then
14469 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14473 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14475 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14480 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14481 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14483 $as_echo "yes" >&6; }
14485 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14493 *-solaris2.4 |
*-solaris2.4.
*)
14494 : ${ac_cv_func_vfork_works=no};;
14497 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14498 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14502 cat >>confdefs.h
<<_ACEOF
14508 for ac_header
in vfork.h
14510 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14511 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14512 cat >>confdefs.h
<<_ACEOF
14513 #define HAVE_VFORK_H 1
14520 for ac_func
in fork vfork
14522 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14524 eval as_val
=\$
$as_ac_var
14525 if test "x$as_val" = x
""yes; then :
14526 cat >>confdefs.h
<<_ACEOF
14527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14533 if test "x$ac_cv_func_fork" = xyes
; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14535 $as_echo_n "checking for working fork... " >&6; }
14536 if test "${ac_cv_func_fork_works+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14539 if test "$cross_compiling" = yes; then :
14540 ac_cv_func_fork_works
=cross
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 $ac_includes_default
14549 /* By Ruediger Kuhlmann. */
14550 return fork () < 0;
14556 if ac_fn_c_try_run
"$LINENO"; then :
14557 ac_cv_func_fork_works
=yes
14559 ac_cv_func_fork_works
=no
14561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14567 $as_echo "$ac_cv_func_fork_works" >&6; }
14570 ac_cv_func_fork_works
=$ac_cv_func_fork
14572 if test "x$ac_cv_func_fork_works" = xcross
; then
14574 *-*-amigaos* |
*-*-msdosdjgpp*)
14575 # Override, as these systems have only a dummy fork() stub
14576 ac_cv_func_fork_works
=no
14579 ac_cv_func_fork_works
=yes
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14583 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14585 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14586 if test "x$ac_cv_func_vfork" = xyes
; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14588 $as_echo_n "checking for working vfork... " >&6; }
14589 if test "${ac_cv_func_vfork_works+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14592 if test "$cross_compiling" = yes; then :
14593 ac_cv_func_vfork_works
=cross
14595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597 /* Thanks to Paul Eggert for this test. */
14598 $ac_includes_default
14599 #include <sys/wait.h>
14600 #ifdef HAVE_VFORK_H
14601 # include <vfork.h>
14603 /* On some sparc systems, changes by the child to local and incoming
14604 argument registers are propagated back to the parent. The compiler
14605 is told about this with #include <vfork.h>, but some compilers
14606 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14607 static variable whose address is put into a register that is
14608 clobbered by the vfork. */
14611 sparc_address_test (int arg)
14613 sparc_address_test (arg) int arg;
14616 static pid_t child;
14634 pid_t parent = getpid ();
14637 sparc_address_test (0);
14642 /* Here is another test for sparc vfork register problems. This
14643 test uses lots of local variables, at least as many local
14644 variables as main has allocated so far including compiler
14645 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14646 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14647 reuse the register of parent for one of the local variables,
14648 since it will think that parent can't possibly be used any more
14649 in this routine. Assigning to the local variable will thus
14650 munge parent in the parent process. */
14652 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14653 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14654 /* Convince the compiler that p..p7 are live; otherwise, it might
14655 use the same hardware register for all 8 local variables. */
14656 if (p != p1 || p != p2 || p != p3 || p != p4
14657 || p != p5 || p != p6 || p != p7)
14660 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14661 from child file descriptors. If the child closes a descriptor
14662 before it execs or exits, this munges the parent's descriptor
14663 as well. Test for this by closing stdout in the child. */
14664 _exit(close(fileno(stdout)) != 0);
14669 while (wait(&status) != child)
14672 /* Was there some problem with vforking? */
14675 /* Did the child fail? (This shouldn't happen.) */
14678 /* Did the vfork/compiler bug occur? */
14679 || parent != getpid()
14681 /* Did the file descriptor bug occur? */
14682 || fstat(fileno(stdout), &st) != 0
14687 if ac_fn_c_try_run
"$LINENO"; then :
14688 ac_cv_func_vfork_works
=yes
14690 ac_cv_func_vfork_works
=no
14692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14693 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14698 $as_echo "$ac_cv_func_vfork_works" >&6; }
14701 if test "x$ac_cv_func_fork_works" = xcross
; then
14702 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14704 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14707 if test "x$ac_cv_func_vfork_works" = xyes
; then
14709 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14713 $as_echo "#define vfork fork" >>confdefs.h
14716 if test "x$ac_cv_func_fork_works" = xyes
; then
14718 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14723 for ac_func
in snprintf
14725 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14726 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14727 cat >>confdefs.h
<<_ACEOF
14728 #define HAVE_SNPRINTF 1
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14736 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14737 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 #include <langinfo.h>
14746 char* cs = nl_langinfo(CODESET);
14751 if ac_fn_c_try_link
"$LINENO"; then :
14752 emacs_cv_langinfo_codeset
=yes
14754 emacs_cv_langinfo_codeset
=no
14756 rm -f core conftest.err conftest.
$ac_objext \
14757 conftest
$ac_exeext conftest.
$ac_ext
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14761 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14762 if test $emacs_cv_langinfo_codeset = yes; then
14764 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14769 $as_echo_n "checking for mbstate_t... " >&6; }
14770 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14771 $as_echo_n "(cached) " >&6
14773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 $ac_includes_default
14776 # include <wchar.h>
14780 mbstate_t x; return sizeof x;
14785 if ac_fn_c_try_compile
"$LINENO"; then :
14786 ac_cv_type_mbstate_t
=yes
14788 ac_cv_type_mbstate_t
=no
14790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14793 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14794 if test $ac_cv_type_mbstate_t = yes; then
14796 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14800 $as_echo "#define mbstate_t int" >>confdefs.h
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14805 $as_echo_n "checking for C restricted array declarations... " >&6; }
14806 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 void fred (int x[__restrict]);
14820 if ac_fn_c_try_compile
"$LINENO"; then :
14821 emacs_cv_c_restrict_arr
=yes
14823 emacs_cv_c_restrict_arr
=no
14825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14828 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14829 if test "$emacs_cv_c_restrict_arr" = yes; then
14831 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14837 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14841 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14844 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14846 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14850 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14856 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14860 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14864 $as_echo "#define subprocesses 1" >>confdefs.h
14868 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14873 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14879 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14883 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14887 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14895 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14896 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14902 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14909 irix6-5 | sol2
* | unixware
)
14911 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14916 emacs_broken_SIGIO
=no
14919 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14920 emacs_broken_SIGIO
=yes
14925 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14931 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14939 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14945 darwin | freebsd | netbsd | openbsd
)
14947 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14953 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14954 *) sound_device
="/dev/dsp" ;;
14958 cat >>confdefs.h
<<_ACEOF
14959 #define DEFAULT_SOUND_DEVICE "$sound_device"
14965 darwin | gnu-linux | gnu-kfreebsd
)
14967 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14974 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14976 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14990 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14992 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14994 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14999 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15001 $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
15003 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15005 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15010 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15012 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15014 $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
15016 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15018 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15023 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15027 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15028 if test "x$ac_cv_func_grantpt" = xyes
; then
15030 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15032 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15034 $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
15036 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15037 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15039 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15041 elif test "x$ac_cv_func_getpt" = xyes
; then
15042 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15044 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15047 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15051 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15057 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15059 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15061 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15066 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15068 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15070 $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
15072 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15074 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15079 $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
15084 $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
15092 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15094 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15097 $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
15106 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15107 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15111 gnu-linux | gnu-kfreebsd
)
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15114 $as_echo_n "checking for signals via characters... " >&6; }
15115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15118 #include <linux/version.h>
15119 #if LINUX_VERSION_CODE < 0x20400
15120 # error "Linux version too old"
15131 if ac_fn_c_try_cpp
"$LINENO"; then :
15132 emacs_signals_via_chars
=yes
15134 emacs_signals_via_chars
=no
15136 rm -f conftest.err conftest.
$ac_ext
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15139 $as_echo "$emacs_signals_via_chars" >&6; }
15140 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15149 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 #include <features.h>
15154 #ifndef __GNU_LIBRARY__
15155 # error "this is not the GNU C library"
15166 if ac_fn_c_try_cpp
"$LINENO"; then :
15171 rm -f conftest.err conftest.
$ac_ext
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15173 $as_echo "$emacs_glibc" >&6; }
15175 if test $emacs_glibc = yes; then
15177 emacs_pending_output
=unknown
15180 gnu | gnu-linux | gnu-kfreebsd
)
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15182 $as_echo_n "checking for style of pending output formalism... " >&6; }
15183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15187 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15188 # error "stdio definitions not found"
15199 if ac_fn_c_try_cpp
"$LINENO"; then :
15200 emacs_pending_output
=new
15202 rm -f conftest.err conftest.
$ac_ext
15204 if test $emacs_pending_output = unknown
; then
15206 gnu-linux | gnu-kfreebsd
)
15207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15212 # error "not using uclibc"
15223 if ac_fn_c_try_cpp
"$LINENO"; then :
15224 emacs_pending_output
=uclibc
15226 emacs_pending_output
=old
15228 rm -f conftest.err conftest.
$ac_ext
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15234 $as_echo "$emacs_pending_output" >&6; }
15236 case $emacs_pending_output in
15238 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15242 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15246 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15252 if test $emacs_pending_output = unknown
; then
15253 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15259 cygwin | darwin | freebsd | netbsd | openbsd
)
15260 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15265 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15270 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15271 test x
$ac_cv_func___fpending = xyes
; then
15272 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15275 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15278 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15290 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15295 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15297 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15301 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15303 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15313 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15316 gnu | freebsd | netbsd | openbsd
)
15318 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15320 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15324 gnu-linux | gnu-kfreebsd
)
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15340 if ac_fn_c_try_cpp
"$LINENO"; then :
15341 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15344 rm -f conftest.err conftest.
$ac_ext
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15361 if ac_fn_c_try_cpp
"$LINENO"; then :
15363 $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
15366 rm -f conftest.err conftest.
$ac_ext
15371 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15376 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15388 aix4-2 | hpux
* | unixware
)
15389 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15393 gnu-linux | gnu-kfreebsd
)
15394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15397 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15398 || defined __alpha__ || defined __mips__ || defined __s390__ \
15399 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15400 || defined __ia64__ || defined __sh__
15403 # error "setjmp not known to work on this arch"
15414 if ac_fn_c_try_cpp
"$LINENO"; then :
15415 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15418 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15421 rm -f conftest.err conftest.
$ac_ext
15426 if test x
$GCC = xyes
; then
15427 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15431 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15432 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15438 $as_echo_n "checking for _setjmp... " >&6; }
15439 if test "${emacs_cv_func__setjmp+set}" = set; then :
15440 $as_echo_n "(cached) " >&6
15442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 #include <setjmp.h>
15456 if ac_fn_c_try_link
"$LINENO"; then :
15457 emacs_cv_func__setjmp
=yes
15459 emacs_cv_func__setjmp
=no
15461 rm -f core conftest.err conftest.
$ac_objext \
15462 conftest
$ac_exeext conftest.
$ac_ext
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15465 $as_echo "$emacs_cv_func__setjmp" >&6; }
15466 if test $emacs_cv_func__setjmp = yes; then
15468 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15472 $as_echo_n "checking for sigsetjmp... " >&6; }
15473 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #include <setjmp.h>
15484 if (! sigsetjmp (j, 1))
15490 if ac_fn_c_try_link
"$LINENO"; then :
15491 emacs_cv_func_sigsetjmp
=yes
15493 emacs_cv_func_sigsetjmp
=no
15495 rm -f core conftest.err conftest.
$ac_objext \
15496 conftest
$ac_exeext conftest.
$ac_ext
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15499 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15500 if test $emacs_cv_func_sigsetjmp = yes; then
15502 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15510 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15519 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15535 $as_echo "#define USG /**/" >>confdefs.h
15537 $as_echo "#define USG5 /**/" >>confdefs.h
15539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15543 # error "_AIX not defined"
15554 if ac_fn_c_try_cpp
"$LINENO"; then :
15558 $as_echo "#define _AIX /**/" >>confdefs.h
15561 rm -f conftest.err conftest.
$ac_ext
15566 $as_echo "#define CYGWIN 1" >>confdefs.h
15571 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15573 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15576 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15581 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15584 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15588 gnu | netbsd | openbsd
)
15589 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15595 # error "BSD_SYSTEM not defined"
15606 if ac_fn_c_try_cpp
"$LINENO"; then :
15609 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15612 rm -f conftest.err conftest.
$ac_ext
15615 gnu-linux | gnu-kfreebsd
)
15616 $as_echo "#define USG /**/" >>confdefs.h
15619 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15624 $as_echo "#define USG /**/" >>confdefs.h
15626 $as_echo "#define USG5 /**/" >>confdefs.h
15629 $as_echo "#define HPUX /**/" >>confdefs.h
15634 $as_echo "#define USG /**/" >>confdefs.h
15636 $as_echo "#define USG5 /**/" >>confdefs.h
15638 $as_echo "#define USG5_4 /**/" >>confdefs.h
15641 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15646 $as_echo "#define USG /**/" >>confdefs.h
15648 $as_echo "#define USG5 /**/" >>confdefs.h
15650 $as_echo "#define USG5_4 /**/" >>confdefs.h
15653 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15658 $as_echo "#define USG /**/" >>confdefs.h
15660 $as_echo "#define USG5 /**/" >>confdefs.h
15662 $as_echo "#define USG5_4 /**/" >>confdefs.h
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15668 $as_echo_n "checking for usable FIONREAD... " >&6; }
15669 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15670 $as_echo_n "(cached) " >&6
15674 emacs_cv_usable_FIONREAD
=no
15678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #include <sys/types.h>
15681 #include <sys/ioctl.h>
15683 # include <sys/filio.h>
15689 int foo = ioctl (0, FIONREAD, &foo);
15694 if ac_fn_c_try_compile
"$LINENO"; then :
15695 emacs_cv_usable_FIONREAD
=yes
15697 emacs_cv_usable_FIONREAD
=no
15699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15704 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15705 if test $emacs_cv_usable_FIONREAD = yes; then
15707 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15710 if test $emacs_broken_SIGIO = no
; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15712 $as_echo_n "checking for usable SIGIO... " >&6; }
15713 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15719 #include <signal.h>
15724 int foo = SIGIO | F_SETFL | FASYNC;
15729 if ac_fn_c_try_compile
"$LINENO"; then :
15730 emacs_cv_usable_SIGIO
=yes
15732 emacs_cv_usable_SIGIO
=no
15734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15737 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15738 if test $emacs_cv_usable_SIGIO = yes; then
15740 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15750 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15756 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15762 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15765 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15771 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15776 # Set up the CFLAGS for real compilation, so we can substitute it.
15777 CFLAGS
="$REAL_CFLAGS"
15778 CPPFLAGS
="$REAL_CPPFLAGS"
15780 ## Hack to detect a buggy GCC version.
15781 if test "x$GCC" = xyes \
15782 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15783 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15784 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15785 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15788 version
=$PACKAGE_VERSION
15790 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15792 cat >>confdefs.h
<<_ACEOF
15793 #define COPYRIGHT "$copyright"
15798 ### Specify what sort of things we'll be editing into Makefile and config.h.
15799 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15825 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15826 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15827 ## end of LIBX_BASE, but nothing ever set it.
15832 ## Used in lwlib/Makefile.in.
15841 if test -n "${term_header}"; then
15843 cat >>confdefs.h
<<_ACEOF
15844 #define TERM_HEADER "${term_header}"
15850 cat >>confdefs.h
<<_ACEOF
15851 #define EMACS_CONFIGURATION "${canonical}"
15855 cat >>confdefs.h
<<_ACEOF
15856 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15864 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15866 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15869 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15871 if test "$HAVE_XFT" = "yes"; then
15872 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15873 elif test "$HAVE_FREETYPE" = "yes"; then
15874 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15884 if test "${USE_X_TOOLKIT}" != "none" ; then
15885 WIDGET_OBJ
=widget.o
15887 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15889 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15891 $as_echo "#define USE_LUCID 1" >>confdefs.h
15893 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15895 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15900 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15901 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15905 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15906 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15907 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15911 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15912 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15915 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15921 case "$USE_X_TOOLKIT" in
15922 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15923 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15924 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15928 if test "$USE_X_TOOLKIT" = "none"; then
15929 LIBXT_OTHER
="\$(LIBXSM)"
15930 OLDXMENU_TARGET
="really-oldXMenu"
15932 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15933 OLDXMENU_TARGET
="really-lwlib"
15937 ## The X Menu stuff is present in the X10 distribution, but missing
15938 ## from X11. If we have X10, just use the installed library;
15939 ## otherwise, use our own copy.
15940 if test "${HAVE_X11}" = "yes" ; then
15942 $as_echo "#define HAVE_X11 1" >>confdefs.h
15945 if test "$USE_X_TOOLKIT" = "none"; then
15946 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15948 OLDXMENU
="\${lwlibdir}/liblw.a"
15950 LIBXMENU
="\$(OLDXMENU)"
15951 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15952 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15954 ## For a syntactically valid Makefile; not actually used for anything.
15955 ## See comments in src/Makefile.in.
15957 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15958 if test "${HAVE_X_WINDOWS}" = "yes"; then
15967 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15980 if test "${HAVE_MENUS}" = "yes" ; then
15982 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15986 if test "${GNU_MALLOC}" = "yes" ; then
15988 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15993 if test "${REL_ALLOC}" = "yes" ; then
15995 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15998 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16002 if test "$opsys" = "cygwin"; then
16003 CYGWIN_OBJ
="sheap.o"
16004 ## Cygwin differs because of its unexec().
16006 POST_ALLOC_OBJ
=lastfile.o
16009 PRE_ALLOC_OBJ
=lastfile.o
16016 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16017 # it temporarily reverts them to their pre-pkg-config values,
16018 # because gnulib needs to work with both src (which uses the
16019 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16020 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16021 # and it therefore needs to run in an environment where LIBS does not
16022 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16023 # for some package unrelated to lib-src.
16024 SAVE_CFLAGS
=$CFLAGS
16026 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16027 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16039 LIBC_FATAL_STDERR_
=1
16040 export LIBC_FATAL_STDERR_
16042 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16043 # for constant arguments. Useless!
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16045 $as_echo_n "checking for working alloca.h... " >&6; }
16046 if test "${ac_cv_working_alloca_h+set}" = set; then :
16047 $as_echo_n "(cached) " >&6
16049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 #include <alloca.h>
16055 char *p = (char *) alloca (2 * sizeof (int));
16061 if ac_fn_c_try_link
"$LINENO"; then :
16062 ac_cv_working_alloca_h
=yes
16064 ac_cv_working_alloca_h
=no
16066 rm -f core conftest.err conftest.
$ac_objext \
16067 conftest
$ac_exeext conftest.
$ac_ext
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16070 $as_echo "$ac_cv_working_alloca_h" >&6; }
16071 if test $ac_cv_working_alloca_h = yes; then
16073 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16078 $as_echo_n "checking for alloca... " >&6; }
16079 if test "${ac_cv_func_alloca_works+set}" = set; then :
16080 $as_echo_n "(cached) " >&6
16082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16085 # define alloca __builtin_alloca
16088 # include <malloc.h>
16089 # define alloca _alloca
16091 # ifdef HAVE_ALLOCA_H
16092 # include <alloca.h>
16097 # ifndef alloca /* predefined by HP cc +Olibcalls */
16108 char *p = (char *) alloca (1);
16114 if ac_fn_c_try_link
"$LINENO"; then :
16115 ac_cv_func_alloca_works
=yes
16117 ac_cv_func_alloca_works
=no
16119 rm -f core conftest.err conftest.
$ac_objext \
16120 conftest
$ac_exeext conftest.
$ac_ext
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16123 $as_echo "$ac_cv_func_alloca_works" >&6; }
16125 if test $ac_cv_func_alloca_works = yes; then
16127 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16130 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16131 # that cause trouble. Some versions do not even contain alloca or
16132 # contain a buggy version. If you still want to use their alloca,
16133 # use ar to extract alloca.o from them instead of compiling alloca.c.
16139 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16141 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16145 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16146 if test "${ac_cv_os_cray+set}" = set; then :
16147 $as_echo_n "(cached) " >&6
16149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 #if defined CRAY && ! defined CRAY2
16158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16159 $EGREP "webecray" >/dev
/null
2>&1; then :
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16168 $as_echo "$ac_cv_os_cray" >&6; }
16169 if test $ac_cv_os_cray = yes; then
16170 for ac_func
in _getb67 GETB67 getb67
; do
16171 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16172 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16173 eval as_val
=\$
$as_ac_var
16174 if test "x$as_val" = x
""yes; then :
16176 cat >>confdefs.h
<<_ACEOF
16177 #define CRAY_STACKSEG_END $ac_func
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16187 $as_echo_n "checking stack direction for C alloca... " >&6; }
16188 if test "${ac_cv_c_stack_direction+set}" = set; then :
16189 $as_echo_n "(cached) " >&6
16191 if test "$cross_compiling" = yes; then :
16192 ac_cv_c_stack_direction
=0
16194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 $ac_includes_default
16198 find_stack_direction (int *addr, int depth)
16200 int dir, dummy = 0;
16203 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16204 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16205 return dir + dummy;
16209 main (int argc, char **argv)
16211 return find_stack_direction (0, argc + !argv + 20) < 0;
16214 if ac_fn_c_try_run
"$LINENO"; then :
16215 ac_cv_c_stack_direction
=1
16217 ac_cv_c_stack_direction
=-1
16219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16225 $as_echo "$ac_cv_c_stack_direction" >&6; }
16226 cat >>confdefs.h
<<_ACEOF
16227 #define STACK_DIRECTION $ac_cv_c_stack_direction
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16237 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16238 if test "${ac_cv_c_bigendian+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16241 ac_cv_c_bigendian
=unknown
16242 # See if we're dealing with a universal compiler.
16243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 #ifndef __APPLE_CC__
16246 not a universal capable compiler
16251 if ac_fn_c_try_compile
"$LINENO"; then :
16253 # Check for potential -arch flags. It is not universal unless
16254 # there are at least two -arch flags with different values.
16257 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16258 if test -n "$ac_prev"; then
16260 i?
86 | x86_64 | ppc | ppc64
)
16261 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16264 ac_cv_c_bigendian
=universal
16270 elif test "x$ac_word" = "x-arch"; then
16275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16276 if test $ac_cv_c_bigendian = unknown
; then
16277 # See if sys/param.h defines the BYTE_ORDER macro.
16278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #include <sys/types.h>
16281 #include <sys/param.h>
16286 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16287 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16289 bogus endian macros
16296 if ac_fn_c_try_compile
"$LINENO"; then :
16297 # It does; now see whether it defined to BIG_ENDIAN or not.
16298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 #include <sys/types.h>
16301 #include <sys/param.h>
16306 #if BYTE_ORDER != BIG_ENDIAN
16314 if ac_fn_c_try_compile
"$LINENO"; then :
16315 ac_cv_c_bigendian
=yes
16317 ac_cv_c_bigendian
=no
16319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16323 if test $ac_cv_c_bigendian = unknown
; then
16324 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 #include <limits.h>
16332 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16333 bogus endian macros
16340 if ac_fn_c_try_compile
"$LINENO"; then :
16341 # It does; now see whether it defined to _BIG_ENDIAN or not.
16342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 #include <limits.h>
16349 #ifndef _BIG_ENDIAN
16357 if ac_fn_c_try_compile
"$LINENO"; then :
16358 ac_cv_c_bigendian
=yes
16360 ac_cv_c_bigendian
=no
16362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16366 if test $ac_cv_c_bigendian = unknown
; then
16367 # Compile a test program.
16368 if test "$cross_compiling" = yes; then :
16369 # Try to guess by grepping values from an object file.
16370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16372 short int ascii_mm[] =
16373 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16374 short int ascii_ii[] =
16375 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16376 int use_ascii (int i) {
16377 return ascii_mm[i] + ascii_ii[i];
16379 short int ebcdic_ii[] =
16380 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16381 short int ebcdic_mm[] =
16382 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16383 int use_ebcdic (int i) {
16384 return ebcdic_mm[i] + ebcdic_ii[i];
16391 return use_ascii (foo) == use_ebcdic (foo);
16396 if ac_fn_c_try_compile
"$LINENO"; then :
16397 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16398 ac_cv_c_bigendian
=yes
16400 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16401 if test "$ac_cv_c_bigendian" = unknown
; then
16402 ac_cv_c_bigendian
=no
16404 # finding both strings is unlikely to happen, but who knows?
16405 ac_cv_c_bigendian
=unknown
16409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 $ac_includes_default
16418 /* Are we little or big endian? From Harbison&Steele. */
16422 char c[sizeof (long int)];
16425 return u.c[sizeof (long int) - 1] == 1;
16431 if ac_fn_c_try_run
"$LINENO"; then :
16432 ac_cv_c_bigendian
=no
16434 ac_cv_c_bigendian
=yes
16436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16443 $as_echo "$ac_cv_c_bigendian" >&6; }
16444 case $ac_cv_c_bigendian in #(
16446 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16452 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16456 as_fn_error
"unknown endianness
16457 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16462 $as_echo_n "checking for inline... " >&6; }
16463 if test "${ac_cv_c_inline+set}" = set; then :
16464 $as_echo_n "(cached) " >&6
16467 for ac_kw
in inline __inline__ __inline
; do
16468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #ifndef __cplusplus
16472 static $ac_kw foo_t static_foo () {return 0; }
16473 $ac_kw foo_t foo () {return 0; }
16477 if ac_fn_c_try_compile
"$LINENO"; then :
16478 ac_cv_c_inline
=$ac_kw
16480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16481 test "$ac_cv_c_inline" != no
&& break
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16486 $as_echo "$ac_cv_c_inline" >&6; }
16488 case $ac_cv_c_inline in
16491 case $ac_cv_c_inline in
16493 *) ac_val
=$ac_cv_c_inline;;
16495 cat >>confdefs.h
<<_ACEOF
16496 #ifndef __cplusplus
16497 #define inline $ac_val
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16505 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16506 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 /* On HP-UX before 11.23, strtold returns a struct instead of
16512 long double. Reject implementations like that, by requiring
16513 compatibility with the C99 prototype. */
16514 #include <stdlib.h>
16515 static long double (*p) (char const *, char **) = strtold;
16517 test (char const *nptr, char **endptr)
16520 r = strtold (nptr, endptr);
16526 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16531 if ac_fn_c_try_link
"$LINENO"; then :
16532 gl_cv_func_c99_strtold
=yes
16534 gl_cv_func_c99_strtold
=no
16536 rm -f core conftest.err conftest.
$ac_objext \
16537 conftest
$ac_exeext conftest.
$ac_ext
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16540 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16541 if test $gl_cv_func_c99_strtold = yes; then
16543 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16555 GNULIB_EUIDACCESS
=0;
16556 GNULIB_FACCESSAT
=0;
16559 GNULIB_FDATASYNC
=0;
16561 GNULIB_FTRUNCATE
=0;
16563 GNULIB_GETDOMAINNAME
=0;
16564 GNULIB_GETDTABLESIZE
=0;
16565 GNULIB_GETGROUPS
=0;
16566 GNULIB_GETHOSTNAME
=0;
16568 GNULIB_GETLOGIN_R
=0;
16569 GNULIB_GETPAGESIZE
=0;
16570 GNULIB_GETUSERSHELL
=0;
16571 GNULIB_GROUP_MEMBER
=0;
16583 GNULIB_READLINKAT
=0;
16585 GNULIB_SETHOSTNAME
=0;
16588 GNULIB_SYMLINKAT
=0;
16589 GNULIB_TTYNAME_R
=0;
16590 GNULIB_UNISTD_H_NONBLOCKING
=0;
16591 GNULIB_UNISTD_H_SIGPIPE
=0;
16606 HAVE_GETDTABLESIZE
=1;
16608 HAVE_GETHOSTNAME
=1;
16610 HAVE_GETPAGESIZE
=1;
16611 HAVE_GROUP_MEMBER
=1;
16621 HAVE_SETHOSTNAME
=1;
16627 HAVE_DECL_ENVIRON
=1;
16628 HAVE_DECL_FCHDIR
=1;
16629 HAVE_DECL_FDATASYNC
=1;
16630 HAVE_DECL_GETDOMAINNAME
=1;
16631 HAVE_DECL_GETLOGIN_R
=1;
16632 HAVE_DECL_GETPAGESIZE
=1;
16633 HAVE_DECL_GETUSERSHELL
=1;
16634 HAVE_DECL_SETHOSTNAME
=1;
16635 HAVE_DECL_TTYNAME_R
=1;
16637 HAVE_SYS_PARAM_H
=0;
16642 REPLACE_FCHOWNAT
=0;
16643 REPLACE_FTRUNCATE
=0;
16645 REPLACE_GETDOMAINNAME
=0;
16646 REPLACE_GETLOGIN_R
=0;
16647 REPLACE_GETGROUPS
=0;
16648 REPLACE_GETPAGESIZE
=0;
16657 REPLACE_READLINK
=0;
16661 REPLACE_TTYNAME_R
=0;
16663 REPLACE_UNLINKAT
=0;
16666 UNISTD_H_HAVE_WINSOCK2_H
=0;
16667 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16678 $as_echo_n "checking if environ is properly declared... " >&6; }
16679 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16680 $as_echo_n "(cached) " >&6
16683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16686 #include <unistd.h>
16688 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16689 #include <stdlib.h>
16691 extern struct { int foo; } environ;
16700 if ac_fn_c_try_compile
"$LINENO"; then :
16701 gt_cv_var_environ_declaration
=no
16703 gt_cv_var_environ_declaration
=yes
16705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16709 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16710 if test $gt_cv_var_environ_declaration = yes; then
16712 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16717 if test $gt_cv_var_environ_declaration != yes; then
16718 HAVE_DECL_ENVIRON
=0
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16728 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16729 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16730 $as_echo_n "(cached) " >&6
16732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #include <sys/stat.h>
16740 struct stat s; s.st_dm_mode;
16745 if ac_fn_c_try_compile
"$LINENO"; then :
16746 ac_cv_struct_st_dm_mode
=yes
16748 ac_cv_struct_st_dm_mode
=no
16750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16753 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16755 if test $ac_cv_struct_st_dm_mode = yes; then
16757 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16762 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16763 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16769 cat >>confdefs.h
<<_ACEOF
16770 #define HAVE_DECL_STRMODE $ac_have_decl
16776 GNULIB_CALLOC_POSIX
=0;
16777 GNULIB_CANONICALIZE_FILE_NAME
=0;
16778 GNULIB_GETLOADAVG
=0;
16779 GNULIB_GETSUBOPT
=0;
16781 GNULIB_MALLOC_POSIX
=0;
16785 GNULIB_MKOSTEMPS
=0;
16788 GNULIB_POSIX_OPENPT
=0;
16790 GNULIB_PTSNAME_R
=0;
16794 GNULIB_REALLOC_POSIX
=0;
16801 GNULIB_SYSTEM_POSIX
=0;
16807 HAVE_CANONICALIZE_FILE_NAME
=1;
16808 HAVE_DECL_GETLOADAVG
=1;
16816 HAVE_POSIX_OPENPT
=1;
16825 HAVE_DECL_SETENV
=1;
16829 HAVE_STRUCT_RANDOM_DATA
=1;
16830 HAVE_SYS_LOADAVG_H
=0;
16832 HAVE_DECL_UNSETENV
=1;
16834 REPLACE_CANONICALIZE_FILE_NAME
=0;
16838 REPLACE_PTSNAME_R
=0;
16840 REPLACE_RANDOM_R
=0;
16842 REPLACE_REALPATH
=0;
16845 REPLACE_UNSETENV
=0;
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16851 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16852 if test "${gl_cv_have_include_next+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16855 rm -rf conftestd1a conftestd1b conftestd2
16856 mkdir conftestd1a conftestd1b conftestd2
16857 cat <<EOF > conftestd1a/conftest.h
16858 #define DEFINED_IN_CONFTESTD1
16859 #include_next <conftest.h>
16860 #ifdef DEFINED_IN_CONFTESTD2
16863 #error "include_next doesn't work"
16866 cat <<EOF > conftestd1b/conftest.h
16867 #define DEFINED_IN_CONFTESTD1
16869 #include_next <conftest.h>
16870 #ifdef DEFINED_IN_CONFTESTD2
16873 #error "include_next doesn't work"
16876 cat <<EOF > conftestd2/conftest.h
16877 #ifndef DEFINED_IN_CONFTESTD1
16878 #error "include_next test doesn't work"
16880 #define DEFINED_IN_CONFTESTD2
16882 gl_save_CPPFLAGS
="$CPPFLAGS"
16883 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 #include <conftest.h>
16888 if ac_fn_c_try_compile
"$LINENO"; then :
16889 gl_cv_have_include_next
=yes
16891 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16894 #include <conftest.h>
16896 if ac_fn_c_try_compile
"$LINENO"; then :
16897 gl_cv_have_include_next
=buggy
16899 gl_cv_have_include_next
=no
16901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16905 CPPFLAGS
="$gl_save_CPPFLAGS"
16906 rm -rf conftestd1a conftestd1b conftestd2
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16910 $as_echo "$gl_cv_have_include_next" >&6; }
16911 PRAGMA_SYSTEM_HEADER
=
16912 if test $gl_cv_have_include_next = yes; then
16913 INCLUDE_NEXT
=include_next
16914 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16915 if test -n "$GCC"; then
16916 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16919 if test $gl_cv_have_include_next = buggy
; then
16920 INCLUDE_NEXT
=include
16921 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16923 INCLUDE_NEXT
=include
16924 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16931 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16932 if test "${gl_cv_pragma_columns+set}" = set; then :
16933 $as_echo_n "(cached) " >&6
16935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16944 $EGREP "choke me" >/dev
/null
2>&1; then :
16945 gl_cv_pragma_columns
=yes
16947 gl_cv_pragma_columns
=no
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16954 $as_echo "$gl_cv_pragma_columns" >&6; }
16955 if test $gl_cv_pragma_columns = yes; then
16956 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16977 if test $gl_cv_have_include_next = yes; then
16978 gl_cv_next_getopt_h
='<'getopt.h
'>'
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16981 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16982 if test "${gl_cv_next_getopt_h+set}" = set; then :
16983 $as_echo_n "(cached) " >&6
16986 if test $ac_cv_header_getopt_h = yes; then
16989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 #include <getopt.h>
16995 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16996 *) gl_absname_cpp
="$ac_cpp" ;;
17001 gl_dirsep_regex
='[/\\]'
17004 gl_dirsep_regex
='\/'
17007 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17009 gl_header_literal_regex
=`echo 'getopt.h' \
17010 | sed -e "$gl_make_literal_regex_sed"`
17011 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17012 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17017 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17018 sed -n "$gl_absolute_header_sed"`'"'
17020 gl_cv_next_getopt_h
='<'getopt.h
'>'
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17026 $as_echo "$gl_cv_next_getopt_h" >&6; }
17028 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17030 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17032 gl_next_as_first_directive
='<'getopt.h
'>'
17034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17035 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17037 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17042 if test $ac_cv_header_getopt_h = yes; then
17051 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17052 for ac_header
in getopt.h
17054 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17055 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17056 cat >>confdefs.h
<<_ACEOF
17057 #define HAVE_GETOPT_H 1
17061 gl_replace_getopt
=yes
17068 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17069 for ac_func
in getopt_long_only
17071 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17072 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17073 cat >>confdefs.h
<<_ACEOF
17074 #define HAVE_GETOPT_LONG_ONLY 1
17078 gl_replace_getopt
=yes
17084 if test -z "$gl_replace_getopt"; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17086 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17087 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17088 $as_echo_n "(cached) " >&6
17091 if test $cross_compiling = no
; then
17092 if test "$cross_compiling" = yes; then :
17093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17095 as_fn_error
"cannot run test program while cross compiling
17096 See \`config.log' for more details." "$LINENO" 5; }
17098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17101 #include <unistd.h>
17102 #include <stdlib.h>
17103 #include <string.h>
17108 static char program[] = "program";
17109 static char a[] = "-a";
17110 static char foo[] = "foo";
17111 static char bar[] = "bar";
17112 char *argv[] = { program, a, foo, bar, NULL };
17115 c = getopt (4, argv, "ab");
17118 c = getopt (4, argv, "ab");
17121 if (!(optind == 2))
17127 if ac_fn_c_try_run
"$LINENO"; then :
17128 gl_cv_func_getopt_posix
=maybe
17130 gl_cv_func_getopt_posix
=no
17132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17136 if test $gl_cv_func_getopt_posix = maybe
; then
17137 if test "$cross_compiling" = yes; then :
17138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17140 as_fn_error
"cannot run test program while cross compiling
17141 See \`config.log' for more details." "$LINENO" 5; }
17143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17146 #include <unistd.h>
17147 #include <stdlib.h>
17148 #include <string.h>
17153 static char program[] = "program";
17154 static char donald[] = "donald";
17155 static char p[] = "-p";
17156 static char billy[] = "billy";
17157 static char duck[] = "duck";
17158 static char a[] = "-a";
17159 static char bar[] = "bar";
17160 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17163 c = getopt (7, argv, "+abp:q:");
17166 if (!(strcmp (argv[0], "program") == 0))
17168 if (!(strcmp (argv[1], "donald") == 0))
17170 if (!(strcmp (argv[2], "-p") == 0))
17172 if (!(strcmp (argv[3], "billy") == 0))
17174 if (!(strcmp (argv[4], "duck") == 0))
17176 if (!(strcmp (argv[5], "-a") == 0))
17178 if (!(strcmp (argv[6], "bar") == 0))
17180 if (!(optind == 1))
17186 if ac_fn_c_try_run
"$LINENO"; then :
17187 gl_cv_func_getopt_posix
=maybe
17189 gl_cv_func_getopt_posix
=no
17191 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17192 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17196 if test $gl_cv_func_getopt_posix = maybe
; then
17197 if test "$cross_compiling" = yes; then :
17198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17200 as_fn_error
"cannot run test program while cross compiling
17201 See \`config.log' for more details." "$LINENO" 5; }
17203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17204 /* end confdefs.h. */
17206 #include <unistd.h>
17207 #include <stdlib.h>
17208 #include <string.h>
17213 static char program[] = "program";
17214 static char ab[] = "-ab";
17215 char *argv[3] = { program, ab, NULL };
17216 if (getopt (2, argv, "ab:") != 'a')
17218 if (getopt (2, argv, "ab:") != '?')
17228 if ac_fn_c_try_run
"$LINENO"; then :
17229 gl_cv_func_getopt_posix
=yes
17231 gl_cv_func_getopt_posix
=no
17233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17234 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17240 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17241 *) gl_cv_func_getopt_posix
="guessing yes";;
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17247 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17248 case "$gl_cv_func_getopt_posix" in
17249 *no
) gl_replace_getopt
=yes ;;
17253 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17255 $as_echo_n "checking for working GNU getopt function... " >&6; }
17256 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17257 $as_echo_n "(cached) " >&6
17259 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17260 # optstring is necessary for programs like m4 that have POSIX-mandated
17261 # semantics for supporting options interspersed with files.
17262 # Also, since getopt_long is a GNU extension, we require optind=0.
17263 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17264 # so take care to revert to the correct (non-)export state.
17265 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17266 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17267 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17268 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17269 *) gl_had_POSIXLY_CORRECT
= ;;
17272 export POSIXLY_CORRECT
17273 if test "$cross_compiling" = yes; then :
17274 gl_cv_func_getopt_gnu
="guessing no"
17277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279 #include <getopt.h>
17280 #include <stddef.h>
17281 #include <string.h>
17283 #include <stdlib.h>
17284 #if defined __MACH__ && defined __APPLE__
17285 /* Avoid a crash on Mac OS X. */
17286 #include <mach/mach.h>
17287 #include <mach/mach_error.h>
17288 #include <mach/thread_status.h>
17289 #include <mach/exception.h>
17290 #include <mach/task.h>
17291 #include <pthread.h>
17292 /* The exception port on which our thread listens. */
17293 static mach_port_t our_exception_port;
17294 /* The main function of the thread listening for exceptions of type
17297 mach_exception_thread (void *arg)
17299 /* Buffer for a message to be received. */
17301 mach_msg_header_t head;
17302 mach_msg_body_t msgh_body;
17305 mach_msg_return_t retval;
17306 /* Wait for a message on the exception port. */
17307 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17308 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17309 if (retval != MACH_MSG_SUCCESS)
17314 nocrash_init (void)
17316 mach_port_t self = mach_task_self ();
17317 /* Allocate a port on which the thread shall listen for exceptions. */
17318 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17320 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17321 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17322 MACH_MSG_TYPE_MAKE_SEND)
17324 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17326 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17327 /* Create the thread listening on the exception port. */
17328 pthread_attr_t attr;
17330 if (pthread_attr_init (&attr) == 0
17331 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17332 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17333 pthread_attr_destroy (&attr);
17334 /* Replace the exception port info for these exceptions with our own.
17335 Note that we replace the exception port for the entire task, not only
17336 for a particular thread. This has the effect that when our exception
17337 port gets the message, the thread specific exception port has already
17338 been asked, and we don't need to bother about it.
17339 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17340 task_set_exception_ports (self, mask, our_exception_port,
17341 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17346 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17347 /* Avoid a crash on native Windows. */
17348 #define WIN32_LEAN_AND_MEAN
17349 #include <windows.h>
17350 #include <winerror.h>
17352 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17354 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17356 case EXCEPTION_ACCESS_VIOLATION:
17357 case EXCEPTION_IN_PAGE_ERROR:
17358 case EXCEPTION_STACK_OVERFLOW:
17359 case EXCEPTION_GUARD_PAGE:
17360 case EXCEPTION_PRIV_INSTRUCTION:
17361 case EXCEPTION_ILLEGAL_INSTRUCTION:
17362 case EXCEPTION_DATATYPE_MISALIGNMENT:
17363 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17364 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17367 return EXCEPTION_CONTINUE_SEARCH;
17370 nocrash_init (void)
17372 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17375 /* Avoid a crash on POSIX systems. */
17376 #include <signal.h>
17377 /* A POSIX signal handler. */
17379 exception_handler (int sig)
17384 nocrash_init (void)
17387 signal (SIGSEGV, exception_handler);
17390 signal (SIGBUS, exception_handler);
17404 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17405 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17406 OSF/1 5.1, Solaris 10. */
17408 static char conftest[] = "conftest";
17409 static char plus[] = "-+";
17410 char *argv[3] = { conftest, plus, NULL };
17412 if (getopt (2, argv, "+a") != '?')
17415 /* This code succeeds on glibc 2.8, mingw,
17416 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17417 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17419 static char program[] = "program";
17420 static char p[] = "-p";
17421 static char foo[] = "foo";
17422 static char bar[] = "bar";
17423 char *argv[] = { program, p, foo, bar, NULL };
17426 if (getopt (4, argv, "p::") != 'p')
17428 else if (optarg != NULL)
17430 else if (getopt (4, argv, "p::") != -1)
17432 else if (optind != 2)
17435 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17437 static char program[] = "program";
17438 static char foo[] = "foo";
17439 static char p[] = "-p";
17440 char *argv[] = { program, foo, p, NULL };
17442 if (getopt (3, argv, "-p") != 1)
17444 else if (getopt (3, argv, "-p") != 'p')
17447 /* This code fails on glibc 2.11. */
17449 static char program[] = "program";
17450 static char b[] = "-b";
17451 static char a[] = "-a";
17452 char *argv[] = { program, b, a, NULL };
17453 optind = opterr = 0;
17454 if (getopt (3, argv, "+:a:b") != 'b')
17456 else if (getopt (3, argv, "+:a:b") != ':')
17459 /* This code dumps core on glibc 2.14. */
17461 static char program[] = "program";
17462 static char w[] = "-W";
17463 static char dummy[] = "dummy";
17464 char *argv[] = { program, w, dummy, NULL };
17465 optind = opterr = 1;
17466 if (getopt (3, argv, "W;") != 'W')
17475 if ac_fn_c_try_run
"$LINENO"; then :
17476 gl_cv_func_getopt_gnu
=yes
17478 gl_cv_func_getopt_gnu
=no
17480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17484 case $gl_had_POSIXLY_CORRECT in
17486 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17487 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17492 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17493 if test "$gl_cv_func_getopt_gnu" != yes; then
17494 gl_replace_getopt
=yes
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17497 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17498 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17499 $as_echo_n "(cached) " >&6
17501 if test "$cross_compiling" = yes; then :
17503 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17504 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #include <getopt.h>
17511 #include <stddef.h>
17512 #include <string.h>
17517 static const struct option long_options[] =
17519 { "xtremely-",no_argument, NULL, 1003 },
17520 { "xtra", no_argument, NULL, 1001 },
17521 { "xtreme", no_argument, NULL, 1002 },
17522 { "xtremely", no_argument, NULL, 1003 },
17523 { NULL, 0, NULL, 0 }
17525 /* This code fails on OpenBSD 5.0. */
17527 static char program[] = "program";
17528 static char xtremel[] = "--xtremel";
17529 char *argv[] = { program, xtremel, NULL };
17531 optind = 1; opterr = 0;
17532 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17541 if ac_fn_c_try_run
"$LINENO"; then :
17542 gl_cv_func_getopt_long_gnu
=yes
17544 gl_cv_func_getopt_long_gnu
=no
17546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17553 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17554 case "$gl_cv_func_getopt_long_gnu" in
17556 *) gl_replace_getopt
=yes ;;
17567 if test -n "$gl_replace_getopt"; then
17571 if test $REPLACE_GETOPT = 1; then
17575 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17581 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17582 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17588 cat >>confdefs.h
<<_ACEOF
17589 #define HAVE_DECL_GETENV $ac_have_decl
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17598 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17599 if test "${ac_cv_c_restrict+set}" = set; then :
17600 $as_echo_n "(cached) " >&6
17602 ac_cv_c_restrict
=no
17603 # The order here caters to the fact that C++ does not require restrict.
17604 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17607 typedef int * int_ptr;
17608 int foo (int_ptr $ac_kw ip) {
17615 int * $ac_kw t = s;
17622 if ac_fn_c_try_compile
"$LINENO"; then :
17623 ac_cv_c_restrict
=$ac_kw
17625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17626 test "$ac_cv_c_restrict" != no
&& break
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17631 $as_echo "$ac_cv_c_restrict" >&6; }
17633 case $ac_cv_c_restrict in
17635 no
) $as_echo "#define restrict /**/" >>confdefs.h
17637 *) cat >>confdefs.h
<<_ACEOF
17638 #define restrict $ac_cv_c_restrict
17644 GNULIB_GETTIMEOFDAY
=0;
17645 HAVE_GETTIMEOFDAY
=1;
17646 HAVE_STRUCT_TIMEVAL
=1;
17648 REPLACE_GETTIMEOFDAY
=0;
17649 REPLACE_STRUCT_TIMEVAL
=0;
17666 if test $gl_cv_have_include_next = yes; then
17667 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17670 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17671 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17672 $as_echo_n "(cached) " >&6
17675 if test $ac_cv_header_sys_time_h = yes; then
17678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h. */
17680 #include <sys/time.h>
17684 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17685 *) gl_absname_cpp
="$ac_cpp" ;;
17690 gl_dirsep_regex
='[/\\]'
17693 gl_dirsep_regex
='\/'
17696 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17698 gl_header_literal_regex
=`echo 'sys/time.h' \
17699 | sed -e "$gl_make_literal_regex_sed"`
17700 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17706 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17707 sed -n "$gl_absolute_header_sed"`'"'
17709 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17715 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17717 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17721 gl_next_as_first_directive
='<'sys
/time.h
'>'
17723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17724 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17726 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17732 if test $ac_cv_header_sys_time_h != yes; then
17740 if test $ac_cv_header_sys_socket_h != yes; then
17741 for ac_header
in winsock2.h
17743 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17744 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17745 cat >>confdefs.h
<<_ACEOF
17746 #define HAVE_WINSOCK2_H 1
17754 if test "$ac_cv_header_winsock2_h" = yes; then
17756 UNISTD_H_HAVE_WINSOCK2_H
=1
17757 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17764 $as_echo_n "checking for struct timeval... " >&6; }
17765 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 #if HAVE_SYS_TIME_H
17771 #include <sys/time.h>
17774 #if HAVE_WINSOCK2_H
17775 # include <winsock2.h>
17781 static struct timeval x; x.tv_sec = x.tv_usec;
17786 if ac_fn_c_try_compile
"$LINENO"; then :
17787 gl_cv_sys_struct_timeval
=yes
17789 gl_cv_sys_struct_timeval
=no
17791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17795 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17796 if test $gl_cv_sys_struct_timeval != yes; then
17797 HAVE_STRUCT_TIMEVAL
=0
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17800 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17801 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17806 #if HAVE_SYS_TIME_H
17807 #include <sys/time.h>
17810 #if HAVE_WINSOCK2_H
17811 # include <winsock2.h>
17817 static struct timeval x;
17818 typedef int verify_tv_sec_type[
17819 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17826 if ac_fn_c_try_compile
"$LINENO"; then :
17827 gl_cv_sys_struct_timeval_tv_sec
=yes
17829 gl_cv_sys_struct_timeval_tv_sec
=no
17831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17835 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17836 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17837 REPLACE_STRUCT_TIMEVAL
=1
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17848 $as_echo_n "checking for unsigned long long int... " >&6; }
17849 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17850 $as_echo_n "(cached) " >&6
17852 ac_cv_type_unsigned_long_long_int
=yes
17853 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17857 /* For now, do not test the preprocessor; as of 2007 there are too many
17858 implementations with broken preprocessors. Perhaps this can
17859 be revisited in 2012. In the meantime, code should not expect
17860 #if to work with literals wider than 32 bits. */
17861 /* Test literals. */
17862 long long int ll = 9223372036854775807ll;
17863 long long int nll = -9223372036854775807LL;
17864 unsigned long long int ull = 18446744073709551615ULL;
17865 /* Test constant expressions. */
17866 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17868 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17874 /* Test availability of runtime routines for shift and division. */
17875 long long int llmax = 9223372036854775807ll;
17876 unsigned long long int ullmax = 18446744073709551615ull;
17877 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17878 | (llmax / ll) | (llmax % ll)
17879 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17880 | (ullmax / ull) | (ullmax % ull));
17886 if ac_fn_c_try_link
"$LINENO"; then :
17889 ac_cv_type_unsigned_long_long_int
=no
17891 rm -f core conftest.err conftest.
$ac_objext \
17892 conftest
$ac_exeext conftest.
$ac_ext
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17896 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17897 if test $ac_cv_type_unsigned_long_long_int = yes; then
17899 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17906 $as_echo_n "checking for long long int... " >&6; }
17907 if test "${ac_cv_type_long_long_int+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17910 ac_cv_type_long_long_int
=yes
17911 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17912 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17913 if test $ac_cv_type_long_long_int = yes; then
17914 if test "$cross_compiling" = yes; then :
17917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 #include <limits.h>
17922 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17923 # define LLONG_MAX (HALF - 1 + HALF)
17928 long long int n = 1;
17932 long long int m = n << i;
17935 if (LLONG_MAX / 2 < m)
17943 if ac_fn_c_try_run
"$LINENO"; then :
17946 ac_cv_type_long_long_int
=no
17948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17956 $as_echo "$ac_cv_type_long_long_int" >&6; }
17957 if test $ac_cv_type_long_long_int = yes; then
17959 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17968 gl_cv_c_multiarch
=no
17969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17971 #ifndef __APPLE_CC__
17972 not a universal capable compiler
17977 if ac_fn_c_try_compile
"$LINENO"; then :
17981 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17982 if test -n "$prev"; then
17984 i?
86 | x86_64 | ppc | ppc64
)
17985 if test -z "$arch" ||
test "$arch" = "$word"; then
17988 gl_cv_c_multiarch
=yes
17994 if test "x$word" = "x-arch"; then
18001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18002 if test $gl_cv_c_multiarch = yes; then
18003 APPLE_UNIVERSAL_BUILD
=1
18005 APPLE_UNIVERSAL_BUILD
=0
18012 if test $ac_cv_type_long_long_int = yes; then
18013 HAVE_LONG_LONG_INT
=1
18015 HAVE_LONG_LONG_INT
=0
18019 if test $ac_cv_type_unsigned_long_long_int = yes; then
18020 HAVE_UNSIGNED_LONG_LONG_INT
=1
18022 HAVE_UNSIGNED_LONG_LONG_INT
=0
18027 if test $ac_cv_header_wchar_h = yes; then
18034 if test $ac_cv_header_inttypes_h = yes; then
18041 if test $ac_cv_header_sys_types_h = yes; then
18057 if test $gl_cv_have_include_next = yes; then
18058 gl_cv_next_stdint_h
='<'stdint.h
'>'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18061 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18062 if test "${gl_cv_next_stdint_h+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18066 if test $ac_cv_header_stdint_h = yes; then
18069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18071 #include <stdint.h>
18075 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18076 *) gl_absname_cpp
="$ac_cpp" ;;
18081 gl_dirsep_regex
='[/\\]'
18084 gl_dirsep_regex
='\/'
18087 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18089 gl_header_literal_regex
=`echo 'stdint.h' \
18090 | sed -e "$gl_make_literal_regex_sed"`
18091 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18092 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18097 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18098 sed -n "$gl_absolute_header_sed"`'"'
18100 gl_cv_next_stdint_h
='<'stdint.h
'>'
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18106 $as_echo "$gl_cv_next_stdint_h" >&6; }
18108 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18110 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18112 gl_next_as_first_directive
='<'stdint.h
'>'
18114 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18115 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18117 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18122 if test $ac_cv_header_stdint_h = yes; then
18129 if test $ac_cv_header_stdint_h = yes; then
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18131 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18132 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18133 $as_echo_n "(cached) " >&6
18135 gl_cv_header_working_stdint_h
=no
18136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18140 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18141 #include <stdint.h>
18142 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18143 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18144 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18148 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18149 included before <wchar.h>. */
18150 #include <stddef.h>
18151 #include <signal.h>
18153 # include <stdio.h>
18155 # include <wchar.h>
18160 int8_t a1 = INT8_MAX;
18161 int8_t a1min = INT8_MIN;
18164 int16_t a2 = INT16_MAX;
18165 int16_t a2min = INT16_MIN;
18168 int32_t a3 = INT32_MAX;
18169 int32_t a3min = INT32_MIN;
18172 int64_t a4 = INT64_MAX;
18173 int64_t a4min = INT64_MIN;
18176 uint8_t b1 = UINT8_MAX;
18178 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18181 uint16_t b2 = UINT16_MAX;
18184 uint32_t b3 = UINT32_MAX;
18187 uint64_t b4 = UINT64_MAX;
18189 int_least8_t c1 = INT8_C (0x7f);
18190 int_least8_t c1max = INT_LEAST8_MAX;
18191 int_least8_t c1min = INT_LEAST8_MIN;
18192 int_least16_t c2 = INT16_C (0x7fff);
18193 int_least16_t c2max = INT_LEAST16_MAX;
18194 int_least16_t c2min = INT_LEAST16_MIN;
18195 int_least32_t c3 = INT32_C (0x7fffffff);
18196 int_least32_t c3max = INT_LEAST32_MAX;
18197 int_least32_t c3min = INT_LEAST32_MIN;
18198 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18199 int_least64_t c4max = INT_LEAST64_MAX;
18200 int_least64_t c4min = INT_LEAST64_MIN;
18201 uint_least8_t d1 = UINT8_C (0xff);
18202 uint_least8_t d1max = UINT_LEAST8_MAX;
18203 uint_least16_t d2 = UINT16_C (0xffff);
18204 uint_least16_t d2max = UINT_LEAST16_MAX;
18205 uint_least32_t d3 = UINT32_C (0xffffffff);
18206 uint_least32_t d3max = UINT_LEAST32_MAX;
18207 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18208 uint_least64_t d4max = UINT_LEAST64_MAX;
18209 int_fast8_t e1 = INT_FAST8_MAX;
18210 int_fast8_t e1min = INT_FAST8_MIN;
18211 int_fast16_t e2 = INT_FAST16_MAX;
18212 int_fast16_t e2min = INT_FAST16_MIN;
18213 int_fast32_t e3 = INT_FAST32_MAX;
18214 int_fast32_t e3min = INT_FAST32_MIN;
18215 int_fast64_t e4 = INT_FAST64_MAX;
18216 int_fast64_t e4min = INT_FAST64_MIN;
18217 uint_fast8_t f1 = UINT_FAST8_MAX;
18218 uint_fast16_t f2 = UINT_FAST16_MAX;
18219 uint_fast32_t f3 = UINT_FAST32_MAX;
18220 uint_fast64_t f4 = UINT_FAST64_MAX;
18222 intptr_t g = INTPTR_MAX;
18223 intptr_t gmin = INTPTR_MIN;
18226 uintptr_t h = UINTPTR_MAX;
18228 intmax_t i = INTMAX_MAX;
18229 uintmax_t j = UINTMAX_MAX;
18231 #include <limits.h> /* for CHAR_BIT */
18232 #define TYPE_MINIMUM(t) \
18233 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18234 #define TYPE_MAXIMUM(t) \
18235 ((t) ((t) 0 < (t) -1 \
18237 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18240 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18241 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18243 /* Detect bug in FreeBSD 6.0 / ia64. */
18244 int check_SIG_ATOMIC:
18245 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18246 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18248 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18250 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18251 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18253 /* Detect bug in mingw. */
18255 WINT_MIN == TYPE_MINIMUM (wint_t)
18256 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18259 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18261 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18262 int check_UINT16_C:
18263 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18265 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18267 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18270 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18273 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18276 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18278 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18279 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18280 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18281 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18282 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18283 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18284 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18285 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18286 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18287 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18288 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18299 if ac_fn_c_try_compile
"$LINENO"; then :
18300 if test "$cross_compiling" = yes; then :
18301 gl_cv_header_working_stdint_h
=yes
18304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18308 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18309 #include <stdint.h>
18312 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18313 included before <wchar.h>. */
18314 #include <stddef.h>
18315 #include <signal.h>
18317 # include <stdio.h>
18319 # include <wchar.h>
18324 #include <string.h>
18325 #define MVAL(macro) MVAL1(macro)
18326 #define MVAL1(expression) #expression
18327 static const char *macro_values[] =
18361 for (mv = macro_values; *mv != NULL; mv++)
18363 const char *value = *mv;
18364 /* Test whether it looks like a cast expression. */
18365 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18366 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18367 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18368 || strncmp (value, "((int)"/*)*/, 6) == 0
18369 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18370 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18371 return mv - macro_values + 1;
18379 if ac_fn_c_try_run
"$LINENO"; then :
18380 gl_cv_header_working_stdint_h
=yes
18382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18392 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18394 if test "$gl_cv_header_working_stdint_h" = yes; then
18397 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18399 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18400 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18401 eval as_val
=\$
$as_ac_Header
18402 if test "x$as_val" = x
""yes; then :
18403 cat >>confdefs.h
<<_ACEOF
18404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18411 if test $ac_cv_header_sys_inttypes_h = yes; then
18412 HAVE_SYS_INTTYPES_H
=1
18414 HAVE_SYS_INTTYPES_H
=0
18417 if test $ac_cv_header_sys_bitypes_h = yes; then
18418 HAVE_SYS_BITYPES_H
=1
18420 HAVE_SYS_BITYPES_H
=0
18426 if test $APPLE_UNIVERSAL_BUILD = 0; then
18429 for gltype
in ptrdiff_t size_t
; do
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18431 $as_echo_n "checking for bit size of $gltype... " >&6; }
18432 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18433 $as_echo_n "(cached) " >&6
18435 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18436 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18437 included before <wchar.h>. */
18438 #include <stddef.h>
18439 #include <signal.h>
18441 # include <stdio.h>
18443 # include <wchar.h>
18446 #include <limits.h>"; then :
18452 eval gl_cv_bitsizeof_
${gltype}=\
$result
18455 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18457 $as_echo "$ac_res" >&6; }
18458 eval result
=\
$gl_cv_bitsizeof_${gltype}
18459 if test $result = unknown
; then
18462 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18463 cat >>confdefs.h
<<_ACEOF
18464 #define BITSIZEOF_${GLTYPE} $result
18467 eval BITSIZEOF_
${GLTYPE}=\
$result
18474 for gltype
in sig_atomic_t wchar_t wint_t
; do
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18476 $as_echo_n "checking for bit size of $gltype... " >&6; }
18477 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18478 $as_echo_n "(cached) " >&6
18480 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18481 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18482 included before <wchar.h>. */
18483 #include <stddef.h>
18484 #include <signal.h>
18486 # include <stdio.h>
18488 # include <wchar.h>
18491 #include <limits.h>"; then :
18497 eval gl_cv_bitsizeof_
${gltype}=\
$result
18500 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18502 $as_echo "$ac_res" >&6; }
18503 eval result
=\
$gl_cv_bitsizeof_${gltype}
18504 if test $result = unknown
; then
18507 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18508 cat >>confdefs.h
<<_ACEOF
18509 #define BITSIZEOF_${GLTYPE} $result
18512 eval BITSIZEOF_
${GLTYPE}=\
$result
18518 for gltype
in sig_atomic_t wchar_t wint_t
; do
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18520 $as_echo_n "checking whether $gltype is signed... " >&6; }
18521 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18522 $as_echo_n "(cached) " >&6
18524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18527 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18528 included before <wchar.h>. */
18529 #include <stddef.h>
18530 #include <signal.h>
18532 # include <stdio.h>
18534 # include <wchar.h>
18537 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18546 if ac_fn_c_try_compile
"$LINENO"; then :
18551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18552 eval gl_cv_type_
${gltype}_signed
=\
$result
18555 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18557 $as_echo "$ac_res" >&6; }
18558 eval result
=\
$gl_cv_type_${gltype}_signed
18559 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18560 if test "$result" = yes; then
18561 cat >>confdefs.h
<<_ACEOF
18562 #define HAVE_SIGNED_${GLTYPE} 1
18565 eval HAVE_SIGNED_
${GLTYPE}=1
18567 eval HAVE_SIGNED_
${GLTYPE}=0
18572 gl_cv_type_ptrdiff_t_signed
=yes
18573 gl_cv_type_size_t_signed
=no
18574 if test $APPLE_UNIVERSAL_BUILD = 0; then
18577 for gltype
in ptrdiff_t size_t
; do
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18579 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18580 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18581 $as_echo_n "(cached) " >&6
18583 eval gl_cv_type_
${gltype}_suffix
=no
18584 eval result
=\
$gl_cv_type_${gltype}_signed
18585 if test "$result" = yes; then
18590 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18592 '') gltype1
='int';;
18593 l
) gltype1
='long int';;
18594 ll
) gltype1
='long long int';;
18595 i64
) gltype1
='__int64';;
18596 u
) gltype1
='unsigned int';;
18597 ul
) gltype1
='unsigned long int';;
18598 ull
) gltype1
='unsigned long long int';;
18599 ui64
)gltype1
='unsigned __int64';;
18601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h. */
18604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18605 included before <wchar.h>. */
18606 #include <stddef.h>
18607 #include <signal.h>
18609 # include <stdio.h>
18611 # include <wchar.h>
18614 extern $gltype foo;
18615 extern $gltype1 foo;
18624 if ac_fn_c_try_compile
"$LINENO"; then :
18625 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18628 eval result
=\
$gl_cv_type_${gltype}_suffix
18629 test "$result" != no
&& break
18632 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18634 $as_echo "$ac_res" >&6; }
18635 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18636 eval result
=\
$gl_cv_type_${gltype}_suffix
18637 test "$result" = no
&& result
=
18638 eval ${GLTYPE}_SUFFIX
=\
$result
18639 cat >>confdefs.h
<<_ACEOF
18640 #define ${GLTYPE}_SUFFIX $result
18649 for gltype
in sig_atomic_t wchar_t wint_t
; do
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18651 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18652 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18653 $as_echo_n "(cached) " >&6
18655 eval gl_cv_type_
${gltype}_suffix
=no
18656 eval result
=\
$gl_cv_type_${gltype}_signed
18657 if test "$result" = yes; then
18662 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18664 '') gltype1
='int';;
18665 l
) gltype1
='long int';;
18666 ll
) gltype1
='long long int';;
18667 i64
) gltype1
='__int64';;
18668 u
) gltype1
='unsigned int';;
18669 ul
) gltype1
='unsigned long int';;
18670 ull
) gltype1
='unsigned long long int';;
18671 ui64
)gltype1
='unsigned __int64';;
18673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18674 /* end confdefs.h. */
18676 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18677 included before <wchar.h>. */
18678 #include <stddef.h>
18679 #include <signal.h>
18681 # include <stdio.h>
18683 # include <wchar.h>
18686 extern $gltype foo;
18687 extern $gltype1 foo;
18696 if ac_fn_c_try_compile
"$LINENO"; then :
18697 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18700 eval result
=\
$gl_cv_type_${gltype}_suffix
18701 test "$result" != no
&& break
18704 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18706 $as_echo "$ac_res" >&6; }
18707 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18708 eval result
=\
$gl_cv_type_${gltype}_suffix
18709 test "$result" = no
&& result
=
18710 eval ${GLTYPE}_SUFFIX
=\
$result
18711 cat >>confdefs.h
<<_ACEOF
18712 #define ${GLTYPE}_SUFFIX $result
18719 if test $BITSIZEOF_WINT_T -lt 32; then
18720 BITSIZEOF_WINT_T
=32
18726 if test -n "$STDINT_H"; then
18727 GL_GENERATE_STDINT_H_TRUE
=
18728 GL_GENERATE_STDINT_H_FALSE
='#'
18730 GL_GENERATE_STDINT_H_TRUE
='#'
18731 GL_GENERATE_STDINT_H_FALSE
=
18740 GNULIB_STRTOIMAX
=0;
18741 GNULIB_STRTOUMAX
=0;
18742 HAVE_DECL_IMAXABS
=1;
18743 HAVE_DECL_IMAXDIV
=1;
18744 HAVE_DECL_STRTOIMAX
=1;
18745 HAVE_DECL_STRTOUMAX
=1;
18746 REPLACE_STRTOIMAX
=0;
18747 INT32_MAX_LT_INTMAX_MAX
=1;
18748 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18749 PRI_MACROS_BROKEN
=0;
18750 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18751 UINT32_MAX_LT_UINTMAX_MAX
=1;
18752 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18768 if test $gl_cv_have_include_next = yes; then
18769 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18772 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18773 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18774 $as_echo_n "(cached) " >&6
18777 if test $ac_cv_header_inttypes_h = yes; then
18780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18782 #include <inttypes.h>
18786 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18787 *) gl_absname_cpp
="$ac_cpp" ;;
18792 gl_dirsep_regex
='[/\\]'
18795 gl_dirsep_regex
='\/'
18798 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18800 gl_header_literal_regex
=`echo 'inttypes.h' \
18801 | sed -e "$gl_make_literal_regex_sed"`
18802 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18803 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18808 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18809 sed -n "$gl_absolute_header_sed"`'"'
18811 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18817 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18819 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18821 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18822 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18823 gl_next_as_first_directive
='<'inttypes.h
'>'
18825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18826 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18828 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18843 $as_echo_n "checking for 64-bit off_t... " >&6; }
18844 if test "${gl_cv_type_off_t_64+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849 #include <sys/types.h>
18850 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18860 if ac_fn_c_try_compile
"$LINENO"; then :
18861 gl_cv_type_off_t_64
=yes
18863 gl_cv_type_off_t_64
=no
18865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18869 $as_echo "$gl_cv_type_off_t_64" >&6; }
18870 if test $gl_cv_type_off_t_64 = no
; then
18871 WINDOWS_64_BIT_OFF_T
=1
18873 WINDOWS_64_BIT_OFF_T
=0
18875 WINDOWS_64_BIT_ST_SIZE
=1
18878 WINDOWS_64_BIT_OFF_T
=0
18879 WINDOWS_64_BIT_ST_SIZE
=0
18896 GNULIB_UTIMENSAT
=0;
18910 REPLACE_FUTIMENS
=0;
18916 REPLACE_UTIMENSAT
=0;
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18922 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18923 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18924 $as_echo_n "(cached) " >&6
18926 rm -f conftest.sym conftest.
file
18927 echo >conftest.
file
18928 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18929 if test "$cross_compiling" = yes; then :
18931 # Guess yes on glibc systems.
18932 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18933 # If we don't know, assume the worst.
18934 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18940 $ac_includes_default
18945 /* Linux will dereference the symlink and fail, as required by
18946 POSIX. That is better in the sense that it means we will not
18947 have to compile and use the lstat wrapper. */
18948 return lstat ("conftest.sym/", &sbuf) == 0;
18954 if ac_fn_c_try_run
"$LINENO"; then :
18955 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18957 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18964 # If the 'ln -s' command failed, then we probably don't even
18965 # have an lstat function.
18966 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18968 rm -f conftest.sym conftest.
file
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18972 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18973 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18976 cat >>confdefs.h
<<_ACEOF
18977 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18985 GNULIB_NANOSLEEP
=0;
18989 HAVE_DECL_LOCALTIME_R
=1;
18993 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18994 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18995 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18996 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19013 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19014 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19015 $as_echo_n "(cached) " >&6
19018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19020 #include <sys/select.h>
19029 if ac_fn_c_try_compile
"$LINENO"; then :
19030 gl_cv_header_sys_select_h_selfcontained
=yes
19032 gl_cv_header_sys_select_h_selfcontained
=no
19034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19035 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038 #include <sys/select.h>
19042 int memset; int bzero;
19048 if ac_fn_c_try_compile
"$LINENO"; then :
19049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051 #include <sys/select.h>
19057 #define memset nonexistent_memset
19062 void *memset (void *, int, unsigned long);
19064 #define bzero nonexistent_bzero
19069 void bzero (void *, unsigned long);
19078 if ac_fn_c_try_link
"$LINENO"; then :
19081 gl_cv_header_sys_select_h_selfcontained
=no
19083 rm -f core conftest.err conftest.
$ac_objext \
19084 conftest
$ac_exeext conftest.
$ac_ext
19087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19092 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19102 if test $gl_cv_have_include_next = yes; then
19103 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19106 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19107 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19108 $as_echo_n "(cached) " >&6
19111 if test $ac_cv_header_sys_select_h = yes; then
19114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 #include <sys/select.h>
19120 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19121 *) gl_absname_cpp
="$ac_cpp" ;;
19126 gl_dirsep_regex
='[/\\]'
19129 gl_dirsep_regex
='\/'
19132 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19134 gl_header_literal_regex
=`echo 'sys/select.h' \
19135 | sed -e "$gl_make_literal_regex_sed"`
19136 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19137 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19142 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19143 sed -n "$gl_absolute_header_sed"`'"'
19145 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19151 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19153 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19155 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19157 gl_next_as_first_directive
='<'sys
/select.h
'>'
19159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19160 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19162 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19167 if test $ac_cv_header_sys_select_h = yes; then
19168 HAVE_SYS_SELECT_H
=1
19170 HAVE_SYS_SELECT_H
=0
19177 if test $ac_cv_header_sys_socket_h != yes; then
19178 for ac_header
in winsock2.h
19180 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19181 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19182 cat >>confdefs.h
<<_ACEOF
19183 #define HAVE_WINSOCK2_H 1
19191 if test "$ac_cv_header_winsock2_h" = yes; then
19193 UNISTD_H_HAVE_WINSOCK2_H
=1
19194 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19206 GNULIB_PTHREAD_SIGMASK
=0;
19208 GNULIB_SIGNAL_H_SIGPIPE
=0;
19209 GNULIB_SIGPROCMASK
=0;
19210 GNULIB_SIGACTION
=0;
19211 HAVE_POSIX_SIGNALBLOCKING
=1;
19212 HAVE_PTHREAD_SIGMASK
=1;
19217 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19219 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19221 HAVE_SIGHANDLER_T
=1;
19222 REPLACE_PTHREAD_SIGMASK
=0;
19230 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19231 #include <signal.h>
19232 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19233 #include <sys/types.h>
19236 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19238 cat >>confdefs.h
<<_ACEOF
19239 #define HAVE_SIGSET_T 1
19242 gl_cv_type_sigset_t
=yes
19244 gl_cv_type_sigset_t
=no
19247 if test $gl_cv_type_sigset_t != yes; then
19253 if test $ac_cv_header_sys_socket_h = no
; then
19254 for ac_header
in ws2tcpip.h
19256 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19257 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19258 cat >>confdefs.h
<<_ACEOF
19259 #define HAVE_WS2TCPIP_H 1
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19269 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19270 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19271 $as_echo_n "(cached) " >&6
19273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19276 #include <stdbool.h>
19278 "error: bool is not defined"
19281 "error: false is not defined"
19284 "error: false is not 0"
19287 "error: true is not defined"
19290 "error: true is not 1"
19292 #ifndef __bool_true_false_are_defined
19293 "error: __bool_true_false_are_defined is not defined"
19296 struct s { _Bool s: 1; _Bool t; } s;
19298 char a[true == 1 ? 1 : -1];
19299 char b[false == 0 ? 1 : -1];
19300 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19301 char d[(bool) 0.5 == true ? 1 : -1];
19302 /* See body of main program for 'e'. */
19303 char f[(_Bool) 0.0 == false ? 1 : -1];
19305 char h[sizeof (_Bool)];
19306 char i[sizeof s.t];
19307 enum { j = false, k = true, l = false * true, m = true * 256 };
19308 /* The following fails for
19309 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19311 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19312 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19313 /* Catch a bug in an HP-UX C compiler. See
19314 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19315 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19327 /* Refer to every declared value, to avoid compiler optimizations. */
19328 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19329 + !m + !n + !o + !p + !q + !pq);
19335 if ac_fn_c_try_compile
"$LINENO"; then :
19336 ac_cv_header_stdbool_h
=yes
19338 ac_cv_header_stdbool_h
=no
19340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19343 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19344 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19345 if test "x$ac_cv_type__Bool" = x
""yes; then :
19347 cat >>confdefs.h
<<_ACEOF
19348 #define HAVE__BOOL 1
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19361 $as_echo_n "checking for wchar_t... " >&6; }
19362 if test "${gt_cv_c_wchar_t+set}" = set; then :
19363 $as_echo_n "(cached) " >&6
19365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19367 #include <stddef.h>
19368 wchar_t foo = (wchar_t)'\0';
19377 if ac_fn_c_try_compile
"$LINENO"; then :
19378 gt_cv_c_wchar_t
=yes
19382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19385 $as_echo "$gt_cv_c_wchar_t" >&6; }
19386 if test $gt_cv_c_wchar_t = yes; then
19388 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19401 GNULIB_FPRINTF_POSIX
=0;
19417 GNULIB_OBSTACK_PRINTF
=0;
19418 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19423 GNULIB_PRINTF_POSIX
=0;
19432 GNULIB_SPRINTF_POSIX
=0;
19433 GNULIB_STDIO_H_NONBLOCKING
=0;
19434 GNULIB_STDIO_H_SIGPIPE
=0;
19436 GNULIB_VASPRINTF
=0;
19441 GNULIB_VFPRINTF_POSIX
=0;
19443 GNULIB_VPRINTF_POSIX
=0;
19444 GNULIB_VSNPRINTF
=0;
19445 GNULIB_VSPRINTF_POSIX
=0;
19446 HAVE_DECL_FPURGE
=1;
19447 HAVE_DECL_FSEEKO
=1;
19448 HAVE_DECL_FTELLO
=1;
19449 HAVE_DECL_GETDELIM
=1;
19450 HAVE_DECL_GETLINE
=1;
19451 HAVE_DECL_OBSTACK_PRINTF
=1;
19452 HAVE_DECL_SNPRINTF
=1;
19453 HAVE_DECL_VSNPRINTF
=1;
19474 REPLACE_GETDELIM
=0;
19476 REPLACE_OBSTACK_PRINTF
=0;
19482 REPLACE_RENAMEAT
=0;
19483 REPLACE_SNPRINTF
=0;
19485 REPLACE_STDIO_READ_FUNCS
=0;
19486 REPLACE_STDIO_WRITE_FUNCS
=0;
19488 REPLACE_VASPRINTF
=0;
19489 REPLACE_VDPRINTF
=0;
19490 REPLACE_VFPRINTF
=0;
19492 REPLACE_VSNPRINTF
=0;
19493 REPLACE_VSPRINTF
=0;
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19496 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19497 if test "${ac_cv_struct_tm+set}" = set; then :
19498 $as_echo_n "(cached) " >&6
19500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19502 #include <sys/types.h>
19509 int *p = &tm.tm_sec;
19515 if ac_fn_c_try_compile
"$LINENO"; then :
19516 ac_cv_struct_tm
=time.h
19518 ac_cv_struct_tm
=sys
/time.h
19520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19523 $as_echo "$ac_cv_struct_tm" >&6; }
19524 if test $ac_cv_struct_tm = sys
/time.h
; then
19526 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19530 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19531 #include <$ac_cv_struct_tm>
19534 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19536 cat >>confdefs.h
<<_ACEOF
19537 #define HAVE_STRUCT_TM_TM_ZONE 1
19543 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19545 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19548 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19550 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19556 cat >>confdefs.h
<<_ACEOF
19557 #define HAVE_DECL_TZNAME $ac_have_decl
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19561 $as_echo_n "checking for tzname... " >&6; }
19562 if test "${ac_cv_var_tzname+set}" = set; then :
19563 $as_echo_n "(cached) " >&6
19565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19568 #if !HAVE_DECL_TZNAME
19569 extern char *tzname[];
19575 return tzname[0][0];
19580 if ac_fn_c_try_link
"$LINENO"; then :
19581 ac_cv_var_tzname
=yes
19583 ac_cv_var_tzname
=no
19585 rm -f core conftest.err conftest.
$ac_objext \
19586 conftest
$ac_exeext conftest.
$ac_ext
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19589 $as_echo "$ac_cv_var_tzname" >&6; }
19590 if test $ac_cv_var_tzname = yes; then
19592 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19598 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19600 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19602 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19609 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19610 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19616 cat >>confdefs.h
<<_ACEOF
19617 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19622 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19623 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19629 cat >>confdefs.h
<<_ACEOF
19630 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19636 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19637 if test "${ac_cv_header_stat_broken+set}" = set; then :
19638 $as_echo_n "(cached) " >&6
19640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #include <sys/types.h>
19643 #include <sys/stat.h>
19645 #if defined S_ISBLK && defined S_IFDIR
19646 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19649 #if defined S_ISBLK && defined S_IFCHR
19650 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19653 #if defined S_ISLNK && defined S_IFREG
19654 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19657 #if defined S_ISSOCK && defined S_IFREG
19658 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19662 if ac_fn_c_try_compile
"$LINENO"; then :
19663 ac_cv_header_stat_broken
=no
19665 ac_cv_header_stat_broken
=yes
19667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19670 $as_echo "$ac_cv_header_stat_broken" >&6; }
19671 if test $ac_cv_header_stat_broken = yes; then
19673 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19679 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19680 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19684 cat >>confdefs.h
<<_ACEOF
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19693 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19694 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19695 $as_echo_n "(cached) " >&6
19697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h. */
19704 static struct timespec x; x.tv_sec = x.tv_nsec;
19709 if ac_fn_c_try_compile
"$LINENO"; then :
19710 gl_cv_sys_struct_timespec_in_time_h
=yes
19712 gl_cv_sys_struct_timespec_in_time_h
=no
19714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19717 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19719 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19720 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19721 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19722 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19723 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19726 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19727 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19728 $as_echo_n "(cached) " >&6
19730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19732 #include <sys/time.h>
19737 static struct timespec x; x.tv_sec = x.tv_nsec;
19742 if ac_fn_c_try_compile
"$LINENO"; then :
19743 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19745 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19750 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19751 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19752 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19755 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19756 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19757 $as_echo_n "(cached) " >&6
19759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h. */
19761 #include <pthread.h>
19766 static struct timespec x; x.tv_sec = x.tv_nsec;
19771 if ac_fn_c_try_compile
"$LINENO"; then :
19772 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19774 gl_cv_sys_struct_timespec_in_pthread_h
=no
19776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19779 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19780 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19781 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19800 if test $gl_cv_have_include_next = yes; then
19801 gl_cv_next_time_h
='<'time.h
'>'
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19804 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19805 if test "${gl_cv_next_time_h+set}" = set; then :
19806 $as_echo_n "(cached) " >&6
19809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19815 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19816 *) gl_absname_cpp
="$ac_cpp" ;;
19821 gl_dirsep_regex
='[/\\]'
19824 gl_dirsep_regex
='\/'
19827 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19829 gl_header_literal_regex
=`echo 'time.h' \
19830 | sed -e "$gl_make_literal_regex_sed"`
19831 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19837 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19838 sed -n "$gl_absolute_header_sed"`'"'
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19843 $as_echo "$gl_cv_next_time_h" >&6; }
19845 NEXT_TIME_H
=$gl_cv_next_time_h
19847 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19849 gl_next_as_first_directive
='<'time.h
'>'
19851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19852 gl_next_as_first_directive
=$gl_cv_next_time_h
19854 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19871 $as_echo_n "checking whether the utimes function works... " >&6; }
19872 if test "${gl_cv_func_working_utimes+set}" = set; then :
19873 $as_echo_n "(cached) " >&6
19876 if test "$cross_compiling" = yes; then :
19877 gl_cv_func_working_utimes
=no
19879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19882 #include <sys/types.h>
19883 #include <sys/stat.h>
19885 #include <sys/time.h>
19887 #include <unistd.h>
19888 #include <stdlib.h>
19893 inorder (time_t a, time_t b, time_t c)
19895 return a <= b && b <= c;
19902 char const *file = "conftest.utimes";
19903 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19905 /* Test whether utimes() essentially works. */
19908 FILE *f = fopen (file, "w");
19911 else if (fclose (f) != 0)
19913 else if (utimes (file, timeval) != 0)
19915 else if (lstat (file, &sbuf) != 0)
19917 else if (!(sbuf.st_atime == timeval[0].tv_sec
19918 && sbuf.st_mtime == timeval[1].tv_sec))
19920 if (unlink (file) != 0)
19924 /* Test whether utimes() with a NULL argument sets the file's timestamp
19925 to the current time. Use 'fstat' as well as 'time' to
19926 determine the "current" time, to accommodate NFS file systems
19927 if there is a time skew between the host and the NFS server. */
19929 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19935 struct stat st0, st1, st2;
19936 if (time (&t0) == (time_t) -1)
19938 else if (fstat (fd, &st0) != 0)
19940 else if (utimes (file, timeval) != 0)
19942 else if (utimes (file, NULL) != 0)
19944 else if (fstat (fd, &st1) != 0)
19946 else if (write (fd, "\n", 1) != 1)
19948 else if (fstat (fd, &st2) != 0)
19950 else if (time (&t2) == (time_t) -1)
19954 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19955 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19956 if (! (st1.st_atime == st1.st_mtime))
19958 if (! (m_ok_POSIX || m_ok_NFS))
19961 if (close (fd) != 0)
19964 if (unlink (file) != 0)
19968 /* Test whether utimes() with a NULL argument works on read-only files. */
19970 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19973 else if (close (fd) != 0)
19975 else if (utimes (file, NULL) != 0)
19977 if (unlink (file) != 0)
19985 if ac_fn_c_try_run
"$LINENO"; then :
19986 gl_cv_func_working_utimes
=yes
19988 gl_cv_func_working_utimes
=no
19990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19996 $as_echo "$gl_cv_func_working_utimes" >&6; }
19998 if test $gl_cv_func_working_utimes = yes; then
20000 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20009 $as_echo_n "checking for struct utimbuf... " >&6; }
20010 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20014 /* end confdefs.h. */
20015 #if HAVE_SYS_TIME_H
20016 #include <sys/time.h>
20019 #ifdef HAVE_UTIME_H
20026 static struct utimbuf x; x.actime = x.modtime;
20031 if ac_fn_c_try_compile
"$LINENO"; then :
20032 gl_cv_sys_struct_utimbuf
=yes
20034 gl_cv_sys_struct_utimbuf
=no
20036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20039 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20041 if test $gl_cv_sys_struct_utimbuf = yes; then
20043 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20059 GL_COND_LIBTOOL_TRUE
=
20060 GL_COND_LIBTOOL_FALSE
='#'
20062 GL_COND_LIBTOOL_TRUE
='#'
20063 GL_COND_LIBTOOL_FALSE
=
20066 gl_cond_libtool
=false
20079 gl_source_base
='lib'
20082 if test $ac_cv_func_alloca_works = no
; then
20086 # Define an additional variable used in the Makefile substitution.
20087 if test $ac_cv_working_alloca_h = yes; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20089 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20090 if test "${gl_cv_rpl_alloca+set}" = set; then :
20091 $as_echo_n "(cached) " >&6
20094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20097 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20104 gl_cv_rpl_alloca
=yes
20106 gl_cv_rpl_alloca
=no
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20113 $as_echo "$gl_cv_rpl_alloca" >&6; }
20114 if test $gl_cv_rpl_alloca = yes; then
20116 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20126 if test -n "$ALLOCA_H"; then
20127 GL_GENERATE_ALLOCA_H_TRUE
=
20128 GL_GENERATE_ALLOCA_H_FALSE
='#'
20130 GL_GENERATE_ALLOCA_H_TRUE
='#'
20131 GL_GENERATE_ALLOCA_H_FALSE
=
20139 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20140 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20142 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20143 # programs in the package would end up linked with that potentially-shared
20144 # library, inducing unnecessary run-time overhead.
20147 gl_saved_libs
=$LIBS
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20149 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20150 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20151 $as_echo_n "(cached) " >&6
20153 ac_func_search_save_LIBS
=$LIBS
20154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20163 char clock_gettime ();
20167 return clock_gettime ();
20172 for ac_lib
in '' rt posix4
; do
20173 if test -z "$ac_lib"; then
20174 ac_res
="none required"
20177 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20179 if ac_fn_c_try_link
"$LINENO"; then :
20180 ac_cv_search_clock_gettime
=$ac_res
20182 rm -f core conftest.err conftest.
$ac_objext \
20184 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20188 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20191 ac_cv_search_clock_gettime
=no
20193 rm conftest.
$ac_ext
20194 LIBS
=$ac_func_search_save_LIBS
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20197 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20198 ac_res
=$ac_cv_search_clock_gettime
20199 if test "$ac_res" != no
; then :
20200 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20201 test "$ac_cv_search_clock_gettime" = "none required" ||
20202 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20205 for ac_func
in clock_gettime clock_settime
20207 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20208 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20209 eval as_val
=\$
$as_ac_var
20210 if test "x$as_val" = x
""yes; then :
20211 cat >>confdefs.h
<<_ACEOF
20212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20218 LIBS
=$gl_saved_libs
20244 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20247 if test $HAVE_DUP2 = 1; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20249 $as_echo_n "checking whether dup2 works... " >&6; }
20250 if test "${gl_cv_func_dup2_works+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20253 if test "$cross_compiling" = yes; then :
20255 mingw
*) # on this platform, dup2 always returns 0 for success
20256 gl_cv_func_dup2_works
="guessing no" ;;
20257 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20258 gl_cv_func_dup2_works
="guessing no" ;;
20259 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20260 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20261 gl_cv_func_dup2_works
="guessing no" ;;
20262 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20263 gl_cv_func_dup2_works
="guessing no" ;;
20264 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20265 gl_cv_func_dup2_works
="guessing no" ;;
20266 *) gl_cv_func_dup2_works
="guessing yes" ;;
20269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20272 #include <unistd.h>
20280 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20283 if (dup2 (1, 1) == 0)
20286 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20290 if (dup2 (0, 0) != -1)
20292 /* Many gnulib modules require POSIX conformance of EBADF. */
20293 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20302 if ac_fn_c_try_run
"$LINENO"; then :
20303 gl_cv_func_dup2_works
=yes
20305 gl_cv_func_dup2_works
=no
20307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20314 $as_echo "$gl_cv_func_dup2_works" >&6; }
20315 case "$gl_cv_func_dup2_works" in
20324 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20333 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20364 EXECINFO_H
='execinfo.h'
20366 if test $ac_cv_header_execinfo_h = yes; then
20367 gl_saved_libs
=$LIBS
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20369 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20370 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20371 $as_echo_n "(cached) " >&6
20373 ac_func_search_save_LIBS
=$LIBS
20374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20383 char backtrace_symbols_fd ();
20387 return backtrace_symbols_fd ();
20392 for ac_lib
in '' execinfo
; do
20393 if test -z "$ac_lib"; then
20394 ac_res
="none required"
20397 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20399 if ac_fn_c_try_link
"$LINENO"; then :
20400 ac_cv_search_backtrace_symbols_fd
=$ac_res
20402 rm -f core conftest.err conftest.
$ac_objext \
20404 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20408 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20411 ac_cv_search_backtrace_symbols_fd
=no
20413 rm conftest.
$ac_ext
20414 LIBS
=$ac_func_search_save_LIBS
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20417 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20418 ac_res
=$ac_cv_search_backtrace_symbols_fd
20419 if test "$ac_res" != no
; then :
20420 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20421 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20422 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20425 LIBS
=$gl_saved_libs
20426 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20429 if test -n "$EXECINFO_H"; then
20438 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20444 if test -n "$EXECINFO_H"; then
20445 GL_GENERATE_EXECINFO_H_TRUE
=
20446 GL_GENERATE_EXECINFO_H_FALSE
='#'
20448 GL_GENERATE_EXECINFO_H_TRUE
='#'
20449 GL_GENERATE_EXECINFO_H_FALSE
=
20460 # Persuade glibc <stdlib.h> to declare getloadavg().
20465 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20466 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20468 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20469 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20472 gl_func_getloadavg_done
=no
20474 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20475 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20476 # to get the right answer into the cache.
20477 # For kstat on solaris, we need to test for libelf and libkvm to force the
20478 # definition of SVR4 below.
20479 if test $gl_func_getloadavg_done = no
; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20481 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20482 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20483 $as_echo_n "(cached) " >&6
20485 ac_check_lib_save_LIBS
=$LIBS
20487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20488 /* end confdefs.h. */
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20500 return elf_begin ();
20505 if ac_fn_c_try_link
"$LINENO"; then :
20506 ac_cv_lib_elf_elf_begin
=yes
20508 ac_cv_lib_elf_elf_begin
=no
20510 rm -f core conftest.err conftest.
$ac_objext \
20511 conftest
$ac_exeext conftest.
$ac_ext
20512 LIBS
=$ac_check_lib_save_LIBS
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20515 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20516 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20521 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20522 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20523 $as_echo_n "(cached) " >&6
20525 ac_check_lib_save_LIBS
=$LIBS
20527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20540 return kvm_open ();
20545 if ac_fn_c_try_link
"$LINENO"; then :
20546 ac_cv_lib_kvm_kvm_open
=yes
20548 ac_cv_lib_kvm_kvm_open
=no
20550 rm -f core conftest.err conftest.
$ac_objext \
20551 conftest
$ac_exeext conftest.
$ac_ext
20552 LIBS
=$ac_check_lib_save_LIBS
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20555 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20556 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20560 # Check for the 4.4BSD definition of getloadavg.
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20562 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20563 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20564 $as_echo_n "(cached) " >&6
20566 ac_check_lib_save_LIBS
=$LIBS
20567 LIBS
="-lutil $LIBS"
20568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20577 char getloadavg ();
20581 return getloadavg ();
20586 if ac_fn_c_try_link
"$LINENO"; then :
20587 ac_cv_lib_util_getloadavg
=yes
20589 ac_cv_lib_util_getloadavg
=no
20591 rm -f core conftest.err conftest.
$ac_objext \
20592 conftest
$ac_exeext conftest.
$ac_ext
20593 LIBS
=$ac_check_lib_save_LIBS
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20596 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20597 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20598 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20603 if test $gl_func_getloadavg_done = no
; then
20604 # There is a commonly available library for RS/6000 AIX.
20605 # Since it is not a standard part of AIX, it might be installed locally.
20606 gl_getloadavg_LIBS
=$LIBS
20607 LIBS
="-L/usr/local/lib $LIBS"
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20609 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20610 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20613 ac_check_lib_save_LIBS
=$LIBS
20614 LIBS
="-lgetloadavg $LIBS"
20615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20618 /* Override any GCC internal prototype to avoid an error.
20619 Use char because int might match the return type of a GCC
20620 builtin and then its argument prototype would still apply. */
20624 char getloadavg ();
20628 return getloadavg ();
20633 if ac_fn_c_try_link
"$LINENO"; then :
20634 ac_cv_lib_getloadavg_getloadavg
=yes
20636 ac_cv_lib_getloadavg_getloadavg
=no
20638 rm -f core conftest.err conftest.
$ac_objext \
20639 conftest
$ac_exeext conftest.
$ac_ext
20640 LIBS
=$ac_check_lib_save_LIBS
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20643 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20644 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20645 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20647 LIBS
=$gl_getloadavg_LIBS
20652 # Set up the replacement function if necessary.
20653 if test $gl_func_getloadavg_done = no
; then
20656 # Solaris has libkstat which does not require root.
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20658 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20659 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20660 $as_echo_n "(cached) " >&6
20662 ac_check_lib_save_LIBS
=$LIBS
20663 LIBS
="-lkstat $LIBS"
20664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20667 /* Override any GCC internal prototype to avoid an error.
20668 Use char because int might match the return type of a GCC
20669 builtin and then its argument prototype would still apply. */
20673 char kstat_open ();
20677 return kstat_open ();
20682 if ac_fn_c_try_link
"$LINENO"; then :
20683 ac_cv_lib_kstat_kstat_open
=yes
20685 ac_cv_lib_kstat_kstat_open
=no
20687 rm -f core conftest.err conftest.
$ac_objext \
20688 conftest
$ac_exeext conftest.
$ac_ext
20689 LIBS
=$ac_check_lib_save_LIBS
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20692 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20693 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20694 cat >>confdefs.h
<<_ACEOF
20695 #define HAVE_LIBKSTAT 1
20698 LIBS
="-lkstat $LIBS"
20702 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20704 # AIX has libperfstat which does not require root
20705 if test $gl_func_getloadavg_done = no
; then
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20707 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20708 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20709 $as_echo_n "(cached) " >&6
20711 ac_check_lib_save_LIBS
=$LIBS
20712 LIBS
="-lperfstat $LIBS"
20713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h. */
20716 /* Override any GCC internal prototype to avoid an error.
20717 Use char because int might match the return type of a GCC
20718 builtin and then its argument prototype would still apply. */
20722 char perfstat_cpu_total ();
20726 return perfstat_cpu_total ();
20731 if ac_fn_c_try_link
"$LINENO"; then :
20732 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20734 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20736 rm -f core conftest.err conftest.
$ac_objext \
20737 conftest
$ac_exeext conftest.
$ac_ext
20738 LIBS
=$ac_check_lib_save_LIBS
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20741 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20742 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20743 cat >>confdefs.h
<<_ACEOF
20744 #define HAVE_LIBPERFSTAT 1
20747 LIBS
="-lperfstat $LIBS"
20751 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20754 if test $gl_func_getloadavg_done = no
; then
20755 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20756 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20757 gl_func_getloadavg_done
=yes
20759 $as_echo "#define DGUX 1" >>confdefs.h
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20762 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20763 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20766 ac_check_lib_save_LIBS
=$LIBS
20768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20777 char dg_sys_info ();
20781 return dg_sys_info ();
20786 if ac_fn_c_try_link
"$LINENO"; then :
20787 ac_cv_lib_dgc_dg_sys_info
=yes
20789 ac_cv_lib_dgc_dg_sys_info
=no
20791 rm -f core conftest.err conftest.
$ac_objext \
20792 conftest
$ac_exeext conftest.
$ac_ext
20793 LIBS
=$ac_check_lib_save_LIBS
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20796 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20797 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20798 cat >>confdefs.h
<<_ACEOF
20799 #define HAVE_LIBDGC 1
20814 if test "x$gl_save_LIBS" = x
; then
20815 GETLOADAVG_LIBS
=$LIBS
20817 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20822 # Test whether the system declares getloadavg. Solaris has the function
20823 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20824 for ac_header
in sys
/loadavg.h
20826 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20827 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20828 cat >>confdefs.h
<<_ACEOF
20829 #define HAVE_SYS_LOADAVG_H 1
20836 if test $ac_cv_header_sys_loadavg_h = yes; then
20837 HAVE_SYS_LOADAVG_H
=1
20839 HAVE_SYS_LOADAVG_H
=0
20841 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20842 # include <sys/loadavg.h>
20844 #include <stdlib.h>
20846 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20849 HAVE_DECL_GETLOADAVG
=0
20853 if test $HAVE_GETLOADAVG = 0; then
20862 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20865 # Figure out what our getloadavg.c needs.
20869 # On HPUX9, an unprivileged user can get load averages this way.
20870 if test $gl_func_getloadavg_done = no
; then
20871 for ac_func
in pstat_getdynamic
20873 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20874 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20875 cat >>confdefs.h
<<_ACEOF
20876 #define HAVE_PSTAT_GETDYNAMIC 1
20878 gl_func_getloadavg_done
=yes
20884 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20885 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20886 # Irix 4.0.5F has the header but not the library.
20887 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20888 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20889 gl_func_getloadavg_done
=yes
20891 $as_echo "#define SVR4 1" >>confdefs.h
20895 if test $gl_func_getloadavg_done = no
; then
20896 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20897 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20898 gl_func_getloadavg_done
=yes
20900 $as_echo "#define UMAX 1" >>confdefs.h
20903 $as_echo "#define UMAX4_3 1" >>confdefs.h
20910 if test $gl_func_getloadavg_done = no
; then
20911 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20912 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20913 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20920 if test $gl_func_getloadavg_done = no
; then
20921 for ac_header
in mach
/mach.h
20923 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20924 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20925 cat >>confdefs.h
<<_ACEOF
20926 #define HAVE_MACH_MACH_H 1
20935 for ac_header
in nlist.h
20937 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20938 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20939 cat >>confdefs.h
<<_ACEOF
20940 #define HAVE_NLIST_H 1
20942 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20944 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20946 cat >>confdefs.h
<<_ACEOF
20947 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20954 /* end confdefs.h. */
20960 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20961 x.n_un.n_name = "";
20969 if ac_fn_c_try_link
"$LINENO"; then :
20971 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20974 rm -f core conftest.err conftest.
$ac_objext \
20975 conftest
$ac_exeext conftest.
$ac_ext
20987 GNULIB_GETLOADAVG
=1
20998 if test $REPLACE_GETOPT = 1; then
21007 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21017 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21022 GNULIB_GL_UNISTD_H_GETOPT
=1
21032 if test -n "$gl_replace_getopt"; then
21036 if test $REPLACE_GETOPT = 1; then
21040 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21046 if test $REPLACE_GETOPT = 1; then
21055 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21065 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21070 GNULIB_GL_UNISTD_H_GETOPT
=1
21084 gl_gettimeofday_timezone
=void
21085 if test $ac_cv_func_gettimeofday != yes; then
21086 HAVE_GETTIMEOFDAY
=0
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21092 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21093 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21096 if test "$cross_compiling" = yes; then :
21097 # When cross-compiling:
21099 # Guess all is fine on glibc systems.
21100 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21101 # If we don't know, assume the worst.
21102 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21107 /* end confdefs.h. */
21108 #include <string.h>
21109 #include <sys/time.h>
21111 #include <stdlib.h>
21119 struct tm saved_lt;
21121 lt = localtime (&t);
21123 gettimeofday (&tv, NULL);
21124 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21130 if ac_fn_c_try_run
"$LINENO"; then :
21131 gl_cv_func_gettimeofday_clobber
=no
21133 gl_cv_func_gettimeofday_clobber
=yes
21135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21141 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21143 case "$gl_cv_func_gettimeofday_clobber" in
21145 REPLACE_GETTIMEOFDAY
=1
21148 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21151 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21155 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21161 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21162 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21167 #include <sys/time.h>
21169 int gettimeofday (struct timeval *restrict, void *restrict);
21174 /* glibc uses struct timezone * rather than the POSIX void *
21175 if _GNU_SOURCE is defined. However, since the only portable
21176 use of gettimeofday uses NULL as the second parameter, and
21177 since the glibc definition is actually more typesafe, it is
21178 not worth wrapping this to get a compliant signature. */
21179 int (*f) (struct timeval *restrict, void *restrict)
21182 return !(x | c.tv_sec | c.tv_usec);
21188 if ac_fn_c_try_compile
"$LINENO"; then :
21189 gl_cv_func_gettimeofday_posix_signature
=yes
21191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21193 #include <sys/time.h>
21194 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21204 if ac_fn_c_try_compile
"$LINENO"; then :
21205 gl_cv_func_gettimeofday_posix_signature
=almost
21207 gl_cv_func_gettimeofday_posix_signature
=no
21209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21214 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21215 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21216 gl_gettimeofday_timezone
='struct timezone'
21217 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21218 REPLACE_GETTIMEOFDAY
=1
21220 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21221 REPLACE_GETTIMEOFDAY
=1
21226 cat >>confdefs.h
<<_ACEOF
21227 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21231 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21240 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21243 for ac_header
in sys
/timeb.h
21245 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21246 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21247 cat >>confdefs.h
<<_ACEOF
21248 #define HAVE_SYS_TIMEB_H 1
21255 for ac_func
in _ftime
21257 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21258 if test "x$ac_cv_func__ftime" = x
""yes; then :
21259 cat >>confdefs.h
<<_ACEOF
21260 #define HAVE__FTIME 1
21273 GNULIB_GETTIMEOFDAY
=1
21284 if test $ac_cv_func_lstat = yes; then
21286 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21295 if test $REPLACE_LSTAT = 1; then
21304 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21328 if test $APPLE_UNIVERSAL_BUILD = 1; then
21329 # A universal build on Apple Mac OS X platforms.
21330 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21331 # But we need a configuration result that is valid in both modes.
21332 gl_cv_func_working_mktime
=no
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21335 $as_echo_n "checking for working mktime... " >&6; }
21336 if test "${gl_cv_func_working_mktime+set}" = set; then :
21337 $as_echo_n "(cached) " >&6
21339 if test "$cross_compiling" = yes; then :
21340 gl_cv_func_working_mktime
=no
21342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21344 /* Test program from Paul Eggert and Tony Leneis. */
21345 #include <limits.h>
21346 #include <stdlib.h>
21349 #ifdef HAVE_UNISTD_H
21350 # include <unistd.h>
21354 # define alarm(X) /* empty */
21357 /* Work around redefinition to rpl_putenv by other config tests. */
21360 static time_t time_t_max;
21361 static time_t time_t_min;
21363 /* Values we'll use to set the TZ environment variable. */
21364 static char *tz_strings[] = {
21365 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21366 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21368 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21370 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21371 Based on a problem report from Andreas Jaeger. */
21373 spring_forward_gap ()
21375 /* glibc (up to about 1998-10-07) failed this test. */
21378 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21379 instead of "TZ=America/Vancouver" in order to detect the bug even
21380 on systems that don't support the Olson extension, or don't have the
21381 full zoneinfo tables installed. */
21382 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21391 return mktime (&tm) != (time_t) -1;
21395 mktime_test1 (time_t now)
21398 return ! (lt = localtime (&now)) || mktime (lt) == now;
21402 mktime_test (time_t now)
21404 return (mktime_test1 (now)
21405 && mktime_test1 ((time_t) (time_t_max - now))
21406 && mktime_test1 ((time_t) (time_t_min + now)));
21412 /* Based on code from Ariel Faigon. */
21422 return tm.tm_mon == 2 && tm.tm_mday == 31;
21426 bigtime_test (int j)
21430 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21431 now = mktime (&tm);
21432 if (now != (time_t) -1)
21434 struct tm *lt = localtime (&now);
21436 && lt->tm_year == tm.tm_year
21437 && lt->tm_mon == tm.tm_mon
21438 && lt->tm_mday == tm.tm_mday
21439 && lt->tm_hour == tm.tm_hour
21440 && lt->tm_min == tm.tm_min
21441 && lt->tm_sec == tm.tm_sec
21442 && lt->tm_yday == tm.tm_yday
21443 && lt->tm_wday == tm.tm_wday
21444 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21445 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21454 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21455 ignoring leap seconds. */
21456 unsigned long int answer = 2527315200UL;
21460 tm.tm_year = 2050 - 1900;
21463 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21466 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21467 instead of "TZ=America/Vancouver" in order to detect the bug even
21468 on systems that don't support the Olson extension, or don't have the
21469 full zoneinfo tables installed. */
21470 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21474 /* Check that the result is either a failure, or close enough
21475 to the correct answer that we can assume the discrepancy is
21476 due to leap seconds. */
21477 return (t == (time_t) -1
21478 || (0 < t && answer - 120 <= t && t <= answer + 120));
21487 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21488 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21490 /* This test makes some buggy mktime implementations loop.
21491 Give up after 60 seconds; a mktime slower than that
21492 isn't worth using anyway. */
21495 time_t_max = (! time_t_signed
21497 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21499 time_t_min = (! time_t_signed
21501 : time_t_signed_magnitude
21505 delta = time_t_max / 997; /* a suitable prime number */
21506 for (i = 0; i < N_STRINGS; i++)
21509 putenv (tz_strings[i]);
21511 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21512 if (! mktime_test (t))
21514 if ((result & 2) == 0
21515 && ! (mktime_test ((time_t) 1)
21516 && mktime_test ((time_t) (60 * 60))
21517 && mktime_test ((time_t) (60 * 60 * 24))))
21520 for (j = 1; (result & 4) == 0; j <<= 1)
21522 if (! bigtime_test (j))
21524 if (INT_MAX / 2 < j)
21527 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21530 if (! irix_6_4_bug ())
21532 if (! spring_forward_gap ())
21534 if (! year_2050_test ())
21539 if ac_fn_c_try_run
"$LINENO"; then :
21540 gl_cv_func_working_mktime
=yes
21542 gl_cv_func_working_mktime
=no
21544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21551 $as_echo "$gl_cv_func_working_mktime" >&6; }
21553 if test $gl_cv_func_working_mktime = no
; then
21559 if test $REPLACE_MKTIME = 1; then
21568 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21589 if test $ac_cv_func_pselect = yes; then
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21591 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21592 if test "${gl_cv_sig_pselect+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21596 /* end confdefs.h. */
21597 #include <sys/select.h>
21602 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21603 struct timespec const *restrict,
21604 sigset_t const *restrict) = pselect;
21610 if ac_fn_c_try_link
"$LINENO"; then :
21611 gl_cv_sig_pselect
=yes
21613 gl_cv_sig_pselect
=no
21615 rm -f core conftest.err conftest.
$ac_objext \
21616 conftest
$ac_exeext conftest.
$ac_ext
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21619 $as_echo "$gl_cv_sig_pselect" >&6; }
21622 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21626 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21635 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21653 LIB_PTHREAD_SIGMASK
=
21656 if test $ac_cv_func_pthread_sigmask = yes; then
21659 HAVE_PTHREAD_SIGMASK
=0
21660 REPLACE_PTHREAD_SIGMASK
=1
21666 if test $HAVE_PTHREAD_SIGMASK = 1; then
21669 if test -z "$LIB_PTHREAD_SIGMASK"; then
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21671 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21672 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21673 $as_echo_n "(cached) " >&6
21676 if test "$cross_compiling" = yes; then :
21679 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21680 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21682 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21689 #include <pthread.h>
21690 #include <signal.h>
21691 #include <stddef.h>
21695 sigemptyset (&set);
21696 return pthread_sigmask (1729, &set, NULL) != 0;
21699 if ac_fn_c_try_run
"$LINENO"; then :
21700 gl_cv_func_pthread_sigmask_in_libc_works
=no
21702 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21711 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21712 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21714 REPLACE_PTHREAD_SIGMASK
=1
21716 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21723 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21724 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21728 gl_save_LIBS
="$LIBS"
21729 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21730 if test "$cross_compiling" = yes; then :
21733 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21735 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21740 /* end confdefs.h. */
21742 #include <pthread.h>
21743 #include <signal.h>
21744 #include <stddef.h>
21748 sigemptyset (&set);
21749 if (pthread_sigmask (1729, &set, NULL) == -1)
21754 if ac_fn_c_try_run
"$LINENO"; then :
21755 gl_cv_func_pthread_sigmask_return_works
=yes
21757 gl_cv_func_pthread_sigmask_return_works
=no
21759 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21760 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21763 LIBS
="$gl_save_LIBS"
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21767 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21768 case "$gl_cv_func_pthread_sigmask_return_works" in
21770 REPLACE_PTHREAD_SIGMASK
=1
21772 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21778 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21779 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21785 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21787 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21789 gl_save_LIBS
="$LIBS"
21790 LIBS
="$LIBS $LIBMULTITHREAD"
21791 if test "$cross_compiling" = yes; then :
21794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21797 #include <pthread.h>
21798 #include <signal.h>
21800 #include <stdlib.h>
21801 #include <unistd.h>
21802 static volatile int sigint_occurred;
21804 sigint_handler (int sig)
21811 int pid = getpid ();
21813 signal (SIGINT, sigint_handler);
21814 sigemptyset (&set);
21815 sigaddset (&set, SIGINT);
21816 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21818 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21819 if (!(system (command) == 0))
21822 if (!(sigint_occurred == 0))
21824 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21826 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21831 if ac_fn_c_try_run
"$LINENO"; then :
21834 gl_cv_func_pthread_sigmask_unblock_works
=no
21836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21840 LIBS
="$gl_save_LIBS"
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21844 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21845 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21847 REPLACE_PTHREAD_SIGMASK
=1
21849 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21855 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21864 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21867 if test $HAVE_PTHREAD_SIGMASK = 1; then
21869 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21879 GNULIB_PTHREAD_SIGMASK
=1
21888 if test $ac_cv_func_readlink = no
; then
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21892 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21893 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21894 $as_echo_n "(cached) " >&6
21896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898 #include <unistd.h>
21899 /* Cause compilation failure if original declaration has wrong type. */
21900 ssize_t readlink (const char *, char *, size_t);
21909 if ac_fn_c_try_compile
"$LINENO"; then :
21910 gl_cv_decl_readlink_works
=yes
21912 gl_cv_decl_readlink_works
=no
21914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21917 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21919 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21920 if test "${gl_cv_func_readlink_works+set}" = set; then :
21921 $as_echo_n "(cached) " >&6
21923 # We have readlink, so assume ln -s works.
21924 ln -s conftest.no-such conftest.link
21925 ln -s conftest.link conftest.lnk2
21926 if test "$cross_compiling" = yes; then :
21928 # Guess yes on glibc systems.
21929 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21930 # If we don't know, assume the worst.
21931 *) gl_cv_func_readlink_works
="guessing no" ;;
21935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21936 /* end confdefs.h. */
21937 #include <unistd.h>
21943 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21948 if ac_fn_c_try_run
"$LINENO"; then :
21949 gl_cv_func_readlink_works
=yes
21951 gl_cv_func_readlink_works
=no
21953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21957 rm -f conftest.link conftest.lnk2
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21960 $as_echo "$gl_cv_func_readlink_works" >&6; }
21961 case "$gl_cv_func_readlink_works" in
21963 if test "$gl_cv_decl_readlink_works" != yes; then
21969 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21976 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21985 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22013 if test $gl_cv_have_include_next = yes; then
22014 gl_cv_next_signal_h
='<'signal.h
'>'
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22017 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22018 if test "${gl_cv_next_signal_h+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024 #include <signal.h>
22028 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22029 *) gl_absname_cpp
="$ac_cpp" ;;
22034 gl_dirsep_regex
='[/\\]'
22037 gl_dirsep_regex
='\/'
22040 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22042 gl_header_literal_regex
=`echo 'signal.h' \
22043 | sed -e "$gl_make_literal_regex_sed"`
22044 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22045 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22050 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22051 sed -n "$gl_absolute_header_sed"`'"'
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22056 $as_echo "$gl_cv_next_signal_h" >&6; }
22058 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22060 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22062 gl_next_as_first_directive
='<'signal.h
'>'
22064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22065 gl_next_as_first_directive
=$gl_cv_next_signal_h
22067 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22073 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22074 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22075 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22076 #include <signal.h>
22079 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22082 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22091 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22092 #include <signal.h>
22095 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22098 HAVE_SIGHANDLER_T
=0
22104 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22105 /* <sys/types.h> is not needed according to POSIX, but the
22106 <sys/socket.h> in i386-unknown-freebsd4.10 and
22107 powerpc-apple-darwin5.5 required it. */
22108 #include <sys/types.h>
22109 #if HAVE_SYS_SOCKET_H
22110 # include <sys/socket.h>
22111 #elif HAVE_WS2TCPIP_H
22112 # include <ws2tcpip.h>
22116 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22120 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22121 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
22124 # Systems have either "struct sockaddr *" or
22125 # "void *" as the second argument to getpeername
22126 gl_cv_socklen_t_equiv
=
22127 for arg2
in "struct sockaddr" void
; do
22128 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22131 #include <sys/types.h>
22132 #include <sys/socket.h>
22134 int getpeername (int, $arg2 *, $t *);
22139 getpeername (0, 0, &len);
22144 if ac_fn_c_try_compile
"$LINENO"; then :
22145 gl_cv_socklen_t_equiv
="$t"
22147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22148 test "$gl_cv_socklen_t_equiv" != "" && break
22150 test "$gl_cv_socklen_t_equiv" != "" && break
22155 if test "$gl_cv_socklen_t_equiv" = ""; then
22156 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22159 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22161 cat >>confdefs.h
<<_ACEOF
22162 #define socklen_t $gl_cv_socklen_t_equiv
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22169 $as_echo_n "checking for ssize_t... " >&6; }
22170 if test "${gt_cv_ssize_t+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22174 /* end confdefs.h. */
22175 #include <sys/types.h>
22179 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22185 if ac_fn_c_try_compile
"$LINENO"; then :
22190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22193 $as_echo "$gt_cv_ssize_t" >&6; }
22194 if test $gt_cv_ssize_t = no
; then
22196 $as_echo "#define ssize_t int" >>confdefs.h
22204 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>
22205 #include <sys/stat.h>
22207 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22209 cat >>confdefs.h
<<_ACEOF
22210 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22214 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22215 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22216 $as_echo_n "(cached) " >&6
22218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h. */
22221 #include <sys/types.h>
22222 #include <sys/stat.h>
22223 #if HAVE_SYS_TIME_H
22224 # include <sys/time.h>
22227 struct timespec ts;
22240 if ac_fn_c_try_compile
"$LINENO"; then :
22241 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22243 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22248 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22249 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22251 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22255 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>
22256 #include <sys/stat.h>
22258 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22260 cat >>confdefs.h
<<_ACEOF
22261 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22266 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22267 #include <sys/stat.h>
22269 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22271 cat >>confdefs.h
<<_ACEOF
22272 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22277 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>
22278 #include <sys/stat.h>
22280 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22282 cat >>confdefs.h
<<_ACEOF
22283 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22299 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>
22300 #include <sys/stat.h>
22302 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22304 cat >>confdefs.h
<<_ACEOF
22305 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22310 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22311 #include <sys/stat.h>
22313 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22315 cat >>confdefs.h
<<_ACEOF
22316 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22321 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>
22322 #include <sys/stat.h>
22324 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22326 cat >>confdefs.h
<<_ACEOF
22327 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22340 $as_echo_n "checking for working stdalign.h... " >&6; }
22341 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22342 $as_echo_n "(cached) " >&6
22344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22345 /* end confdefs.h. */
22346 #include <stdalign.h>
22347 #include <stddef.h>
22349 /* Test that alignof yields a result consistent with offsetof.
22350 This catches GCC bug 52023
22351 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22353 template <class t> struct alignof_helper { char a; t b; };
22354 # define ao(type) offsetof (alignof_helper<type>, b)
22356 # define ao(type) offsetof (struct { char a; type b; }, b)
22358 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22359 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22360 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22362 /* Test _Alignas only on platforms where gnulib can help. */
22364 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22365 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22366 int alignas (8) alignas_int = 1;
22367 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22378 if ac_fn_c_try_compile
"$LINENO"; then :
22379 gl_cv_header_working_stdalign_h
=yes
22381 gl_cv_header_working_stdalign_h
=no
22383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22386 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22388 if test $gl_cv_header_working_stdalign_h = yes; then
22391 STDALIGN_H
='stdalign.h'
22395 if test -n "$STDALIGN_H"; then
22396 GL_GENERATE_STDALIGN_H_TRUE
=
22397 GL_GENERATE_STDALIGN_H_FALSE
='#'
22399 GL_GENERATE_STDALIGN_H_TRUE
='#'
22400 GL_GENERATE_STDALIGN_H_FALSE
=
22406 NEXT_STDARG_H
='<stdarg.h>'
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22408 $as_echo_n "checking for va_copy... " >&6; }
22409 if test "${gl_cv_func_va_copy+set}" = set; then :
22410 $as_echo_n "(cached) " >&6
22413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22415 #include <stdarg.h>
22421 void (*func) (va_list, va_list) = va_copy;
22428 if ac_fn_c_try_compile
"$LINENO"; then :
22429 gl_cv_func_va_copy
=yes
22431 gl_cv_func_va_copy
=no
22433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22437 $as_echo "$gl_cv_func_va_copy" >&6; }
22438 if test $gl_cv_func_va_copy = no
; then
22439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22441 #if defined _AIX && !defined __GNUC__
22446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22447 $EGREP "vaccine" >/dev
/null
2>&1; then :
22454 if test $gl_aixcc = yes; then
22464 if test $gl_cv_have_include_next = yes; then
22465 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22468 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22469 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22475 #include <stdarg.h>
22479 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22480 *) gl_absname_cpp
="$ac_cpp" ;;
22485 gl_dirsep_regex
='[/\\]'
22488 gl_dirsep_regex
='\/'
22491 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22493 gl_header_literal_regex
=`echo 'stdarg.h' \
22494 | sed -e "$gl_make_literal_regex_sed"`
22495 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22496 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22501 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22502 sed -n "$gl_absolute_header_sed"`'"'
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22507 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22509 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22511 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22513 gl_next_as_first_directive
='<'stdarg.h
'>'
22515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22516 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22518 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22523 if test "$gl_cv_next_stdarg_h" = '""'; then
22524 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22525 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22529 saved_as_echo_n
="$as_echo_n"
22531 if test "${gl_cv_func___va_copy+set}" = set; then :
22532 $as_echo_n "(cached) " >&6
22535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22537 #include <stdarg.h>
22550 if ac_fn_c_try_compile
"$LINENO"; then :
22551 gl_cv_func___va_copy
=yes
22553 gl_cv_func___va_copy
=no
22555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22558 as_echo_n
="$saved_as_echo_n"
22560 if test $gl_cv_func___va_copy = yes; then
22562 $as_echo "#define va_copy __va_copy" >>confdefs.h
22567 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22573 if test -n "$STDARG_H"; then
22574 GL_GENERATE_STDARG_H_TRUE
=
22575 GL_GENERATE_STDARG_H_FALSE
='#'
22577 GL_GENERATE_STDARG_H_TRUE
='#'
22578 GL_GENERATE_STDARG_H_FALSE
=
22586 # Define two additional variables used in the Makefile substitution.
22588 if test "$ac_cv_header_stdbool_h" = yes; then
22591 STDBOOL_H
='stdbool.h'
22594 if test -n "$STDBOOL_H"; then
22595 GL_GENERATE_STDBOOL_H_TRUE
=
22596 GL_GENERATE_STDBOOL_H_FALSE
='#'
22598 GL_GENERATE_STDBOOL_H_TRUE
='#'
22599 GL_GENERATE_STDBOOL_H_FALSE
=
22603 if test "$ac_cv_type__Bool" = yes; then
22614 if test $gt_cv_c_wchar_t = no
; then
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22619 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22620 if test "${gl_cv_decl_null_works+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h. */
22625 #include <stddef.h>
22626 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22636 if ac_fn_c_try_compile
"$LINENO"; then :
22637 gl_cv_decl_null_works
=yes
22639 gl_cv_decl_null_works
=no
22641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22644 $as_echo "$gl_cv_decl_null_works" >&6; }
22645 if test $gl_cv_decl_null_works = no
; then
22650 if test -n "$STDDEF_H"; then
22651 GL_GENERATE_STDDEF_H_TRUE
=
22652 GL_GENERATE_STDDEF_H_FALSE
='#'
22654 GL_GENERATE_STDDEF_H_TRUE
='#'
22655 GL_GENERATE_STDDEF_H_FALSE
=
22658 if test -n "$STDDEF_H"; then
22667 if test $gl_cv_have_include_next = yes; then
22668 gl_cv_next_stddef_h
='<'stddef.h
'>'
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22671 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22672 if test "${gl_cv_next_stddef_h+set}" = set; then :
22673 $as_echo_n "(cached) " >&6
22676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22678 #include <stddef.h>
22682 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22683 *) gl_absname_cpp
="$ac_cpp" ;;
22688 gl_dirsep_regex
='[/\\]'
22691 gl_dirsep_regex
='\/'
22694 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22696 gl_header_literal_regex
=`echo 'stddef.h' \
22697 | sed -e "$gl_make_literal_regex_sed"`
22698 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22704 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22705 sed -n "$gl_absolute_header_sed"`'"'
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22710 $as_echo "$gl_cv_next_stddef_h" >&6; }
22712 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22714 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22716 gl_next_as_first_directive
='<'stddef.h
'>'
22718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22719 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22721 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22740 if test $gl_cv_have_include_next = yes; then
22741 gl_cv_next_stdio_h
='<'stdio.h
'>'
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22744 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22745 if test "${gl_cv_next_stdio_h+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h. */
22755 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22756 *) gl_absname_cpp
="$ac_cpp" ;;
22761 gl_dirsep_regex
='[/\\]'
22764 gl_dirsep_regex
='\/'
22767 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22769 gl_header_literal_regex
=`echo 'stdio.h' \
22770 | sed -e "$gl_make_literal_regex_sed"`
22771 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22772 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22777 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22778 sed -n "$gl_absolute_header_sed"`'"'
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22783 $as_echo "$gl_cv_next_stdio_h" >&6; }
22785 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22787 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22789 gl_next_as_first_directive
='<'stdio.h
'>'
22791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22792 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22794 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22803 cat >>confdefs.h
<<_ACEOF
22804 #define GNULIB_FSCANF 1
22811 cat >>confdefs.h
<<_ACEOF
22812 #define GNULIB_SCANF 1
22848 if test $gl_cv_have_include_next = yes; then
22849 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22852 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22853 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h. */
22859 #include <stdlib.h>
22863 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22864 *) gl_absname_cpp
="$ac_cpp" ;;
22869 gl_dirsep_regex
='[/\\]'
22872 gl_dirsep_regex
='\/'
22875 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22877 gl_header_literal_regex
=`echo 'stdlib.h' \
22878 | sed -e "$gl_make_literal_regex_sed"`
22879 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22880 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22885 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22886 sed -n "$gl_absolute_header_sed"`'"'
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22891 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22893 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22895 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22897 gl_next_as_first_directive
='<'stdlib.h
'>'
22899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22900 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22902 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22912 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22920 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22929 if test "$ac_cv_have_decl_strtoimax" != yes; then
22930 HAVE_DECL_STRTOIMAX
=0
22933 if test $ac_cv_func_strtoimax = yes; then
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22936 $as_echo_n "checking whether strtoimax works... " >&6; }
22937 if test "${gl_cv_func_strtoimax+set}" = set; then :
22938 $as_echo_n "(cached) " >&6
22940 if test "$cross_compiling" = yes; then :
22942 # Guess no on AIX 5.
22943 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22944 # Guess yes otherwise.
22945 *) gl_cv_func_strtoimax
="guessing yes" ;;
22949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22950 /* end confdefs.h. */
22953 #include <string.h>
22954 #include <inttypes.h>
22957 if (sizeof (intmax_t) > sizeof (int))
22959 const char *s = "4294967295";
22963 res = strtoimax (s, &p, 10);
22964 if (p != s + strlen (s))
22968 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22973 const char *s = "2147483647";
22977 res = strtoimax (s, &p, 10);
22978 if (p != s + strlen (s))
22982 if (res != 2147483647)
22989 if ac_fn_c_try_run
"$LINENO"; then :
22990 gl_cv_func_strtoimax
=yes
22992 gl_cv_func_strtoimax
=no
22994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23001 $as_echo "$gl_cv_func_strtoimax" >&6; }
23002 case "$gl_cv_func_strtoimax" in
23003 *no
) REPLACE_STRTOIMAX
=1 ;;
23009 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23018 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23021 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23022 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23028 cat >>confdefs.h
<<_ACEOF
23029 #define HAVE_DECL_STRTOLL $ac_have_decl
23050 if test "$ac_cv_have_decl_strtoumax" != yes; then
23051 HAVE_DECL_STRTOUMAX
=0
23054 if test $ac_cv_func_strtoumax = no
; then
23063 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23066 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23067 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23073 cat >>confdefs.h
<<_ACEOF
23074 #define HAVE_DECL_STRTOULL $ac_have_decl
23093 if test $ac_cv_func_symlink = no
; then
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23097 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23098 if test "${gl_cv_func_symlink_works+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23101 if test "$cross_compiling" = yes; then :
23103 # Guess yes on glibc systems.
23104 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23105 # If we don't know, assume the worst.
23106 *) gl_cv_func_symlink_works
="guessing no" ;;
23110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23112 #include <unistd.h>
23118 if (!symlink ("a", "conftest.link/"))
23120 if (symlink ("conftest.f", "conftest.lnk2"))
23122 else if (!symlink ("a", "conftest.lnk2/"))
23130 if ac_fn_c_try_run
"$LINENO"; then :
23131 gl_cv_func_symlink_works
=yes
23133 gl_cv_func_symlink_works
=no
23135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23139 rm -f conftest.f conftest.link conftest.lnk2
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23142 $as_echo "$gl_cv_func_symlink_works" >&6; }
23143 case "$gl_cv_func_symlink_works" in
23151 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23160 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23178 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23179 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23180 $as_echo_n "(cached) " >&6
23183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23184 /* end confdefs.h. */
23185 #include <sys/select.h>
23194 if ac_fn_c_try_compile
"$LINENO"; then :
23195 gl_cv_header_sys_select_h_selfcontained
=yes
23197 gl_cv_header_sys_select_h_selfcontained
=no
23199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23200 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23202 /* end confdefs.h. */
23203 #include <sys/select.h>
23207 int memset; int bzero;
23213 if ac_fn_c_try_compile
"$LINENO"; then :
23214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23215 /* end confdefs.h. */
23216 #include <sys/select.h>
23222 #define memset nonexistent_memset
23227 void *memset (void *, int, unsigned long);
23229 #define bzero nonexistent_bzero
23234 void bzero (void *, unsigned long);
23243 if ac_fn_c_try_link
"$LINENO"; then :
23246 gl_cv_header_sys_select_h_selfcontained
=no
23248 rm -f core conftest.err conftest.
$ac_objext \
23249 conftest
$ac_exeext conftest.
$ac_ext
23252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23257 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23267 if test $gl_cv_have_include_next = yes; then
23268 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23271 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23272 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23273 $as_echo_n "(cached) " >&6
23276 if test $ac_cv_header_sys_select_h = yes; then
23279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23281 #include <sys/select.h>
23285 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23286 *) gl_absname_cpp
="$ac_cpp" ;;
23291 gl_dirsep_regex
='[/\\]'
23294 gl_dirsep_regex
='\/'
23297 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23299 gl_header_literal_regex
=`echo 'sys/select.h' \
23300 | sed -e "$gl_make_literal_regex_sed"`
23301 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23302 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23307 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23308 sed -n "$gl_absolute_header_sed"`'"'
23310 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23316 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23318 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23320 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23321 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23322 gl_next_as_first_directive
='<'sys
/select.h
'>'
23324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23325 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23327 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23332 if test $ac_cv_header_sys_select_h = yes; then
23333 HAVE_SYS_SELECT_H
=1
23335 HAVE_SYS_SELECT_H
=0
23342 if test $ac_cv_header_sys_socket_h != yes; then
23343 for ac_header
in winsock2.h
23345 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23346 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23347 cat >>confdefs.h
<<_ACEOF
23348 #define HAVE_WINSOCK2_H 1
23356 if test "$ac_cv_header_winsock2_h" = yes; then
23358 UNISTD_H_HAVE_WINSOCK2_H
=1
23359 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23385 if test $gl_cv_have_include_next = yes; then
23386 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23389 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23390 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23391 $as_echo_n "(cached) " >&6
23394 if test $ac_cv_header_sys_stat_h = yes; then
23397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23399 #include <sys/stat.h>
23403 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23404 *) gl_absname_cpp
="$ac_cpp" ;;
23409 gl_dirsep_regex
='[/\\]'
23412 gl_dirsep_regex
='\/'
23415 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23417 gl_header_literal_regex
=`echo 'sys/stat.h' \
23418 | sed -e "$gl_make_literal_regex_sed"`
23419 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23420 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23425 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23426 sed -n "$gl_absolute_header_sed"`'"'
23428 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23434 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23436 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23438 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23440 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23442 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23443 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23445 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23457 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23459 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23463 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23464 #include <sys/stat.h>
23466 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23470 $as_echo "#define nlink_t int" >>confdefs.h
23491 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23493 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23499 cat >>confdefs.h
<<_ACEOF
23500 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23503 if test $ac_cv_have_decl_localtime_r = no
; then
23504 HAVE_DECL_LOCALTIME_R
=0
23508 if test $ac_cv_func_localtime_r = yes; then
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23511 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23512 if test "${gl_cv_time_r_posix+set}" = set; then :
23513 $as_echo_n "(cached) " >&6
23515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23521 /* We don't need to append 'restrict's to the argument types,
23522 even though the POSIX signature has the 'restrict's,
23523 since C99 says they can't affect type compatibility. */
23524 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23526 /* Check the return type is a pointer.
23527 On HP-UX 10 it is 'int'. */
23528 *localtime_r (0, 0);
23534 if ac_fn_c_try_compile
"$LINENO"; then :
23535 gl_cv_time_r_posix
=yes
23537 gl_cv_time_r_posix
=no
23539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23543 $as_echo "$gl_cv_time_r_posix" >&6; }
23544 if test $gl_cv_time_r_posix = yes; then
23545 REPLACE_LOCALTIME_R
=0
23547 REPLACE_LOCALTIME_R
=1
23553 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23562 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23593 if test $gl_cv_have_include_next = yes; then
23594 gl_cv_next_unistd_h
='<'unistd.h
'>'
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23597 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23598 if test "${gl_cv_next_unistd_h+set}" = set; then :
23599 $as_echo_n "(cached) " >&6
23602 if test $ac_cv_header_unistd_h = yes; then
23605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23606 /* end confdefs.h. */
23607 #include <unistd.h>
23611 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23612 *) gl_absname_cpp
="$ac_cpp" ;;
23617 gl_dirsep_regex
='[/\\]'
23620 gl_dirsep_regex
='\/'
23623 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23625 gl_header_literal_regex
=`echo 'unistd.h' \
23626 | sed -e "$gl_make_literal_regex_sed"`
23627 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23633 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23634 sed -n "$gl_absolute_header_sed"`'"'
23636 gl_cv_next_unistd_h
='<'unistd.h
'>'
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23642 $as_echo "$gl_cv_next_unistd_h" >&6; }
23644 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23646 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23648 gl_next_as_first_directive
='<'unistd.h
'>'
23650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23651 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23658 if test $ac_cv_header_unistd_h = yes; then
23677 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23679 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23680 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23681 $as_echo_n "(cached) " >&6
23683 touch conftest.
file
23684 if test "$cross_compiling" = yes; then :
23686 # Guess yes on glibc systems.
23687 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23688 # If we don't know, assume the worst.
23689 *) gl_cv_func_futimesat_works
="guessing no" ;;
23693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23694 /* end confdefs.h. */
23696 #include <stddef.h>
23697 #include <sys/times.h>
23703 int fd = open ("conftest.file", O_RDWR);
23704 if (fd < 0) return 1;
23705 if (futimesat (fd, NULL, NULL)) return 2;
23711 if ac_fn_c_try_run
"$LINENO"; then :
23712 gl_cv_func_futimesat_works
=yes
23714 gl_cv_func_futimesat_works
=no
23716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23720 rm -f conftest.
file
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23723 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23724 case "$gl_cv_func_futimesat_works" in
23728 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23734 gl_gnulib_enabled_dosname
=false
23735 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23736 gl_gnulib_enabled_pathmax
=false
23737 gl_gnulib_enabled_stat
=false
23738 gl_gnulib_enabled_strtoll
=false
23739 gl_gnulib_enabled_strtoull
=false
23740 gl_gnulib_enabled_verify
=false
23741 func_gl_gnulib_m4code_dosname
()
23743 if ! $gl_gnulib_enabled_dosname; then
23744 gl_gnulib_enabled_dosname
=true
23747 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23749 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23752 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23755 func_gl_gnulib_m4code_pathmax
()
23757 if ! $gl_gnulib_enabled_pathmax; then
23761 gl_gnulib_enabled_pathmax
=true
23764 func_gl_gnulib_m4code_stat
()
23766 if ! $gl_gnulib_enabled_stat; then
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23771 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23772 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23775 if test "$cross_compiling" = yes; then :
23777 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23778 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783 #include <sys/stat.h>
23788 struct stat st; return stat (".", &st) != stat ("./", &st);
23793 if ac_fn_c_try_run
"$LINENO"; then :
23794 gl_cv_func_stat_dir_slash
=yes
23796 gl_cv_func_stat_dir_slash
=no
23798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23804 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23806 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23807 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23808 $as_echo_n "(cached) " >&6
23811 # Assume that if we have lstat, we can also check symlinks.
23812 if test $ac_cv_func_lstat = yes; then
23813 ln -s conftest.tmp conftest.lnk
23815 if test "$cross_compiling" = yes; then :
23817 # Guess yes on glibc systems.
23818 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23819 # If we don't know, assume the worst.
23820 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23825 /* end confdefs.h. */
23826 #include <sys/stat.h>
23833 if (!stat ("conftest.tmp/", &st))
23836 if (!stat ("conftest.lnk/", &st))
23845 if ac_fn_c_try_run
"$LINENO"; then :
23846 gl_cv_func_stat_file_slash
=yes
23848 gl_cv_func_stat_file_slash
=no
23850 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23851 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23854 rm -f conftest.tmp conftest.lnk
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23857 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23858 case $gl_cv_func_stat_dir_slash in
23859 *no
) REPLACE_STAT
=1
23861 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23864 case $gl_cv_func_stat_file_slash in
23865 *no
) REPLACE_STAT
=1
23867 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23871 if test $REPLACE_STAT = 1; then
23880 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23898 gl_gnulib_enabled_stat
=true
23899 if test $REPLACE_STAT = 1; then
23900 func_gl_gnulib_m4code_dosname
23902 if test $REPLACE_STAT = 1; then
23903 func_gl_gnulib_m4code_pathmax
23905 if test $REPLACE_STAT = 1; then
23906 func_gl_gnulib_m4code_verify
23910 func_gl_gnulib_m4code_strtoll
()
23912 if ! $gl_gnulib_enabled_strtoll; then
23916 if test "$ac_cv_type_long_long_int" = yes; then
23917 for ac_func
in strtoll
23919 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23920 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23921 cat >>confdefs.h
<<_ACEOF
23922 #define HAVE_STRTOLL 1
23928 if test $ac_cv_func_strtoll = no
; then
23933 if test $HAVE_STRTOLL = 0; then
23942 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23959 gl_gnulib_enabled_strtoll
=true
23962 func_gl_gnulib_m4code_strtoull
()
23964 if ! $gl_gnulib_enabled_strtoull; then
23968 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23969 for ac_func
in strtoull
23971 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23972 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23973 cat >>confdefs.h
<<_ACEOF
23974 #define HAVE_STRTOULL 1
23980 if test $ac_cv_func_strtoull = no
; then
23985 if test $HAVE_STRTOULL = 0; then
23994 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
24011 gl_gnulib_enabled_strtoull
=true
24014 func_gl_gnulib_m4code_verify
()
24016 if ! $gl_gnulib_enabled_verify; then
24017 gl_gnulib_enabled_verify
=true
24020 if test $REPLACE_GETOPT = 1; then
24021 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24023 if test $REPLACE_LSTAT = 1; then
24024 func_gl_gnulib_m4code_dosname
24026 if test $REPLACE_LSTAT = 1; then
24027 func_gl_gnulib_m4code_stat
24029 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24030 func_gl_gnulib_m4code_stat
24032 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24033 func_gl_gnulib_m4code_strtoll
24035 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24036 func_gl_gnulib_m4code_verify
24038 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
24039 func_gl_gnulib_m4code_strtoull
24041 if test $ac_cv_func_strtoumax = no
; then
24042 func_gl_gnulib_m4code_verify
24045 if $gl_gnulib_enabled_dosname; then
24046 gl_GNULIB_ENABLED_dosname_TRUE
=
24047 gl_GNULIB_ENABLED_dosname_FALSE
='#'
24049 gl_GNULIB_ENABLED_dosname_TRUE
='#'
24050 gl_GNULIB_ENABLED_dosname_FALSE
=
24053 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24054 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
24055 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
24057 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
24058 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
24061 if $gl_gnulib_enabled_pathmax; then
24062 gl_GNULIB_ENABLED_pathmax_TRUE
=
24063 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
24065 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
24066 gl_GNULIB_ENABLED_pathmax_FALSE
=
24069 if $gl_gnulib_enabled_stat; then
24070 gl_GNULIB_ENABLED_stat_TRUE
=
24071 gl_GNULIB_ENABLED_stat_FALSE
='#'
24073 gl_GNULIB_ENABLED_stat_TRUE
='#'
24074 gl_GNULIB_ENABLED_stat_FALSE
=
24077 if $gl_gnulib_enabled_strtoll; then
24078 gl_GNULIB_ENABLED_strtoll_TRUE
=
24079 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
24081 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
24082 gl_GNULIB_ENABLED_strtoll_FALSE
=
24085 if $gl_gnulib_enabled_strtoull; then
24086 gl_GNULIB_ENABLED_strtoull_TRUE
=
24087 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
24089 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
24090 gl_GNULIB_ENABLED_strtoull_FALSE
=
24093 if $gl_gnulib_enabled_verify; then
24094 gl_GNULIB_ENABLED_verify_TRUE
=
24095 gl_GNULIB_ENABLED_verify_FALSE
='#'
24097 gl_GNULIB_ENABLED_verify_TRUE
='#'
24098 gl_GNULIB_ENABLED_verify_FALSE
=
24101 # End of code from modules
24122 gl_source_base
='tests'
24123 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
24125 gl_module_indicator_condition
=$gltests_WITNESS
24136 LIBGNU_LIBDEPS
="$gl_libdeps"
24138 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24141 CFLAGS
=$SAVE_CFLAGS
24145 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24148 ## The -headerpad option tells ld (see man page) to leave room at the
24149 ## end of the header for adding load commands. Needed for dumping.
24150 ## 0x690 is the total size of 30 segment load commands (at 56
24151 ## each); under Cocoa 31 commands are required.
24152 if test "$HAVE_NS" = "yes"; then
24153 libs_nsgui
="-framework AppKit"
24154 headerpad_extra
=6C8
24157 headerpad_extra
=690
24159 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24161 ## This is here because src/Makefile.in did some extra fiddling around
24162 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24163 ## #ifndef LD_SWITCH_SYSTEM
24164 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24165 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24166 ## not using gcc, darwin.
24167 ## Because this was done in src/Makefile.in, the resulting part of
24168 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24169 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24170 ## rather than LD_SWITCH_SYSTEM.
24171 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24172 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24175 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24176 ## find X at run-time.
24177 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24178 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24179 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24180 ## had different values in configure (in ac_link) and src/Makefile.in.
24181 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24182 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24184 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24187 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24188 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24197 ## gnu: GNU needs its own crt0.
24198 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24200 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24201 ## library search parth, i.e. it won't search /usr/lib for libc and
24202 ## friends. Using -nostartfiles instead avoids this problem, and
24203 ## will also work on earlier NetBSD releases.
24204 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24206 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24207 ## MkLinux/LinuxPPC needs this.
24208 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24210 case "$canonical" in
24211 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24217 if test "x$ORDINARY_LINK" = "xyes"; then
24221 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24224 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24225 ## freebsd, gnu-* not on powerpc*|s390x*.
24226 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24228 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24229 ## places that are difficult to figure out at make time. Fortunately,
24230 ## these same versions allow you to pass arbitrary flags on to the
24231 ## linker, so there is no reason not to use it as a linker.
24233 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24234 ## searching for libraries in its internal directories, so we have to
24235 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24236 LD_FIRSTFLAG
="-nostdlib"
24239 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24240 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24245 ## FIXME? The logic here is not precisely the same as that above.
24246 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24247 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24249 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24252 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24255 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24256 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24262 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24263 ## immediately undefine it again and redefine it to empty.
24264 ## Was the C_SWITCH_X_SITE part really necessary?
24265 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24271 ## Ask GCC where to find libgcc.a.
24272 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24276 ## Common for all window systems
24277 if test "$window_system" != "none"; then
24279 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24282 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24284 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24291 #### Report on what we decided to do.
24292 #### Report GTK as a toolkit, even if it doesn't use Xt.
24293 #### It makes printing result more understandable as using GTK sets
24294 #### toolkit_scroll_bars to yes by default.
24295 if test "${HAVE_GTK}" = "yes"; then
24300 Configured for \`${canonical}'.
24302 Where should the build process find the source code? ${srcdir}
24303 What compiler should emacs be built with? ${CC} ${CFLAGS}
24304 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24305 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24306 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24307 What window system should Emacs use? ${window_system}
24308 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24310 if test -n "${x_includes}"; then
24311 echo " Where do we find X Windows header files? ${x_includes}"
24313 echo " Where do we find X Windows header files? Standard dirs"
24315 if test -n "${x_libraries}"; then
24316 echo " Where do we find X Windows libraries? ${x_libraries}"
24318 echo " Where do we find X Windows libraries? Standard dirs"
24321 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24322 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24323 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24324 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24325 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24326 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24327 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24328 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24330 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24331 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24332 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24333 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24334 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24335 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24336 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24338 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24339 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24340 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24341 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24343 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24346 if test -n "${EMACSDATA}"; then
24347 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24349 if test -n "${EMACSDOC}"; then
24350 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24355 if test "$HAVE_NS" = "yes"; then
24357 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24358 The installed application will go to nextstep/Emacs.app and can be
24359 run or moved from there."
24360 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24361 echo "The application will be fully self-contained."
24363 echo "The lisp resources for the application will be installed under ${prefix}.
24364 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24365 to run if these resources are not installed."
24370 if test "${opsys}" = "cygwin"; then
24372 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24373 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24379 # Remove any trailing slashes in these variables.
24380 test "${prefix}" != NONE
&&
24381 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24382 test "${exec_prefix}" != NONE
&&
24383 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24385 if test "$HAVE_NS" = "yes"; then
24386 if test "$NS_IMPL_GNUSTEP" = yes; then
24387 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"
24390 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"
24395 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"
24397 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"
24400 opt_makefile
=test
/automated
/Makefile
24402 if test -f $srcdir/${opt_makefile}.
in; then
24403 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24404 ac_config_files
="$ac_config_files test/automated/Makefile"
24409 opt_makefile
=admin
/unidata
/Makefile
24411 if test -f $srcdir/${opt_makefile}.
in; then
24412 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24413 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24418 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24422 ac_config_commands
="$ac_config_commands mkdirs"
24425 ac_config_commands
="$ac_config_commands epaths"
24428 ac_config_commands
="$ac_config_commands gdbinit"
24431 cat >confcache
<<\_ACEOF
24432 # This file is a shell script that caches the results of configure
24433 # tests run on this system so they can be shared between configure
24434 # scripts and configure runs, see configure's option --config-cache.
24435 # It is not useful on other systems. If it contains results you don't
24436 # want to keep, you may remove or edit it.
24438 # config.status only pays attention to the cache file if you give it
24439 # the --recheck option to rerun configure.
24441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24443 # following values.
24447 # The following way of writing the cache mishandles newlines in values,
24448 # but we know of no workaround that is simple, portable, and efficient.
24449 # So, we kill variables containing newlines.
24450 # Ultrix sh set writes to stderr and can't be redirected directly,
24451 # and sets the high bit in the cache file unless we assign to the vars.
24453 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24454 eval ac_val
=\$
$ac_var
24458 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24462 _ | IFS | as_nl
) ;; #(
24463 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24464 *) { eval $ac_var=; unset $ac_var;} ;;
24470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24471 *${as_nl}ac_space
=\
*)
24472 # `set' does not quote correctly, so add quotes: double-quote
24473 # substitution turns \\\\ into \\, and sed turns \\ into \.
24476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24479 # `set' quotes correctly as required by POSIX, so do not add quotes.
24480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24493 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24494 if test -w "$cache_file"; then
24495 test "x$cache_file" != "x/dev/null" &&
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24497 $as_echo "$as_me: updating cache $cache_file" >&6;}
24498 cat confcache
>$cache_file
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24506 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24507 # Let make expand exec_prefix.
24508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24510 DEFS
=-DHAVE_CONFIG_H
24514 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24515 # 1. Remove the extension, and $U if already installed.
24516 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24517 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24519 # will be set to the directory where LIBOBJS objects are built.
24520 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24521 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24523 LIBOBJS
=$ac_libobjs
24525 LTLIBOBJS
=$ac_ltlibobjs
24528 if test -n "$EXEEXT"; then
24530 am__EXEEXT_FALSE
='#'
24532 am__EXEEXT_TRUE
='#'
24536 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24537 as_fn_error
"conditional \"AMDEP\" was never defined.
24538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24541 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24544 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24545 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24548 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24549 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24553 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24554 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24557 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24558 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24561 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24562 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24565 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24566 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24569 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24570 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24573 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24574 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24577 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24578 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24581 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24582 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24585 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24586 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24589 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24590 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24593 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24594 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24597 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24598 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24601 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24602 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24608 if test -n "$gl_LIBOBJS"; then
24609 # Remove the extension.
24610 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24611 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24612 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24613 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24616 gl_LIBOBJS
=$gl_libobjs
24618 gl_LTLIBOBJS
=$gl_ltlibobjs
24624 if test -n "$gltests_LIBOBJS"; then
24625 # Remove the extension.
24626 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24627 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24628 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24629 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24632 gltests_LIBOBJS
=$gltests_libobjs
24634 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24638 : ${CONFIG_STATUS=./config.status}
24640 ac_clean_files_save
=$ac_clean_files
24641 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24647 # Generated by $as_me.
24648 # Run this file to recreate the current configuration.
24649 # Compiler output produced by configure, useful for debugging
24650 # configure, is in config.log if it exists.
24653 ac_cs_recheck=false
24656 SHELL=\${CONFIG_SHELL-$SHELL}
24659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24660 ## -------------------- ##
24661 ## M4sh Initialization. ##
24662 ## -------------------- ##
24664 # Be more Bourne compatible
24665 DUALCASE
=1; export DUALCASE
# for MKS sh
24666 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24670 # is contrary to our usage. Disable this feature.
24671 alias -g '${1+"$@"}'='"$@"'
24672 setopt NO_GLOB_SUBST
24674 case `(set -o) 2>/dev/null` in #(
24686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24687 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24690 # Prefer a ksh shell builtin over an external printf program on Solaris,
24691 # but without wasting forks for bash or zsh.
24692 if test -z "$BASH_VERSION$ZSH_VERSION" \
24693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24694 as_echo='print
-r --'
24695 as_echo_n='print
-rn --'
24696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24697 as_echo='printf %s
\n'
24698 as_echo_n='printf %s
'
24700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24701 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24702 as_echo_n='/usr
/ucb
/echo -n'
24704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24705 as_echo_n_body='eval
24709 expr "X$arg" : "X\\(.*\\)$as_nl";
24710 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24712 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24714 export as_echo_n_body
24715 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24717 export as_echo_body
24718 as_echo='sh
-c $as_echo_body as_echo
'
24721 # The user is always right.
24722 if test "${PATH_SEPARATOR+set}" != set; then
24724 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24725 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24732 # We need space, tab and new line, in precisely that order. Quoting is
24733 # there to prevent editors from complaining about space-tab.
24734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24735 # splitting by setting IFS to empty value.)
24738 # Find who we are. Look in the path if we contain no directory separator.
24740 *[\\/]* ) as_myself=$0 ;;
24741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24742 for as_dir in $PATH
24745 test -z "$as_dir" && as_dir=.
24746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24752 # We did not find ourselves, most probably we were run as `sh COMMAND'
24753 # in which case we are not to be found in the path.
24754 if test "x$as_myself" = x
; then
24757 if test ! -f "$as_myself"; then
24758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24762 # Unset variables that we do not need and which cause bugs (e.g. in
24763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24764 # suppresses any "Segmentation fault" message there. '((' could
24765 # trigger a bug in pdksh 5.2.14.
24766 for as_var
in BASH_ENV ENV MAIL MAILPATH
24767 do eval test x\
${$as_var+set} = xset \
24768 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24781 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24784 # as_fn_error ERROR [LINENO LOG_FD]
24785 # ---------------------------------
24786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24788 # script with status $?, using 1 if that was 0.
24791 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24793 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24796 $as_echo "$as_me: error: $1" >&2
24797 as_fn_exit
$as_status
24801 # as_fn_set_status STATUS
24802 # -----------------------
24803 # Set $? to STATUS, without forking.
24804 as_fn_set_status
()
24807 } # as_fn_set_status
24809 # as_fn_exit STATUS
24810 # -----------------
24811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24815 as_fn_set_status
$1
24821 # Portably unset VAR.
24824 { eval $1=; unset $1;}
24826 as_unset
=as_fn_unset
24827 # as_fn_append VAR VALUE
24828 # ----------------------
24829 # Append the text in VALUE to the end of the definition contained in VAR. Take
24830 # advantage of any shell optimizations that allow amortized linear growth over
24831 # repeated appends, instead of the typical quadratic growth present in naive
24833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24834 eval 'as_fn_append ()
24845 # as_fn_arith ARG...
24846 # ------------------
24847 # Perform arithmetic evaluation on the ARGs, and store the result in the
24848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24849 # must be portable across $(()) and expr.
24850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24851 eval 'as_fn_arith ()
24858 as_val
=`expr "$@" || test $? -eq 1`
24863 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24864 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24870 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24871 as_basename
=basename
24876 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24882 as_me
=`$as_basename -- "$0" ||
24883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24884 X"$0" : 'X\(//\)$' \| \
24885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24887 sed '/^.*\/\([^/][^/]*\)\/*$/{
24901 # Avoid depending upon Character Ranges.
24902 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24903 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24904 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24905 as_cr_digits
='0123456789'
24906 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24908 ECHO_C
= ECHO_N
= ECHO_T
=
24909 case `echo -n x` in #(((((
24911 case `echo 'xy\c'` in
24912 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24914 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24921 rm -f conf$$ conf$$.exe conf$$.
file
24922 if test -d conf$$.dir
; then
24923 rm -f conf$$.dir
/conf$$.
file
24926 mkdir conf$$.dir
2>/dev
/null
24928 if (echo >conf$$.
file) 2>/dev
/null
; then
24929 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24931 # ... but there are two gotchas:
24932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24934 # In both cases, we have to default to `cp -p'.
24935 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24937 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24945 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24946 rmdir conf$$.dir
2>/dev
/null
24951 # Create "$as_dir" as a directory, including parents if necessary.
24956 -*) as_dir
=.
/$as_dir;;
24958 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24962 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24963 *) as_qdir
=$as_dir;;
24965 as_dirs
="'$as_qdir' $as_dirs"
24966 as_dir
=`$as_dirname -- "$as_dir" ||
24967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24968 X"$as_dir" : 'X\(//\)[^/]' \| \
24969 X"$as_dir" : 'X\(//\)$' \| \
24970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24971 $as_echo X"$as_dir" |
24972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24976 /^X\(\/\/\)[^/].*/{
24989 test -d "$as_dir" && break
24991 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24992 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24996 if mkdir
-p .
2>/dev
/null
; then
24997 as_mkdir_p
='mkdir -p "$as_dir"'
24999 test -d .
/-p && rmdir .
/-p
25003 if test -x / >/dev
/null
2>&1; then
25004 as_test_x
='test -x'
25006 if ls -dL / >/dev
/null
2>&1; then
25013 if test -d "$1"; then
25019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25020 ???[sx]*):;;*)false;;esac;fi
25024 as_executable_p
=$as_test_x
25026 # Sed expression to map a string onto a valid CPP name.
25027 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25029 # Sed expression to map a string onto a valid variable name.
25030 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25034 ## ----------------------------------- ##
25035 ## Main body of $CONFIG_STATUS script. ##
25036 ## ----------------------------------- ##
25038 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25041 # Save the log message, to keep $0 and so on meaningful, and to
25042 # report actual input values of CONFIG_FILES etc. instead of their
25043 # values after options handling.
25045 This file was extended by emacs $as_me 24.2.50, which was
25046 generated by GNU Autoconf 2.65. Invocation command line was
25048 CONFIG_FILES = $CONFIG_FILES
25049 CONFIG_HEADERS = $CONFIG_HEADERS
25050 CONFIG_LINKS = $CONFIG_LINKS
25051 CONFIG_COMMANDS = $CONFIG_COMMANDS
25054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25059 case $ac_config_files in *"
25060 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25063 case $ac_config_headers in *"
25064 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25069 # Files that config.status was made for.
25070 config_files="$ac_config_files"
25071 config_headers="$ac_config_headers"
25072 config_commands="$ac_config_commands"
25076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25078 \`$as_me' instantiates files and other configuration actions
25079 from templates according to the current configuration. Unless the files
25080 and actions are specified as TAGs, all are instantiated by default.
25082 Usage: $0 [OPTION]... [TAG]...
25084 -h, --help print this help, then exit
25085 -V, --version print version number and configuration settings, then exit
25086 --config print configuration, then exit
25087 -q, --quiet, --silent
25088 do not print progress messages
25089 -d, --debug don't remove temporary files
25090 --recheck update $as_me by reconfiguring in the same conditions
25091 --file=FILE[:TEMPLATE]
25092 instantiate the configuration file FILE
25093 --header=FILE[:TEMPLATE]
25094 instantiate the configuration header FILE
25096 Configuration files:
25099 Configuration headers:
25102 Configuration commands:
25105 Report bugs to the package provider."
25108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25109 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25111 emacs config.status 24.2.50
25112 configured by $0, generated by GNU Autoconf 2.65,
25113 with options \\"\$ac_cs_config\\"
25115 Copyright (C) 2009 Free Software Foundation, Inc.
25116 This config.status script is free software; the Free Software Foundation
25117 gives unlimited permission to copy, distribute and modify it."
25124 test -n "\$AWK" || AWK=awk
25127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25128 # The default lists apply if the user does not specify any file.
25134 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25135 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25146 # Handling of the options.
25147 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25149 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25150 $as_echo "$ac_cs_version"; exit ;;
25151 --config |
--confi |
--conf |
--con |
--co |
--c )
25152 $as_echo "$ac_cs_config"; exit ;;
25153 --debug |
--debu |
--deb |
--de |
--d |
-d )
25155 --file |
--fil |
--fi |
--f )
25158 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25160 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25161 ac_need_defaults
=false
;;
25162 --header |
--heade |
--head |
--hea )
25165 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25167 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25168 ac_need_defaults
=false
;;
25170 # Conflict between --help and --header
25171 as_fn_error
"ambiguous option: \`$1'
25172 Try \`$0 --help' for more information.";;
25173 --help |
--hel |
-h )
25174 $as_echo "$ac_cs_usage"; exit ;;
25175 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25176 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25179 # This is an error.
25180 -*) as_fn_error
"unrecognized option: \`$1'
25181 Try \`$0 --help' for more information." ;;
25183 *) as_fn_append ac_config_targets
" $1"
25184 ac_need_defaults
=false
;;
25190 ac_configure_extra_args
=
25192 if $ac_cs_silent; then
25194 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25199 if \$ac_cs_recheck; then
25200 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25202 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25203 CONFIG_SHELL='$SHELL'
25204 export CONFIG_SHELL
25209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25213 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25214 ## Running $as_me. ##
25220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25224 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25225 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25231 # Handling of arguments.
25232 for ac_config_target
in $ac_config_targets
25234 case $ac_config_target in
25235 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25236 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25237 "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" ;;
25238 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25239 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25240 "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" ;;
25241 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25242 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25243 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25244 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25245 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25246 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25247 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25248 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25249 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25250 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25251 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25252 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25253 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
25254 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25255 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25256 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25257 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25258 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25260 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25265 # If the user did not use the arguments to specify the items to instantiate,
25266 # then the envvar interface is used. Set only those that are not.
25267 # We use the long form for the default assignment because of an extremely
25268 # bizarre bug on SunOS 4.1.3.
25269 if $ac_need_defaults; then
25270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25271 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25272 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25275 # Have a temporary directory for convenience. Make it in the build tree
25276 # simply because there is no reason against having it here, and in addition,
25277 # creating and moving files from /tmp can sometimes cause problems.
25278 # Hook for its removal unless debugging.
25279 # Note that there is a small window in which the directory will not be cleaned:
25280 # after its creation but before its name has been assigned to `$tmp'.
25284 trap 'exit_status=$?
25285 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25287 trap 'as_fn_exit 1' 1 2 13 15
25289 # Create a (secure) tmp directory for tmp files.
25292 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25293 test -n "$tmp" && test -d "$tmp"
25296 tmp
=.
/conf$$
-$RANDOM
25297 (umask 077 && mkdir
"$tmp")
25298 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25300 # Set up the scripts for CONFIG_FILES section.
25301 # No need to generate them if there are no CONFIG_FILES.
25302 # This happens for instance with `./config.status config.h'.
25303 if test -n "$CONFIG_FILES"; then
25305 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25306 ac_cs_awk_getline
=:
25307 ac_cs_awk_pipe_init
=
25308 ac_cs_awk_read_file
='
25309 while ((getline aline < (F[key])) > 0)
25312 ac_cs_awk_pipe_fini
=
25314 ac_cs_awk_getline
=false
25315 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25316 ac_cs_awk_read_file
='
25318 print "cat " F[key] " &&"
25319 '$ac_cs_awk_pipe_init
25320 # The final `:' finishes the AND list.
25321 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25323 ac_cr
=`echo X | tr X '\015'`
25324 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25325 # But we know of no other shell where ac_cr would be empty at this
25326 # point, so we can use a bashism as a fallback.
25327 if test "x$ac_cr" = x
; then
25328 eval ac_cr
=\$
\'\\r
\'
25330 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25334 ac_cs_awk_cr
=$ac_cr
25337 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25340 # Create commands to substitute file output variables.
25342 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25343 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25344 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25347 } >conf$
$files.sh
&&
25348 . .
/conf$
$files.sh ||
25349 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25350 rm -f conf$
$files.sh
25353 echo "cat >conf$$subs.awk <<_ACEOF" &&
25354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25356 } >conf$$subs.sh ||
25357 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25358 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25360 for ac_last_try in false false false false false :; do
25361 . ./conf$$subs.sh ||
25362 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25364 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25365 if test $ac_delim_n = $ac_delim_num; then
25367 elif $ac_last_try; then
25368 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25370 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25373 rm -f conf$$subs.sh
25375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25376 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25380 s/^/S["/; s
/!.
*/"]=/
25390 s/\(.\{148\}\)..*/\1/
25392 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25397 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25404 s/\(.\{148\}\)..*/\1/
25406 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25410 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25415 ' <conf$$subs.awk | sed '
25420 ' >>$CONFIG_STATUS || ac_write_fail=1
25421 rm -f conf$$subs.awk
25422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25424 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25425 for (key in S) S_is_set[key] = 1
25427 \$ac_cs_awk_pipe_init
25431 nfields = split(line, field, "@
")
25433 len = length(field[1])
25434 for (i = 2; i < nfields; i++) {
25436 keylen = length(key)
25437 if (S_is_set[key]) {
25439 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25440 len += length(value) + length(field[++i])
25445 if (nfields == 3 && !substed) {
25447 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25448 \$ac_cs_awk_read_file
25454 \$ac_cs_awk_pipe_fini
25457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25458 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25459 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25462 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25463 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25466 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25467 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25468 # trailing colons and then remove the whole line if VPATH becomes empty
25469 # (actually we leave an empty line to preserve line numbers).
25470 if test "x
$srcdir" = x.; then
25471 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25472 s/:*\$(srcdir):*/:/
25473 s/:*\${srcdir}:*/:/
25475 s/^\([^=]*=[ ]*\):*/\1/
25481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25482 fi # test -n "$CONFIG_FILES"
25484 # Set up the scripts for CONFIG_HEADERS section.
25485 # No need to generate them if there are no CONFIG_HEADERS.
25486 # This happens for instance with `./config.status Makefile'.
25487 if test -n "$CONFIG_HEADERS"; then
25488 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25492 # Transform confdefs.h into an awk script `defines.awk', embedded as
25493 # here-document in config.status, that substitutes the proper values into
25494 # config.h.in to produce config.h.
25496 # Create a delimiter string that does not exist in confdefs.h, to ease
25497 # handling of long lines.
25499 for ac_last_try in false false :; do
25500 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25501 if test -z "$ac_t"; then
25503 elif $ac_last_try; then
25504 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25506 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25510 # For the awk script, D is an array of macro values keyed by name,
25511 # likewise P contains macro parameters if any. Preserve backslash
25512 # newline sequences.
25514 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25516 s/.\{148\}/&'"$ac_delim"'/g
25519 s/^[ ]*#[ ]*define[ ][ ]*/ /
25526 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25528 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25532 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25533 D["\
1"]=" \
3\\\\\\n
"\\/p
25535 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25540 s/.\{148\}/&'"$ac_delim"'/g
25545 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25548 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25550 ' <confdefs.h | sed '
25551 s/'"$ac_delim"'/"\\\
25552 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25555 for (key in D) D_is_set[key] = 1
25558 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25560 split(line, arg, " ")
25561 if (arg[1] == "#") {
25565 defundef
= substr
(arg
[1], 2)
25568 split(mac1
, mac2
, "(") #)
25570 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25571 if (D_is_set
[macro
]) {
25572 # Preserve the white space surrounding the "#".
25573 print prefix
"define", macro P
[macro
] D
[macro
]
25576 # Replace #undef with comments. This is necessary, for example,
25577 # in the case of _POSIX_SOURCE, which is predefined and required
25578 # on some systems where configure will not decide to define it.
25579 if (defundef
== "undef") {
25580 print
"/*", prefix defundef
, macro
, "*/"
25588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25589 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25590 fi # test -n "$CONFIG_HEADERS"
25593 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25598 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25600 case $ac_mode$ac_tag in
25602 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25603 :[FH
]-) ac_tag
=-:-;;
25604 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25621 -) ac_f
="$tmp/stdin";;
25622 *) # Look for the file first in the build tree, then in the source tree
25623 # (if the path is not absolute). The absolute path cannot be DOS-style,
25624 # because $ac_f cannot contain `:'.
25628 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25630 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25632 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25633 as_fn_append ac_file_inputs
" '$ac_f'"
25636 # Let's still pretend it is `configure' which instantiates (i.e., don't
25637 # use $as_me), people would be surprised to read:
25638 # /* config.h. Generated by config.status. */
25639 configure_input
='Generated from '`
25640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25642 if test x
"$ac_file" != x-
; then
25643 configure_input
="$ac_file. $configure_input"
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25645 $as_echo "$as_me: creating $ac_file" >&6;}
25647 # Neutralize special characters interpreted by sed in replacement strings.
25648 case $configure_input in #(
25649 *\
&* |
*\|
* |
*\\* )
25650 ac_sed_conf_input
=`$as_echo "$configure_input" |
25651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25652 *) ac_sed_conf_input
=$configure_input;;
25656 *:-:* |
*:-) cat >"$tmp/stdin" \
25657 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25662 ac_dir
=`$as_dirname -- "$ac_file" ||
25663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25664 X"$ac_file" : 'X\(//\)[^/]' \| \
25665 X"$ac_file" : 'X\(//\)$' \| \
25666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25667 $as_echo X"$ac_file" |
25668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25672 /^X\(\/\/\)[^/].*/{
25685 as_dir
="$ac_dir"; as_fn_mkdir_p
25689 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25691 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25692 # A ".." for each directory in $ac_dir_suffix.
25693 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25694 case $ac_top_builddir_sub in
25695 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25696 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25699 ac_abs_top_builddir
=$ac_pwd
25700 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25701 # for backward compatibility:
25702 ac_top_builddir
=$ac_top_build_prefix
25705 .
) # We are building in place.
25707 ac_top_srcdir
=$ac_top_builddir_sub
25708 ac_abs_top_srcdir
=$ac_pwd ;;
25709 [\\/]* | ?
:[\\/]* ) # Absolute name.
25710 ac_srcdir
=$srcdir$ac_dir_suffix;
25711 ac_top_srcdir
=$srcdir
25712 ac_abs_top_srcdir
=$srcdir ;;
25713 *) # Relative name.
25714 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25715 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25716 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25718 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25728 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25729 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25731 ac_MKDIR_P
=$MKDIR_P
25733 [\\/$
]* | ?
:[\\/]* ) ;;
25734 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25739 # If the template does not know about datarootdir, expand it.
25740 # FIXME: This hack should be removed a few years after 2.60.
25741 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25752 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25753 *datarootdir
*) ac_datarootdir_seen
=yes;;
25754 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25756 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25759 ac_datarootdir_hack='
25760 s&@datadir@&$datadir&g
25761 s&@docdir@&$docdir&g
25762 s&@infodir@&$infodir&g
25763 s&@localedir@&$localedir&g
25764 s&@mandir@&$mandir&g
25765 s&\\\${datarootdir}&$datarootdir&g' ;;
25769 # Neutralize VPATH when `$srcdir' = `.'.
25770 # Shell code in configure.ac might set extrasub.
25771 # FIXME: do we really want to maintain this feature?
25772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25773 ac_sed_extra="$ac_vpsub
25776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25778 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25779 s|@configure_input@|
$ac_sed_conf_input|
;t t
25780 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25781 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25782 s
&@srcdir@
&$ac_srcdir&;t t
25783 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25784 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25785 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25786 s
&@builddir@
&$ac_builddir&;t t
25787 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25788 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25789 s
&@INSTALL@
&$ac_INSTALL&;t t
25790 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25791 $ac_datarootdir_hack
25793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25794 if $ac_cs_awk_getline; then
25795 $AWK -f "$tmp/subs.
awk"
25797 $AWK -f "$tmp/subs.
awk" | $SHELL
25799 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25802 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25803 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25805 which seems to be undefined. Please make sure it is defined." >&5
25806 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25807 which seems to be undefined. Please make sure it is defined." >&2;}
25811 -) cat "$tmp/out" && rm -f "$tmp/out";;
25812 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25814 || as_fn_error "could not create $ac_file" "$LINENO" 5
25820 if test x"$ac_file" != x-; then
25822 $as_echo "/* $configure_input */" \
25823 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25824 } >"$tmp/config.h" \
25825 || as_fn_error "could not create $ac_file" "$LINENO" 5
25826 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25828 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25831 mv "$tmp/config.h" "$ac_file" \
25832 || as_fn_error "could not create $ac_file" "$LINENO" 5
25835 $as_echo "/* $configure_input */" \
25836 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25837 || as_fn_error "could not create -" "$LINENO" 5
25839 # Compute "$ac_file"'s index
in $config_headers.
25842 for _am_header
in $config_headers :; do
25843 case $_am_header in
25844 $_am_arg |
$_am_arg:* )
25847 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25850 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25851 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25852 X"$_am_arg" : 'X\(//\)[^/]' \| \
25853 X"$_am_arg" : 'X\(//\)$' \| \
25854 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25855 $as_echo X"$_am_arg" |
25856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25860 /^X\(\/\/\)[^/].*/{
25872 s/.*/./; q'`/stamp-h
$_am_stamp_count
25875 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25876 $as_echo "$as_me: executing $ac_file commands" >&6;}
25881 case $ac_file$ac_mode in
25882 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25883 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25884 # are listed without --file. Let's play safe and only enable the eval
25885 # if we detect the quoting.
25886 case $CONFIG_FILES in
25887 *\'*) eval set x
"$CONFIG_FILES" ;;
25888 *) set x
$CONFIG_FILES ;;
25893 # Strip MF so we end up with the name of the file.
25894 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25895 # Check whether this is an Automake generated Makefile or not.
25896 # We used to match only the files named `Makefile.in', but
25897 # some people rename them; so instead we look at the file content.
25898 # Grep'ing the first line is not enough: some people post-process
25899 # each Makefile.in and add a new line on top of each file to say so.
25900 # Grep'ing the whole file is not good either: AIX grep has a line
25901 # limit of 2048, but all sed's we know have understand at least 4000.
25902 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25903 dirpart
=`$as_dirname -- "$mf" ||
25904 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25905 X"$mf" : 'X\(//\)[^/]' \| \
25906 X"$mf" : 'X\(//\)$' \| \
25907 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25913 /^X\(\/\/\)[^/].*/{
25929 # Extract the definition of DEPDIR, am__include, and am__quote
25930 # from the Makefile without running `make'.
25931 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25932 test -z "$DEPDIR" && continue
25933 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25934 test -z "am__include" && continue
25935 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25936 # When using ansi2knr, U may be empty or an underscore; expand it
25937 U
=`sed -n 's/^U = //p' < "$mf"`
25938 # Find all dependency output files, they are included files with
25939 # $(DEPDIR) in their names. We invoke sed twice because it is the
25940 # simplest approach to changing $(DEPDIR) to its actual value in the
25942 for file in `sed -n "
25943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25945 # Make sure the directory exists.
25946 test -f "$dirpart/$file" && continue
25947 fdir
=`$as_dirname -- "$file" ||
25948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25949 X"$file" : 'X\(//\)[^/]' \| \
25950 X"$file" : 'X\(//\)$' \| \
25951 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25952 $as_echo X"$file" |
25953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25957 /^X\(\/\/\)[^/].*/{
25970 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25971 # echo "creating $dirpart/$file"
25972 echo '# dummy' > "$dirpart/$file"
25978 for dir
in etc lisp
; do
25979 test -d ${dir} || mkdir
${dir}
25983 echo creating src
/epaths.h
25984 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25987 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25988 echo creating src
/.gdbinit
25989 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25999 ac_clean_files
=$ac_clean_files_save
26001 test $ac_write_fail = 0 ||
26002 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
26005 # configure is writing to config.log, and then calls config.status.
26006 # config.status does its own redirection, appending to config.log.
26007 # Unfortunately, on DOS this fails, as config.log is still kept open
26008 # by configure, so config.status won't be able to write to it; its
26009 # output is simply discarded. So we exec the FD to /dev/null,
26010 # effectively closing config.log, so it can be properly (re)opened and
26011 # appended to by config.status. When coming back to configure, we
26012 # need to make the FD available again.
26013 if test "$no_create" != yes; then
26015 ac_config_status_args
=
26016 test "$silent" = yes &&
26017 ac_config_status_args
="$ac_config_status_args --quiet"
26019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26022 # would make configure fail if this is the last instruction.
26023 $ac_cs_success || as_fn_exit $?
26025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}