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
1206 INSTALL_ARCH_INDEP_EXTRA
1208 LD_SWITCH_X_SITE_RPATH
1277 INSTALL_STRIP_PROGRAM
1319 program_transform_name
1330 ac_subst_files
='deps_frag
1334 enable_option_checking
1358 with_toolkit_scroll_bars
1370 with_pkg_config_prog
1374 enable_ns_self_contained
1375 enable_locallisppath
1377 enable_check_lisp_object_type
1380 enable_dependency_tracking
1383 enable_link_time_optimization
1386 ac_precious_vars
='build_alias
1398 # Initialize some variables set by options.
1400 ac_init_version
=false
1401 ac_unrecognized_opts
=
1402 ac_unrecognized_sep
=
1403 # The variables have the same names as the options, with
1404 # dashes changed to underlines.
1405 cache_file
=/dev
/null
1412 program_transform_name
=s
,x
,x
,
1420 # Installation directory options.
1421 # These are left unexpanded so users can "make install exec_prefix=/foo"
1422 # and all the variables that are supposed to be based on exec_prefix
1423 # by default will actually change.
1424 # Use braces instead of parens because sh, perl, etc. also accept them.
1425 # (The list follows the same order as the GNU Coding Standards.)
1426 bindir
='${exec_prefix}/bin'
1427 sbindir
='${exec_prefix}/sbin'
1428 libexecdir
='${exec_prefix}/libexec'
1429 datarootdir
='${prefix}/share'
1430 datadir
='${datarootdir}'
1431 sysconfdir
='${prefix}/etc'
1432 sharedstatedir
='${prefix}/com'
1433 localstatedir
='${prefix}/var'
1434 includedir
='${prefix}/include'
1435 oldincludedir
='/usr/include'
1436 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1437 infodir
='${datarootdir}/info'
1442 libdir
='${exec_prefix}/lib'
1443 localedir
='${datarootdir}/locale'
1444 mandir
='${datarootdir}/man'
1450 # If the previous option needs an argument, assign it.
1451 if test -n "$ac_prev"; then
1452 eval $ac_prev=\
$ac_option
1458 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1462 # Accept the important Cygnus configure options, so we can diagnose typos.
1464 case $ac_dashdash$ac_option in
1468 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1470 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1471 bindir
=$ac_optarg ;;
1473 -build |
--build |
--buil |
--bui |
--bu)
1474 ac_prev
=build_alias
;;
1475 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1476 build_alias
=$ac_optarg ;;
1478 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1479 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1480 ac_prev
=cache_file
;;
1481 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1482 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1483 cache_file
=$ac_optarg ;;
1485 --config-cache |
-C)
1486 cache_file
=config.cache
;;
1488 -datadir |
--datadir |
--datadi |
--datad)
1490 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1491 datadir
=$ac_optarg ;;
1493 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1494 |
--dataroo |
--dataro |
--datar)
1495 ac_prev
=datarootdir
;;
1496 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1497 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1498 datarootdir
=$ac_optarg ;;
1500 -disable-* |
--disable-*)
1501 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1504 as_fn_error
"invalid feature name: $ac_useropt"
1505 ac_useropt_orig
=$ac_useropt
1506 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1509 "enable_
$ac_useropt"
1511 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1512 ac_unrecognized_sep
=', ';;
1514 eval enable_
$ac_useropt=no
;;
1516 -docdir |
--docdir |
--docdi |
--doc |
--do)
1518 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1519 docdir
=$ac_optarg ;;
1521 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1523 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1524 dvidir
=$ac_optarg ;;
1526 -enable-* |
--enable-*)
1527 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1530 as_fn_error
"invalid feature name: $ac_useropt"
1531 ac_useropt_orig
=$ac_useropt
1532 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1535 "enable_
$ac_useropt"
1537 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1538 ac_unrecognized_sep
=', ';;
1540 eval enable_
$ac_useropt=\
$ac_optarg ;;
1542 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1543 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1544 |
--exec |
--exe |
--ex)
1545 ac_prev
=exec_prefix
;;
1546 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1547 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1548 |
--exec=* |
--exe=* |
--ex=*)
1549 exec_prefix
=$ac_optarg ;;
1551 -gas |
--gas |
--ga |
--g)
1552 # Obsolete; use --with-gas.
1555 -help |
--help |
--hel |
--he |
-h)
1556 ac_init_help
=long
;;
1557 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1558 ac_init_help
=recursive
;;
1559 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1560 ac_init_help
=short
;;
1562 -host |
--host |
--hos |
--ho)
1563 ac_prev
=host_alias
;;
1564 -host=* |
--host=* |
--hos=* |
--ho=*)
1565 host_alias
=$ac_optarg ;;
1567 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1569 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1571 htmldir
=$ac_optarg ;;
1573 -includedir |
--includedir |
--includedi |
--included |
--include \
1574 |
--includ |
--inclu |
--incl |
--inc)
1575 ac_prev
=includedir
;;
1576 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1577 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1578 includedir
=$ac_optarg ;;
1580 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1582 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1583 infodir
=$ac_optarg ;;
1585 -libdir |
--libdir |
--libdi |
--libd)
1587 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1588 libdir
=$ac_optarg ;;
1590 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1591 |
--libexe |
--libex |
--libe)
1592 ac_prev
=libexecdir
;;
1593 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1594 |
--libexe=* |
--libex=* |
--libe=*)
1595 libexecdir
=$ac_optarg ;;
1597 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1598 ac_prev
=localedir
;;
1599 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1600 localedir
=$ac_optarg ;;
1602 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1603 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1604 ac_prev
=localstatedir
;;
1605 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1606 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1607 localstatedir
=$ac_optarg ;;
1609 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1611 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1612 mandir
=$ac_optarg ;;
1614 -nfp |
--nfp |
--nf)
1615 # Obsolete; use --without-fp.
1618 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1619 |
--no-cr |
--no-c |
-n)
1622 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1623 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1626 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1627 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1628 |
--oldin |
--oldi |
--old |
--ol |
--o)
1629 ac_prev
=oldincludedir
;;
1630 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1631 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1632 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1633 oldincludedir
=$ac_optarg ;;
1635 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1637 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1638 prefix
=$ac_optarg ;;
1640 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1641 |
--program-pre |
--program-pr |
--program-p)
1642 ac_prev
=program_prefix
;;
1643 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1644 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1645 program_prefix
=$ac_optarg ;;
1647 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1648 |
--program-suf |
--program-su |
--program-s)
1649 ac_prev
=program_suffix
;;
1650 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1651 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1652 program_suffix
=$ac_optarg ;;
1654 -program-transform-name |
--program-transform-name \
1655 |
--program-transform-nam |
--program-transform-na \
1656 |
--program-transform-n |
--program-transform- \
1657 |
--program-transform |
--program-transfor \
1658 |
--program-transfo |
--program-transf \
1659 |
--program-trans |
--program-tran \
1660 |
--progr-tra |
--program-tr |
--program-t)
1661 ac_prev
=program_transform_name
;;
1662 -program-transform-name=* |
--program-transform-name=* \
1663 |
--program-transform-nam=* |
--program-transform-na=* \
1664 |
--program-transform-n=* |
--program-transform-=* \
1665 |
--program-transform=* |
--program-transfor=* \
1666 |
--program-transfo=* |
--program-transf=* \
1667 |
--program-trans=* |
--program-tran=* \
1668 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1669 program_transform_name
=$ac_optarg ;;
1671 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1673 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1674 pdfdir
=$ac_optarg ;;
1676 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1678 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1681 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1682 |
-silent |
--silent |
--silen |
--sile |
--sil)
1685 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1687 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1689 sbindir
=$ac_optarg ;;
1691 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1692 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1693 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1695 ac_prev
=sharedstatedir
;;
1696 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1697 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1698 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1700 sharedstatedir
=$ac_optarg ;;
1702 -site |
--site |
--sit)
1704 -site=* |
--site=* |
--sit=*)
1707 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1709 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1710 srcdir
=$ac_optarg ;;
1712 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1713 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1714 ac_prev
=sysconfdir
;;
1715 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1716 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1717 sysconfdir
=$ac_optarg ;;
1719 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1720 ac_prev
=target_alias
;;
1721 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1722 target_alias
=$ac_optarg ;;
1724 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1727 -version |
--version |
--versio |
--versi |
--vers |
-V)
1728 ac_init_version
=: ;;
1731 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1732 # Reject names that are not valid shell variable names.
1733 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1734 as_fn_error
"invalid package name: $ac_useropt"
1735 ac_useropt_orig
=$ac_useropt
1736 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1737 case $ac_user_opts in
1741 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1742 ac_unrecognized_sep
=', ';;
1744 eval with_
$ac_useropt=\
$ac_optarg ;;
1746 -without-* |
--without-*)
1747 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1750 as_fn_error
"invalid package name: $ac_useropt"
1751 ac_useropt_orig
=$ac_useropt
1752 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1757 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1758 ac_unrecognized_sep
=', ';;
1760 eval with_
$ac_useropt=no
;;
1763 # Obsolete; use --with-x.
1766 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1767 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1768 ac_prev
=x_includes
;;
1769 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1770 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1771 x_includes
=$ac_optarg ;;
1773 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1774 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1775 ac_prev
=x_libraries
;;
1776 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1777 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1778 x_libraries
=$ac_optarg ;;
1780 -*) as_fn_error
"unrecognized option: \`$ac_option'
1781 Try \`$0 --help' for more information."
1785 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1786 # Reject names that are not valid shell variable names.
1787 case $ac_envvar in #(
1788 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1789 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1791 eval $ac_envvar=\
$ac_optarg
1792 export $ac_envvar ;;
1795 # FIXME: should be removed in autoconf 3.0.
1796 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1798 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1805 if test -n "$ac_prev"; then
1806 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1807 as_fn_error
"missing argument to $ac_option"
1810 if test -n "$ac_unrecognized_opts"; then
1811 case $enable_option_checking in
1813 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1814 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1818 # Check all directory arguments for consistency.
1819 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1820 datadir sysconfdir sharedstatedir localstatedir includedir \
1821 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1822 libdir localedir mandir
1824 eval ac_val
=\$
$ac_var
1825 # Remove trailing slashes.
1828 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1829 eval $ac_var=\
$ac_val;;
1831 # Be sure to have absolute directory names.
1833 [\\/$
]* | ?
:[\\/]* ) continue;;
1834 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1836 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1839 # There might be people who depend on the old broken behavior: `$host'
1840 # used to hold the argument of --host etc.
1841 # FIXME: To remove some day.
1844 target
=$target_alias
1846 # FIXME: To remove some day.
1847 if test "x$host_alias" != x
; then
1848 if test "x$build_alias" = x
; then
1849 cross_compiling
=maybe
1850 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1851 If a cross compiler is detected then cross compile mode will be used." >&2
1852 elif test "x$build_alias" != "x$host_alias"; then
1858 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1860 test "$silent" = yes && exec 6>/dev
/null
1863 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1864 ac_ls_di
=`ls -di .` &&
1865 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1866 as_fn_error
"working directory cannot be determined"
1867 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1868 as_fn_error
"pwd does not report name of working directory"
1871 # Find the source files, if location was not specified.
1872 if test -z "$srcdir"; then
1873 ac_srcdir_defaulted
=yes
1874 # Try the directory containing this script, then the parent directory.
1875 ac_confdir
=`$as_dirname -- "$as_myself" ||
1876 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1877 X"$as_myself" : 'X\(//\)[^/]' \| \
1878 X"$as_myself" : 'X\(//\)$' \| \
1879 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1880 $as_echo X"$as_myself" |
1881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1899 if test ! -r "$srcdir/$ac_unique_file"; then
1903 ac_srcdir_defaulted
=no
1905 if test ! -r "$srcdir/$ac_unique_file"; then
1906 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1907 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1909 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1911 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1913 # When building in place, set srcdir=.
1914 if test "$ac_abs_confdir" = "$ac_pwd"; then
1917 # Remove unnecessary trailing slashes from srcdir.
1918 # Double slashes in file names in object file debugging info
1919 # mess up M-x gdb in Emacs.
1921 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1923 for ac_var
in $ac_precious_vars; do
1924 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1925 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1926 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1927 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1931 # Report the --help message.
1933 if test "$ac_init_help" = "long"; then
1934 # Omit some internal or obsolete options to make the list less imposing.
1935 # This message is too long to be a string in the A/UX 3.1 sh.
1937 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1939 Usage: $0 [OPTION]... [VAR=VALUE]...
1941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1942 VAR=VALUE. See below for descriptions of some of the useful variables.
1944 Defaults for the options are specified in brackets.
1947 -h, --help display this help and exit
1948 --help=short display options specific to this package
1949 --help=recursive display the short help of all the included packages
1950 -V, --version display version information and exit
1951 -q, --quiet, --silent do not print \`checking...' messages
1952 --cache-file=FILE cache test results in FILE [disabled]
1953 -C, --config-cache alias for \`--cache-file=config.cache'
1954 -n, --no-create do not create output files
1955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1957 Installation directories:
1958 --prefix=PREFIX install architecture-independent files in PREFIX
1959 [$ac_default_prefix]
1960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1963 By default, \`make install' will install all the files in
1964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1966 for instance \`--prefix=\$HOME'.
1968 For better control, use the options below.
1970 Fine tuning of the installation directories:
1971 --bindir=DIR user executables [EPREFIX/bin]
1972 --sbindir=DIR system admin executables [EPREFIX/sbin]
1973 --libexecdir=DIR program executables [EPREFIX/libexec]
1974 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1975 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1976 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1977 --libdir=DIR object code libraries [EPREFIX/lib]
1978 --includedir=DIR C header files [PREFIX/include]
1979 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1980 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1981 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1982 --infodir=DIR info documentation [DATAROOTDIR/info]
1983 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1984 --mandir=DIR man documentation [DATAROOTDIR/man]
1985 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1986 --htmldir=DIR html documentation [DOCDIR]
1987 --dvidir=DIR dvi documentation [DOCDIR]
1988 --pdfdir=DIR pdf documentation [DOCDIR]
1989 --psdir=DIR ps documentation [DOCDIR]
1995 --program-prefix=PREFIX prepend PREFIX to installed program names
1996 --program-suffix=SUFFIX append SUFFIX to installed program names
1997 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2000 --x-includes=DIR X include files are
in DIR
2001 --x-libraries=DIR X library files are
in DIR
2004 --build=BUILD configure
for building on BUILD
[guessed
]
2005 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2009 if test -n "$ac_init_help"; then
2010 case $ac_init_help in
2011 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2016 --disable-option-checking ignore unrecognized
--enable/--with options
2017 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2018 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2019 --disable-ns-self-contained
2020 disable self contained build under NeXTstep
2021 --enable-locallisppath=PATH
2022 directories Emacs should search
for lisp files
2023 specific to this site
2024 --enable-checking[=LIST
]
2025 enable expensive run-time checks. With LIST
, enable
2026 only specific categories of checks. Categories are
:
2027 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2028 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2029 --enable-check-lisp-object-type
2030 enable compile
time checks
for the Lisp_Object data
2031 type. This is useful
for development
for catching
2032 certain types of bugs.
2033 --enable-profiling build emacs with profiling support. This might not
2034 work on all platforms
2035 --enable-autodepend automatically generate dependencies to .h-files.
2036 Requires GNU Make and Gcc. Enabled
if GNU Make and
2038 --disable-dependency-tracking speeds up one-time build
2039 --enable-dependency-tracking do not reject slow dependency extractors
2040 --disable-largefile omit support
for large files
2041 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2042 developers
, and may generate false alarms when used
2043 with older or non-GNU development tools.
2044 --enable-link-time-optimization
2045 build emacs with link-time optimization. This is
2046 supported only
for GCC since
4.5.0.
2049 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2050 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2051 --without-all omit almost all features and build small executable
2052 with minimal dependencies
2053 --without-pop don
't support POP mail retrieval with movemail
2054 --with-kerberos support Kerberos-authenticated POP
2055 --with-kerberos5 support Kerberos version 5 authenticated POP
2056 --with-hesiod support Hesiod to get the POP server host
2057 --with-mmdf support MMDF mailboxes
2058 --with-mail-unlink unlink, rather than empty, mail spool after reading
2059 --with-mailhost=HOSTNAME
2060 string giving default POP mail host
2061 --without-sound don't compile with sound support
2062 --without-sync-input process async input synchronously
2063 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2064 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-sync-input was given.
3935 if test "${with_sync_input+set}" = set; then :
3936 withval
=$with_sync_input;
3938 with_sync_input
=$with_features
3941 if test "$with_sync_input" = yes; then
3943 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3948 # Check whether --with-x-toolkit was given.
3949 if test "${with_x_toolkit+set}" = set; then :
3950 withval
=$with_x_toolkit; case "${withval}" in
3951 y | ye |
yes ) val
=gtk
;;
3953 l | lu | luc | luci | lucid
) val
=lucid
;;
3954 a |
at | ath | athe | athen | athena
) val
=athena
;;
3955 m | mo | mot | moti | motif
) val
=motif
;;
3956 g | gt | gtk
) val
=gtk
;;
3959 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3960 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3961 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3970 # Check whether --with-wide-int was given.
3971 if test "${with_wide_int+set}" = set; then :
3972 withval
=$with_wide_int;
3977 if test "$with_wide_int" = yes; then
3979 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3984 # Check whether --with-xpm was given.
3985 if test "${with_xpm+set}" = set; then :
3988 with_xpm
=$with_features
3992 # Check whether --with-jpeg was given.
3993 if test "${with_jpeg+set}" = set; then :
3996 with_jpeg
=$with_features
4000 # Check whether --with-tiff was given.
4001 if test "${with_tiff+set}" = set; then :
4004 with_tiff
=$with_features
4008 # Check whether --with-gif was given.
4009 if test "${with_gif+set}" = set; then :
4012 with_gif
=$with_features
4016 # Check whether --with-png was given.
4017 if test "${with_png+set}" = set; then :
4020 with_png
=$with_features
4024 # Check whether --with-rsvg was given.
4025 if test "${with_rsvg+set}" = set; then :
4028 with_rsvg
=$with_features
4032 # Check whether --with-xml2 was given.
4033 if test "${with_xml2+set}" = set; then :
4036 with_xml2
=$with_features
4040 # Check whether --with-imagemagick was given.
4041 if test "${with_imagemagick+set}" = set; then :
4042 withval
=$with_imagemagick;
4044 with_imagemagick
=$with_features
4049 # Check whether --with-xft was given.
4050 if test "${with_xft+set}" = set; then :
4053 with_xft
=$with_features
4057 # Check whether --with-libotf was given.
4058 if test "${with_libotf+set}" = set; then :
4059 withval
=$with_libotf;
4061 with_libotf
=$with_features
4065 # Check whether --with-m17n-flt was given.
4066 if test "${with_m17n_flt+set}" = set; then :
4067 withval
=$with_m17n_flt;
4069 with_m17n_flt
=$with_features
4074 # Check whether --with-toolkit-scroll-bars was given.
4075 if test "${with_toolkit_scroll_bars+set}" = set; then :
4076 withval
=$with_toolkit_scroll_bars;
4078 with_toolkit_scroll_bars
=$with_features
4082 # Check whether --with-xaw3d was given.
4083 if test "${with_xaw3d+set}" = set; then :
4084 withval
=$with_xaw3d;
4086 with_xaw3d
=$with_features
4090 # Check whether --with-xim was given.
4091 if test "${with_xim+set}" = set; then :
4094 with_xim
=$with_features
4098 # Check whether --with-ns was given.
4099 if test "${with_ns+set}" = set; then :
4107 # Check whether --with-gpm was given.
4108 if test "${with_gpm+set}" = set; then :
4111 with_gpm
=$with_features
4115 # Check whether --with-dbus was given.
4116 if test "${with_dbus+set}" = set; then :
4119 with_dbus
=$with_features
4123 # Check whether --with-gconf was given.
4124 if test "${with_gconf+set}" = set; then :
4125 withval
=$with_gconf;
4127 with_gconf
=$with_features
4131 # Check whether --with-gsettings was given.
4132 if test "${with_gsettings+set}" = set; then :
4133 withval
=$with_gsettings;
4135 with_gsettings
=$with_features
4139 # Check whether --with-selinux was given.
4140 if test "${with_selinux+set}" = set; then :
4141 withval
=$with_selinux;
4143 with_selinux
=$with_features
4147 # Check whether --with-gnutls was given.
4148 if test "${with_gnutls+set}" = set; then :
4149 withval
=$with_gnutls;
4151 with_gnutls
=$with_features
4155 ## For the times when you want to build Emacs but don't have
4156 ## a suitable makeinfo, and can live without the manuals.
4158 # Check whether --with-makeinfo was given.
4159 if test "${with_makeinfo+set}" = set; then :
4160 withval
=$with_makeinfo;
4162 with_makeinfo
=$with_features
4166 ## Makefile.in needs the cache file name.
4169 ## This is an option because I do not know if all info/man support
4170 ## compressed files, nor how to test if they do so.
4172 # Check whether --with-compress-info was given.
4173 if test "${with_compress_info+set}" = set; then :
4174 withval
=$with_compress_info;
4176 with_compress_info
=$with_features
4179 if test $with_compress_info = yes; then
4187 # Check whether --with-pkg-config-prog was given.
4188 if test "${with_pkg_config_prog+set}" = set; then :
4189 withval
=$with_pkg_config_prog;
4192 if test "X${with_pkg_config_prog}" != X
; then
4193 if test "${with_pkg_config_prog}" != yes; then
4194 PKG_CONFIG
="${with_pkg_config_prog}"
4200 # Check whether --with-crt-dir was given.
4201 if test "${with_crt_dir+set}" = set; then :
4202 withval
=$with_crt_dir;
4205 CRT_DIR
="${with_crt_dir}"
4208 # Check whether --with-gameuser was given.
4209 if test "${with_gameuser+set}" = set; then :
4210 withval
=$with_gameuser;
4213 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4214 && gameuser
="${with_gameuser}"
4215 test "X$gameuser" = X
&& gameuser
=games
4218 # Check whether --with-gnustep-conf was given.
4219 if test "${with_gnustep_conf+set}" = set; then :
4220 withval
=$with_gnustep_conf;
4223 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4224 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4225 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4226 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4228 # Check whether --enable-ns-self-contained was given.
4229 if test "${enable_ns_self_contained+set}" = set; then :
4230 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4232 EN_NS_SELF_CONTAINED
=yes
4236 # Check whether --enable-locallisppath was given.
4237 if test "${enable_locallisppath+set}" = set; then :
4238 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4240 elif test "${enableval}" != "yes"; then
4241 locallisppath
=${enableval}
4246 # Check whether --enable-checking was given.
4247 if test "${enable_checking+set}" = set; then :
4248 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4251 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4252 for check
in $ac_checking_flags
4255 # these set all the flags to specific states
4256 yes) ac_enable_checking
=1 ;;
4257 no
) ac_enable_checking
= ;
4258 ac_gc_check_stringbytes
= ;
4259 ac_gc_check_string_overrun
= ;
4260 ac_gc_check_string_free_list
= ;
4261 ac_xmalloc_overrun
= ;
4262 ac_gc_check_cons_list
= ;
4264 all
) ac_enable_checking
=1 ;
4265 ac_gc_check_stringbytes
=1 ;
4266 ac_gc_check_string_overrun
=1 ;
4267 ac_gc_check_string_free_list
=1 ;
4268 ac_xmalloc_overrun
=1 ;
4269 ac_gc_check_cons_list
=1 ;
4270 ac_glyphs_debug
=1 ;;
4271 # these enable particular checks
4272 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4273 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4274 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4275 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4276 conslist
) ac_gc_check_cons_list
=1 ;;
4277 glyphs
) ac_glyphs_debug
=1 ;;
4278 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4283 if test x
$ac_enable_checking != x
; then
4285 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4288 if test x
$ac_gc_check_stringbytes != x
; then
4290 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4293 if test x
$ac_gc_check_string_overrun != x
; then
4295 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4298 if test x
$ac_gc_check_string_free_list != x
; then
4300 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4303 if test x
$ac_xmalloc_overrun != x
; then
4305 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4308 if test x
$ac_gc_check_cons_list != x
; then
4310 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4313 if test x
$ac_glyphs_debug != x
; then
4315 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4319 # Check whether --enable-check-lisp-object-type was given.
4320 if test "${enable_check_lisp_object_type+set}" = set; then :
4321 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4323 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4330 # Check whether --enable-profiling was given.
4331 if test "${enable_profiling+set}" = set; then :
4332 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4335 if test x
$ac_enable_profiling != x
; then
4336 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4342 # Check whether --enable-autodepend was given.
4343 if test "${enable_autodepend+set}" = set; then :
4344 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4346 ac_enable_autodepend
=yes
4350 #### Make srcdir absolute, if it isn't already. It's important to
4351 #### avoid running the path through pwd unnecessarily, since pwd can
4352 #### give you automounter prefixes, which can go away. We do all this
4353 #### so Emacs can find its files when run uninstalled.
4354 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4359 ## We may be able to use the $PWD environment variable to make this
4360 ## absolute. But sometimes PWD is inaccurate.
4361 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4362 ## but that tested only for a well-formed and valid PWD,
4363 ## it did not object when PWD was well-formed and valid but just wrong.
4364 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4368 srcdir
="`(cd ${srcdir}; pwd)`"
4371 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4374 ### Canonicalize the configuration name.
4376 # Make sure we can run config.sub.
4377 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4378 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4381 $as_echo_n "checking build system type... " >&6; }
4382 if test "${ac_cv_build+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4385 ac_build_alias
=$build_alias
4386 test "x$ac_build_alias" = x
&&
4387 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4388 test "x$ac_build_alias" = x
&&
4389 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4390 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4391 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4395 $as_echo "$ac_cv_build" >&6; }
4396 case $ac_cv_build in
4398 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4401 ac_save_IFS
=$IFS; IFS
='-'
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4411 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4415 $as_echo_n "checking host system type... " >&6; }
4416 if test "${ac_cv_host+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4419 if test "x$host_alias" = x
; then
4420 ac_cv_host
=$ac_cv_build
4422 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4423 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4428 $as_echo "$ac_cv_host" >&6; }
4431 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4434 ac_save_IFS
=$IFS; IFS
='-'
4440 # Remember, the first character of IFS is used to create $*,
4441 # except with old shells:
4444 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4448 configuration
=${host_alias-${build_alias-$host}}
4452 ### If you add support for a new configuration, add code to this
4453 ### switch statement to recognize your configuration name and select
4454 ### the appropriate operating system file.
4456 ### You would hope that you could choose an s/*.h
4457 ### file based on the operating system portion. However, it turns out
4458 ### that each s/*.h file is pretty manufacturer-specific.
4459 ### So we basically have to have a special case for each
4460 ### configuration name.
4462 ### As far as handling version numbers on operating systems is
4463 ### concerned, make sure things will fail in a fixable way. If
4464 ### /etc/MACHINES doesn't say anything about version numbers, be
4465 ### prepared to handle anything reasonably. If version numbers
4466 ### matter, be sure /etc/MACHINES says something about it.
4468 opsys
='' unported
=no
4469 case "${canonical}" in
4471 ## GNU/Linux and similar ports
4481 ## FreeBSD kernel + glibc based userland
4496 ## Apple Darwin / Mac OS X
4498 case "${canonical}" in
4505 ## Use fink packages if available.
4506 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4507 ## if test -d /sw/include && test -d /sw/lib; then
4508 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4509 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4513 ## HP 9000 series 700 and 800, running HP/UX
4514 hppa
*-hp-hpux10.2
* )
4517 hppa
*-hp-hpux1[1-9]* )
4519 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4523 rs6000-ibm-aix4.
[23]* )
4526 powerpc-ibm-aix4.
[23]* )
4529 rs6000-ibm-aix
[56]* )
4532 powerpc-ibm-aix
[56]* )
4536 ## Silicon Graphics machines
4540 # Without defining _LANGUAGE_C, things get masked out in the headers
4541 # so that, for instance, grepping for `free' in stdlib.h fails and
4542 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4543 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4548 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4549 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4550 case "${canonical}" in
4552 amd64-
*-*|x86_64-
*-*) ;;
4556 case "${canonical}" in
4557 *-sunos5.6
* |
*-solaris2.6
* )
4561 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4563 emacs_check_sunpro_c
=yes
4565 *-sunos5* |
*-solaris* )
4567 emacs_check_sunpro_c
=yes
4570 ## Watch out for a compiler that we know will not work.
4571 case "${canonical}" in
4572 *-solaris* |
*-sunos5* )
4573 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4574 ## /usr/ucb/cc doesn't work;
4575 ## we should find some other compiler that does work.
4583 ## Intel 386 machines where we don't care about the manufacturer.
4585 case "${canonical}" in
4586 *-cygwin ) opsys
=cygwin
;;
4587 *-darwin* ) opsys
=darwin
;;
4588 *-sysv4.2uw
* ) opsys
=unixware
;;
4589 *-sysv5uw* ) opsys
=unixware
;;
4590 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4591 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4600 ### If the code above didn't choose an operating system, just choose
4601 ### an operating system based on the configuration name. You really
4602 ### only want to use this when you have no idea what the right
4603 ### operating system is; if you know what operating systems a machine
4604 ### runs, it's cleaner to make it explicit in the case statement
4606 if test x
"${opsys}" = x
; then
4607 case "${canonical}" in
4608 *-gnu* ) opsys
=gnu
;;
4617 if test $unported = yes; then
4618 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4619 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4623 #### Choose a compiler.
4626 ac_cpp
='$CPP $CPPFLAGS'
4627 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4632 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if test "${ac_cv_prog_CC+set}" = set; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$CC"; then
4639 ac_cv_prog_CC
="$CC" # Let the user override the test.
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_exec_ext
in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 if test -n "$CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4661 $as_echo "$CC" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4669 if test -z "$ac_cv_prog_CC"; then
4671 # Extract the first word of "gcc", so it can be a program name with args.
4672 set dummy gcc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$ac_ct_CC"; then
4679 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_ac_ct_CC
="gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4699 if test -n "$ac_ct_CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4701 $as_echo "$ac_ct_CC" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4707 if test "x$ac_ct_CC" = x
; then
4710 case $cross_compiling:$ac_tool_warned in
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714 ac_tool_warned
=yes ;;
4722 if test -z "$CC"; then
4723 if test -n "$ac_tool_prefix"; then
4724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4725 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_CC+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$CC"; then
4732 ac_cv_prog_CC
="$CC" # Let the user override the test.
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_exec_ext
in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test -n "$CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4754 $as_echo "$CC" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4763 if test -z "$CC"; then
4764 # Extract the first word of "cc", so it can be a program name with args.
4765 set dummy cc
; ac_word
=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_CC+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC
="$CC" # Let the user override the test.
4775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir
=.
4780 for ac_exec_ext
in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4783 ac_prog_rejected
=yes
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 if test $ac_prog_rejected = yes; then
4795 # We found a bogon in the path, so make sure we never use it.
4796 set dummy
$ac_cv_prog_CC
4798 if test $# != 0; then
4799 # We chose a different compiler from the bogus one.
4800 # However, it has the same basename, so the bogon will be chosen
4801 # first if we set CC to just the basename; use the full file name.
4803 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4809 if test -n "$CC"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4811 $as_echo "$CC" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4819 if test -z "$CC"; then
4820 if test -n "$ac_tool_prefix"; then
4821 for ac_prog
in cl.exe
4823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4824 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_CC+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC
="$CC" # Let the user override the test.
4833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir
=.
4838 for ac_exec_ext
in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 if test -n "$CC"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4853 $as_echo "$CC" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 test -n "$CC" && break
4863 if test -z "$CC"; then
4865 for ac_prog
in cl.exe
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy
$ac_prog; ac_word
=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$ac_ct_CC"; then
4875 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir
=.
4882 for ac_exec_ext
in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_ac_ct_CC
="$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4895 if test -n "$ac_ct_CC"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4897 $as_echo "$ac_ct_CC" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4904 test -n "$ac_ct_CC" && break
4907 if test "x$ac_ct_CC" = x
; then
4910 case $cross_compiling:$ac_tool_warned in
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4914 ac_tool_warned
=yes ;;
4923 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4925 as_fn_error
"no acceptable C compiler found in \$PATH
4926 See \`config.log' for more details." "$LINENO" 5; }
4928 # Provide some information about the compiler.
4929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4932 for ac_option
in --version -v -V -qversion; do
4933 { { ac_try
="$ac_compiler $ac_option >&5"
4935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939 $as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 if test -s conftest.err; then
4944 ... rest of stderr output deleted ...
4945 10q' conftest.err >conftest.er1
4946 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4950 test $ac_status = 0; }
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4964 ac_clean_files_save=$ac_clean_files
4965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4966 # Try to create an executable without -o first, disregard a.out.
4967 # It will help us diagnose broken compilers, and finding out an intuition
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4970 $as_echo_n "checking whether the C compiler works... " >&6; }
4971 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4973 # The possible output files:
4974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4977 for ac_file in $ac_files
4980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4986 if { { ac_try="$ac_link_default"
4988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4989 *) ac_try_echo
=$ac_try;;
4991 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993 (eval "$ac_link_default") 2>&5
4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }; then :
4997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4998 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4999 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5000 # so that the user can short-circuit this test for compilers unknown to
5002 for ac_file
in $ac_files ''
5004 test -f "$ac_file" ||
continue
5006 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5009 # We found the default executable, but exeext='' is most
5013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5015 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5017 # We set ac_cv_exeext here because the later test for it is not
5018 # safe: cross compilers may not add the suffix if given an `-o'
5019 # argument, so we may need to know it at that point already.
5020 # Even if this section looks crufty: it has the advantage of
5027 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5032 if test -z "$ac_file"; then :
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.
$ac_ext >&5
5038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040 { as_fn_set_status
77
5041 as_fn_error
"C compiler cannot create executables
5042 See \`config.log' for more details." "$LINENO" 5; }; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5045 $as_echo "yes" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5048 $as_echo_n "checking for C compiler default output file name... " >&6; }
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5050 $as_echo "$ac_file" >&6; }
5051 ac_exeext
=$ac_cv_exeext
5053 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5054 ac_clean_files
=$ac_clean_files_save
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5056 $as_echo_n "checking for suffix of executables... " >&6; }
5057 if { { ac_try
="$ac_link"
5059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5063 $as_echo "$ac_try_echo"; } >&5
5064 (eval "$ac_link") 2>&5
5066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5067 test $ac_status = 0; }; then :
5068 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5069 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5070 # work properly (i.e., refer to `conftest.exe'), while it won't with
5072 for ac_file
in conftest.exe conftest conftest.
*; do
5073 test -f "$ac_file" ||
continue
5075 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5076 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5085 See \`config.log' for more details." "$LINENO" 5; }
5087 rm -f conftest conftest
$ac_cv_exeext
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5089 $as_echo "$ac_cv_exeext" >&6; }
5091 rm -f conftest.
$ac_ext
5092 EXEEXT
=$ac_cv_exeext
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5100 FILE *f = fopen ("conftest.out", "w");
5101 return ferror (f) || fclose (f) != 0;
5107 ac_clean_files
="$ac_clean_files conftest.out"
5108 # Check that the compiler produces executables we can run. If not, either
5109 # the compiler is broken, or we cross compile.
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5111 $as_echo_n "checking whether we are cross compiling... " >&6; }
5112 if test "$cross_compiling" != yes; then
5113 { { ac_try
="$ac_link"
5115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119 $as_echo "$ac_try_echo"; } >&5
5120 (eval "$ac_link") 2>&5
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }
5124 if { ac_try='./conftest$ac_cv_exeext'
5125 { { case "(($ac_try" in
5126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5127 *) ac_try_echo
=$ac_try;;
5129 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5130 $as_echo "$ac_try_echo"; } >&5
5131 (eval "$ac_try") 2>&5
5133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134 test $ac_status = 0; }; }; then
5137 if test "$cross_compiling" = maybe
; then
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 as_fn_error
"cannot run C compiled programs.
5143 If you meant to cross compile, use \`--host'.
5144 See \`config.log' for more details." "$LINENO" 5; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5149 $as_echo "$cross_compiling" >&6; }
5151 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5152 ac_clean_files
=$ac_clean_files_save
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5154 $as_echo_n "checking for suffix of object files... " >&6; }
5155 if test "${ac_cv_objext+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5169 rm -f conftest.o conftest.obj
5170 if { { ac_try
="$ac_compile"
5172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compile") 2>&5
5179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5180 test $ac_status = 0; }; then :
5181 for ac_file in conftest.o conftest.obj conftest.*; do
5182 test -f "$ac_file" || continue;
5184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 $as_echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error "cannot compute suffix of object files
: cannot compile
5196 See \
`config.log' for more details." "$LINENO" 5; }
5198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5201 $as_echo "$ac_cv_objext" >&6; }
5202 OBJEXT=$ac_cv_objext
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5206 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5223 if ac_fn_c_try_compile "$LINENO"; then :
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5234 if test $ac_compiler_gnu = yes; then
5239 ac_test_CFLAGS=${CFLAGS+set}
5240 ac_save_CFLAGS=$CFLAGS
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5243 if test "${ac_cv_prog_cc_g+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5246 ac_save_c_werror_flag=$ac_c_werror_flag
5247 ac_c_werror_flag=yes
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5261 if ac_fn_c_try_compile "$LINENO"; then :
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5276 if ac_fn_c_try_compile "$LINENO"; then :
5279 ac_c_werror_flag=$ac_save_c_werror_flag
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5292 if ac_fn_c_try_compile "$LINENO"; then :
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 ac_c_werror_flag=$ac_save_c_werror_flag
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5303 $as_echo "$ac_cv_prog_cc_g" >&6; }
5304 if test "$ac_test_CFLAGS" = set; then
5305 CFLAGS=$ac_save_CFLAGS
5306 elif test $ac_cv_prog_cc_g = yes; then
5307 if test "$GCC" = yes; then
5313 if test "$GCC" = yes; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5321 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5324 ac_cv_prog_cc_c89=no
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5330 #include <sys/types.h>
5331 #include <sys/stat.h>
5332 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5333 struct buf { int x; };
5334 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5335 static char *e (p, i)
5341 static char *f (char * (*g) (char **, int), char **p, ...)
5346 s = g (p, va_arg (v,int));
5351 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5352 function prototypes and stuff, but not '\xHH' hex character constants.
5353 These don't provoke an error unfortunately, instead are silently treated
5354 as 'x'. The following induces an error, until -std is added to get
5355 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5356 array size at least. It's necessary to write '\x00'==0 to get something
5357 that's true only with -std. */
5358 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5360 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5361 inside strings and character constants. */
5363 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5365 int test (int i, double x);
5366 struct s1 {int (*f) (int a);};
5367 struct s2 {int (*f) (double a);};
5368 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5374 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5379 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5380 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5382 CC="$ac_save_CC $ac_arg"
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_prog_cc_c89=$ac_arg
5386 rm -f core conftest.err conftest.$ac_objext
5387 test "x$ac_cv_prog_cc_c89" != "xno" && break
5389 rm -f conftest.$ac_ext
5394 case "x$ac_cv_prog_cc_c89" in
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5397 $as_echo "none needed" >&6; } ;;
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5400 $as_echo "unsupported" >&6; } ;;
5402 CC="$CC $ac_cv_prog_cc_c89"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5404 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5406 if test "x$ac_cv_prog_cc_c89" != xno; then :
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415 DEPDIR="${am__leading_dot}deps"
5417 ac_config_commands="$ac_config_commands depfiles"
5420 am_make=${MAKE-make}
5421 cat > confinc << 'END'
5423 @echo this is the am__doit target
5426 # If we don't find an include directive, just comment out the code.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5428 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5432 # First try GNU make style include.
5433 echo "include confinc" > confmf
5434 # Ignore all kinds of additional output from `make'.
5435 case `$am_make -s -f confmf 2> /dev/null` in #(
5436 *the\ am__doit\ target*)
5442 # Now try BSD make style include.
5443 if test "$am__include" = "#"; then
5444 echo '.include
"confinc"' > confmf
5445 case `$am_make -s -f confmf 2> /dev/null` in #(
5446 *the\ am__doit\ target*)
5447 am__include=.include
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5456 $as_echo "$_am_result" >&6; }
5457 rm -f confinc confmf
5459 # Check whether --enable-dependency-tracking was given.
5460 if test "${enable_dependency_tracking+set}" = set; then :
5461 enableval=$enable_dependency_tracking;
5464 if test "x$enable_dependency_tracking" != xno; then
5465 am_depcomp="$ac_aux_dir/depcomp"
5468 if test "x$enable_dependency_tracking" != xno
; then
5478 depcc
="$CC" am_compiler_list
=
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5481 $as_echo_n "checking dependency style of $depcc... " >&6; }
5482 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5486 # We make a subdir and do the tests there. Otherwise we can end up
5487 # making bogus files that we don't know about and never remove. For
5488 # instance it was reported that on HP-UX the gcc test will end up
5489 # making a dummy file named `D' -- because `-MD' means `put the output
5492 # Copy depcomp to subdir because otherwise we won't find it if we're
5493 # using a relative directory.
5494 cp "$am_depcomp" conftest.dir
5496 # We will build objects and dependencies in a subdirectory because
5497 # it helps to detect inapplicable dependency modes. For instance
5498 # both Tru64's cc and ICC support -MD to output dependencies as a
5499 # side effect of compilation, but ICC will put the dependencies in
5500 # the current directory while Tru64 will put them in the object
5504 am_cv_CC_dependencies_compiler_type
=none
5505 if test "$am_compiler_list" = ""; then
5506 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5509 case " $depcc " in #(
5510 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5513 for depmode
in $am_compiler_list; do
5514 # Setup a source with many dependencies, because some compilers
5515 # like to wrap large dependency lists on column 80 (with \), and
5516 # we should not choose a depcomp mode which is confused by this.
5518 # We need to recreate these files for each test, as the compiler may
5519 # overwrite some of them when testing with obscure command lines.
5520 # This happens at least with the AIX C compiler.
5522 for i
in 1 2 3 4 5 6; do
5523 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5525 # Solaris 8's {/usr,}/bin/sh.
5526 touch sub
/conftst
$i.h
5528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5531 # mode. It turns out that the SunPro C++ compiler does not properly
5532 # handle `-M -o', and we need to detect this. Also, some Intel
5533 # versions had trouble with output in subdirs
5534 am__obj
=sub
/conftest.
${OBJEXT-o}
5535 am__minus_obj
="-o $am__obj"
5538 # This depmode causes a compiler race in universal mode.
5539 test "$am__universal" = false ||
continue
5542 # after this tag, mechanisms are not by side-effect, so they'll
5543 # only be used when explicitly requested
5544 if test "x$enable_dependency_tracking" = xyes
; then
5550 msvisualcpp | msvcmsys
)
5551 # This compiler won't grok `-c -o', but also, the minuso test has
5552 # not run yet. These depmodes are late enough in the game, and
5553 # so weak that their functioning should not be impacted.
5554 am__obj
=conftest.
${OBJEXT-o}
5559 if depmode
=$depmode \
5560 source=sub
/conftest.c object
=$am__obj \
5561 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5562 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5563 >/dev
/null
2>conftest.err
&&
5564 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5565 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5566 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5567 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5568 # icc doesn't choke on unknown options, it will just issue warnings
5569 # or remarks (even with -Werror). So we grep stderr for any message
5570 # that says an option was ignored or not supported.
5571 # When given -MP, icc 7.0 and 7.1 complain thusly:
5572 # icc: Command line warning: ignoring option '-M'; no argument required
5573 # The diagnosis changed in icc 8.0:
5574 # icc: Command line remark: option '-MP' not supported
5575 if (grep 'ignoring option' conftest.err ||
5576 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5577 am_cv_CC_dependencies_compiler_type
=$depmode
5586 am_cv_CC_dependencies_compiler_type
=none
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5592 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5595 test "x$enable_dependency_tracking" != xno \
5596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5598 am__fastdepCC_FALSE
='#'
5600 am__fastdepCC_TRUE
='#'
5601 am__fastdepCC_FALSE
=
5605 if test "x$CC" != xcc
; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5607 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5610 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5612 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5613 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5614 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5615 $as_echo_n "(cached) " >&6
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5628 # Make sure it works both with $CC and with simple cc.
5629 # We do the test twice because some compilers refuse to overwrite an
5630 # existing .o file with -o, though they will create one.
5631 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5633 if { { case "(($ac_try" in
5634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5638 $as_echo "$ac_try_echo"; } >&5
5639 (eval "$ac_try") 2>&5
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; } &&
5643 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5645 *) ac_try_echo
=$ac_try;;
5647 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5648 $as_echo "$ac_try_echo"; } >&5
5649 (eval "$ac_try") 2>&5
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; };
5654 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5655 if test "x$CC" != xcc
; then
5656 # Test first that cc exists at all.
5657 if { ac_try
='cc -c conftest.$ac_ext >&5'
5658 { { 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; }; }; then
5668 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5670 if { { case "(($ac_try" in
5671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5672 *) ac_try_echo
=$ac_try;;
5674 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; } &&
5680 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685 $as_echo "$ac_try_echo"; } >&5
5686 (eval "$ac_try") 2>&5
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; };
5694 # cc exists but doesn't like -o.
5695 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5700 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5702 rm -f core conftest*
5705 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707 $as_echo "yes" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5712 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5716 # FIXME: we rely on the cache variable name because
5717 # there is no other way.
5719 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5720 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5721 if test "$am_t" != yes; then
5722 # Losing compiler, so override with the script.
5723 # FIXME: It is wrong to rewrite CC.
5724 # But if we don't then we get into trouble of one sort or another.
5725 # A longer-term fix would be to have automake use am__CC in this case,
5726 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5727 CC="$am_aux_dir/compile $CC"
5732 if test x$GCC = xyes; then
5733 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5735 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5738 # Initialize gnulib right after choosing the compiler.
5741 ac_cpp='$CPP $CPPFLAGS'
5742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5746 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5747 # On Suns, sometimes $CPP names a directory.
5748 if test -n "$CPP" && test -d "$CPP"; then
5751 if test -z "$CPP"; then
5752 if test "${ac_cv_prog_CPP+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 # Double quotes because CPP needs to be expanded
5756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5759 for ac_c_preproc_warn_flag in '' yes
5761 # Use a header file that comes with gcc, so configuring glibc
5762 # with a fresh cross-compiler works.
5763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5764 # <limits.h> exists even on freestanding compilers.
5765 # On the NeXT, cc -E runs the code through the compiler's parser,
5766 # not just through cpp. "Syntax error" is here to catch this case.
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5770 # include <limits.h>
5772 # include <assert.h>
5776 if ac_fn_c_try_cpp "$LINENO"; then :
5779 # Broken: fails on valid input.
5782 rm -f conftest.err conftest.$ac_ext
5784 # OK, works on sane cases. Now check whether nonexistent headers
5785 # can be detected and how.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #include <ac_nonexistent.h>
5790 if ac_fn_c_try_cpp "$LINENO"; then :
5791 # Broken: success on invalid input.
5794 # Passes both tests.
5798 rm -f conftest.err conftest.$ac_ext
5801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5802 rm -f conftest.err conftest.
$ac_ext
5803 if $ac_preproc_ok; then :
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5816 $as_echo "$CPP" >&6; }
5818 for ac_c_preproc_warn_flag
in '' yes
5820 # Use a header file that comes with gcc, so configuring glibc
5821 # with a fresh cross-compiler works.
5822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5823 # <limits.h> exists even on freestanding compilers.
5824 # On the NeXT, cc -E runs the code through the compiler's parser,
5825 # not just through cpp. "Syntax error" is here to catch this case.
5826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5829 # include <limits.h>
5831 # include <assert.h>
5835 if ac_fn_c_try_cpp
"$LINENO"; then :
5838 # Broken: fails on valid input.
5841 rm -f conftest.err conftest.
$ac_ext
5843 # OK, works on sane cases. Now check whether nonexistent headers
5844 # can be detected and how.
5845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <ac_nonexistent.h>
5849 if ac_fn_c_try_cpp
"$LINENO"; then :
5850 # Broken: success on invalid input.
5853 # Passes both tests.
5857 rm -f conftest.err conftest.
$ac_ext
5860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5861 rm -f conftest.err conftest.
$ac_ext
5862 if $ac_preproc_ok; then :
5865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5867 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5868 See \`config.log' for more details." "$LINENO" 5; }
5872 ac_cpp
='$CPP $CPPFLAGS'
5873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5879 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5880 if test "${ac_cv_path_GREP+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5883 if test -z "$GREP"; then
5884 ac_path_GREP_found
=false
5885 # Loop through the user's path and test for each of PROGNAME-LIST
5886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5887 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5890 test -z "$as_dir" && as_dir
=.
5891 for ac_prog
in grep ggrep
; do
5892 for ac_exec_ext
in '' $ac_executable_extensions; do
5893 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5894 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5895 # Check for GNU ac_path_GREP and select it if it is found.
5896 # Check for GNU $ac_path_GREP
5897 case `"$ac_path_GREP" --version 2>&1` in
5899 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5902 $as_echo_n 0123456789 >"conftest.in"
5905 cat "conftest.in" "conftest.in" >"conftest.tmp"
5906 mv "conftest.tmp" "conftest.in"
5907 cp "conftest.in" "conftest.nl"
5908 $as_echo 'GREP' >> "conftest.nl"
5909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5910 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5911 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5913 # Best one so far, save it but keep looking for a better one
5914 ac_cv_path_GREP
="$ac_path_GREP"
5915 ac_path_GREP_max
=$ac_count
5917 # 10*(2^10) chars as input seems more than enough
5918 test $ac_count -gt 10 && break
5920 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5923 $ac_path_GREP_found && break 3
5928 if test -z "$ac_cv_path_GREP"; then
5929 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5932 ac_cv_path_GREP
=$GREP
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5937 $as_echo "$ac_cv_path_GREP" >&6; }
5938 GREP
="$ac_cv_path_GREP"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5942 $as_echo_n "checking for egrep... " >&6; }
5943 if test "${ac_cv_path_EGREP+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5946 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5947 then ac_cv_path_EGREP
="$GREP -E"
5949 if test -z "$EGREP"; then
5950 ac_path_EGREP_found
=false
5951 # Loop through the user's path and test for each of PROGNAME-LIST
5952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5953 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5956 test -z "$as_dir" && as_dir
=.
5957 for ac_prog
in egrep; do
5958 for ac_exec_ext
in '' $ac_executable_extensions; do
5959 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5960 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5961 # Check for GNU ac_path_EGREP and select it if it is found.
5962 # Check for GNU $ac_path_EGREP
5963 case `"$ac_path_EGREP" --version 2>&1` in
5965 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5968 $as_echo_n 0123456789 >"conftest.in"
5971 cat "conftest.in" "conftest.in" >"conftest.tmp"
5972 mv "conftest.tmp" "conftest.in"
5973 cp "conftest.in" "conftest.nl"
5974 $as_echo 'EGREP' >> "conftest.nl"
5975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5976 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5977 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5979 # Best one so far, save it but keep looking for a better one
5980 ac_cv_path_EGREP
="$ac_path_EGREP"
5981 ac_path_EGREP_max
=$ac_count
5983 # 10*(2^10) chars as input seems more than enough
5984 test $ac_count -gt 10 && break
5986 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5989 $ac_path_EGREP_found && break 3
5994 if test -z "$ac_cv_path_EGREP"; then
5995 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5998 ac_cv_path_EGREP
=$EGREP
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6004 $as_echo "$ac_cv_path_EGREP" >&6; }
6005 EGREP
="$ac_cv_path_EGREP"
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6011 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6012 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6026 gl_cv_c_amsterdam_compiler
=yes
6028 gl_cv_c_amsterdam_compiler
=no
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6035 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6036 if test -z "$AR"; then
6037 if test $gl_cv_c_amsterdam_compiler = yes; then
6039 if test -z "$ARFLAGS"; then
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6045 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if test "${ac_cv_prog_AR+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6051 if test -n "$AR"; then
6052 ac_cv_prog_AR
="$AR" # Let the user override the test.
6054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir
=.
6059 for ac_exec_ext
in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 if test -n "$AR"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6074 $as_echo "$AR" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6082 if test -z "$ac_cv_prog_AR"; then
6084 # Extract the first word of "ar", so it can be a program name with args.
6085 set dummy
ar; ac_word
=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6091 if test -n "$ac_ct_AR"; then
6092 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6098 test -z "$as_dir" && as_dir
=.
6099 for ac_exec_ext
in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_AR
="ar"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6112 if test -n "$ac_ct_AR"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6114 $as_echo "$ac_ct_AR" >&6; }
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 $as_echo "no" >&6; }
6120 if test "x$ac_ct_AR" = x
; then
6123 case $cross_compiling:$ac_tool_warned in
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127 ac_tool_warned
=yes ;;
6135 if test -z "$ARFLAGS"; then
6140 if test -z "$ARFLAGS"; then
6146 if test -z "$RANLIB"; then
6147 if test $gl_cv_c_amsterdam_compiler = yes; then
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6152 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir
=.
6166 for ac_exec_ext
in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 RANLIB
=$ac_cv_prog_RANLIB
6179 if test -n "$RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6181 $as_echo "$RANLIB" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6189 if test -z "$ac_cv_prog_RANLIB"; then
6190 ac_ct_RANLIB
=$RANLIB
6191 # Extract the first word of "ranlib", so it can be a program name with args.
6192 set dummy ranlib
; ac_word
=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir
=.
6206 for ac_exec_ext
in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6219 if test -n "$ac_ct_RANLIB"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6221 $as_echo "$ac_ct_RANLIB" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6227 if test "x$ac_ct_RANLIB" = x
; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned
=yes ;;
6236 RANLIB
=$ac_ct_RANLIB
6239 RANLIB
="$ac_cv_prog_RANLIB"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6247 $as_echo_n "checking for ANSI C header files... " >&6; }
6248 if test "${ac_cv_header_stdc+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6266 if ac_fn_c_try_compile
"$LINENO"; then :
6267 ac_cv_header_stdc
=yes
6269 ac_cv_header_stdc
=no
6271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6273 if test $ac_cv_header_stdc = yes; then
6274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "memchr" >/dev
/null
2>&1; then :
6284 ac_cv_header_stdc
=no
6290 if test $ac_cv_header_stdc = yes; then
6291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "free" >/dev
/null
2>&1; then :
6301 ac_cv_header_stdc
=no
6307 if test $ac_cv_header_stdc = yes; then
6308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6309 if test "$cross_compiling" = yes; then :
6312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6316 #if ((' ' & 0x0FF) == 0x020)
6317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6320 # define ISLOWER(c) \
6321 (('a' <= (c) && (c) <= 'i') \
6322 || ('j' <= (c) && (c) <= 'r') \
6323 || ('s' <= (c) && (c) <= 'z'))
6324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6332 for (i = 0; i < 256; i++)
6333 if (XOR (islower (i), ISLOWER (i))
6334 || toupper (i) != TOUPPER (i))
6339 if ac_fn_c_try_run
"$LINENO"; then :
6342 ac_cv_header_stdc
=no
6344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6351 $as_echo "$ac_cv_header_stdc" >&6; }
6352 if test $ac_cv_header_stdc = yes; then
6354 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6359 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6360 inttypes.h stdint.h unistd.h
6362 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6363 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6365 eval as_val
=\$
$as_ac_Header
6366 if test "x$as_val" = x
""yes; then :
6367 cat >>confdefs.h
<<_ACEOF
6368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6379 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6380 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6387 if test "$MINIX" = yes; then
6389 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6392 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6395 $as_echo "#define _MINIX 1" >>confdefs.h
6402 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6409 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6410 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6416 # define __EXTENSIONS__ 1
6417 $ac_includes_default
6426 if ac_fn_c_try_compile
"$LINENO"; then :
6427 ac_cv_safe_to_define___extensions__
=yes
6429 ac_cv_safe_to_define___extensions__
=no
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6434 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6435 test $ac_cv_safe_to_define___extensions__ = yes &&
6436 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6438 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6440 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6442 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6444 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6446 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6455 # Check whether --enable-largefile was given.
6456 if test "${enable_largefile+set}" = set; then :
6457 enableval
=$enable_largefile;
6460 if test "$enable_largefile" != no
; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6463 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6464 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6467 ac_cv_sys_largefile_CC
=no
6468 if test "$GCC" != yes; then
6471 # IRIX 6.2 and later do not support large files by default,
6472 # so use the C compiler's -n32 option if that helps.
6473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 #include <sys/types.h>
6476 /* Check that off_t can represent 2**63 - 1 correctly.
6477 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6478 since some C++ compilers masquerading as C compilers
6479 incorrectly reject 9223372036854775807. */
6480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6482 && LARGE_OFF_T % 2147483647 == 1)
6492 if ac_fn_c_try_compile
"$LINENO"; then :
6495 rm -f core conftest.err conftest.
$ac_objext
6497 if ac_fn_c_try_compile
"$LINENO"; then :
6498 ac_cv_sys_largefile_CC
=' -n32'; break
6500 rm -f core conftest.err conftest.
$ac_objext
6504 rm -f conftest.
$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6508 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6509 if test "$ac_cv_sys_largefile_CC" != no
; then
6510 CC
=$CC$ac_cv_sys_largefile_CC
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6514 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6521 #include <sys/types.h>
6522 /* Check that off_t can represent 2**63 - 1 correctly.
6523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6524 since some C++ compilers masquerading as C compilers
6525 incorrectly reject 9223372036854775807. */
6526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6528 && LARGE_OFF_T % 2147483647 == 1)
6538 if ac_fn_c_try_compile
"$LINENO"; then :
6539 ac_cv_sys_file_offset_bits
=no
; break
6541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6544 #define _FILE_OFFSET_BITS 64
6545 #include <sys/types.h>
6546 /* Check that off_t can represent 2**63 - 1 correctly.
6547 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6548 since some C++ compilers masquerading as C compilers
6549 incorrectly reject 9223372036854775807. */
6550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6551 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6552 && LARGE_OFF_T % 2147483647 == 1)
6562 if ac_fn_c_try_compile
"$LINENO"; then :
6563 ac_cv_sys_file_offset_bits
=64; break
6565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 ac_cv_sys_file_offset_bits
=unknown
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6571 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6572 case $ac_cv_sys_file_offset_bits in #(
6575 cat >>confdefs.h
<<_ACEOF
6576 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6581 if test $ac_cv_sys_file_offset_bits = unknown
; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6583 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6584 if test "${ac_cv_sys_large_files+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 #include <sys/types.h>
6591 /* Check that off_t can represent 2**63 - 1 correctly.
6592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6593 since some C++ compilers masquerading as C compilers
6594 incorrectly reject 9223372036854775807. */
6595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6597 && LARGE_OFF_T % 2147483647 == 1)
6607 if ac_fn_c_try_compile
"$LINENO"; then :
6608 ac_cv_sys_large_files
=no
; break
6610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #define _LARGE_FILES 1
6614 #include <sys/types.h>
6615 /* Check that off_t can represent 2**63 - 1 correctly.
6616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6617 since some C++ compilers masquerading as C compilers
6618 incorrectly reject 9223372036854775807. */
6619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6621 && LARGE_OFF_T % 2147483647 == 1)
6631 if ac_fn_c_try_compile
"$LINENO"; then :
6632 ac_cv_sys_large_files
=1; break
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 ac_cv_sys_large_files
=unknown
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6640 $as_echo "$ac_cv_sys_large_files" >&6; }
6641 case $ac_cv_sys_large_files in #(
6644 cat >>confdefs.h
<<_ACEOF
6645 #define _LARGE_FILES $ac_cv_sys_large_files
6655 case $ac_cv_prog_cc_stdc in #(
6657 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6660 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6661 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6664 ac_cv_prog_cc_c99
=no
6666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6669 #include <stdbool.h>
6674 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6675 #define debug(...) fprintf (stderr, __VA_ARGS__)
6676 #define showlist(...) puts (#__VA_ARGS__)
6677 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6679 test_varargs_macros (void)
6684 debug ("X = %d\n", x);
6685 showlist (The first, second, and third items.);
6686 report (x>y, "x is %d but y is %d", x, y);
6689 // Check long long types.
6690 #define BIG64 18446744073709551615ull
6691 #define BIG32 4294967295ul
6692 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6694 your preprocessor is broken;
6698 your preprocessor is broken;
6700 static long long int bignum = -9223372036854775807LL;
6701 static unsigned long long int ubignum = BIG64;
6703 struct incomplete_array
6711 const wchar_t *name;
6715 typedef const char *ccp;
6718 test_restrict (ccp restrict text)
6720 // See if C++-style comments work.
6721 // Iterate through items via the restricted pointer.
6722 // Also check for declarations in for loops.
6723 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6728 // Check varargs and va_copy.
6730 test_varargs (const char *format, ...)
6733 va_start (args, format);
6735 va_copy (args_copy, args);
6746 str = va_arg (args_copy, const char *);
6749 number = va_arg (args_copy, int);
6752 fnumber = va_arg (args_copy, double);
6767 _Bool success = false;
6770 if (test_restrict ("String literal") == 0)
6772 char *restrict newvar = "Another string";
6775 test_varargs ("s, d' f .", "string", 65, 34.234);
6776 test_varargs_macros ();
6778 // Check flexible array members.
6779 struct incomplete_array *ia =
6780 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6782 for (int i = 0; i < ia->datasize; ++i)
6783 ia->data[i] = i * 1.234;
6785 // Check named initializers.
6786 struct named_init ni = {
6788 .name = L"Test wide string",
6789 .average = 543.34343,
6794 int dynamic_array[ni.number];
6795 dynamic_array[ni.number - 1] = 543;
6797 // work around unused variable warnings
6798 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6799 || dynamic_array[ni.number - 1] != 543);
6805 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6807 CC
="$ac_save_CC $ac_arg"
6808 if ac_fn_c_try_compile
"$LINENO"; then :
6809 ac_cv_prog_cc_c99
=$ac_arg
6811 rm -f core conftest.err conftest.
$ac_objext
6812 test "x$ac_cv_prog_cc_c99" != "xno" && break
6814 rm -f conftest.
$ac_ext
6819 case "x$ac_cv_prog_cc_c99" in
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6822 $as_echo "none needed" >&6; } ;;
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6825 $as_echo "unsupported" >&6; } ;;
6827 CC
="$CC $ac_cv_prog_cc_c99"
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6829 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6831 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6832 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6836 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6839 ac_cv_prog_cc_c89
=no
6841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6845 #include <sys/types.h>
6846 #include <sys/stat.h>
6847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6848 struct buf { int x; };
6849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6850 static char *e (p, i)
6856 static char *f (char * (*g) (char **, int), char **p, ...)
6861 s = g (p, va_arg (v,int));
6866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6867 function prototypes and stuff, but not '\xHH' hex character constants.
6868 These don't provoke an error unfortunately, instead are silently treated
6869 as 'x'. The following induces an error, until -std is added to get
6870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6871 array size at least. It's necessary to write '\x00'==0 to get something
6872 that's true only with -std. */
6873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6876 inside strings and character constants. */
6878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6880 int test (int i, double x);
6881 struct s1 {int (*f) (int a);};
6882 struct s2 {int (*f) (double a);};
6883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6894 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6897 CC
="$ac_save_CC $ac_arg"
6898 if ac_fn_c_try_compile
"$LINENO"; then :
6899 ac_cv_prog_cc_c89
=$ac_arg
6901 rm -f core conftest.err conftest.
$ac_objext
6902 test "x$ac_cv_prog_cc_c89" != "xno" && break
6904 rm -f conftest.
$ac_ext
6909 case "x$ac_cv_prog_cc_c89" in
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6912 $as_echo "none needed" >&6; } ;;
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6915 $as_echo "unsupported" >&6; } ;;
6917 CC
="$CC $ac_cv_prog_cc_c89"
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6921 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6922 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6924 ac_cv_prog_cc_stdc
=no
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6931 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6932 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6936 case $ac_cv_prog_cc_stdc in #(
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6939 $as_echo "unsupported" >&6; } ;; #(
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6942 $as_echo "none needed" >&6; } ;; #(
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6945 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6950 # Code from module alloca-opt:
6951 # Code from module allocator:
6952 # Code from module c-ctype:
6953 # Code from module c-strcase:
6954 # Code from module careadlinkat:
6955 # Code from module clock-time:
6956 # Code from module crypto/md5:
6957 # Code from module crypto/sha1:
6958 # Code from module crypto/sha256:
6959 # Code from module crypto/sha512:
6960 # Code from module dosname:
6961 # Code from module dtoastr:
6962 # Code from module dtotimespec:
6963 # Code from module dup2:
6964 # Code from module environ:
6965 # Code from module execinfo:
6966 # Code from module extensions:
6968 # Code from module extern-inline:
6969 # Code from module filemode:
6970 # Code from module getloadavg:
6971 # Code from module getopt-gnu:
6972 # Code from module getopt-posix:
6973 # Code from module gettext-h:
6974 # Code from module gettime:
6975 # Code from module gettimeofday:
6976 # Code from module ignore-value:
6977 # Code from module include_next:
6978 # Code from module intprops:
6979 # Code from module inttypes-incomplete:
6980 # Code from module largefile:
6982 # Code from module lstat:
6983 # Code from module manywarnings:
6984 # Code from module mktime:
6985 # Code from module multiarch:
6986 # Code from module nocrash:
6987 # Code from module pathmax:
6988 # Code from module pselect:
6989 # Code from module pthread_sigmask:
6990 # Code from module readlink:
6991 # Code from module signal-h:
6992 # Code from module snippet/_Noreturn:
6993 # Code from module snippet/arg-nonnull:
6994 # Code from module snippet/c++defs:
6995 # Code from module snippet/warn-on-use:
6996 # Code from module socklen:
6997 # Code from module ssize_t:
6998 # Code from module stat:
6999 # Code from module stat-time:
7000 # Code from module stdalign:
7001 # Code from module stdarg:
7005 # Code from module stdbool:
7006 # Code from module stddef:
7007 # Code from module stdint:
7008 # Code from module stdio:
7009 # Code from module stdlib:
7010 # Code from module strftime:
7011 # Code from module strtoimax:
7012 # Code from module strtoll:
7013 # Code from module strtoull:
7014 # Code from module strtoumax:
7015 # Code from module symlink:
7016 # Code from module sys_select:
7017 # Code from module sys_stat:
7018 # Code from module sys_time:
7019 # Code from module time:
7020 # Code from module time_r:
7021 # Code from module timespec:
7022 # Code from module timespec-add:
7023 # Code from module timespec-sub:
7024 # Code from module u64:
7025 # Code from module unistd:
7026 # Code from module utimens:
7027 # Code from module verify:
7028 # Code from module warnings:
7031 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7032 # if -g3 works and the user does not specify CFLAGS.
7033 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7034 if test "$ac_test_CFLAGS" != set; then
7037 emacs_g3_CFLAGS
='-g3';;
7039 emacs_g3_CFLAGS
='-g3 -O2';;
7041 emacs_g3_CFLAGS
='';;
7043 if test -n "$emacs_g3_CFLAGS"; then
7044 emacs_save_CFLAGS
=$CFLAGS
7045 CFLAGS
=$emacs_g3_CFLAGS
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7047 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7048 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7062 if ac_fn_c_try_link
"$LINENO"; then :
7063 emacs_cv_prog_cc_g3
=yes
7065 emacs_cv_prog_cc_g3
=no
7067 rm -f core conftest.err conftest.
$ac_objext \
7068 conftest
$ac_exeext conftest.
$ac_ext
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7071 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7072 if test $emacs_cv_prog_cc_g3 = yes; then
7073 CFLAGS
=$emacs_g3_CFLAGS
7075 CFLAGS
=$emacs_save_CFLAGS
7080 # Check whether --enable-gcc-warnings was given.
7081 if test "${enable_gcc_warnings+set}" = set; then :
7082 enableval
=$enable_gcc_warnings; case $enableval in
7084 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7086 gl_gcc_warnings
=$enableval
7093 # Check whether --enable-link-time-optimization was given.
7094 if test "${enable_link_time_optimization+set}" = set; then :
7095 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7097 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7099 if test x
$GCC = xyes
; then
7100 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7101 if test x
$CPUS != x
; then
7107 CFLAGS
="$CFLAGS $LTO"
7108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7119 if ac_fn_c_try_compile
"$LINENO"; then :
7120 ac_lto_supported
=yes
7124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7125 CFLAGS
="$old_CFLAGS"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7128 $as_echo "$ac_lto_supported" >&6; }
7129 if test "$ac_lto_supported" = "yes"; then
7130 CFLAGS
="$CFLAGS $LTO"
7136 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7137 # ------------------------------------------------
7138 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7139 # Otherwise, run RUN-IF-NOT-FOUND.
7142 # When compiling with GCC, prefer -isystem to -I when including system
7143 # include files, to avoid generating useless diagnostics for the files.
7144 if test "$gl_gcc_warnings" != yes; then
7149 # This, $nw, is the list of warnings we disable.
7152 case $with_x_toolkit in
7153 lucid | athena | motif
)
7154 # Old toolkits mishandle 'const'.
7155 nw
="$nw -Wwrite-strings"
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7159 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7160 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7164 gl_save_compiler_FLAGS
="$CFLAGS"
7165 as_fn_append CFLAGS
" -Werror"
7166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7177 if ac_fn_c_try_compile
"$LINENO"; then :
7178 gl_cv_warn_c__Werror
=yes
7180 gl_cv_warn_c__Werror
=no
7182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 CFLAGS
="$gl_save_compiler_FLAGS"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7187 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7188 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7189 as_fn_append WERROR_CFLAGS
" -Werror"
7197 nw
="$nw -Waggregate-return" # anachronistic
7198 nw
="$nw -Wlong-long" # C90 is anachronistic
7199 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7200 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7201 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7202 nw
="$nw -Wcast-qual" # Too many warnings for now
7203 nw
="$nw -Wconversion" # Too many warnings for now
7204 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7205 nw
="$nw -Wsign-conversion" # Too many warnings for now
7206 nw
="$nw -Woverlength-strings" # Not a problem these days
7207 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7208 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7209 nw
="$nw -Wpadded" # Our structs are not padded
7210 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7211 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7212 nw
="$nw -Wformat-nonliteral" # we do this a lot
7213 nw
="$nw -Wvla" # warnings in gettext.h
7214 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7215 nw
="$nw -Wswitch-enum" # Too many warnings for now
7216 nw
="$nw -Wswitch-default" # Too many warnings for now
7217 nw
="$nw -Wfloat-equal" # warns about high-quality code
7218 nw
="$nw -Winline" # OK to ignore 'inline'
7219 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7220 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7222 # Emacs doesn't care about shadowing; see
7223 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7226 # The following lines should be removable at some point.
7227 nw
="$nw -Wstack-protector"
7228 nw
="$nw -Wstrict-overflow"
7229 nw
="$nw -Wsuggest-attribute=pure"
7233 if test -n "$GCC"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7236 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7237 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7241 gl_save_CFLAGS
="$CFLAGS"
7242 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7254 if ac_fn_c_try_compile
"$LINENO"; then :
7255 gl_cv_cc_nomfi_supported
=yes
7257 gl_cv_cc_nomfi_supported
=no
7259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7260 CFLAGS
="$gl_save_CFLAGS"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7264 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7266 if test "$gl_cv_cc_nomfi_supported" = yes; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7268 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7269 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7273 gl_save_CFLAGS
="$CFLAGS"
7274 CFLAGS
="$CFLAGS -W -Werror"
7275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7279 typedef struct { int a; int b; } s_t;
7291 if ac_fn_c_try_compile
"$LINENO"; then :
7292 gl_cv_cc_nomfi_needed
=no
7294 gl_cv_cc_nomfi_needed
=yes
7296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 CFLAGS
="$gl_save_CFLAGS"
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7302 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7307 for gl_manywarn_item
in \
7311 -Wformat-nonliteral \
7314 -Wmissing-include-dirs \
7324 -Wtraditional-conversion \
7325 -Wdeclaration-after-statement \
7328 -Wunsafe-loop-optimizations \
7330 -Wbad-function-cast \
7338 -Waggregate-return \
7339 -Wstrict-prototypes \
7340 -Wold-style-definition \
7341 -Wmissing-prototypes \
7342 -Wmissing-declarations \
7343 -Wmissing-noreturn \
7344 -Wmissing-format-attribute \
7349 -Wunreachable-code \
7354 -Wvolatile-register-var \
7355 -Wdisabled-optimization \
7357 -Woverlength-strings \
7358 -Wbuiltin-macro-redefined \
7360 -Wpacked-bitfield-compat \
7363 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7365 # The following are not documented in the manual but are included in
7366 # output from gcc --help=warnings.
7367 for gl_manywarn_item
in \
7369 -Wcoverage-mismatch \
7372 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7374 # More warnings from gcc 4.6.2 --help=warnings.
7375 for gl_manywarn_item
in \
7379 -Wdeprecated-declarations \
7381 -Wdouble-promotion \
7384 -Wformat-contains-nul \
7385 -Wformat-extra-args \
7386 -Wformat-zero-length \
7391 -Wpointer-to-int-cast \
7393 -Wsuggest-attribute=const \
7394 -Wsuggest-attribute=noreturn \
7395 -Wsuggest-attribute=pure \
7398 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7401 # Disable the missing-field-initializers warning if needed
7402 if test "$gl_cv_cc_nomfi_needed" = yes; then
7403 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7414 *" $gl_warn_item "*)
7417 gl_warn_set
="$gl_warn_set $gl_warn_item"
7424 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7426 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7427 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7428 $as_echo_n "(cached) " >&6
7431 gl_save_compiler_FLAGS
="$CFLAGS"
7432 as_fn_append CFLAGS
" $w"
7433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7444 if ac_fn_c_try_compile
"$LINENO"; then :
7445 eval "$as_gl_Warn=yes"
7447 eval "$as_gl_Warn=no"
7449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7450 CFLAGS
="$gl_save_compiler_FLAGS"
7453 eval ac_res
=\$
$as_gl_Warn
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7455 $as_echo "$ac_res" >&6; }
7456 eval as_val
=\$
$as_gl_Warn
7457 if test "x$as_val" = x
""yes; then :
7458 as_fn_append WARN_CFLAGS
" $w"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7464 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7465 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7469 gl_save_compiler_FLAGS
="$CFLAGS"
7470 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7482 if ac_fn_c_try_compile
"$LINENO"; then :
7483 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7485 gl_cv_warn_c__Wno_missing_field_initializers
=no
7487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7488 CFLAGS
="$gl_save_compiler_FLAGS"
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7492 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7493 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7494 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7499 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7500 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7504 gl_save_compiler_FLAGS
="$CFLAGS"
7505 as_fn_append CFLAGS
" -Wno-sign-compare"
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7517 if ac_fn_c_try_compile
"$LINENO"; then :
7518 gl_cv_warn_c__Wno_sign_compare
=yes
7520 gl_cv_warn_c__Wno_sign_compare
=no
7522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7523 CFLAGS
="$gl_save_compiler_FLAGS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7527 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7528 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7529 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7532 # Too many warnings for now
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7534 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7535 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7539 gl_save_compiler_FLAGS
="$CFLAGS"
7540 as_fn_append CFLAGS
" -Wno-type-limits"
7541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7552 if ac_fn_c_try_compile
"$LINENO"; then :
7553 gl_cv_warn_c__Wno_type_limits
=yes
7555 gl_cv_warn_c__Wno_type_limits
=no
7557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7558 CFLAGS
="$gl_save_compiler_FLAGS"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7562 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7563 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7564 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7567 # Too many warnings for now
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7569 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7570 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7574 gl_save_compiler_FLAGS
="$CFLAGS"
7575 as_fn_append CFLAGS
" -Wno-switch"
7576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7587 if ac_fn_c_try_compile
"$LINENO"; then :
7588 gl_cv_warn_c__Wno_switch
=yes
7590 gl_cv_warn_c__Wno_switch
=no
7592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7593 CFLAGS
="$gl_save_compiler_FLAGS"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7597 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7598 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7599 as_fn_append WARN_CFLAGS
" -Wno-switch"
7602 # Too many warnings for now
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7604 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7605 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7609 gl_save_compiler_FLAGS
="$CFLAGS"
7610 as_fn_append CFLAGS
" -Wno-unused-parameter"
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7622 if ac_fn_c_try_compile
"$LINENO"; then :
7623 gl_cv_warn_c__Wno_unused_parameter
=yes
7625 gl_cv_warn_c__Wno_unused_parameter
=no
7627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7628 CFLAGS
="$gl_save_compiler_FLAGS"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7632 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7633 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7634 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7637 # Too many warnings for now
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7639 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7640 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7644 gl_save_compiler_FLAGS
="$CFLAGS"
7645 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7657 if ac_fn_c_try_compile
"$LINENO"; then :
7658 gl_cv_warn_c__Wno_format_nonliteral
=yes
7660 gl_cv_warn_c__Wno_format_nonliteral
=no
7662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7663 CFLAGS
="$gl_save_compiler_FLAGS"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7667 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7668 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7669 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7674 # In spite of excluding -Wlogical-op above, it is enabled, as of
7675 # gcc 4.5.0 20090517.
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7677 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7678 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7682 gl_save_compiler_FLAGS
="$CFLAGS"
7683 as_fn_append CFLAGS
" -Wno-logical-op"
7684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7695 if ac_fn_c_try_compile
"$LINENO"; then :
7696 gl_cv_warn_c__Wno_logical_op
=yes
7698 gl_cv_warn_c__Wno_logical_op
=no
7700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7701 CFLAGS
="$gl_save_compiler_FLAGS"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7705 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7706 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7707 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7713 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7714 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7718 gl_save_compiler_FLAGS
="$CFLAGS"
7719 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7731 if ac_fn_c_try_compile
"$LINENO"; then :
7732 gl_cv_warn_c__fdiagnostics_show_option
=yes
7734 gl_cv_warn_c__fdiagnostics_show_option
=no
7736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7737 CFLAGS
="$gl_save_compiler_FLAGS"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7741 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7742 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7743 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7748 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7749 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7753 gl_save_compiler_FLAGS
="$CFLAGS"
7754 as_fn_append CFLAGS
" -funit-at-a-time"
7755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7766 if ac_fn_c_try_compile
"$LINENO"; then :
7767 gl_cv_warn_c__funit_at_a_time
=yes
7769 gl_cv_warn_c__funit_at_a_time
=no
7771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7772 CFLAGS
="$gl_save_compiler_FLAGS"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7776 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7777 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7778 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7784 $as_echo "#define lint 1" >>confdefs.h
7787 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7790 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7793 # We use a slightly smaller set of warning options for lib/.
7794 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7796 nw
="$nw -Wunused-macros"
7800 set x
$WARN_CFLAGS; shift
7804 *" $gl_warn_item "*)
7807 gl_warn_set
="$gl_warn_set $gl_warn_item"
7811 GNULIB_WARN_CFLAGS
=$gl_warn_set
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7819 $as_echo_n "checking whether ln -s works... " >&6; }
7821 if test "$LN_S" = "ln -s"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7823 $as_echo "yes" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7826 $as_echo "no, using $LN_S" >&6; }
7830 # Extract the first word of "install-info", so it can be a program name with args.
7831 set dummy install-info
; ac_word
=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 case $INSTALL_INFO in
7839 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7843 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7846 test -z "$as_dir" && as_dir
=.
7847 for ac_exec_ext
in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7861 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7862 if test -n "$INSTALL_INFO"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7864 $as_echo "$INSTALL_INFO" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7871 # Extract the first word of "gzip", so it can be a program name with args.
7872 set dummy
gzip; ac_word
=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7880 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7887 test -z "$as_dir" && as_dir
=.
7888 for ac_exec_ext
in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7890 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7902 if test -n "$GZIP_PROG"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7904 $as_echo "$GZIP_PROG" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7912 if test $opsys = gnu-linux
; then
7913 # Extract the first word of "paxctl", so it can be a program name with args.
7914 set dummy paxctl
; ac_word
=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7922 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7926 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7929 test -z "$as_dir" && as_dir
=.
7930 for ac_exec_ext
in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 PAXCTL
=$ac_cv_path_PAXCTL
7944 if test -n "$PAXCTL"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7946 $as_echo "$PAXCTL" >&6; }
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7953 if test "X$PAXCTL" != X
; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7955 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7967 if ac_fn_c_try_link
"$LINENO"; then :
7968 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7969 $as_echo "yes" >&6; }
7970 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }; PAXCTL
=""; fi
7973 rm -f core conftest.err conftest.
$ac_objext \
7974 conftest
$ac_exeext conftest.
$ac_ext
7978 ## Need makeinfo >= 4.7 (?) to build the manuals.
7979 # Extract the first word of "makeinfo", so it can be a program name with args.
7980 set dummy makeinfo
; ac_word
=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7988 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir
=.
7996 for ac_exec_ext
in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8010 MAKEINFO
=$ac_cv_path_MAKEINFO
8011 if test -n "$MAKEINFO"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8013 $as_echo "$MAKEINFO" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 if test "$MAKEINFO" != "no" && \
8021 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
8025 ## Makeinfo is unusual. For a released Emacs, the manuals are
8026 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8027 ## therefore in the category of "special tools" not normally required, which
8028 ## configure does not have to check for (eg autoconf itself).
8029 ## In a Bazaar checkout on the other hand, the manuals are not included.
8030 ## So makeinfo is a requirement to build from Bazaar, and configure
8031 ## should test for it as it does for any other build requirement.
8032 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8033 ## with pre-built manuals, from a Bazaar checkout.
8036 if test "$MAKEINFO" = "no"; then
8038 if test "x${with_makeinfo}" = "xno"; then
8040 elif test ! -e $srcdir/info
/emacs
; then
8041 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8042 source tree does not seem to have pre-built manuals in the \`info' directory.
8043 Either install a suitable version of makeinfo, or re-run configure
8044 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8050 INFO_OPTS
=--no-split
8055 if test x
$GCC = xyes
; then
8056 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8057 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8059 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8060 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8064 late_LDFLAGS
=$LDFLAGS
8065 if test x
$GCC = xyes
; then
8066 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8068 LDFLAGS
="$LDFLAGS -znocombreloc"
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8072 $as_echo_n "checking for -znocombreloc... " >&6; }
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8084 if ac_fn_c_try_link
"$LINENO"; then :
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8086 $as_echo "yes" >&6; }
8088 LDFLAGS
=$late_LDFLAGS
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8092 rm -f core conftest.err conftest.
$ac_objext \
8093 conftest
$ac_exeext conftest.
$ac_ext
8096 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8098 your-opsys-here
) CANNOT_DUMP
=yes ;;
8101 test "$CANNOT_DUMP" = "yes" && \
8103 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8109 UNEXEC_OBJ
=unexelf.o
8111 # MSDOS uses unexcoff.o
8112 # MSWindows uses unexw32.o
8114 UNEXEC_OBJ
=unexaix.o
8120 UNEXEC_OBJ
=unexmacosx.o
8123 UNEXEC_OBJ
=unexhp9k800.o
8126 # Use the Solaris dldump() function, called from unexsol.c, to dump
8127 # emacs, instead of the generic ELF dump code found in unexelf.c.
8128 # The resulting binary has a complete symbol table, and is better
8129 # for debugging and other observability tools (debuggers, pstack, etc).
8131 # If you encounter a problem using dldump(), please consider sending
8132 # a message to the OpenSolaris tools-linking mailing list:
8133 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8135 # It is likely that dldump() works with older Solaris too, but this has
8136 # not been tested, so for now this change is for Solaris 10 or newer.
8137 UNEXEC_OBJ
=unexsol.o
8144 ## Let `ld' find image libs and similar things in /usr/local/lib.
8145 ## The system compiler, GCC, has apparently been modified to not
8146 ## look there, contrary to what a stock GCC would do.
8147 ### It's not our place to do this. See bug#10313#17.
8148 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8153 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8154 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8158 ### It's not our place to do this. See bug#10313#17.
8159 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8164 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8165 ## otherwise Emacs dumps core on elf systems.
8166 LD_SWITCH_SYSTEM
="-Z"
8171 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8173 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8174 ## which has not been defined yet. When this was handled with cpp,
8175 ## it was expanded to null when configure sourced the s/*.h file.
8176 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8177 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8178 ## (or somesuch), but because it is supposed to go at the _front_
8179 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8180 ## Compare with the gnu-linux case below, which added to the end
8181 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8182 ## LD_SWITCH_SYSTEM_TEMACS.
8185 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8192 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8193 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8197 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8198 ## With ELF, make sure that all common symbols get allocated to in the
8199 ## data section. Otherwise, the dump of temacs may miss variables in
8200 ## the shared library that have been initialized. For example, with
8201 ## GNU libc, __malloc_initialized would normally be resolved to the
8202 ## shared library's .bss section, which is fatal.
8203 if test "x$GCC" = "xyes"; then
8204 C_SWITCH_MACHINE
="-fno-common"
8206 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8209 UNEXEC_OBJ
=unexalpha.o
8218 ## Some programs in src produce warnings saying certain subprograms
8219 ## are too complex and need a MAXMEM value greater than 2000 for
8220 ## additional optimization. --nils@exp-math.uni-essen.de
8221 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8222 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8223 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8224 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8230 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8231 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8233 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8235 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8237 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8239 ## Motif needs -lgen.
8240 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8245 ### Make sure subsequent tests use flags consistent with the build flags.
8247 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8248 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8250 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8253 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8255 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8262 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8267 START_FILES
='pre-crt0.o'
8270 ## Adding -lm confuses the dynamic linker, so omit it.
8272 START_FILES
='pre-crt0.o'
8275 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8276 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8277 SYSTEM_TYPE
=berkeley-unix
8279 gnu-linux | gnu-kfreebsd
)
8280 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8281 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8283 hpux10-20 | hpux11
)
8285 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8288 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8289 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8290 SYSTEM_TYPE
=berkeley-unix
8294 SYSTEM_TYPE
=usg-unix-v
8302 cat >>confdefs.h
<<_ACEOF
8303 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8309 for file in x
$LIB_STANDARD $START_FILES; do
8311 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8315 if test "x$crt_files" != x
; then
8317 ## If user specified a crt-dir, use that unconditionally.
8320 if test "X$CRT_DIR" = "X"; then
8322 CRT_DIR
=/usr
/lib
# default
8324 case "$canonical" in
8325 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8326 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8327 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8328 ## For anything else (eg /usr/lib32), it is up the user to specify
8329 ## the location (bug#5655).
8330 ## Test for crtn.o, not just the directory, because sometimes the
8331 ## directory exists but does not have the relevant files (bug#1287).
8332 ## FIXME better to test for binary compatibility somehow.
8333 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8336 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8340 hpux10-20
) CRT_DIR
=/lib
;;
8343 test "x${GCC}" = xyes
&& crt_gcc
=yes
8349 for file in $crt_files; do
8351 ## If we're using gcc, try to determine it automatically by asking
8352 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8353 ## system-dependent default from above.]
8354 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8356 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8359 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8360 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8361 X"$crt_file" : 'X\(//\)[^/]' \| \
8362 X"$crt_file" : 'X\(//\)$' \| \
8363 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8364 $as_echo X"$crt_file" |
8365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8388 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8391 test "x$crt_missing" = x || \
8392 as_fn_error
"Required file(s) not found:$crt_missing
8393 Try using the --with-crt-dir option." "$LINENO" 5
8395 fi # crt_files != ""
8401 if test -f $CRT_DIR/crti.o
; then
8403 test -f $CRT_DIR/crtn.o || \
8404 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8406 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8407 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8413 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8414 pre_PKG_CONFIG_LIBS
=$LIBS
8416 # Extract the first word of "pkg-config", so it can be a program name with args.
8417 set dummy pkg-config
; ac_word
=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8425 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8432 test -z "$as_dir" && as_dir
=.
8433 for ac_exec_ext
in '' $ac_executable_extensions; do
8434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8447 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8448 if test -n "$PKG_CONFIG"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8450 $as_echo "$PKG_CONFIG" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8461 if test "${with_sound}" != "no"; then
8462 # Sound support for GNU/Linux and the free BSDs.
8463 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8467 eval as_val
=\$
$as_ac_Header
8468 if test "x$as_val" = x
""yes; then :
8469 cat >>confdefs.h
<<_ACEOF
8470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8472 have_sound_header
=yes
8477 # Emulation library used on NetBSD.
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8479 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8480 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8483 ac_check_lib_save_LIBS
=$LIBS
8484 LIBS
="-lossaudio $LIBS"
8485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8498 return _oss_ioctl ();
8503 if ac_fn_c_try_link
"$LINENO"; then :
8504 ac_cv_lib_ossaudio__oss_ioctl
=yes
8506 ac_cv_lib_ossaudio__oss_ioctl
=no
8508 rm -f core conftest.err conftest.
$ac_objext \
8509 conftest
$ac_exeext conftest.
$ac_ext
8510 LIBS
=$ac_check_lib_save_LIBS
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8513 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8514 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8523 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8527 if test "$PKG_CONFIG" = "no" ; then
8530 PKG_CONFIG_MIN_VERSION
=0.9.0
8531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8533 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8535 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8536 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8537 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8544 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8545 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8547 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8554 ## If we have a custom action on failure, don't print errors, but
8555 ## do set a variable so people can do so.
8556 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8568 if test $succeeded = yes; then
8574 if test $HAVE_ALSA = yes; then
8575 SAVE_CFLAGS
="$CFLAGS"
8577 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8578 LIBS
="$ALSA_LIBS $LIBS"
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <asoundlib.h>
8585 snd_lib_error_set_handler (0);
8590 if ac_fn_c_try_compile
"$LINENO"; then :
8591 emacs_alsa_normal
=yes
8593 emacs_alsa_normal
=no
8595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 if test "$emacs_alsa_normal" != yes; then
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 #include <alsa/asoundlib.h>
8603 snd_lib_error_set_handler (0);
8608 if ac_fn_c_try_compile
"$LINENO"; then :
8609 emacs_alsa_subdir
=yes
8611 emacs_alsa_subdir
=no
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8614 if test "$emacs_alsa_subdir" != yes; then
8615 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8617 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8620 CFLAGS
="$SAVE_CFLAGS"
8622 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8623 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8625 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8629 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8631 gnu-linux|freebsd|netbsd
)
8633 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8645 for ac_header
in $ac_header_list
8647 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8650 eval as_val
=\$
$as_ac_Header
8651 if test "x$as_val" = x
""yes; then :
8652 cat >>confdefs.h
<<_ACEOF
8653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8689 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #include <sys/personality.h>
8696 personality (PER_LINUX32)
8701 if ac_fn_c_try_compile
"$LINENO"; then :
8702 emacs_cv_personality_linux32
=yes
8704 emacs_cv_personality_linux32
=no
8706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8708 $as_echo "$emacs_cv_personality_linux32" >&6; }
8710 if test $emacs_cv_personality_linux32 = yes; then
8712 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8716 for ac_header
in term.h
8718 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8719 if test "x$ac_cv_header_term_h" = x
""yes; then :
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HAVE_TERM_H 1
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8729 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8730 if test "${ac_cv_header_time+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8736 #include <sys/time.h>
8742 if ((struct tm *) 0)
8748 if ac_fn_c_try_compile
"$LINENO"; then :
8749 ac_cv_header_time
=yes
8751 ac_cv_header_time
=no
8753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8756 $as_echo "$ac_cv_header_time" >&6; }
8757 if test $ac_cv_header_time = yes; then
8759 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8763 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8764 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8770 cat >>confdefs.h
<<_ACEOF
8771 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8774 if test $ac_cv_have_decl_sys_siglist != yes; then
8775 # For Tru64, at least:
8776 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8777 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8783 cat >>confdefs.h
<<_ACEOF
8784 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8787 if test $ac_cv_have_decl___sys_siglist = yes; then
8789 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8794 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8795 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
8798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800 #include <sys/types.h>
8801 #include <sys/wait.h>
8803 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8806 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8814 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8819 if ac_fn_c_try_compile
"$LINENO"; then :
8820 ac_cv_header_sys_wait_h
=yes
8822 ac_cv_header_sys_wait_h
=no
8824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8827 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8828 if test $ac_cv_header_sys_wait_h = yes; then
8830 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8836 $as_echo_n "checking for speed_t... " >&6; }
8837 if test "${emacs_cv_speed_t+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
8840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <termios.h>
8851 if ac_fn_c_try_compile
"$LINENO"; then :
8852 emacs_cv_speed_t
=yes
8856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8859 $as_echo "$emacs_cv_speed_t" >&6; }
8860 if test $emacs_cv_speed_t = yes; then
8862 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8867 $as_echo_n "checking for struct exception... " >&6; }
8868 if test "${emacs_cv_struct_exception+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8877 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8882 if ac_fn_c_try_compile
"$LINENO"; then :
8883 emacs_cv_struct_exception
=yes
8885 emacs_cv_struct_exception
=no
8887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8890 $as_echo "$emacs_cv_struct_exception" >&6; }
8891 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8892 if test $emacs_cv_struct_exception != yes ||
test $opsys = darwin
; then
8894 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8901 for ac_header
in net
/if.h
8903 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8904 #if HAVE_SYS_SOCKET_H
8905 #include <sys/socket.h>
8908 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8909 cat >>confdefs.h
<<_ACEOF
8910 #define HAVE_NET_IF_H 1
8917 for ac_header
in ifaddrs.h
8919 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8920 #if HAVE_SYS_SOCKET_H
8921 #include <sys/socket.h>
8924 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8925 cat >>confdefs.h
<<_ACEOF
8926 #define HAVE_IFADDRS_H 1
8933 for ac_header
in net
/if_dl.h
8935 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8936 #if HAVE_SYS_SOCKET_H
8937 #include <sys/socket.h>
8940 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8941 cat >>confdefs.h
<<_ACEOF
8942 #define HAVE_NET_IF_DL_H 1
8950 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8951 #if HAVE_SYS_SOCKET_H
8952 #include <sys/socket.h>
8958 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8960 cat >>confdefs.h
<<_ACEOF
8961 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8966 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8967 #if HAVE_SYS_SOCKET_H
8968 #include <sys/socket.h>
8974 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8976 cat >>confdefs.h
<<_ACEOF
8977 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8982 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8990 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8992 cat >>confdefs.h
<<_ACEOF
8993 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8998 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8999 #if HAVE_SYS_SOCKET_H
9000 #include <sys/socket.h>
9006 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9008 cat >>confdefs.h
<<_ACEOF
9009 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9014 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9015 #if HAVE_SYS_SOCKET_H
9016 #include <sys/socket.h>
9022 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9024 cat >>confdefs.h
<<_ACEOF
9025 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9030 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9031 #if HAVE_SYS_SOCKET_H
9032 #include <sys/socket.h>
9038 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9040 cat >>confdefs.h
<<_ACEOF
9041 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9053 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9055 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9057 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9058 if test "x$testval" != x
; then
9061 ac_enable_autodepend
=no
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9064 $as_echo "$HAVE_GNU_MAKE" >&6; }
9065 if test $HAVE_GNU_MAKE = yes; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9067 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9068 SAVE_CFLAGS
="$CFLAGS"
9069 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9081 if ac_fn_c_try_compile
"$LINENO"; then :
9084 ac_enable_autodepend
=no
9086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9087 CFLAGS
="$SAVE_CFLAGS"
9088 test -f deps.d || ac_enable_autodepend
=no
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9091 $as_echo "$ac_enable_autodepend" >&6; }
9093 if test $ac_enable_autodepend = yes; then
9094 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9095 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9096 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9097 deps_frag
=autodeps.mk
9100 deps_frag
=$srcdir/src
/$deps_frag
9106 lisp_frag
=$srcdir/src
/lisp.mk
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9111 $as_echo_n "checking for long file names... " >&6; }
9112 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9115 ac_cv_sys_long_file_names
=yes
9116 # Test for long file names in all the places we know might matter:
9117 # . the current directory, where building will happen
9118 # $prefix/lib where we will be installing things
9119 # $exec_prefix/lib likewise
9120 # $TMPDIR if set, where it might want to write temporary files
9121 # /tmp where it might want to write temporary files
9124 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9125 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9126 # in the usual case where exec_prefix is '${prefix}'.
9128 . |
/* | ?
:[\\/]*) ;; #(
9131 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9132 ac_xdir
=$ac_dir/cf$$
9133 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9134 ac_tf1
=$ac_xdir/conftest9012345
9135 ac_tf2
=$ac_xdir/conftest9012346
9136 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9137 ac_cv_sys_long_file_names
=no
9138 rm -f -r "$ac_xdir" 2>/dev
/null
9139 test $ac_cv_sys_long_file_names = no
&& break
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9143 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9144 if test $ac_cv_sys_long_file_names = yes; then
9146 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9151 #### Choose a window system.
9153 ## We leave window_system equal to none if
9154 ## we end up building without one. Any new window system should
9155 ## set window_system to an appropriate value and add objects to
9156 ## window-system-specific substs.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9160 $as_echo_n "checking for X... " >&6; }
9163 # Check whether --with-x was given.
9164 if test "${with_x+set}" = set; then :
9168 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9169 if test "x$with_x" = xno
; then
9170 # The user explicitly disabled X.
9173 case $x_includes,$x_libraries in #(
9174 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9175 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9178 # One or both of the vars are not set, and there is no cached value.
9179 ac_x_includes
=no ac_x_libraries
=no
9180 rm -f -r conftest.dir
9181 if mkdir conftest.dir
; then
9183 cat >Imakefile
<<'_ACEOF'
9185 @echo incroot='${INCROOT}'
9187 @echo usrlibdir='${USRLIBDIR}'
9189 @echo libdir='${LIBDIR}'
9191 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9193 for ac_var
in incroot usrlibdir libdir
; do
9194 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9196 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9197 for ac_extension
in a so sl dylib la dll
; do
9198 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9199 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9200 ac_im_usrlibdir
=$ac_im_libdir; break
9203 # Screen out bogus values from the imake configuration. They are
9204 # bogus both because they are the default anyway, and because
9205 # using them would break gcc on systems where it needs fixed includes.
9206 case $ac_im_incroot in
9207 /usr
/include
) ac_x_includes
= ;;
9208 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9210 case $ac_im_usrlibdir in
9211 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9212 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9216 rm -f -r conftest.dir
9219 # Standard set of common directories for X headers.
9220 # Check X11 before X11Rn because it is often a symlink to the current release.
9234 /usr/local/X11/include
9235 /usr/local/X11R7/include
9236 /usr/local/X11R6/include
9237 /usr/local/X11R5/include
9238 /usr/local/X11R4/include
9240 /usr/local/include/X11
9241 /usr/local/include/X11R7
9242 /usr/local/include/X11R6
9243 /usr/local/include/X11R5
9244 /usr/local/include/X11R4
9248 /usr/XFree86/include/X11
9252 /usr/unsupported/include
9254 /usr/local/x11r5/include
9255 /usr/lpp/Xamples/include
9257 /usr/openwin/include
9258 /usr/openwin/share/include'
9260 if test "$ac_x_includes" = no
; then
9261 # Guess where to find include files, by looking for Xlib.h.
9262 # First, try using that file with no special directory specified.
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <X11/Xlib.h>
9267 if ac_fn_c_try_cpp
"$LINENO"; then :
9268 # We can compile using X headers with no special include directory.
9271 for ac_dir
in $ac_x_header_dirs; do
9272 if test -r "$ac_dir/X11/Xlib.h"; then
9273 ac_x_includes
=$ac_dir
9278 rm -f conftest.err conftest.
$ac_ext
9279 fi # $ac_x_includes = no
9281 if test "$ac_x_libraries" = no
; then
9282 # Check for the libraries.
9283 # See if we find them without any special options.
9284 # Don't add to $LIBS permanently.
9287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <X11/Xlib.h>
9298 if ac_fn_c_try_link
"$LINENO"; then :
9300 # We can link X programs with no special library path.
9304 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9306 # Don't even attempt the hair of trying to link an X program!
9307 for ac_extension
in a so sl dylib la dll
; do
9308 if test -r "$ac_dir/libX11.$ac_extension"; then
9309 ac_x_libraries
=$ac_dir
9315 rm -f core conftest.err conftest.
$ac_objext \
9316 conftest
$ac_exeext conftest.
$ac_ext
9317 fi # $ac_x_libraries = no
9319 case $ac_x_includes,$ac_x_libraries in #(
9321 # Didn't find X, or a directory has "'" in its name.
9322 ac_cv_have_x
="have_x=no";; #(
9324 # Record where we found X for the cache.
9325 ac_cv_have_x
="have_x=yes\
9326 ac_x_includes='$ac_x_includes'\
9327 ac_x_libraries='$ac_x_libraries'"
9333 eval "$ac_cv_have_x"
9336 if test "$have_x" != yes; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9338 $as_echo "$have_x" >&6; }
9341 # If each of the values was on the command line, it overrides each guess.
9342 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9343 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9344 # Update the cache value to reflect the command line values.
9345 ac_cv_have_x
="have_x=yes\
9346 ac_x_includes='$x_includes'\
9347 ac_x_libraries='$x_libraries'"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9349 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9352 if test "$no_x" != yes; then
9356 LD_SWITCH_X_SITE_RPATH
=
9357 if test "${x_libraries}" != NONE
; then
9358 if test -n "${x_libraries}"; then
9359 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9360 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9362 x_default_search_path
=""
9363 x_search_path
=${x_libraries}
9364 if test -z "${x_search_path}"; then
9365 x_search_path
=/usr
/lib
9367 for x_library
in `echo ${x_search_path}: | \
9368 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9370 ${x_library}/X11/%L/%T/%N%C%S:\
9371 ${x_library}/X11/%l/%T/%N%C%S:\
9372 ${x_library}/X11/%T/%N%C%S:\
9373 ${x_library}/X11/%L/%T/%N%S:\
9374 ${x_library}/X11/%l/%T/%N%S:\
9375 ${x_library}/X11/%T/%N%S"
9376 if test x
"${x_default_search_path}" = x
; then
9377 x_default_search_path
=${x_search_path}
9379 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9385 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9386 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9389 if test x
"${x_includes}" = x
; then
9390 bitmapdir
=/usr
/include
/X11
/bitmaps
9392 # accumulate include directories that have X11 bitmap subdirectories
9394 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9395 if test -d "${bmd}/X11/bitmaps"; then
9396 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9398 if test -d "${bmd}/bitmaps"; then
9399 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9402 if test ${bmd_acc} != "dummyval"; then
9403 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9410 tmp_CPPFLAGS
="$CPPFLAGS"
9411 tmp_CFLAGS
="$CFLAGS"
9412 CPPFLAGS
="$CPPFLAGS -x objective-c"
9413 CFLAGS
="$CFLAGS -x objective-c"
9414 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9416 if test "${with_ns}" != no
; then
9417 if test "${opsys}" = darwin
; then
9419 ns_appdir
=`pwd`/nextstep
/Emacs.app
9420 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9421 ns_appresdir
=${ns_appdir}/Contents
/Resources
9422 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9423 elif test -f $GNUSTEP_CONFIG_FILE; then
9425 ns_appdir
=`pwd`/nextstep
/Emacs.app
9426 ns_appbindir
=${ns_appdir}
9427 ns_appresdir
=${ns_appdir}/Resources
9428 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9429 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9430 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9431 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9432 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9433 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9434 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9435 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9436 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9437 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9438 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9439 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9444 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9445 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9446 $as_echo_n "(cached) " >&6
9448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <GNUstepBase/GSConfig.h>
9454 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9463 if ac_fn_c_try_compile
"$LINENO"; then :
9464 emacs_cv_objc_exceptions
=yes
9466 emacs_cv_objc_exceptions
=no
9468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9471 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9472 if test $emacs_cv_objc_exceptions = yes; then
9474 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9476 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9480 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9482 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9483 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9486 as_fn_error
"\`--with-ns' was specified, but the include
9487 files are missing or cannot be compiled." "$LINENO" 5
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #include <Foundation/NSObjCRuntime.h>
9502 if ac_fn_c_try_compile
"$LINENO"; then :
9503 ns_have_nsinteger
=yes
9505 ns_have_nsinteger
=no
9507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9508 if test $ns_have_nsinteger = yes; then
9510 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9516 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9517 ns_self_contained
=no
9521 if test "${HAVE_NS}" = yes; then
9522 if test "$with_toolkit_scroll_bars" = "no"; then
9523 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9526 window_system
=nextstep
9527 # set up packaging dirs
9528 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9529 ns_self_contained
=yes
9530 prefix
=${ns_appresdir}
9531 exec_prefix
=${ns_appbindir}
9532 libexecdir
="\${ns_appbindir}/libexec"
9533 archlibdir
="\${ns_appbindir}/libexec"
9534 docdir
="\${ns_appresdir}/etc"
9535 etcdir
="\${ns_appresdir}/etc"
9536 infodir
="\${ns_appresdir}/info"
9537 mandir
="\${ns_appresdir}/man"
9538 lispdir
="\${ns_appresdir}/lisp"
9539 leimdir
="\${ns_appresdir}/leim"
9540 INSTALL_ARCH_INDEP_EXTRA
=
9542 ns_frag
=$srcdir/src
/ns.mk
9543 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9545 CFLAGS
="$tmp_CFLAGS"
9546 CPPFLAGS
="$tmp_CPPFLAGS"
9554 ## $window_system is now set to the window system we will
9562 case "${window_system}" in
9567 case "${with_x_toolkit}" in
9568 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9569 motif
) USE_X_TOOLKIT
=MOTIF
;;
9571 term_header
=gtkutil.h
9572 USE_X_TOOLKIT
=none
;;
9573 gtk3
) with_gtk3
=yes
9574 term_header
=gtkutil.h
9575 USE_X_TOOLKIT
=none
;;
9576 no
) USE_X_TOOLKIT
=none
;;
9577 * ) USE_X_TOOLKIT
=maybe
;;
9581 term_header
=nsterm.h
9585 if test -n "${term_header}"; then
9587 cat >>confdefs.h
<<_ACEOF
9588 #define TERM_HEADER "${term_header}"
9593 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9594 # Extract the first word of "X", so it can be a program name with args.
9595 set dummy X
; ac_word
=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9601 if test -n "$HAVE_XSERVER"; then
9602 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir
=.
9609 for ac_exec_ext
in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_prog_HAVE_XSERVER
="true"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9622 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9623 if test -n "$HAVE_XSERVER"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9625 $as_echo "$HAVE_XSERVER" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9632 if test "$HAVE_XSERVER" = true ||
9633 test -n "$DISPLAY" ||
9634 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9635 as_fn_error
"You seem to be running X, but no X development libraries
9636 were found. You should install the relevant development files for X
9637 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9638 sure you have development files for image handling, i.e.
9639 tiff, gif, jpeg, png and xpm.
9640 If you are sure you want Emacs compiled without X window support, pass
9642 to configure." "$LINENO" 5
9646 ### If we're using X11, we should use the X menu package.
9649 yes ) HAVE_MENUS
=yes ;;
9652 # Does the opsystem file prohibit the use of the GNU malloc?
9653 # Assume not, until told otherwise.
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9657 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9658 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9664 static void hook (void) {}
9668 malloc_set_state (malloc_get_state ());
9669 __after_morecore_hook = hook;
9670 __malloc_initialize_hook = hook;
9675 if ac_fn_c_try_link
"$LINENO"; then :
9676 emacs_cv_var_doug_lea_malloc
=yes
9678 emacs_cv_var_doug_lea_malloc
=no
9680 rm -f core conftest.err conftest.
$ac_objext \
9681 conftest
$ac_exeext conftest.
$ac_ext
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9684 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9685 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9690 ## darwin ld insists on the use of malloc routines in the System framework.
9691 darwin|sol2-10
) system_malloc
=yes ;;
9694 if test "${system_malloc}" = "yes"; then
9696 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9700 (The GNU allocators don't work with this system configuration.)"
9704 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9705 VMLIMIT_OBJ
=vm-limit.o
9710 if test "$doug_lea_malloc" = "yes" ; then
9711 if test "$GNU_MALLOC" = yes ; then
9713 (Using Doug Lea's new malloc from the GNU C Library.)"
9716 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9719 ## Use mmap directly for allocating larger buffers.
9720 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9721 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9722 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9724 gnu
*) REL_ALLOC
=no
;;
9728 if test x
"${REL_ALLOC}" = x
; then
9729 REL_ALLOC
=${GNU_MALLOC}
9732 use_mmap_for_buffers
=no
9734 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9744 for ac_func
in getpagesize
9746 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9747 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9748 cat >>confdefs.h
<<_ACEOF
9749 #define HAVE_GETPAGESIZE 1
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9756 $as_echo_n "checking for working mmap... " >&6; }
9757 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9758 $as_echo_n "(cached) " >&6
9760 if test "$cross_compiling" = yes; then :
9761 ac_cv_func_mmap_fixed_mapped
=no
9763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 /* malloc might have been renamed as rpl_malloc. */
9769 /* Thanks to Mike Haertel and Jim Avera for this test.
9770 Here is a matrix of mmap possibilities:
9771 mmap private not fixed
9772 mmap private fixed at somewhere currently unmapped
9773 mmap private fixed at somewhere already mapped
9774 mmap shared not fixed
9775 mmap shared fixed at somewhere currently unmapped
9776 mmap shared fixed at somewhere already mapped
9777 For private mappings, we should verify that changes cannot be read()
9778 back from the file, nor mmap's back from the file at a different
9779 address. (There have been systems where private was not correctly
9780 implemented like the infamous i386 svr4.0, and systems where the
9781 VM page cache was not coherent with the file system buffer cache
9782 like early versions of FreeBSD and possibly contemporary NetBSD.)
9783 For shared mappings, we should conversely verify that changes get
9784 propagated back to all the places they're supposed to be.
9786 Grep wants private fixed already mapped.
9787 The main things grep needs to know about mmap are:
9788 * does it exist and is it safe to write into the mmap'd area
9789 * how to use it (BSD variants) */
9792 #include <sys/mman.h>
9794 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9798 /* This mess was copied from the GNU getpagesize.h. */
9799 #ifndef HAVE_GETPAGESIZE
9800 # ifdef _SC_PAGESIZE
9801 # define getpagesize() sysconf(_SC_PAGESIZE)
9802 # else /* no _SC_PAGESIZE */
9803 # ifdef HAVE_SYS_PARAM_H
9804 # include <sys/param.h>
9805 # ifdef EXEC_PAGESIZE
9806 # define getpagesize() EXEC_PAGESIZE
9807 # else /* no EXEC_PAGESIZE */
9809 # define getpagesize() NBPG * CLSIZE
9812 # endif /* no CLSIZE */
9813 # else /* no NBPG */
9815 # define getpagesize() NBPC
9816 # else /* no NBPC */
9818 # define getpagesize() PAGESIZE
9819 # endif /* PAGESIZE */
9820 # endif /* no NBPC */
9821 # endif /* no NBPG */
9822 # endif /* no EXEC_PAGESIZE */
9823 # else /* no HAVE_SYS_PARAM_H */
9824 # define getpagesize() 8192 /* punt totally */
9825 # endif /* no HAVE_SYS_PARAM_H */
9826 # endif /* no _SC_PAGESIZE */
9828 #endif /* no HAVE_GETPAGESIZE */
9833 char *data, *data2, *data3;
9838 pagesize = getpagesize ();
9840 /* First, make a file with some known garbage in it. */
9841 data = (char *) malloc (pagesize);
9844 for (i = 0; i < pagesize; ++i)
9845 *(data + i) = rand ();
9847 fd = creat ("conftest.mmap", 0600);
9850 if (write (fd, data, pagesize) != pagesize)
9854 /* Next, check that the tail of a page is zero-filled. File must have
9855 non-zero length, otherwise we risk SIGBUS for entire page. */
9856 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9860 if (write (fd2, cdata2, 1) != 1)
9862 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9863 if (data2 == MAP_FAILED)
9865 for (i = 0; i < pagesize; ++i)
9869 if (munmap (data2, pagesize))
9872 /* Next, try to mmap the file at a fixed address which already has
9873 something else allocated at it. If we can, also make sure that
9874 we see the same garbage. */
9875 fd = open ("conftest.mmap", O_RDWR);
9878 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9879 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9881 for (i = 0; i < pagesize; ++i)
9882 if (*(data + i) != *(data2 + i))
9885 /* Finally, make sure that changes to the mapped area do not
9886 percolate back to the file as seen by read(). (This is a bug on
9887 some variants of i386 svr4.0.) */
9888 for (i = 0; i < pagesize; ++i)
9889 *(data2 + i) = *(data2 + i) + 1;
9890 data3 = (char *) malloc (pagesize);
9893 if (read (fd, data3, pagesize) != pagesize)
9895 for (i = 0; i < pagesize; ++i)
9896 if (*(data + i) != *(data3 + i))
9902 if ac_fn_c_try_run
"$LINENO"; then :
9903 ac_cv_func_mmap_fixed_mapped
=yes
9905 ac_cv_func_mmap_fixed_mapped
=no
9907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9913 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9914 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9916 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9919 rm -f conftest.mmap conftest.txt
9921 if test $use_mmap_for_buffers = yes; then
9923 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9928 LIBS
="$LIBS_SYSTEM $LIBS"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9931 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9932 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9935 ac_check_lib_save_LIBS
=$LIBS
9937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9950 return dnet_ntoa ();
9955 if ac_fn_c_try_link
"$LINENO"; then :
9956 ac_cv_lib_dnet_dnet_ntoa
=yes
9958 ac_cv_lib_dnet_dnet_ntoa
=no
9960 rm -f core conftest.err conftest.
$ac_objext \
9961 conftest
$ac_exeext conftest.
$ac_ext
9962 LIBS
=$ac_check_lib_save_LIBS
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9965 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9966 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9967 cat >>confdefs.h
<<_ACEOF
9968 #define HAVE_LIBDNET 1
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9977 $as_echo_n "checking for main in -lXbsd... " >&6; }
9978 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9981 ac_check_lib_save_LIBS
=$LIBS
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9995 if ac_fn_c_try_link
"$LINENO"; then :
9996 ac_cv_lib_Xbsd_main
=yes
9998 ac_cv_lib_Xbsd_main
=no
10000 rm -f core conftest.err conftest.
$ac_objext \
10001 conftest
$ac_exeext conftest.
$ac_ext
10002 LIBS
=$ac_check_lib_save_LIBS
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10005 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10006 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10007 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10015 if test "$ac_cv_header_pthread_h"; then
10016 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10017 emacs_pthread_function
=pthread_atfork
10019 emacs_pthread_function
=pthread_self
10021 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10023 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10024 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10025 $as_echo_n "(cached) " >&6
10027 ac_check_lib_save_LIBS
=$LIBS
10028 LIBS
="-lpthread $LIBS"
10029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10038 char $emacs_pthread_function ();
10042 return $emacs_pthread_function ();
10047 if ac_fn_c_try_link
"$LINENO"; then :
10048 eval "$as_ac_Lib=yes"
10050 eval "$as_ac_Lib=no"
10052 rm -f core conftest.err conftest.
$ac_objext \
10053 conftest
$ac_exeext conftest.
$ac_ext
10054 LIBS
=$ac_check_lib_save_LIBS
10056 eval ac_res
=\$
$as_ac_Lib
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10058 $as_echo "$ac_res" >&6; }
10059 eval as_val
=\$
$as_ac_Lib
10060 if test "x$as_val" = x
""yes; then :
10065 if test "$HAVE_PTHREAD" = yes; then
10066 case "${canonical}" in
10068 *) LIB_PTHREAD
="-lpthread"
10069 LIBS
="$LIB_PTHREAD $LIBS" ;;
10072 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10078 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10079 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10082 ac_check_lib_save_LIBS
=$LIBS
10083 LIBS
="-lpthreads $LIBS"
10084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10097 return cma_open ();
10102 if ac_fn_c_try_link
"$LINENO"; then :
10103 ac_cv_lib_pthreads_cma_open
=yes
10105 ac_cv_lib_pthreads_cma_open
=no
10107 rm -f core conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10109 LIBS
=$ac_check_lib_save_LIBS
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10112 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10113 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10114 cat >>confdefs.h
<<_ACEOF
10115 #define HAVE_LIBPTHREADS 1
10118 LIBS
="-lpthreads $LIBS"
10123 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10124 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10125 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10126 ## added to LIBS in configure would never contain the pthreads part,
10127 ## but the value used in Makefiles might. FIXME?
10129 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10130 ## be harmless on older versions of X where it happens to exist.
10131 test "$opsys" = "aix4-2" && \
10132 test $ac_cv_lib_pthreads_cma_open = yes && \
10133 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10139 $as_echo_n "checking for -bbigtoc option... " >&6; }
10140 if test "${gdb_cv_bigtoc+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10145 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10146 *) gdb_cv_bigtoc
=-bbigtoc ;;
10149 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10161 if ac_fn_c_try_link
"$LINENO"; then :
10166 rm -f core conftest.err conftest.
$ac_objext \
10167 conftest
$ac_exeext conftest.
$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10171 $as_echo "$gdb_cv_bigtoc" >&6; }
10175 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10176 # used for the tests that follow. We set them back to REAL_CFLAGS and
10177 # REAL_CPPFLAGS later on.
10179 REAL_CFLAGS
="$CFLAGS"
10180 REAL_CPPFLAGS
="$CPPFLAGS"
10182 if test "${HAVE_X11}" = "yes"; then
10183 DEFS
="$C_SWITCH_X_SITE $DEFS"
10184 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10186 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10187 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10189 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10190 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10191 # but it's more convenient here to set LD_RUN_PATH since this
10192 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10193 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10194 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10198 if test "${opsys}" = "gnu-linux"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10200 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10207 XOpenDisplay ("foo");
10212 if ac_fn_c_try_link
"$LINENO"; then :
10213 xgnu_linux_first_failure
=no
10215 xgnu_linux_first_failure
=yes
10217 rm -f core conftest.err conftest.
$ac_objext \
10218 conftest
$ac_exeext conftest.
$ac_ext
10219 if test "${xgnu_linux_first_failure}" = "yes"; then
10220 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10221 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10222 OLD_CPPFLAGS
="$CPPFLAGS"
10224 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10225 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10226 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10227 LIBS
="$LIBS -b i486-linuxaout"
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10234 XOpenDisplay ("foo");
10239 if ac_fn_c_try_link
"$LINENO"; then :
10240 xgnu_linux_second_failure
=no
10242 xgnu_linux_second_failure
=yes
10244 rm -f core conftest.err conftest.
$ac_objext \
10245 conftest
$ac_exeext conftest.
$ac_ext
10246 if test "${xgnu_linux_second_failure}" = "yes"; then
10247 # If we get the same failure with -b, there is no use adding -b.
10248 # So take it out. This plays safe.
10249 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10250 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10251 CPPFLAGS
="$OLD_CPPFLAGS"
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257 $as_echo "yes" >&6; }
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10265 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10266 # header files included from there.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10268 $as_echo_n "checking for Xkb... " >&6; }
10269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 #include <X11/Xlib.h>
10272 #include <X11/XKBlib.h>
10276 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10281 if ac_fn_c_try_link
"$LINENO"; then :
10286 rm -f core conftest.err conftest.
$ac_objext \
10287 conftest
$ac_exeext conftest.
$ac_ext
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10289 $as_echo "$emacs_xkb" >&6; }
10290 if test $emacs_xkb = yes; then
10292 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10296 for ac_func
in XrmSetDatabase XScreenResourceString \
10297 XScreenNumberOfScreen
10299 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10301 eval as_val
=\$
$as_ac_var
10302 if test "x$as_val" = x
""yes; then :
10303 cat >>confdefs.h
<<_ACEOF
10304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10312 if test "${window_system}" = "x11"; then
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10314 $as_echo_n "checking X11 version 6... " >&6; }
10315 if test "${emacs_cv_x11_version_6+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 #include <X11/Xlib.h>
10324 #if XlibSpecificationRelease < 6
10332 if ac_fn_c_try_link
"$LINENO"; then :
10333 emacs_cv_x11_version_6
=yes
10335 emacs_cv_x11_version_6
=no
10337 rm -f core conftest.err conftest.
$ac_objext \
10338 conftest
$ac_exeext conftest.
$ac_ext
10341 if test $emacs_cv_x11_version_6 = yes; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10343 $as_echo "6 or newer" >&6; }
10345 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10348 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10350 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10355 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10361 $as_echo "before 6" >&6; }
10366 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10368 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10369 if test "${with_rsvg}" != "no"; then
10370 RSVG_REQUIRED
=2.11.0
10371 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10376 if test "$PKG_CONFIG" = "no" ; then
10379 PKG_CONFIG_MIN_VERSION
=0.9.0
10380 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10382 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10384 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10385 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10386 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10393 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10394 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10396 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10403 ## If we have a custom action on failure, don't print errors, but
10404 ## do set a variable so people can do so.
10405 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10417 if test $succeeded = yes; then
10426 if test $HAVE_RSVG = yes; then
10428 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10430 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10431 LIBS
="$RSVG_LIBS $LIBS"
10436 HAVE_IMAGEMAGICK
=no
10437 if test "${HAVE_X11}" = "yes"; then
10438 if test "${with_imagemagick}" != "no"; then
10439 ## 6.2.8 is the earliest version known to work, but earlier versions
10440 ## might work - let us know if you find one.
10441 ## 6.0.7 does not work. See bug#7955.
10442 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10446 if test "$PKG_CONFIG" = "no" ; then
10449 PKG_CONFIG_MIN_VERSION
=0.9.0
10450 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10452 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10454 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10455 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10456 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10463 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10464 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10466 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10471 IMAGEMAGICK_CFLAGS
=""
10472 IMAGEMAGICK_LIBS
=""
10473 ## If we have a custom action on failure, don't print errors, but
10474 ## do set a variable so people can do so.
10475 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10487 if test $succeeded = yes; then
10488 HAVE_IMAGEMAGICK
=yes
10496 if test $HAVE_IMAGEMAGICK = yes; then
10498 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10500 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10501 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10502 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10504 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10505 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10506 eval as_val
=\$
$as_ac_var
10507 if test "x$as_val" = x
""yes; then :
10508 cat >>confdefs.h
<<_ACEOF
10509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10522 if test "${with_gtk3}" = "yes"; then
10525 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10530 if test "$PKG_CONFIG" = "no" ; then
10533 PKG_CONFIG_MIN_VERSION
=0.9.0
10534 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10536 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10538 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10539 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10540 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10547 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10548 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10550 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10557 ## If we have a custom action on failure, don't print errors, but
10558 ## do set a variable so people can do so.
10559 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10566 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10567 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10571 if test $succeeded = yes; then
10577 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10578 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10581 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10583 GTK_OBJ
=emacsgtkfixed.o
10584 term_header
=gtkutil.h
10587 if test "$pkg_check_gtk" != "yes"; then
10589 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10592 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10597 if test "$PKG_CONFIG" = "no" ; then
10600 PKG_CONFIG_MIN_VERSION
=0.9.0
10601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10603 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10605 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10606 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10607 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10614 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10615 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10617 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10624 ## If we have a custom action on failure, don't print errors, but
10625 ## do set a variable so people can do so.
10626 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10638 if test $succeeded = yes; then
10644 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10645 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10650 if test x
"$pkg_check_gtk" = xyes
; then
10654 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10655 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10656 LIBS
="$GTK_LIBS $LIBS"
10658 for ac_func
in gtk_main
10660 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10661 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10662 cat >>confdefs.h
<<_ACEOF
10663 #define HAVE_GTK_MAIN 1
10669 if test "${GTK_COMPILES}" != "yes"; then
10670 if test "$USE_X_TOOLKIT" != "maybe"; then
10671 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10676 $as_echo "#define USE_GTK 1" >>confdefs.h
10678 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10680 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10684 closing open displays. This is no problem if you just use
10685 one display, but if you use more than one and close one of them
10686 Emacs may crash." >&5
10687 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10688 closing open displays. This is no problem if you just use
10689 one display, but if you use more than one and close one of them
10690 Emacs may crash." >&2;}
10699 if test "${HAVE_GTK}" = "yes"; then
10701 if test "$with_toolkit_scroll_bars" != no
; then
10702 with_toolkit_scroll_bars
=yes
10705 HAVE_GTK_FILE_SELECTION
=no
10706 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10707 #include <gtk/gtk.h>
10709 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10710 HAVE_GTK_FILE_SELECTION
=yes
10712 HAVE_GTK_FILE_SELECTION
=no
10715 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10716 for ac_func
in gtk_file_selection_new
10718 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10719 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10720 cat >>confdefs.h
<<_ACEOF
10721 #define HAVE_GTK_FILE_SELECTION_NEW 1
10730 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10731 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10732 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10733 gtk_orientable_set_orientation \
10734 gtk_window_set_has_resize_grip
10736 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10737 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10738 eval as_val
=\$
$as_ac_var
10739 if test "x$as_val" = x
""yes; then :
10740 cat >>confdefs.h
<<_ACEOF
10741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10748 term_header
=gtkutil.h
10753 if test "${with_dbus}" = "yes"; then
10757 if test "$PKG_CONFIG" = "no" ; then
10760 PKG_CONFIG_MIN_VERSION
=0.9.0
10761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10763 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10765 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10766 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10767 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10774 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10775 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10777 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10784 ## If we have a custom action on failure, don't print errors, but
10785 ## do set a variable so people can do so.
10786 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10798 if test $succeeded = yes; then
10804 if test "$HAVE_DBUS" = yes; then
10805 LIBS
="$LIBS $DBUS_LIBS"
10807 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10809 for ac_func
in dbus_watch_get_unix_fd \
10810 dbus_type_is_valid \
10811 dbus_validate_bus_name \
10812 dbus_validate_path \
10813 dbus_validate_interface \
10814 dbus_validate_member
10816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10818 eval as_val
=\$
$as_ac_var
10819 if test "x$as_val" = x
""yes; then :
10820 cat >>confdefs.h
<<_ACEOF
10821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827 DBUS_OBJ
=dbusbind.o
10833 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10837 if test "$PKG_CONFIG" = "no" ; then
10840 PKG_CONFIG_MIN_VERSION
=0.9.0
10841 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10843 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10845 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10846 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10847 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10854 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10855 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10857 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861 $as_echo "no" >&6; }
10862 GSETTINGS_CFLAGS
=""
10864 ## If we have a custom action on failure, don't print errors, but
10865 ## do set a variable so people can do so.
10866 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10878 if test $succeeded = yes; then
10884 if test "$HAVE_GSETTINGS" = "yes"; then
10886 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10888 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10889 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10894 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10898 if test "$PKG_CONFIG" = "no" ; then
10901 PKG_CONFIG_MIN_VERSION
=0.9.0
10902 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10904 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10906 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10907 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10908 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10915 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10916 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10918 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10925 ## If we have a custom action on failure, don't print errors, but
10926 ## do set a variable so people can do so.
10927 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10939 if test $succeeded = yes; then
10945 if test "$HAVE_GCONF" = yes; then
10947 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10949 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10950 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10954 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10955 SAVE_CFLAGS
="$CFLAGS"
10957 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
10958 LIBS
="$SETTINGS_LIBS $LIBS"
10959 for ac_func
in g_type_init
10961 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10962 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10963 cat >>confdefs.h
<<_ACEOF
10964 #define HAVE_G_TYPE_INIT 1
10970 CFLAGS
="$SAVE_CFLAGS"
10979 if test "${with_selinux}" = "yes"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10981 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10982 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10985 ac_check_lib_save_LIBS
=$LIBS
10986 LIBS
="-lselinux $LIBS"
10987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10996 char lgetfilecon ();
11000 return lgetfilecon ();
11005 if ac_fn_c_try_link
"$LINENO"; then :
11006 ac_cv_lib_selinux_lgetfilecon
=yes
11008 ac_cv_lib_selinux_lgetfilecon
=no
11010 rm -f core conftest.err conftest.
$ac_objext \
11011 conftest
$ac_exeext conftest.
$ac_ext
11012 LIBS
=$ac_check_lib_save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11015 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11016 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11017 HAVE_LIBSELINUX
=yes
11022 if test "$HAVE_LIBSELINUX" = yes; then
11024 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11026 LIBSELINUX_LIBS
=-lselinux
11032 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11033 if test "${with_gnutls}" = "yes" ; then
11037 if test "$PKG_CONFIG" = "no" ; then
11040 PKG_CONFIG_MIN_VERSION
=0.9.0
11041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11043 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11045 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11046 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11047 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11054 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11055 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11057 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11062 LIBGNUTLS_CFLAGS
=""
11064 ## If we have a custom action on failure, don't print errors, but
11065 ## do set a variable so people can do so.
11066 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11078 if test $succeeded = yes; then
11084 if test "${HAVE_GNUTLS}" = "yes"; then
11086 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11090 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11091 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11092 for ac_func
in gnutls_certificate_set_verify_function
11094 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11095 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11096 cat >>confdefs.h
<<_ACEOF
11097 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11099 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11104 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11106 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11116 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11117 if test "$with_xaw3d" != no
; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11119 $as_echo_n "checking for xaw3d... " >&6; }
11120 if test "${emacs_cv_xaw3d+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11126 #include <X11/Intrinsic.h>
11127 #include <X11/Xaw3d/Simple.h>
11136 if ac_fn_c_try_link
"$LINENO"; then :
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11138 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11139 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11142 ac_check_lib_save_LIBS
=$LIBS
11143 LIBS
="-lXaw3d $LIBS"
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11153 char XawScrollbarSetThumb ();
11157 return XawScrollbarSetThumb ();
11162 if ac_fn_c_try_link
"$LINENO"; then :
11163 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11165 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11167 rm -f core conftest.err conftest.
$ac_objext \
11168 conftest
$ac_exeext conftest.
$ac_ext
11169 LIBS
=$ac_check_lib_save_LIBS
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11172 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11173 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11182 rm -f core conftest.err conftest.
$ac_objext \
11183 conftest
$ac_exeext conftest.
$ac_ext
11189 if test $emacs_cv_xaw3d = yes; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11191 $as_echo "yes; using Lucid toolkit" >&6; }
11192 USE_X_TOOLKIT
=LUCID
11196 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11202 $as_echo_n "checking for libXaw... " >&6; }
11203 if test "${emacs_cv_xaw+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11209 #include <X11/Intrinsic.h>
11210 #include <X11/Xaw/Simple.h>
11219 if ac_fn_c_try_link
"$LINENO"; then :
11224 rm -f core conftest.err conftest.
$ac_objext \
11225 conftest
$ac_exeext conftest.
$ac_ext
11228 if test $emacs_cv_xaw = yes; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11230 $as_echo "yes; using Lucid toolkit" >&6; }
11231 USE_X_TOOLKIT
=LUCID
11233 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11234 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11236 as_fn_error
"No X toolkit could be found.
11237 If you are sure you want Emacs compiled without an X toolkit, pass
11238 --with-x-toolkit=no
11239 to configure. Otherwise, install the development libraries for the toolkit
11240 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11245 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11248 if test "${USE_X_TOOLKIT}" != "none"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11250 $as_echo_n "checking X11 toolkit version... " >&6; }
11251 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 #include <X11/Intrinsic.h>
11260 #if XtSpecificationRelease < 6
11268 if ac_fn_c_try_link
"$LINENO"; then :
11269 emacs_cv_x11_toolkit_version_6
=yes
11271 emacs_cv_x11_toolkit_version_6
=no
11273 rm -f core conftest.err conftest.
$ac_objext \
11274 conftest
$ac_exeext conftest.
$ac_ext
11277 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11278 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11280 $as_echo "6 or newer" >&6; }
11282 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11284 LIBXTR6
="-lSM -lICE"
11286 ## Use libw.a along with X11R6 Xt.
11287 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11291 $as_echo "before 6" >&6; }
11295 if test x
$HAVE_X11XTR6 = xyes
; then
11296 LIBS
="-lXt -lSM -lICE $LIBS"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11301 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11302 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 ac_check_lib_save_LIBS
=$LIBS
11307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11316 char XmuConvertStandardSelection ();
11320 return XmuConvertStandardSelection ();
11325 if ac_fn_c_try_link
"$LINENO"; then :
11326 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11328 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11330 rm -f core conftest.err conftest.
$ac_objext \
11331 conftest
$ac_exeext conftest.
$ac_ext
11332 LIBS
=$ac_check_lib_save_LIBS
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11335 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11336 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11337 cat >>confdefs.h
<<_ACEOF
11338 #define HAVE_LIBXMU 1
11345 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11351 ## These systems don't supply Xmu.
11353 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11358 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11359 if test "${HAVE_X11}" = "yes"; then
11360 if test "${USE_X_TOOLKIT}" != "none"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11362 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11363 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11366 ac_check_lib_save_LIBS
=$LIBS
11367 LIBS
="-lXext $LIBS"
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11377 char XShapeQueryExtension ();
11381 return XShapeQueryExtension ();
11386 if ac_fn_c_try_link
"$LINENO"; then :
11387 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11389 ac_cv_lib_Xext_XShapeQueryExtension
=no
11391 rm -f core conftest.err conftest.
$ac_objext \
11392 conftest
$ac_exeext conftest.
$ac_ext
11393 LIBS
=$ac_check_lib_save_LIBS
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11396 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11397 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11398 cat >>confdefs.h
<<_ACEOF
11399 #define HAVE_LIBXEXT 1
11402 LIBS
="-lXext $LIBS"
11410 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11411 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11412 if test -d /usr
/include
/openmotif
; then
11413 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11414 emacs_cv_openmotif
=yes
11415 case "$canonical" in
11416 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11417 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11420 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11423 emacs_cv_openmotif
=no
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11426 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11427 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11436 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11439 Motif version prior to 2.1.
11445 if ac_fn_c_try_compile
"$LINENO"; then :
11446 emacs_cv_motif_version_2_1
=yes
11448 emacs_cv_motif_version_2_1
=no
11450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11453 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11454 if test $emacs_cv_motif_version_2_1 = yes; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11456 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11457 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11460 ac_check_lib_save_LIBS
=$LIBS
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11471 char XpCreateContext ();
11475 return XpCreateContext ();
11480 if ac_fn_c_try_link
"$LINENO"; then :
11481 ac_cv_lib_Xp_XpCreateContext
=yes
11483 ac_cv_lib_Xp_XpCreateContext
=no
11485 rm -f core conftest.err conftest.
$ac_objext \
11486 conftest
$ac_exeext conftest.
$ac_ext
11487 LIBS
=$ac_check_lib_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11490 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11491 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11495 if test x
$emacs_cv_openmotif = xyes
; then
11496 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11500 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11501 if test "${emacs_cv_lesstif+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11504 # We put this in CFLAGS temporarily to precede other -I options
11505 # that might be in CFLAGS temporarily.
11506 # We put this in CPPFLAGS where it precedes the other -I options.
11507 OLD_CPPFLAGS
=$CPPFLAGS
11509 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11510 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11522 if ac_fn_c_try_compile
"$LINENO"; then :
11523 emacs_cv_lesstif
=yes
11525 emacs_cv_lesstif
=no
11527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11530 $as_echo "$emacs_cv_lesstif" >&6; }
11531 if test $emacs_cv_lesstif = yes; then
11532 # Make sure this -I option remains in CPPFLAGS after it is set
11533 # back to REAL_CPPFLAGS.
11534 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11535 # have those other -I options anyway. Ultimately, having this
11536 # directory ultimately in CPPFLAGS will be enough.
11537 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11538 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11541 CPPFLAGS
=$OLD_CPPFLAGS
11544 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11545 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11548 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11555 USE_TOOLKIT_SCROLL_BARS
=no
11556 if test "${with_toolkit_scroll_bars}" != "no"; then
11557 if test "${USE_X_TOOLKIT}" != "none"; then
11558 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11559 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11562 USE_TOOLKIT_SCROLL_BARS
=yes
11563 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11564 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11566 USE_TOOLKIT_SCROLL_BARS
=yes
11568 elif test "${HAVE_GTK}" = "yes"; then
11569 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11571 USE_TOOLKIT_SCROLL_BARS
=yes
11572 elif test "${HAVE_NS}" = "yes"; then
11573 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11575 USE_TOOLKIT_SCROLL_BARS
=yes
11579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 #include <X11/Xlib.h>
11583 #include <X11/Xresource.h>
11592 if ac_fn_c_try_compile
"$LINENO"; then :
11595 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11603 if test "${with_xim}" != "no"; then
11605 $as_echo "#define USE_XIM 1" >>confdefs.h
11610 if test "${HAVE_XIM}" != "no"; then
11611 late_CFLAGS
=$CFLAGS
11612 if test "$GCC" = yes; then
11613 CFLAGS
="$CFLAGS --pedantic-errors"
11615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 #include <X11/Xlib.h>
11619 #include <X11/Xresource.h>
11628 XPointer *client_data;
11630 /* If we're not using GCC, it's probably not XFree86, and this is
11631 probably right, but we can't use something like --pedantic-errors. */
11632 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11633 char*, XIMProc, XPointer*);
11635 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11641 if ac_fn_c_try_compile
"$LINENO"; then :
11642 emacs_cv_arg6_star
=yes
11644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11645 if test "$emacs_cv_arg6_star" = yes; then
11646 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11649 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11652 CFLAGS
=$late_CFLAGS
11655 ### Start of font-backend (under any platform) section.
11656 # (nothing here yet -- this is a placeholder)
11657 ### End of font-backend (under any platform) section.
11659 ### Start of font-backend (under X11) section.
11660 if test "${HAVE_X11}" = "yes"; then
11664 if test "$PKG_CONFIG" = "no" ; then
11667 PKG_CONFIG_MIN_VERSION
=0.9.0
11668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11670 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11672 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11673 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11674 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11681 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11682 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11684 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 FONTCONFIG_CFLAGS
=""
11691 ## If we have a custom action on failure, don't print errors, but
11692 ## do set a variable so people can do so.
11693 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11705 if test $succeeded = yes; then
11712 ## Use -lXft if available, unless `--with-xft=no'.
11714 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11717 if test "x${with_xft}" != "xno"; then
11722 if test "$PKG_CONFIG" = "no" ; then
11725 PKG_CONFIG_MIN_VERSION
=0.9.0
11726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11728 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11730 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11731 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11732 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11739 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11740 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11742 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11749 ## If we have a custom action on failure, don't print errors, but
11750 ## do set a variable so people can do so.
11751 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11763 if test $succeeded = yes; then
11769 ## Because xftfont.c uses XRenderQueryExtension, we also
11770 ## need to link to -lXrender.
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11773 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11774 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11777 ac_check_lib_save_LIBS
=$LIBS
11778 LIBS
="-lXrender $LIBS"
11779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11788 char XRenderQueryExtension ();
11792 return XRenderQueryExtension ();
11797 if ac_fn_c_try_link
"$LINENO"; then :
11798 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11800 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11802 rm -f core conftest.err conftest.
$ac_objext \
11803 conftest
$ac_exeext conftest.
$ac_ext
11804 LIBS
=$ac_check_lib_save_LIBS
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11807 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11808 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11812 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11813 OLD_CPPFLAGS
="$CPPFLAGS"
11814 OLD_CFLAGS
="$CFLAGS"
11816 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11817 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11818 XFT_LIBS
="-lXrender $XFT_LIBS"
11819 LIBS
="$XFT_LIBS $LIBS"
11820 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11821 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11823 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11824 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11827 ac_check_lib_save_LIBS
=$LIBS
11828 LIBS
="-lXft $XFT_LIBS $LIBS"
11829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11838 char XftFontOpen ();
11842 return XftFontOpen ();
11847 if ac_fn_c_try_link
"$LINENO"; then :
11848 ac_cv_lib_Xft_XftFontOpen
=yes
11850 ac_cv_lib_Xft_XftFontOpen
=no
11852 rm -f core conftest.err conftest.
$ac_objext \
11853 conftest
$ac_exeext conftest.
$ac_ext
11854 LIBS
=$ac_check_lib_save_LIBS
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11857 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11858 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11866 if test "${HAVE_XFT}" = "yes"; then
11868 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11871 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11873 CPPFLAGS
="$OLD_CPPFLAGS"
11874 CFLAGS
="$OLD_CFLAGS"
11876 fi # "${HAVE_XFT}" = "yes"
11877 fi # "$HAVE_XFT" != no
11878 fi # "x${with_xft}" != "xno"
11880 ## We used to allow building with FreeType and without Xft.
11881 ## However, the ftx font backend driver is not in good shape.
11882 if test "$HAVE_XFT" != "yes"; then
11889 if test "$PKG_CONFIG" = "no" ; then
11892 PKG_CONFIG_MIN_VERSION
=0.9.0
11893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11895 $as_echo_n "checking for freetype2... " >&6; }
11897 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11898 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11899 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11906 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11907 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11909 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11916 ## If we have a custom action on failure, don't print errors, but
11917 ## do set a variable so people can do so.
11918 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11930 if test $succeeded = yes; then
11937 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11941 if test "${HAVE_FREETYPE}" = "yes"; then
11943 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11945 if test "${with_libotf}" != "no"; then
11949 if test "$PKG_CONFIG" = "no" ; then
11952 PKG_CONFIG_MIN_VERSION
=0.9.0
11953 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11955 $as_echo_n "checking for libotf... " >&6; }
11957 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11958 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11959 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11966 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11967 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11969 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11976 ## If we have a custom action on failure, don't print errors, but
11977 ## do set a variable so people can do so.
11978 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11990 if test $succeeded = yes; then
11996 if test "$HAVE_LIBOTF" = "yes"; then
11998 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12001 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12002 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12005 ac_check_lib_save_LIBS
=$LIBS
12007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12016 char OTF_get_variation_glyphs ();
12020 return OTF_get_variation_glyphs ();
12025 if ac_fn_c_try_link
"$LINENO"; then :
12026 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12028 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12032 LIBS
=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12035 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12036 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12037 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12039 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12042 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12044 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12052 if test "${HAVE_LIBOTF}" = yes; then
12053 if test "${with_m17n_flt}" != "no"; then
12057 if test "$PKG_CONFIG" = "no" ; then
12060 PKG_CONFIG_MIN_VERSION
=0.9.0
12061 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12063 $as_echo_n "checking for m17n-flt... " >&6; }
12065 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12066 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12067 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12074 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12075 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12077 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12084 ## If we have a custom action on failure, don't print errors, but
12085 ## do set a variable so people can do so.
12086 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12098 if test $succeeded = yes; then
12104 if test "$HAVE_M17N_FLT" = "yes"; then
12106 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12118 ### End of font-backend (under X11) section.
12129 ### Use -lXpm if available, unless `--with-xpm=no'.
12132 if test "${HAVE_X11}" = "yes"; then
12133 if test "${with_xpm}" != "no"; then
12134 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12135 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12137 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12138 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS
=$LIBS
12142 LIBS
="-lXpm -lX11 $LIBS"
12143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12152 char XpmReadFileToPixmap ();
12156 return XpmReadFileToPixmap ();
12161 if ac_fn_c_try_link
"$LINENO"; then :
12162 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12164 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12166 rm -f core conftest.err conftest.
$ac_objext \
12167 conftest
$ac_exeext conftest.
$ac_ext
12168 LIBS
=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12171 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12172 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12179 if test "${HAVE_XPM}" = "yes"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12181 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184 #include "X11/xpm.h"
12185 #ifndef XpmReturnAllocPixels
12186 no_return_alloc_pixels
12190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12191 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12199 if test "${HAVE_XPM}" = "yes"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201 $as_echo "yes" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12209 if test "${HAVE_XPM}" = "yes"; then
12211 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12218 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12221 if test "${HAVE_X11}" = "yes"; then
12222 if test "${with_jpeg}" != "no"; then
12223 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12224 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12226 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12227 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12230 ac_check_lib_save_LIBS
=$LIBS
12231 LIBS
="-ljpeg $LIBS"
12232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12241 char jpeg_destroy_compress ();
12245 return jpeg_destroy_compress ();
12250 if ac_fn_c_try_link
"$LINENO"; then :
12251 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12253 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12255 rm -f core conftest.err conftest.
$ac_objext \
12256 conftest
$ac_exeext conftest.
$ac_ext
12257 LIBS
=$ac_check_lib_save_LIBS
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12260 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12261 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12270 if test "${HAVE_JPEG}" = "yes"; then
12271 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 #include <jpeglib.h>
12276 version=JPEG_LIB_VERSION
12279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12280 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12281 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12285 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12291 if test "${HAVE_JPEG}" = "yes"; then
12297 ### Use -lpng if available, unless `--with-png=no'.
12300 if test "${HAVE_X11}" = "yes"; then
12301 if test "${with_png}" != "no"; then
12302 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12303 # in /usr/include/libpng.
12304 for ac_header
in png.h libpng
/png.h
12306 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12307 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12308 eval as_val
=\$
$as_ac_Header
12309 if test "x$as_val" = x
""yes; then :
12310 cat >>confdefs.h
<<_ACEOF
12311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12320 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12321 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12322 $as_echo_n "(cached) " >&6
12324 ac_check_lib_save_LIBS
=$LIBS
12325 LIBS
="-lpng -lz -lm $LIBS"
12326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12335 char png_get_channels ();
12339 return png_get_channels ();
12344 if ac_fn_c_try_link
"$LINENO"; then :
12345 ac_cv_lib_png_png_get_channels
=yes
12347 ac_cv_lib_png_png_get_channels
=no
12349 rm -f core conftest.err conftest.
$ac_objext \
12350 conftest
$ac_exeext conftest.
$ac_ext
12351 LIBS
=$ac_check_lib_save_LIBS
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12354 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12355 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12362 if test "${HAVE_PNG}" = "yes"; then
12364 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12366 LIBPNG
="-lpng -lz -lm"
12368 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12369 # include <libpng/png.h>
12375 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12379 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12387 ### Use -ltiff if available, unless `--with-tiff=no'.
12390 if test "${HAVE_X11}" = "yes"; then
12391 if test "${with_tiff}" != "no"; then
12392 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12393 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12395 # At least one tiff package requires the jpeg library.
12396 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12398 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12399 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12402 ac_check_lib_save_LIBS
=$LIBS
12403 LIBS
="-ltiff $tifflibs $LIBS"
12404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12413 char TIFFGetVersion ();
12417 return TIFFGetVersion ();
12422 if ac_fn_c_try_link
"$LINENO"; then :
12423 ac_cv_lib_tiff_TIFFGetVersion
=yes
12425 ac_cv_lib_tiff_TIFFGetVersion
=no
12427 rm -f core conftest.err conftest.
$ac_objext \
12428 conftest
$ac_exeext conftest.
$ac_ext
12429 LIBS
=$ac_check_lib_save_LIBS
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12432 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12433 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12442 if test "${HAVE_TIFF}" = "yes"; then
12444 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12451 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12454 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12455 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12457 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12458 # Earlier versions can crash Emacs.
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12460 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12461 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 ac_check_lib_save_LIBS
=$LIBS
12466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12475 char EGifPutExtensionLast ();
12479 return EGifPutExtensionLast ();
12484 if ac_fn_c_try_link
"$LINENO"; then :
12485 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12487 ac_cv_lib_gif_EGifPutExtensionLast
=no
12489 rm -f core conftest.err conftest.
$ac_objext \
12490 conftest
$ac_exeext conftest.
$ac_ext
12491 LIBS
=$ac_check_lib_save_LIBS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12494 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12495 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12505 if test "$HAVE_GIF" = yes; then
12507 elif test "$HAVE_GIF" = maybe
; then
12508 # If gif_lib.h but no libgif, try libungif.
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12510 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12511 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 ac_check_lib_save_LIBS
=$LIBS
12515 LIBS
="-lungif $LIBS"
12516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char EGifPutExtensionLast ();
12529 return EGifPutExtensionLast ();
12534 if ac_fn_c_try_link
"$LINENO"; then :
12535 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12537 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12539 rm -f core conftest.err conftest.
$ac_objext \
12540 conftest
$ac_exeext conftest.
$ac_ext
12541 LIBS
=$ac_check_lib_save_LIBS
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12544 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12545 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12551 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12554 if test "${HAVE_GIF}" = "yes"; then
12556 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12562 if test "${HAVE_X11}" = "yes"; then
12565 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12566 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12567 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12568 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12569 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12570 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12571 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12572 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12573 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12574 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12576 if test "X${MISSING}" != X
; then
12577 as_fn_error
"The following required libraries were not found:
12579 Maybe some development libraries/packages are missing?
12580 If you don't want to link with them give
12582 as options to configure" "$LINENO" 5
12586 ### Use -lgpm if available, unless `--with-gpm=no'.
12589 if test "${with_gpm}" != "no"; then
12590 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12591 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12593 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12594 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12597 ac_check_lib_save_LIBS
=$LIBS
12599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12612 return Gpm_Open ();
12617 if ac_fn_c_try_link
"$LINENO"; then :
12618 ac_cv_lib_gpm_Gpm_Open
=yes
12620 ac_cv_lib_gpm_Gpm_Open
=no
12622 rm -f core conftest.err conftest.
$ac_objext \
12623 conftest
$ac_exeext conftest.
$ac_ext
12624 LIBS
=$ac_check_lib_save_LIBS
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12627 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12628 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12636 if test "${HAVE_GPM}" = "yes"; then
12638 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12650 ### Use NeXTstep API to implement GUI.
12651 if test "${HAVE_NS}" = "yes"; then
12653 $as_echo "#define HAVE_NS 1" >>confdefs.h
12655 if test "${NS_IMPL_COCOA}" = "yes"; then
12657 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12660 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12662 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12664 # See also .m.o rule in Makefile.in */
12665 # FIXME: are all these flags really needed? Document here why. */
12666 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12667 ## Extra CFLAGS applied to src/*.m files.
12668 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"
12670 # We also have mouse menus.
12676 ### Use session management (-lSM -lICE) if available
12679 if test "${HAVE_X11}" = "yes"; then
12680 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12681 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12683 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12684 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12687 ac_check_lib_save_LIBS
=$LIBS
12688 LIBS
="-lSM -lICE $LIBS"
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12692 /* Override any GCC internal prototype to avoid an error.
12693 Use char because int might match the return type of a GCC
12694 builtin and then its argument prototype would still apply. */
12698 char SmcOpenConnection ();
12702 return SmcOpenConnection ();
12707 if ac_fn_c_try_link
"$LINENO"; then :
12708 ac_cv_lib_SM_SmcOpenConnection
=yes
12710 ac_cv_lib_SM_SmcOpenConnection
=no
12712 rm -f core conftest.err conftest.
$ac_objext \
12713 conftest
$ac_exeext conftest.
$ac_ext
12714 LIBS
=$ac_check_lib_save_LIBS
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12717 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12718 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12726 if test "${HAVE_X_SM}" = "yes"; then
12728 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12730 LIBXSM
="-lSM -lICE"
12733 *) LIBS
="$LIBXSM $LIBS" ;;
12739 ### Use libxml (-lxml2) if available
12741 if test "${with_xml2}" != "no"; then
12742 ### I'm not sure what the version number should be, so I just guessed.
12746 if test "$PKG_CONFIG" = "no" ; then
12749 PKG_CONFIG_MIN_VERSION
=0.9.0
12750 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12752 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12754 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12755 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12756 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12763 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12764 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12766 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12773 ## If we have a custom action on failure, don't print errors, but
12774 ## do set a variable so people can do so.
12775 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12782 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12783 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12787 if test $succeeded = yes; then
12793 if test "${HAVE_LIBXML2}" = "yes"; then
12794 LIBS
="$LIBXML2_LIBS $LIBS"
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12796 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12797 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_check_lib_save_LIBS
=$LIBS
12801 LIBS
="-lxml2 $LIBS"
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12811 char htmlReadMemory ();
12815 return htmlReadMemory ();
12820 if ac_fn_c_try_link
"$LINENO"; then :
12821 ac_cv_lib_xml2_htmlReadMemory
=yes
12823 ac_cv_lib_xml2_htmlReadMemory
=no
12825 rm -f core conftest.err conftest.
$ac_objext \
12826 conftest
$ac_exeext conftest.
$ac_ext
12827 LIBS
=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12830 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12831 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12837 if test "${HAVE_LIBXML2}" = "yes"; then
12839 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12850 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12852 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12853 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12867 if ac_fn_c_try_link
"$LINENO"; then :
12868 emacs_cv_netdb_declares_h_errno
=yes
12870 emacs_cv_netdb_declares_h_errno
=no
12872 rm -f core conftest.err conftest.
$ac_objext \
12873 conftest
$ac_exeext conftest.
$ac_ext
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12876 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12877 if test $emacs_cv_netdb_declares_h_errno = yes; then
12879 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12883 # fmod, logb, and frexp are found in -lm on most systems.
12884 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12886 $as_echo_n "checking for sqrt in -lm... " >&6; }
12887 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 ac_check_lib_save_LIBS
=$LIBS
12892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12910 if ac_fn_c_try_link
"$LINENO"; then :
12911 ac_cv_lib_m_sqrt
=yes
12913 ac_cv_lib_m_sqrt
=no
12915 rm -f core conftest.err conftest.
$ac_objext \
12916 conftest
$ac_exeext conftest.
$ac_ext
12917 LIBS
=$ac_check_lib_save_LIBS
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12920 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12921 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12922 cat >>confdefs.h
<<_ACEOF
12923 #define HAVE_LIBM 1
12931 # Check for mail-locking functions in a "mail" library. Probably this should
12932 # have the same check as for liblockfile below.
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12934 $as_echo_n "checking for maillock in -lmail... " >&6; }
12935 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12936 $as_echo_n "(cached) " >&6
12938 ac_check_lib_save_LIBS
=$LIBS
12939 LIBS
="-lmail $LIBS"
12940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12953 return maillock ();
12958 if ac_fn_c_try_link
"$LINENO"; then :
12959 ac_cv_lib_mail_maillock
=yes
12961 ac_cv_lib_mail_maillock
=no
12963 rm -f core conftest.err conftest.
$ac_objext \
12964 conftest
$ac_exeext conftest.
$ac_ext
12965 LIBS
=$ac_check_lib_save_LIBS
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12968 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12969 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12975 if test $have_mail = yes; then
12977 LIBS
="$LIBS_MAIL $LIBS"
12979 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12985 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12986 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12987 $as_echo_n "(cached) " >&6
12989 ac_check_lib_save_LIBS
=$LIBS
12990 LIBS
="-llockfile $LIBS"
12991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13004 return maillock ();
13009 if ac_fn_c_try_link
"$LINENO"; then :
13010 ac_cv_lib_lockfile_maillock
=yes
13012 ac_cv_lib_lockfile_maillock
=no
13014 rm -f core conftest.err conftest.
$ac_objext \
13015 conftest
$ac_exeext conftest.
$ac_ext
13016 LIBS
=$ac_check_lib_save_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13019 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13020 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13026 if test $have_lockfile = yes; then
13027 LIBS_MAIL
=-llockfile
13028 LIBS
="$LIBS_MAIL $LIBS"
13030 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13033 # If we have the shared liblockfile, assume we must use it for mail
13034 # locking (e.g. Debian). If we couldn't link against liblockfile
13035 # (no liblockfile.a installed), ensure that we don't need to.
13036 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13037 set dummy liblockfile.so
; ac_word
=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13041 $as_echo_n "(cached) " >&6
13043 if test -n "$liblockfile"; then
13044 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13047 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13048 for as_dir
in $as_dummy
13051 test -z "$as_dir" && as_dir
=.
13052 for ac_exec_ext
in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_liblockfile
="yes"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13065 liblockfile
=$ac_cv_prog_liblockfile
13066 if test -n "$liblockfile"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13068 $as_echo "$liblockfile" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13075 if test $ac_cv_prog_liblockfile = yes; then
13076 as_fn_error
"Shared liblockfile found but can't link against it.
13077 This probably means that movemail could lose mail.
13078 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13086 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13087 ## interlock access to the mail spool. The alternative is a lock file named
13088 ## /usr/spool/mail/$USER.lock.
13091 aix4-2
) mail_lock
="lockf" ;;
13093 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13095 ## On GNU/Linux systems, both methods are used by various mail programs.
13096 ## I assume most people are using newer mailers that have heard of flock.
13097 ## Change this if you need to.
13098 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13099 ## configure gets the right answers, and that means *NOT* using flock.
13100 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13101 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13102 ## Debian maintainer hasn't provided a clean fix for Emacs.
13103 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13104 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13105 ## correct logic. -- fx
13106 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13107 ## liblockfile is a Free Software replacement for libmail, used on
13108 ## Debian systems and elsewhere. -rfr.
13111 if test $have_mail = yes ||
test $have_lockfile = yes; then
13112 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13118 case "$mail_lock" in
13120 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13124 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13127 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13132 for ac_func
in gethostname \
13133 closedir getrusage get_current_dir_name \
13134 lrand48 logb frexp fmod cbrt setsid \
13135 fpathconf
select euidaccess getpagesize setlocale \
13136 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13137 __fpending strsignal setitimer \
13138 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13139 gai_strerror mkstemp getline getdelim fsync sync \
13140 difftime posix_memalign \
13141 getpwent endpwent getgrent endgrent \
13143 cfmakeraw cfsetspeed copysign __executable_start
13145 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13147 eval as_val
=\$
$as_ac_var
13148 if test "x$as_val" = x
""yes; then :
13149 cat >>confdefs.h
<<_ACEOF
13150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 if test $opsys = unixware
; then
13159 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13162 for ac_func
in getwd
13164 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13165 if test "x$ac_cv_func_getwd" = x
""yes; then :
13166 cat >>confdefs.h
<<_ACEOF
13167 #define HAVE_GETWD 1
13175 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13176 ## has a broken `rint' in some library versions including math library
13177 ## version number A.09.05.
13178 ## You can fix the math library by installing patch number PHSS_4630.
13179 ## But we can fix it more reliably for Emacs by just not using rint.
13180 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13183 *) for ac_func
in random rint
13185 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13186 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13187 eval as_val
=\$
$as_ac_var
13188 if test "x$as_val" = x
""yes; then :
13189 cat >>confdefs.h
<<_ACEOF
13190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13199 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13200 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13209 __builtin_unwind_init ();
13214 if ac_fn_c_try_link
"$LINENO"; then :
13215 emacs_cv_func___builtin_unwind_init
=yes
13217 emacs_cv_func___builtin_unwind_init
=no
13219 rm -f core conftest.err conftest.
$ac_objext \
13220 conftest
$ac_exeext conftest.
$ac_ext
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13223 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13224 if test $emacs_cv_func___builtin_unwind_init = yes; then
13226 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13235 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13236 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 #include <sys/types.h> /* for off_t */
13247 int (*fp) (FILE *, off_t, int) = fseeko;
13248 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13253 if ac_fn_c_try_link
"$LINENO"; then :
13254 ac_cv_sys_largefile_source
=no
; break
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 #define _LARGEFILE_SOURCE 1
13261 #include <sys/types.h> /* for off_t */
13266 int (*fp) (FILE *, off_t, int) = fseeko;
13267 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13272 if ac_fn_c_try_link
"$LINENO"; then :
13273 ac_cv_sys_largefile_source
=1; break
13275 rm -f core conftest.err conftest.
$ac_objext \
13276 conftest
$ac_exeext conftest.
$ac_ext
13277 ac_cv_sys_largefile_source
=unknown
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13282 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13283 case $ac_cv_sys_largefile_source in #(
13286 cat >>confdefs.h
<<_ACEOF
13287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13294 # in glibc 2.1.3, but that breaks too many other things.
13295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13296 if test $ac_cv_sys_largefile_source != unknown
; then
13298 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13304 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13305 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13308 # Use it with a single arg.
13309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311 $ac_includes_default
13320 if ac_fn_c_try_compile
"$LINENO"; then :
13321 ac_cv_func_getpgrp_void
=no
13323 ac_cv_func_getpgrp_void
=yes
13325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13329 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13330 if test $ac_cv_func_getpgrp_void = yes; then
13332 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13338 for ac_func
in grantpt
13340 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13341 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13342 cat >>confdefs.h
<<_ACEOF
13343 #define HAVE_GRANTPT 1
13350 # PTY-related GNU extensions.
13351 for ac_func
in getpt posix_openpt
13353 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13354 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13355 eval as_val
=\$
$as_ac_var
13356 if test "x$as_val" = x
""yes; then :
13357 cat >>confdefs.h
<<_ACEOF
13358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13365 # Check this now, so that we will NOT find the above functions in ncurses.
13366 # That is because we have not set up to link ncurses in lib-src.
13367 # It's better to believe a function is not available
13368 # than to expect to find it in ncurses.
13369 # Also we need tputs and friends to be able to build at all.
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13371 $as_echo_n "checking for library containing tputs... " >&6; }
13372 # Run a test program that contains a call to tputs, a call that is
13373 # never executed. This tests whether a pre-'main' dynamic linker
13374 # works with the library. It's too much trouble to actually call
13375 # tputs in the test program, due to portability hassles. When
13376 # cross-compiling, assume the test program will run if it links.
13378 # Maybe curses should be tried earlier?
13379 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13380 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13382 if test -z "$tputs_library"; then
13384 msg
='none required'
13386 LIBS_TERMCAP
=-l$tputs_library
13388 LIBS
="$LIBS_TERMCAP $LIBS"
13390 if test "$cross_compiling" = yes; then :
13391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13394 extern void tputs (const char *, int, int (*)(int));
13395 int main (int argc, char **argv)
13398 tputs (argv[0], 0, 0);
13403 if ac_fn_c_try_link
"$LINENO"; then :
13408 rm -f core conftest.err conftest.
$ac_objext \
13409 conftest
$ac_exeext conftest.
$ac_ext
13411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 extern void tputs (const char *, int, int (*)(int));
13415 int main (int argc, char **argv)
13418 tputs (argv[0], 0, 0);
13423 if ac_fn_c_try_run
"$LINENO"; then :
13428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13433 if test "X$msg" != Xno
; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13438 $as_echo "$msg" >&6; }
13439 if test "X$msg" = Xno
; then
13440 as_fn_error
"The required function \`tputs' was not found in any library.
13441 The following libraries were tried (in order):
13442 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13443 Please try installing whichever of these libraries is most appropriate
13444 for your system, together with its header files.
13445 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13448 ## Use termcap instead of terminfo?
13449 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13451 ## FIXME? In the cases below where we unconditionally set
13452 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13453 ## if that was found above to have tputs.
13454 ## Should we use the gnu* logic everywhere?
13456 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13457 ## The ncurses library has been moved out of the System framework in
13458 ## Mac OS X 10.2. So if configure detects it, set the command-line
13459 ## option to use it.
13460 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13462 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13466 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13467 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13468 $as_echo_n "(cached) " >&6
13470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 #include <osreldate.h>
13476 #if __FreeBSD_version < 400000
13484 if ac_fn_c_try_link
"$LINENO"; then :
13485 emacs_cv_freebsd_terminfo
=yes
13487 emacs_cv_freebsd_terminfo
=no
13489 rm -f core conftest.err conftest.
$ac_objext \
13490 conftest
$ac_exeext conftest.
$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13495 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13497 if test $emacs_cv_freebsd_terminfo = yes; then
13498 LIBS_TERMCAP
="-lncurses"
13501 LIBS_TERMCAP
="-ltermcap"
13506 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13508 LIBS_TERMCAP
="-ltermcap"
13512 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13514 ## hpux: Make sure we get select from libc rather than from libcurses
13515 ## because libcurses on HPUX 10.10 has a broken version of select.
13516 ## We used to use -lc -lcurses, but this may be cleaner.
13517 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13518 # set that way, now it uses the default). Isn't this a contradiction?
13519 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13523 TERMCAP_OBJ
=tparam.o
13524 if test $TERMINFO = yes; then
13526 $as_echo "#define TERMINFO 1" >>confdefs.h
13528 TERMCAP_OBJ
=terminfo.o
13534 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13535 # On Darwin, res_init appears not to be useful: see bug#562 and
13536 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13539 if test $opsys != darwin
; then
13541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <netinet/in.h>
13544 #include <arpa/nameser.h>
13545 #include <resolv.h>
13554 if ac_fn_c_try_link
"$LINENO"; then :
13559 rm -f core conftest.err conftest.
$ac_objext \
13560 conftest
$ac_exeext conftest.
$ac_ext
13561 if test "$have_res_init" = no
; then
13563 LIBS
="$LIBS -lresolv"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13565 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #include <netinet/in.h>
13569 #include <arpa/nameser.h>
13570 #include <resolv.h>
13579 if ac_fn_c_try_link
"$LINENO"; then :
13584 rm -f core conftest.err conftest.
$ac_objext \
13585 conftest
$ac_exeext conftest.
$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13587 $as_echo "$have_res_init" >&6; }
13588 if test "$have_res_init" = yes ; then
13594 if test "$have_res_init" = yes; then
13596 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13600 # Do we need the Hesiod library to provide the support routines?
13602 if test "$with_hesiod" != no
; then
13603 # Don't set $LIBS here -- see comments above. FIXME which comments?
13604 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13605 if test "x$ac_cv_func_res_send" = x
""yes; then :
13608 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13609 if test "x$ac_cv_func___res_send" = x
""yes; then :
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13613 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13614 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13617 ac_check_lib_save_LIBS
=$LIBS
13618 LIBS
="-lresolv $LIBS"
13619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13622 /* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
13632 return res_send ();
13637 if ac_fn_c_try_link
"$LINENO"; then :
13638 ac_cv_lib_resolv_res_send
=yes
13640 ac_cv_lib_resolv_res_send
=no
13642 rm -f core conftest.err conftest.
$ac_objext \
13643 conftest
$ac_exeext conftest.
$ac_ext
13644 LIBS
=$ac_check_lib_save_LIBS
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13647 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13648 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13652 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13653 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13656 ac_check_lib_save_LIBS
=$LIBS
13657 LIBS
="-lresolv $LIBS"
13658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13661 /* Override any GCC internal prototype to avoid an error.
13662 Use char because int might match the return type of a GCC
13663 builtin and then its argument prototype would still apply. */
13667 char __res_send ();
13671 return __res_send ();
13676 if ac_fn_c_try_link
"$LINENO"; then :
13677 ac_cv_lib_resolv___res_send
=yes
13679 ac_cv_lib_resolv___res_send
=no
13681 rm -f core conftest.err conftest.
$ac_objext \
13682 conftest
$ac_exeext conftest.
$ac_ext
13683 LIBS
=$ac_check_lib_save_LIBS
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13686 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13687 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13697 if test "$resolv" = yes ; then
13702 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13703 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13707 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13708 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13711 ac_check_lib_save_LIBS
=$LIBS
13712 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13722 char hes_getmailhost ();
13726 return hes_getmailhost ();
13731 if ac_fn_c_try_link
"$LINENO"; then :
13732 ac_cv_lib_hesiod_hes_getmailhost
=yes
13734 ac_cv_lib_hesiod_hes_getmailhost
=no
13736 rm -f core conftest.err conftest.
$ac_objext \
13737 conftest
$ac_exeext conftest.
$ac_ext
13738 LIBS
=$ac_check_lib_save_LIBS
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13741 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13742 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13751 if test x
"$hesiod" = xyes
; then
13753 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13760 # Do we need libresolv (due to res_init or Hesiod)?
13761 if test "$resolv" = yes && test $opsys != darwin
; then
13763 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13771 # These tell us which Kerberos-related libraries to use.
13778 if test "${with_kerberos}" != no
; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13780 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13781 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13784 ac_check_lib_save_LIBS
=$LIBS
13785 LIBS
="-lcom_err $LIBS"
13786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13804 if ac_fn_c_try_link
"$LINENO"; then :
13805 ac_cv_lib_com_err_com_err
=yes
13807 ac_cv_lib_com_err_com_err
=no
13809 rm -f core conftest.err conftest.
$ac_objext \
13810 conftest
$ac_exeext conftest.
$ac_ext
13811 LIBS
=$ac_check_lib_save_LIBS
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13814 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13815 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13821 if test $have_com_err = yes; then
13822 COM_ERRLIB
=-lcom_err
13823 LIBS
="$COM_ERRLIB $LIBS"
13825 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13829 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13830 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13833 ac_check_lib_save_LIBS
=$LIBS
13834 LIBS
="-lcrypto $LIBS"
13835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13838 /* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply. */
13844 char mit_des_cbc_encrypt ();
13848 return mit_des_cbc_encrypt ();
13853 if ac_fn_c_try_link
"$LINENO"; then :
13854 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13856 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13858 rm -f core conftest.err conftest.
$ac_objext \
13859 conftest
$ac_exeext conftest.
$ac_ext
13860 LIBS
=$ac_check_lib_save_LIBS
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13863 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13864 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13870 if test $have_crypto = yes; then
13872 LIBS
="$CRYPTOLIB $LIBS"
13874 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13878 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13879 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13882 ac_check_lib_save_LIBS
=$LIBS
13883 LIBS
="-lk5crypto $LIBS"
13884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13885 /* end confdefs.h. */
13887 /* Override any GCC internal prototype to avoid an error.
13888 Use char because int might match the return type of a GCC
13889 builtin and then its argument prototype would still apply. */
13893 char mit_des_cbc_encrypt ();
13897 return mit_des_cbc_encrypt ();
13902 if ac_fn_c_try_link
"$LINENO"; then :
13903 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13905 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13907 rm -f core conftest.err conftest.
$ac_objext \
13908 conftest
$ac_exeext conftest.
$ac_ext
13909 LIBS
=$ac_check_lib_save_LIBS
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13912 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13913 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13919 if test $have_k5crypto = yes; then
13920 CRYPTOLIB
=-lk5crypto
13921 LIBS
="$CRYPTOLIB $LIBS"
13923 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13927 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13928 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13931 ac_check_lib_save_LIBS
=$LIBS
13932 LIBS
="-lkrb5 $LIBS"
13933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13942 char krb5_init_context ();
13946 return krb5_init_context ();
13951 if ac_fn_c_try_link
"$LINENO"; then :
13952 ac_cv_lib_krb5_krb5_init_context
=yes
13954 ac_cv_lib_krb5_krb5_init_context
=no
13956 rm -f core conftest.err conftest.
$ac_objext \
13957 conftest
$ac_exeext conftest.
$ac_ext
13958 LIBS
=$ac_check_lib_save_LIBS
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13961 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13962 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13968 if test $have_krb5=yes; then
13970 LIBS
="$KRB5LIB $LIBS"
13972 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13975 if test "${with_kerberos5}" = no
; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13977 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13978 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13981 ac_check_lib_save_LIBS
=$LIBS
13982 LIBS
="-ldes425 $LIBS"
13983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 /* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
13992 char des_cbc_encrypt ();
13996 return des_cbc_encrypt ();
14001 if ac_fn_c_try_link
"$LINENO"; then :
14002 ac_cv_lib_des425_des_cbc_encrypt
=yes
14004 ac_cv_lib_des425_des_cbc_encrypt
=no
14006 rm -f core conftest.err conftest.
$ac_objext \
14007 conftest
$ac_exeext conftest.
$ac_ext
14008 LIBS
=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14011 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14012 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14018 if test $have_des425 = yes; then
14020 LIBS
="$DESLIB $LIBS"
14022 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14026 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14027 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14030 ac_check_lib_save_LIBS
=$LIBS
14032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14041 char des_cbc_encrypt ();
14045 return des_cbc_encrypt ();
14050 if ac_fn_c_try_link
"$LINENO"; then :
14051 ac_cv_lib_des_des_cbc_encrypt
=yes
14053 ac_cv_lib_des_des_cbc_encrypt
=no
14055 rm -f core conftest.err conftest.
$ac_objext \
14056 conftest
$ac_exeext conftest.
$ac_ext
14057 LIBS
=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14060 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14061 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14067 if test $have_des = yes; then
14069 LIBS
="$DESLIB $LIBS"
14071 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14076 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14077 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14080 ac_check_lib_save_LIBS
=$LIBS
14081 LIBS
="-lkrb4 $LIBS"
14082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14091 char krb_get_cred ();
14095 return krb_get_cred ();
14100 if ac_fn_c_try_link
"$LINENO"; then :
14101 ac_cv_lib_krb4_krb_get_cred
=yes
14103 ac_cv_lib_krb4_krb_get_cred
=no
14105 rm -f core conftest.err conftest.
$ac_objext \
14106 conftest
$ac_exeext conftest.
$ac_ext
14107 LIBS
=$ac_check_lib_save_LIBS
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14110 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14111 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14117 if test $have_krb4 = yes; then
14119 LIBS
="$KRB4LIB $LIBS"
14121 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14125 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14126 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14127 $as_echo_n "(cached) " >&6
14129 ac_check_lib_save_LIBS
=$LIBS
14131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14140 char krb_get_cred ();
14144 return krb_get_cred ();
14149 if ac_fn_c_try_link
"$LINENO"; then :
14150 ac_cv_lib_krb_krb_get_cred
=yes
14152 ac_cv_lib_krb_krb_get_cred
=no
14154 rm -f core conftest.err conftest.
$ac_objext \
14155 conftest
$ac_exeext conftest.
$ac_ext
14156 LIBS
=$ac_check_lib_save_LIBS
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14159 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14160 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14166 if test $have_krb = yes; then
14168 LIBS
="$KRB4LIB $LIBS"
14170 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14176 if test "${with_kerberos5}" != no
; then
14177 for ac_header
in krb5.h
14179 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14181 cat >>confdefs.h
<<_ACEOF
14182 #define HAVE_KRB5_H 1
14184 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14186 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14188 cat >>confdefs.h
<<_ACEOF
14189 #define HAVE_KRB5_ERROR_TEXT 1
14194 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14196 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14198 cat >>confdefs.h
<<_ACEOF
14199 #define HAVE_KRB5_ERROR_E_TEXT 1
14210 for ac_header
in des.h
14212 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14213 if test "x$ac_cv_header_des_h" = x
""yes; then :
14214 cat >>confdefs.h
<<_ACEOF
14215 #define HAVE_DES_H 1
14219 for ac_header
in kerberosIV
/des.h
14221 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14222 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14223 cat >>confdefs.h
<<_ACEOF
14224 #define HAVE_KERBEROSIV_DES_H 1
14228 for ac_header
in kerberos
/des.h
14230 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14231 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14232 cat >>confdefs.h
<<_ACEOF
14233 #define HAVE_KERBEROS_DES_H 1
14248 for ac_header
in krb.h
14250 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14252 cat >>confdefs.h
<<_ACEOF
14253 #define HAVE_KRB_H 1
14257 for ac_header
in kerberosIV
/krb.h
14259 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14260 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14261 cat >>confdefs.h
<<_ACEOF
14262 #define HAVE_KERBEROSIV_KRB_H 1
14266 for ac_header
in kerberos
/krb.h
14268 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14269 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14270 cat >>confdefs.h
<<_ACEOF
14271 #define HAVE_KERBEROS_KRB_H 1
14287 for ac_header
in com_err.h
14289 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14290 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14291 cat >>confdefs.h
<<_ACEOF
14292 #define HAVE_COM_ERR_H 1
14310 for ac_func
in $ac_func_list
14312 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14313 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14314 eval as_val
=\$
$as_ac_var
14315 if test "x$as_val" = x
""yes; then :
14316 cat >>confdefs.h
<<_ACEOF
14317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14327 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14328 if test "${emacs_cv_localtime_cache+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14331 if test x
$ac_cv_func_tzset = xyes
; then
14332 if test "$cross_compiling" = yes; then :
14333 # If we have tzset, assume the worst when cross-compiling.
14334 emacs_cv_localtime_cache
=yes
14336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 char TZ_GMT0[] = "TZ=GMT0";
14340 char TZ_PST8[] = "TZ=PST8";
14343 time_t now = time ((time_t *) 0);
14344 int hour_GMT0, hour_unset;
14345 if (putenv (TZ_GMT0) != 0)
14347 hour_GMT0 = localtime (&now)->tm_hour;
14349 hour_unset = localtime (&now)->tm_hour;
14350 if (putenv (TZ_PST8) != 0)
14352 if (localtime (&now)->tm_hour == hour_GMT0)
14355 if (localtime (&now)->tm_hour != hour_unset)
14360 if ac_fn_c_try_run
"$LINENO"; then :
14361 emacs_cv_localtime_cache
=no
14363 emacs_cv_localtime_cache
=yes
14365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14370 # If we lack tzset, report that localtime does not cache TZ,
14371 # since we can't invalidate the cache if we don't have tzset.
14372 emacs_cv_localtime_cache
=no
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14376 $as_echo "$emacs_cv_localtime_cache" >&6; }
14377 if test $emacs_cv_localtime_cache = yes; then
14379 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14384 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14385 if test "x$ac_cv_func_socket" = x
""yes; then :
14391 if test $ok_so_far = yes; then
14392 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14393 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14401 if test $ok_so_far = yes; then
14402 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14403 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14411 if test $ok_so_far = yes; then
14413 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14417 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14419 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14424 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14425 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14427 $as_echo "yes" >&6; }
14429 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14436 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14437 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14441 cat >>confdefs.h
<<_ACEOF
14447 for ac_header
in vfork.h
14449 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14450 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14451 cat >>confdefs.h
<<_ACEOF
14452 #define HAVE_VFORK_H 1
14459 for ac_func
in fork vfork
14461 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14463 eval as_val
=\$
$as_ac_var
14464 if test "x$as_val" = x
""yes; then :
14465 cat >>confdefs.h
<<_ACEOF
14466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14472 if test "x$ac_cv_func_fork" = xyes
; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14474 $as_echo_n "checking for working fork... " >&6; }
14475 if test "${ac_cv_func_fork_works+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14478 if test "$cross_compiling" = yes; then :
14479 ac_cv_func_fork_works
=cross
14481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 $ac_includes_default
14488 /* By Ruediger Kuhlmann. */
14489 return fork () < 0;
14495 if ac_fn_c_try_run
"$LINENO"; then :
14496 ac_cv_func_fork_works
=yes
14498 ac_cv_func_fork_works
=no
14500 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14501 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14506 $as_echo "$ac_cv_func_fork_works" >&6; }
14509 ac_cv_func_fork_works
=$ac_cv_func_fork
14511 if test "x$ac_cv_func_fork_works" = xcross
; then
14513 *-*-amigaos* |
*-*-msdosdjgpp*)
14514 # Override, as these systems have only a dummy fork() stub
14515 ac_cv_func_fork_works
=no
14518 ac_cv_func_fork_works
=yes
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14522 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14524 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14525 if test "x$ac_cv_func_vfork" = xyes
; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14527 $as_echo_n "checking for working vfork... " >&6; }
14528 if test "${ac_cv_func_vfork_works+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14531 if test "$cross_compiling" = yes; then :
14532 ac_cv_func_vfork_works
=cross
14534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536 /* Thanks to Paul Eggert for this test. */
14537 $ac_includes_default
14538 #include <sys/wait.h>
14539 #ifdef HAVE_VFORK_H
14540 # include <vfork.h>
14542 /* On some sparc systems, changes by the child to local and incoming
14543 argument registers are propagated back to the parent. The compiler
14544 is told about this with #include <vfork.h>, but some compilers
14545 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14546 static variable whose address is put into a register that is
14547 clobbered by the vfork. */
14550 sparc_address_test (int arg)
14552 sparc_address_test (arg) int arg;
14555 static pid_t child;
14573 pid_t parent = getpid ();
14576 sparc_address_test (0);
14581 /* Here is another test for sparc vfork register problems. This
14582 test uses lots of local variables, at least as many local
14583 variables as main has allocated so far including compiler
14584 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14585 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14586 reuse the register of parent for one of the local variables,
14587 since it will think that parent can't possibly be used any more
14588 in this routine. Assigning to the local variable will thus
14589 munge parent in the parent process. */
14591 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14592 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14593 /* Convince the compiler that p..p7 are live; otherwise, it might
14594 use the same hardware register for all 8 local variables. */
14595 if (p != p1 || p != p2 || p != p3 || p != p4
14596 || p != p5 || p != p6 || p != p7)
14599 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14600 from child file descriptors. If the child closes a descriptor
14601 before it execs or exits, this munges the parent's descriptor
14602 as well. Test for this by closing stdout in the child. */
14603 _exit(close(fileno(stdout)) != 0);
14608 while (wait(&status) != child)
14611 /* Was there some problem with vforking? */
14614 /* Did the child fail? (This shouldn't happen.) */
14617 /* Did the vfork/compiler bug occur? */
14618 || parent != getpid()
14620 /* Did the file descriptor bug occur? */
14621 || fstat(fileno(stdout), &st) != 0
14626 if ac_fn_c_try_run
"$LINENO"; then :
14627 ac_cv_func_vfork_works
=yes
14629 ac_cv_func_vfork_works
=no
14631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14637 $as_echo "$ac_cv_func_vfork_works" >&6; }
14640 if test "x$ac_cv_func_fork_works" = xcross
; then
14641 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14643 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14646 if test "x$ac_cv_func_vfork_works" = xyes
; then
14648 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14652 $as_echo "#define vfork fork" >>confdefs.h
14655 if test "x$ac_cv_func_fork_works" = xyes
; then
14657 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14662 for ac_func
in snprintf
14664 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14665 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14666 cat >>confdefs.h
<<_ACEOF
14667 #define HAVE_SNPRINTF 1
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14676 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 #include <langinfo.h>
14685 char* cs = nl_langinfo(CODESET);
14690 if ac_fn_c_try_link
"$LINENO"; then :
14691 emacs_cv_langinfo_codeset
=yes
14693 emacs_cv_langinfo_codeset
=no
14695 rm -f core conftest.err conftest.
$ac_objext \
14696 conftest
$ac_exeext conftest.
$ac_ext
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14700 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14701 if test $emacs_cv_langinfo_codeset = yes; then
14703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14708 $as_echo_n "checking for mbstate_t... " >&6; }
14709 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14710 $as_echo_n "(cached) " >&6
14712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 # include <wchar.h>
14719 mbstate_t x; return sizeof x;
14724 if ac_fn_c_try_compile
"$LINENO"; then :
14725 ac_cv_type_mbstate_t
=yes
14727 ac_cv_type_mbstate_t
=no
14729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14732 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14733 if test $ac_cv_type_mbstate_t = yes; then
14735 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14739 $as_echo "#define mbstate_t int" >>confdefs.h
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14744 $as_echo_n "checking for C restricted array declarations... " >&6; }
14745 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 void fred (int x[__restrict]);
14759 if ac_fn_c_try_compile
"$LINENO"; then :
14760 emacs_cv_c_restrict_arr
=yes
14762 emacs_cv_c_restrict_arr
=no
14764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14767 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14768 if test "$emacs_cv_c_restrict_arr" = yes; then
14770 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14776 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14780 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14787 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14789 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14793 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14799 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14803 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14807 $as_echo "#define subprocesses 1" >>confdefs.h
14811 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14816 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14822 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14826 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14830 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14838 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14839 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14845 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14852 darwin | gnu | hpux
* |
*bsd
)
14854 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14858 irix6-5 | sol2
* | unixware
)
14860 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14867 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14869 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14875 $as_echo "#define BROKEN_FIONREAD 1" >>confdefs.h
14878 $as_echo "#define BROKEN_SIGAIO 1" >>confdefs.h
14881 $as_echo "#define BROKEN_SIGPOLL 1" >>confdefs.h
14884 $as_echo "#define BROKEN_SIGPTY 1" >>confdefs.h
14888 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14894 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14900 $as_echo "#define NO_ABORT 1" >>confdefs.h
14908 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14914 darwin | freebsd | netbsd | openbsd
)
14916 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14922 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14923 *) sound_device
="/dev/dsp" ;;
14927 cat >>confdefs.h
<<_ACEOF
14928 #define DEFAULT_SOUND_DEVICE "$sound_device"
14934 darwin | gnu-linux | gnu-kfreebsd
)
14936 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14943 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14945 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14959 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14961 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14963 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14968 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14970 $as_echo "#define PTY_OPEN do { int dummy; SIGMASKTYPE mask; mask = sigblock (sigmask (SIGCHLD)); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; sigsetmask (mask); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
14972 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14974 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14979 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
14981 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14983 $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
14985 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
14987 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
14992 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
14996 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
14997 if test "x$ac_cv_func_grantpt" = xyes
; then
14999 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15001 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15003 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname; sigblock (sigmask (SIGCHLD)); if (grantpt (fd) == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname(fd))) { sigunblock (sigmask (SIGCHLD)); close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); sigunblock (sigmask (SIGCHLD)); }" >>confdefs.h
15005 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15006 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15008 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15010 elif test "x$ac_cv_func_getpt" = xyes
; then
15011 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15013 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15016 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15020 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15026 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15028 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15030 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15035 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15037 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15039 $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
15041 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15043 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15048 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock (sigmask (SIGCLD)); if (grantpt (fd) == -1) { emacs_close (fd); return -1; } sigunblock (sigmask (SIGCLD)); if (unlockpt (fd) == -1) { emacs_close (fd); return -1; } if (!(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15053 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; sigblock(sigmask(SIGCLD)); if (grantpt(fd) == -1) fatal(\"could not grant slave pty\"); sigunblock(sigmask(SIGCLD)); 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
15061 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15063 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15066 $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
15075 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15076 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15080 gnu-linux | gnu-kfreebsd
)
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15083 $as_echo_n "checking for signals via characters... " >&6; }
15084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15087 #include <linux/version.h>
15088 #if LINUX_VERSION_CODE < 0x20400
15089 # error "Linux version too old"
15100 if ac_fn_c_try_cpp
"$LINENO"; then :
15101 emacs_signals_via_chars
=yes
15103 emacs_signals_via_chars
=no
15105 rm -f conftest.err conftest.
$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15108 $as_echo "$emacs_signals_via_chars" >&6; }
15109 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15118 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 #include <features.h>
15123 #ifndef __GNU_LIBRARY__
15124 # error "this is not the GNU C library"
15135 if ac_fn_c_try_cpp
"$LINENO"; then :
15140 rm -f conftest.err conftest.
$ac_ext
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15142 $as_echo "$emacs_glibc" >&6; }
15144 if test $emacs_glibc = yes; then
15146 emacs_pending_output
=unknown
15149 gnu | gnu-linux | gnu-kfreebsd
)
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15151 $as_echo_n "checking for style of pending output formalism... " >&6; }
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15156 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15157 # error "stdio definitions not found"
15168 if ac_fn_c_try_cpp
"$LINENO"; then :
15169 emacs_pending_output
=new
15171 rm -f conftest.err conftest.
$ac_ext
15173 if test $emacs_pending_output = unknown
; then
15175 gnu-linux | gnu-kfreebsd
)
15176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15181 # error "not using uclibc"
15192 if ac_fn_c_try_cpp
"$LINENO"; then :
15193 emacs_pending_output
=uclibc
15195 emacs_pending_output
=old
15197 rm -f conftest.err conftest.
$ac_ext
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15203 $as_echo "$emacs_pending_output" >&6; }
15205 case $emacs_pending_output in
15207 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15211 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15215 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15221 if test $emacs_pending_output = unknown
; then
15222 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15228 cygwin | darwin | freebsd | netbsd | openbsd
)
15229 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15234 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15239 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15240 test x
$ac_cv_func___fpending = xyes
; then
15241 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15244 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15247 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15259 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15264 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15266 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15270 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15272 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15282 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15285 gnu | freebsd | netbsd | openbsd
)
15287 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15289 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15293 gnu-linux | gnu-kfreebsd
)
15294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15309 if ac_fn_c_try_cpp
"$LINENO"; then :
15310 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15313 rm -f conftest.err conftest.
$ac_ext
15315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15330 if ac_fn_c_try_cpp
"$LINENO"; then :
15332 $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
15335 rm -f conftest.err conftest.
$ac_ext
15340 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15345 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15357 aix4-2 | hpux
* | unixware
)
15358 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15362 gnu-linux | gnu-kfreebsd
)
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15367 || defined __alpha__ || defined __mips__ || defined __s390__ \
15368 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15369 || defined __ia64__ || defined __sh__
15372 # error "setjmp not known to work on this arch"
15383 if ac_fn_c_try_cpp
"$LINENO"; then :
15384 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15387 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15390 rm -f conftest.err conftest.
$ac_ext
15395 if test x
$GCC = xyes
; then
15396 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15400 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15401 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15410 $as_echo "#define _setjmp setjmp" >>confdefs.h
15413 $as_echo "#define _longjmp longjmp" >>confdefs.h
15416 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15425 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15431 $as_echo "#define SIGNAL_H_AHB 1" >>confdefs.h
15447 $as_echo "#define USG /**/" >>confdefs.h
15449 $as_echo "#define USG5 /**/" >>confdefs.h
15451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15455 # error "_AIX not defined"
15466 if ac_fn_c_try_cpp
"$LINENO"; then :
15470 $as_echo "#define _AIX /**/" >>confdefs.h
15473 rm -f conftest.err conftest.
$ac_ext
15478 $as_echo "#define CYGWIN 1" >>confdefs.h
15483 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15485 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15488 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15493 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15496 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15500 gnu | netbsd | openbsd
)
15501 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15507 # error "BSD_SYSTEM not defined"
15518 if ac_fn_c_try_cpp
"$LINENO"; then :
15521 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15524 rm -f conftest.err conftest.
$ac_ext
15527 gnu-linux | gnu-kfreebsd
)
15528 $as_echo "#define USG /**/" >>confdefs.h
15531 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15536 $as_echo "#define USG /**/" >>confdefs.h
15538 $as_echo "#define USG5 /**/" >>confdefs.h
15541 $as_echo "#define HPUX /**/" >>confdefs.h
15546 $as_echo "#define USG /**/" >>confdefs.h
15548 $as_echo "#define USG5 /**/" >>confdefs.h
15550 $as_echo "#define USG5_4 /**/" >>confdefs.h
15553 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15558 $as_echo "#define USG /**/" >>confdefs.h
15560 $as_echo "#define USG5 /**/" >>confdefs.h
15562 $as_echo "#define USG5_4 /**/" >>confdefs.h
15565 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15570 $as_echo "#define USG /**/" >>confdefs.h
15572 $as_echo "#define USG5 /**/" >>confdefs.h
15574 $as_echo "#define USG5_4 /**/" >>confdefs.h
15583 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15589 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
15592 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15598 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15601 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15607 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15612 # Set up the CFLAGS for real compilation, so we can substitute it.
15613 CFLAGS
="$REAL_CFLAGS"
15614 CPPFLAGS
="$REAL_CPPFLAGS"
15616 ## Hack to detect a buggy GCC version.
15617 if test "x$GCC" = xyes \
15618 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15619 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15620 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15621 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15624 version
=$PACKAGE_VERSION
15626 ### Specify what sort of things we'll be editing into Makefile and config.h.
15627 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15653 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15654 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15655 ## end of LIBX_BASE, but nothing ever set it.
15660 ## Used in lwlib/Makefile.in.
15669 if test -n "${term_header}"; then
15671 cat >>confdefs.h
<<_ACEOF
15672 #define TERM_HEADER "${term_header}"
15678 cat >>confdefs.h
<<_ACEOF
15679 #define EMACS_CONFIGURATION "${canonical}"
15683 cat >>confdefs.h
<<_ACEOF
15684 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15692 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15694 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15697 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15699 if test "$HAVE_XFT" = "yes"; then
15700 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15701 elif test "$HAVE_FREETYPE" = "yes"; then
15702 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15712 if test "${USE_X_TOOLKIT}" != "none" ; then
15713 WIDGET_OBJ
=widget.o
15715 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15717 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15719 $as_echo "#define USE_LUCID 1" >>confdefs.h
15721 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15723 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15728 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15729 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15733 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15734 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15735 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15739 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15740 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15743 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15749 case "$USE_X_TOOLKIT" in
15750 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15751 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15752 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15756 if test "$USE_X_TOOLKIT" = "none"; then
15757 LIBXT_OTHER
="\$(LIBXSM)"
15758 OLDXMENU_TARGET
="really-oldXMenu"
15760 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15761 OLDXMENU_TARGET
="really-lwlib"
15765 ## The X Menu stuff is present in the X10 distribution, but missing
15766 ## from X11. If we have X10, just use the installed library;
15767 ## otherwise, use our own copy.
15768 if test "${HAVE_X11}" = "yes" ; then
15770 $as_echo "#define HAVE_X11 1" >>confdefs.h
15773 if test "$USE_X_TOOLKIT" = "none"; then
15774 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15776 OLDXMENU
="\${lwlibdir}/liblw.a"
15778 LIBXMENU
="\$(OLDXMENU)"
15779 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15780 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15782 ## For a syntactically valid Makefile; not actually used for anything.
15783 ## See comments in src/Makefile.in.
15785 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15786 if test "${HAVE_X_WINDOWS}" = "yes"; then
15795 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15808 if test "${HAVE_MENUS}" = "yes" ; then
15810 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15814 if test "${GNU_MALLOC}" = "yes" ; then
15816 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15821 if test "${REL_ALLOC}" = "yes" ; then
15823 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15826 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15830 if test "$opsys" = "cygwin"; then
15831 CYGWIN_OBJ
="sheap.o"
15832 ## Cygwin differs because of its unexec().
15834 POST_ALLOC_OBJ
=lastfile.o
15837 PRE_ALLOC_OBJ
=lastfile.o
15844 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
15845 # it temporarily reverts them to their pre-pkg-config values,
15846 # because gnulib needs to work with both src (which uses the
15847 # pkg-config stuff) and lib-src (which does not). For example, gnulib
15848 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
15849 # and it therefore needs to run in an environment where LIBS does not
15850 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
15851 # for some package unrelated to lib-src.
15852 SAVE_CFLAGS
=$CFLAGS
15854 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
15855 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
15867 LIBC_FATAL_STDERR_
=1
15868 export LIBC_FATAL_STDERR_
15870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15871 # for constant arguments. Useless!
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15873 $as_echo_n "checking for working alloca.h... " >&6; }
15874 if test "${ac_cv_working_alloca_h+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 #include <alloca.h>
15883 char *p = (char *) alloca (2 * sizeof (int));
15889 if ac_fn_c_try_link
"$LINENO"; then :
15890 ac_cv_working_alloca_h
=yes
15892 ac_cv_working_alloca_h
=no
15894 rm -f core conftest.err conftest.
$ac_objext \
15895 conftest
$ac_exeext conftest.
$ac_ext
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15898 $as_echo "$ac_cv_working_alloca_h" >&6; }
15899 if test $ac_cv_working_alloca_h = yes; then
15901 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15906 $as_echo_n "checking for alloca... " >&6; }
15907 if test "${ac_cv_func_alloca_works+set}" = set; then :
15908 $as_echo_n "(cached) " >&6
15910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15913 # define alloca __builtin_alloca
15916 # include <malloc.h>
15917 # define alloca _alloca
15919 # ifdef HAVE_ALLOCA_H
15920 # include <alloca.h>
15925 # ifndef alloca /* predefined by HP cc +Olibcalls */
15936 char *p = (char *) alloca (1);
15942 if ac_fn_c_try_link
"$LINENO"; then :
15943 ac_cv_func_alloca_works
=yes
15945 ac_cv_func_alloca_works
=no
15947 rm -f core conftest.err conftest.
$ac_objext \
15948 conftest
$ac_exeext conftest.
$ac_ext
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15951 $as_echo "$ac_cv_func_alloca_works" >&6; }
15953 if test $ac_cv_func_alloca_works = yes; then
15955 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15958 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15959 # that cause trouble. Some versions do not even contain alloca or
15960 # contain a buggy version. If you still want to use their alloca,
15961 # use ar to extract alloca.o from them instead of compiling alloca.c.
15967 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15969 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15973 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15974 if test "${ac_cv_os_cray+set}" = set; then :
15975 $as_echo_n "(cached) " >&6
15977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #if defined CRAY && ! defined CRAY2
15986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15987 $EGREP "webecray" >/dev
/null
2>&1; then :
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15996 $as_echo "$ac_cv_os_cray" >&6; }
15997 if test $ac_cv_os_cray = yes; then
15998 for ac_func
in _getb67 GETB67 getb67
; do
15999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16000 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16001 eval as_val
=\$
$as_ac_var
16002 if test "x$as_val" = x
""yes; then :
16004 cat >>confdefs.h
<<_ACEOF
16005 #define CRAY_STACKSEG_END $ac_func
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16015 $as_echo_n "checking stack direction for C alloca... " >&6; }
16016 if test "${ac_cv_c_stack_direction+set}" = set; then :
16017 $as_echo_n "(cached) " >&6
16019 if test "$cross_compiling" = yes; then :
16020 ac_cv_c_stack_direction
=0
16022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 $ac_includes_default
16026 find_stack_direction (int *addr, int depth)
16028 int dir, dummy = 0;
16031 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16032 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16033 return dir + dummy;
16037 main (int argc, char **argv)
16039 return find_stack_direction (0, argc + !argv + 20) < 0;
16042 if ac_fn_c_try_run
"$LINENO"; then :
16043 ac_cv_c_stack_direction
=1
16045 ac_cv_c_stack_direction
=-1
16047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16053 $as_echo "$ac_cv_c_stack_direction" >&6; }
16054 cat >>confdefs.h
<<_ACEOF
16055 #define STACK_DIRECTION $ac_cv_c_stack_direction
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16065 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16066 if test "${ac_cv_c_bigendian+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16069 ac_cv_c_bigendian
=unknown
16070 # See if we're dealing with a universal compiler.
16071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 #ifndef __APPLE_CC__
16074 not a universal capable compiler
16079 if ac_fn_c_try_compile
"$LINENO"; then :
16081 # Check for potential -arch flags. It is not universal unless
16082 # there are at least two -arch flags with different values.
16085 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16086 if test -n "$ac_prev"; then
16088 i?
86 | x86_64 | ppc | ppc64
)
16089 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16092 ac_cv_c_bigendian
=universal
16098 elif test "x$ac_word" = "x-arch"; then
16103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16104 if test $ac_cv_c_bigendian = unknown
; then
16105 # See if sys/param.h defines the BYTE_ORDER macro.
16106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h. */
16108 #include <sys/types.h>
16109 #include <sys/param.h>
16114 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16115 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16117 bogus endian macros
16124 if ac_fn_c_try_compile
"$LINENO"; then :
16125 # It does; now see whether it defined to BIG_ENDIAN or not.
16126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 #include <sys/types.h>
16129 #include <sys/param.h>
16134 #if BYTE_ORDER != BIG_ENDIAN
16142 if ac_fn_c_try_compile
"$LINENO"; then :
16143 ac_cv_c_bigendian
=yes
16145 ac_cv_c_bigendian
=no
16147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16151 if test $ac_cv_c_bigendian = unknown
; then
16152 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 #include <limits.h>
16160 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16161 bogus endian macros
16168 if ac_fn_c_try_compile
"$LINENO"; then :
16169 # It does; now see whether it defined to _BIG_ENDIAN or not.
16170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172 #include <limits.h>
16177 #ifndef _BIG_ENDIAN
16185 if ac_fn_c_try_compile
"$LINENO"; then :
16186 ac_cv_c_bigendian
=yes
16188 ac_cv_c_bigendian
=no
16190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16194 if test $ac_cv_c_bigendian = unknown
; then
16195 # Compile a test program.
16196 if test "$cross_compiling" = yes; then :
16197 # Try to guess by grepping values from an object file.
16198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 short int ascii_mm[] =
16201 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16202 short int ascii_ii[] =
16203 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16204 int use_ascii (int i) {
16205 return ascii_mm[i] + ascii_ii[i];
16207 short int ebcdic_ii[] =
16208 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16209 short int ebcdic_mm[] =
16210 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16211 int use_ebcdic (int i) {
16212 return ebcdic_mm[i] + ebcdic_ii[i];
16219 return use_ascii (foo) == use_ebcdic (foo);
16224 if ac_fn_c_try_compile
"$LINENO"; then :
16225 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16226 ac_cv_c_bigendian
=yes
16228 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16229 if test "$ac_cv_c_bigendian" = unknown
; then
16230 ac_cv_c_bigendian
=no
16232 # finding both strings is unlikely to happen, but who knows?
16233 ac_cv_c_bigendian
=unknown
16237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 $ac_includes_default
16246 /* Are we little or big endian? From Harbison&Steele. */
16250 char c[sizeof (long int)];
16253 return u.c[sizeof (long int) - 1] == 1;
16259 if ac_fn_c_try_run
"$LINENO"; then :
16260 ac_cv_c_bigendian
=no
16262 ac_cv_c_bigendian
=yes
16264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16271 $as_echo "$ac_cv_c_bigendian" >&6; }
16272 case $ac_cv_c_bigendian in #(
16274 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16280 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16284 as_fn_error
"unknown endianness
16285 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16290 $as_echo_n "checking for inline... " >&6; }
16291 if test "${ac_cv_c_inline+set}" = set; then :
16292 $as_echo_n "(cached) " >&6
16295 for ac_kw
in inline __inline__ __inline
; do
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 #ifndef __cplusplus
16300 static $ac_kw foo_t static_foo () {return 0; }
16301 $ac_kw foo_t foo () {return 0; }
16305 if ac_fn_c_try_compile
"$LINENO"; then :
16306 ac_cv_c_inline
=$ac_kw
16308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16309 test "$ac_cv_c_inline" != no
&& break
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16314 $as_echo "$ac_cv_c_inline" >&6; }
16316 case $ac_cv_c_inline in
16319 case $ac_cv_c_inline in
16321 *) ac_val
=$ac_cv_c_inline;;
16323 cat >>confdefs.h
<<_ACEOF
16324 #ifndef __cplusplus
16325 #define inline $ac_val
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16333 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16334 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16335 $as_echo_n "(cached) " >&6
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 /* On HP-UX before 11.23, strtold returns a struct instead of
16340 long double. Reject implementations like that, by requiring
16341 compatibility with the C99 prototype. */
16342 #include <stdlib.h>
16343 static long double (*p) (char const *, char **) = strtold;
16345 test (char const *nptr, char **endptr)
16348 r = strtold (nptr, endptr);
16354 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16359 if ac_fn_c_try_link
"$LINENO"; then :
16360 gl_cv_func_c99_strtold
=yes
16362 gl_cv_func_c99_strtold
=no
16364 rm -f core conftest.err conftest.
$ac_objext \
16365 conftest
$ac_exeext conftest.
$ac_ext
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16368 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16369 if test $gl_cv_func_c99_strtold = yes; then
16371 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16383 GNULIB_EUIDACCESS
=0;
16384 GNULIB_FACCESSAT
=0;
16387 GNULIB_FDATASYNC
=0;
16389 GNULIB_FTRUNCATE
=0;
16391 GNULIB_GETDOMAINNAME
=0;
16392 GNULIB_GETDTABLESIZE
=0;
16393 GNULIB_GETGROUPS
=0;
16394 GNULIB_GETHOSTNAME
=0;
16396 GNULIB_GETLOGIN_R
=0;
16397 GNULIB_GETPAGESIZE
=0;
16398 GNULIB_GETUSERSHELL
=0;
16399 GNULIB_GROUP_MEMBER
=0;
16411 GNULIB_READLINKAT
=0;
16413 GNULIB_SETHOSTNAME
=0;
16416 GNULIB_SYMLINKAT
=0;
16417 GNULIB_TTYNAME_R
=0;
16418 GNULIB_UNISTD_H_NONBLOCKING
=0;
16419 GNULIB_UNISTD_H_SIGPIPE
=0;
16434 HAVE_GETDTABLESIZE
=1;
16436 HAVE_GETHOSTNAME
=1;
16438 HAVE_GETPAGESIZE
=1;
16439 HAVE_GROUP_MEMBER
=1;
16449 HAVE_SETHOSTNAME
=1;
16455 HAVE_DECL_ENVIRON
=1;
16456 HAVE_DECL_FCHDIR
=1;
16457 HAVE_DECL_FDATASYNC
=1;
16458 HAVE_DECL_GETDOMAINNAME
=1;
16459 HAVE_DECL_GETLOGIN_R
=1;
16460 HAVE_DECL_GETPAGESIZE
=1;
16461 HAVE_DECL_GETUSERSHELL
=1;
16462 HAVE_DECL_SETHOSTNAME
=1;
16463 HAVE_DECL_TTYNAME_R
=1;
16465 HAVE_SYS_PARAM_H
=0;
16470 REPLACE_FCHOWNAT
=0;
16471 REPLACE_FTRUNCATE
=0;
16473 REPLACE_GETDOMAINNAME
=0;
16474 REPLACE_GETLOGIN_R
=0;
16475 REPLACE_GETGROUPS
=0;
16476 REPLACE_GETPAGESIZE
=0;
16485 REPLACE_READLINK
=0;
16489 REPLACE_TTYNAME_R
=0;
16491 REPLACE_UNLINKAT
=0;
16494 UNISTD_H_HAVE_WINSOCK2_H
=0;
16495 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16506 $as_echo_n "checking if environ is properly declared... " >&6; }
16507 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16508 $as_echo_n "(cached) " >&6
16511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16514 #include <unistd.h>
16516 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16517 #include <stdlib.h>
16519 extern struct { int foo; } environ;
16528 if ac_fn_c_try_compile
"$LINENO"; then :
16529 gt_cv_var_environ_declaration
=no
16531 gt_cv_var_environ_declaration
=yes
16533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16537 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16538 if test $gt_cv_var_environ_declaration = yes; then
16540 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16545 if test $gt_cv_var_environ_declaration != yes; then
16546 HAVE_DECL_ENVIRON
=0
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16556 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16557 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16558 $as_echo_n "(cached) " >&6
16560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16563 #include <sys/types.h>
16564 #include <sys/stat.h>
16568 struct stat s; s.st_dm_mode;
16573 if ac_fn_c_try_compile
"$LINENO"; then :
16574 ac_cv_struct_st_dm_mode
=yes
16576 ac_cv_struct_st_dm_mode
=no
16578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16581 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16583 if test $ac_cv_struct_st_dm_mode = yes; then
16585 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16590 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16591 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16597 cat >>confdefs.h
<<_ACEOF
16598 #define HAVE_DECL_STRMODE $ac_have_decl
16604 GNULIB_CALLOC_POSIX
=0;
16605 GNULIB_CANONICALIZE_FILE_NAME
=0;
16606 GNULIB_GETLOADAVG
=0;
16607 GNULIB_GETSUBOPT
=0;
16609 GNULIB_MALLOC_POSIX
=0;
16613 GNULIB_MKOSTEMPS
=0;
16616 GNULIB_POSIX_OPENPT
=0;
16618 GNULIB_PTSNAME_R
=0;
16622 GNULIB_REALLOC_POSIX
=0;
16629 GNULIB_SYSTEM_POSIX
=0;
16635 HAVE_CANONICALIZE_FILE_NAME
=1;
16636 HAVE_DECL_GETLOADAVG
=1;
16644 HAVE_POSIX_OPENPT
=1;
16653 HAVE_DECL_SETENV
=1;
16657 HAVE_STRUCT_RANDOM_DATA
=1;
16658 HAVE_SYS_LOADAVG_H
=0;
16660 HAVE_DECL_UNSETENV
=1;
16662 REPLACE_CANONICALIZE_FILE_NAME
=0;
16666 REPLACE_PTSNAME_R
=0;
16668 REPLACE_RANDOM_R
=0;
16670 REPLACE_REALPATH
=0;
16673 REPLACE_UNSETENV
=0;
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16679 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16680 if test "${gl_cv_have_include_next+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16683 rm -rf conftestd1a conftestd1b conftestd2
16684 mkdir conftestd1a conftestd1b conftestd2
16685 cat <<EOF > conftestd1a/conftest.h
16686 #define DEFINED_IN_CONFTESTD1
16687 #include_next <conftest.h>
16688 #ifdef DEFINED_IN_CONFTESTD2
16691 #error "include_next doesn't work"
16694 cat <<EOF > conftestd1b/conftest.h
16695 #define DEFINED_IN_CONFTESTD1
16697 #include_next <conftest.h>
16698 #ifdef DEFINED_IN_CONFTESTD2
16701 #error "include_next doesn't work"
16704 cat <<EOF > conftestd2/conftest.h
16705 #ifndef DEFINED_IN_CONFTESTD1
16706 #error "include_next test doesn't work"
16708 #define DEFINED_IN_CONFTESTD2
16710 gl_save_CPPFLAGS
="$CPPFLAGS"
16711 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 #include <conftest.h>
16716 if ac_fn_c_try_compile
"$LINENO"; then :
16717 gl_cv_have_include_next
=yes
16719 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 #include <conftest.h>
16724 if ac_fn_c_try_compile
"$LINENO"; then :
16725 gl_cv_have_include_next
=buggy
16727 gl_cv_have_include_next
=no
16729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16733 CPPFLAGS
="$gl_save_CPPFLAGS"
16734 rm -rf conftestd1a conftestd1b conftestd2
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16738 $as_echo "$gl_cv_have_include_next" >&6; }
16739 PRAGMA_SYSTEM_HEADER
=
16740 if test $gl_cv_have_include_next = yes; then
16741 INCLUDE_NEXT
=include_next
16742 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16743 if test -n "$GCC"; then
16744 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16747 if test $gl_cv_have_include_next = buggy
; then
16748 INCLUDE_NEXT
=include
16749 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16751 INCLUDE_NEXT
=include
16752 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16759 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16760 if test "${gl_cv_pragma_columns+set}" = set; then :
16761 $as_echo_n "(cached) " >&6
16763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16772 $EGREP "choke me" >/dev
/null
2>&1; then :
16773 gl_cv_pragma_columns
=yes
16775 gl_cv_pragma_columns
=no
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16782 $as_echo "$gl_cv_pragma_columns" >&6; }
16783 if test $gl_cv_pragma_columns = yes; then
16784 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16805 if test $gl_cv_have_include_next = yes; then
16806 gl_cv_next_getopt_h
='<'getopt.h
'>'
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16809 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16810 if test "${gl_cv_next_getopt_h+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16814 if test $ac_cv_header_getopt_h = yes; then
16817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #include <getopt.h>
16823 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16824 *) gl_absname_cpp
="$ac_cpp" ;;
16829 gl_dirsep_regex
='[/\\]'
16832 gl_dirsep_regex
='\/'
16835 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16837 gl_header_literal_regex
=`echo 'getopt.h' \
16838 | sed -e "$gl_make_literal_regex_sed"`
16839 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16845 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16846 sed -n "$gl_absolute_header_sed"`'"'
16848 gl_cv_next_getopt_h
='<'getopt.h
'>'
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16854 $as_echo "$gl_cv_next_getopt_h" >&6; }
16856 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16858 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16860 gl_next_as_first_directive
='<'getopt.h
'>'
16862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16863 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16865 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16870 if test $ac_cv_header_getopt_h = yes; then
16879 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16880 for ac_header
in getopt.h
16882 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16883 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16884 cat >>confdefs.h
<<_ACEOF
16885 #define HAVE_GETOPT_H 1
16889 gl_replace_getopt
=yes
16896 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16897 for ac_func
in getopt_long_only
16899 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16900 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16901 cat >>confdefs.h
<<_ACEOF
16902 #define HAVE_GETOPT_LONG_ONLY 1
16906 gl_replace_getopt
=yes
16912 if test -z "$gl_replace_getopt"; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16914 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16915 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16916 $as_echo_n "(cached) " >&6
16919 if test $cross_compiling = no
; then
16920 if test "$cross_compiling" = yes; then :
16921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16923 as_fn_error
"cannot run test program while cross compiling
16924 See \`config.log' for more details." "$LINENO" 5; }
16926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 #include <unistd.h>
16930 #include <stdlib.h>
16931 #include <string.h>
16936 static char program[] = "program";
16937 static char a[] = "-a";
16938 static char foo[] = "foo";
16939 static char bar[] = "bar";
16940 char *argv[] = { program, a, foo, bar, NULL };
16943 c = getopt (4, argv, "ab");
16946 c = getopt (4, argv, "ab");
16949 if (!(optind == 2))
16955 if ac_fn_c_try_run
"$LINENO"; then :
16956 gl_cv_func_getopt_posix
=maybe
16958 gl_cv_func_getopt_posix
=no
16960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16964 if test $gl_cv_func_getopt_posix = maybe
; then
16965 if test "$cross_compiling" = yes; then :
16966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16968 as_fn_error
"cannot run test program while cross compiling
16969 See \`config.log' for more details." "$LINENO" 5; }
16971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16974 #include <unistd.h>
16975 #include <stdlib.h>
16976 #include <string.h>
16981 static char program[] = "program";
16982 static char donald[] = "donald";
16983 static char p[] = "-p";
16984 static char billy[] = "billy";
16985 static char duck[] = "duck";
16986 static char a[] = "-a";
16987 static char bar[] = "bar";
16988 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16991 c = getopt (7, argv, "+abp:q:");
16994 if (!(strcmp (argv[0], "program") == 0))
16996 if (!(strcmp (argv[1], "donald") == 0))
16998 if (!(strcmp (argv[2], "-p") == 0))
17000 if (!(strcmp (argv[3], "billy") == 0))
17002 if (!(strcmp (argv[4], "duck") == 0))
17004 if (!(strcmp (argv[5], "-a") == 0))
17006 if (!(strcmp (argv[6], "bar") == 0))
17008 if (!(optind == 1))
17014 if ac_fn_c_try_run
"$LINENO"; then :
17015 gl_cv_func_getopt_posix
=maybe
17017 gl_cv_func_getopt_posix
=no
17019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17024 if test $gl_cv_func_getopt_posix = maybe
; then
17025 if test "$cross_compiling" = yes; then :
17026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17028 as_fn_error
"cannot run test program while cross compiling
17029 See \`config.log' for more details." "$LINENO" 5; }
17031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17034 #include <unistd.h>
17035 #include <stdlib.h>
17036 #include <string.h>
17041 static char program[] = "program";
17042 static char ab[] = "-ab";
17043 char *argv[3] = { program, ab, NULL };
17044 if (getopt (2, argv, "ab:") != 'a')
17046 if (getopt (2, argv, "ab:") != '?')
17056 if ac_fn_c_try_run
"$LINENO"; then :
17057 gl_cv_func_getopt_posix
=yes
17059 gl_cv_func_getopt_posix
=no
17061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17068 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17069 *) gl_cv_func_getopt_posix
="guessing yes";;
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17075 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17076 case "$gl_cv_func_getopt_posix" in
17077 *no
) gl_replace_getopt
=yes ;;
17081 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17083 $as_echo_n "checking for working GNU getopt function... " >&6; }
17084 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17085 $as_echo_n "(cached) " >&6
17087 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17088 # optstring is necessary for programs like m4 that have POSIX-mandated
17089 # semantics for supporting options interspersed with files.
17090 # Also, since getopt_long is a GNU extension, we require optind=0.
17091 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17092 # so take care to revert to the correct (non-)export state.
17093 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17094 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17095 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17096 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17097 *) gl_had_POSIXLY_CORRECT
= ;;
17100 export POSIXLY_CORRECT
17101 if test "$cross_compiling" = yes; then :
17102 gl_cv_func_getopt_gnu
="guessing no"
17105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17107 #include <getopt.h>
17108 #include <stddef.h>
17109 #include <string.h>
17111 #include <stdlib.h>
17112 #if defined __MACH__ && defined __APPLE__
17113 /* Avoid a crash on Mac OS X. */
17114 #include <mach/mach.h>
17115 #include <mach/mach_error.h>
17116 #include <mach/thread_status.h>
17117 #include <mach/exception.h>
17118 #include <mach/task.h>
17119 #include <pthread.h>
17120 /* The exception port on which our thread listens. */
17121 static mach_port_t our_exception_port;
17122 /* The main function of the thread listening for exceptions of type
17125 mach_exception_thread (void *arg)
17127 /* Buffer for a message to be received. */
17129 mach_msg_header_t head;
17130 mach_msg_body_t msgh_body;
17133 mach_msg_return_t retval;
17134 /* Wait for a message on the exception port. */
17135 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17136 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17137 if (retval != MACH_MSG_SUCCESS)
17142 nocrash_init (void)
17144 mach_port_t self = mach_task_self ();
17145 /* Allocate a port on which the thread shall listen for exceptions. */
17146 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17148 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17149 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17150 MACH_MSG_TYPE_MAKE_SEND)
17152 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17154 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17155 /* Create the thread listening on the exception port. */
17156 pthread_attr_t attr;
17158 if (pthread_attr_init (&attr) == 0
17159 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17160 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17161 pthread_attr_destroy (&attr);
17162 /* Replace the exception port info for these exceptions with our own.
17163 Note that we replace the exception port for the entire task, not only
17164 for a particular thread. This has the effect that when our exception
17165 port gets the message, the thread specific exception port has already
17166 been asked, and we don't need to bother about it.
17167 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17168 task_set_exception_ports (self, mask, our_exception_port,
17169 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17174 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17175 /* Avoid a crash on native Windows. */
17176 #define WIN32_LEAN_AND_MEAN
17177 #include <windows.h>
17178 #include <winerror.h>
17180 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17182 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17184 case EXCEPTION_ACCESS_VIOLATION:
17185 case EXCEPTION_IN_PAGE_ERROR:
17186 case EXCEPTION_STACK_OVERFLOW:
17187 case EXCEPTION_GUARD_PAGE:
17188 case EXCEPTION_PRIV_INSTRUCTION:
17189 case EXCEPTION_ILLEGAL_INSTRUCTION:
17190 case EXCEPTION_DATATYPE_MISALIGNMENT:
17191 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17192 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17195 return EXCEPTION_CONTINUE_SEARCH;
17198 nocrash_init (void)
17200 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17203 /* Avoid a crash on POSIX systems. */
17204 #include <signal.h>
17205 /* A POSIX signal handler. */
17207 exception_handler (int sig)
17212 nocrash_init (void)
17215 signal (SIGSEGV, exception_handler);
17218 signal (SIGBUS, exception_handler);
17232 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17233 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17234 OSF/1 5.1, Solaris 10. */
17236 static char conftest[] = "conftest";
17237 static char plus[] = "-+";
17238 char *argv[3] = { conftest, plus, NULL };
17240 if (getopt (2, argv, "+a") != '?')
17243 /* This code succeeds on glibc 2.8, mingw,
17244 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17245 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17247 static char program[] = "program";
17248 static char p[] = "-p";
17249 static char foo[] = "foo";
17250 static char bar[] = "bar";
17251 char *argv[] = { program, p, foo, bar, NULL };
17254 if (getopt (4, argv, "p::") != 'p')
17256 else if (optarg != NULL)
17258 else if (getopt (4, argv, "p::") != -1)
17260 else if (optind != 2)
17263 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17265 static char program[] = "program";
17266 static char foo[] = "foo";
17267 static char p[] = "-p";
17268 char *argv[] = { program, foo, p, NULL };
17270 if (getopt (3, argv, "-p") != 1)
17272 else if (getopt (3, argv, "-p") != 'p')
17275 /* This code fails on glibc 2.11. */
17277 static char program[] = "program";
17278 static char b[] = "-b";
17279 static char a[] = "-a";
17280 char *argv[] = { program, b, a, NULL };
17281 optind = opterr = 0;
17282 if (getopt (3, argv, "+:a:b") != 'b')
17284 else if (getopt (3, argv, "+:a:b") != ':')
17287 /* This code dumps core on glibc 2.14. */
17289 static char program[] = "program";
17290 static char w[] = "-W";
17291 static char dummy[] = "dummy";
17292 char *argv[] = { program, w, dummy, NULL };
17293 optind = opterr = 1;
17294 if (getopt (3, argv, "W;") != 'W')
17303 if ac_fn_c_try_run
"$LINENO"; then :
17304 gl_cv_func_getopt_gnu
=yes
17306 gl_cv_func_getopt_gnu
=no
17308 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17309 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17312 case $gl_had_POSIXLY_CORRECT in
17314 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17315 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17320 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17321 if test "$gl_cv_func_getopt_gnu" != yes; then
17322 gl_replace_getopt
=yes
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17325 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17326 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17327 $as_echo_n "(cached) " >&6
17329 if test "$cross_compiling" = yes; then :
17331 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17332 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 #include <getopt.h>
17339 #include <stddef.h>
17340 #include <string.h>
17345 static const struct option long_options[] =
17347 { "xtremely-",no_argument, NULL, 1003 },
17348 { "xtra", no_argument, NULL, 1001 },
17349 { "xtreme", no_argument, NULL, 1002 },
17350 { "xtremely", no_argument, NULL, 1003 },
17351 { NULL, 0, NULL, 0 }
17353 /* This code fails on OpenBSD 5.0. */
17355 static char program[] = "program";
17356 static char xtremel[] = "--xtremel";
17357 char *argv[] = { program, xtremel, NULL };
17359 optind = 1; opterr = 0;
17360 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17369 if ac_fn_c_try_run
"$LINENO"; then :
17370 gl_cv_func_getopt_long_gnu
=yes
17372 gl_cv_func_getopt_long_gnu
=no
17374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17381 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17382 case "$gl_cv_func_getopt_long_gnu" in
17384 *) gl_replace_getopt
=yes ;;
17395 if test -n "$gl_replace_getopt"; then
17399 if test $REPLACE_GETOPT = 1; then
17403 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17409 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17410 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17416 cat >>confdefs.h
<<_ACEOF
17417 #define HAVE_DECL_GETENV $ac_have_decl
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17426 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17427 if test "${ac_cv_c_restrict+set}" = set; then :
17428 $as_echo_n "(cached) " >&6
17430 ac_cv_c_restrict
=no
17431 # The order here caters to the fact that C++ does not require restrict.
17432 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 typedef int * int_ptr;
17436 int foo (int_ptr $ac_kw ip) {
17443 int * $ac_kw t = s;
17450 if ac_fn_c_try_compile
"$LINENO"; then :
17451 ac_cv_c_restrict
=$ac_kw
17453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17454 test "$ac_cv_c_restrict" != no
&& break
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17459 $as_echo "$ac_cv_c_restrict" >&6; }
17461 case $ac_cv_c_restrict in
17463 no
) $as_echo "#define restrict /**/" >>confdefs.h
17465 *) cat >>confdefs.h
<<_ACEOF
17466 #define restrict $ac_cv_c_restrict
17472 GNULIB_GETTIMEOFDAY
=0;
17473 HAVE_GETTIMEOFDAY
=1;
17474 HAVE_STRUCT_TIMEVAL
=1;
17476 REPLACE_GETTIMEOFDAY
=0;
17477 REPLACE_STRUCT_TIMEVAL
=0;
17494 if test $gl_cv_have_include_next = yes; then
17495 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17498 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17499 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17503 if test $ac_cv_header_sys_time_h = yes; then
17506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <sys/time.h>
17512 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17513 *) gl_absname_cpp
="$ac_cpp" ;;
17518 gl_dirsep_regex
='[/\\]'
17521 gl_dirsep_regex
='\/'
17524 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17526 gl_header_literal_regex
=`echo 'sys/time.h' \
17527 | sed -e "$gl_make_literal_regex_sed"`
17528 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17529 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17534 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17535 sed -n "$gl_absolute_header_sed"`'"'
17537 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17543 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17545 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17547 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive
='<'sys
/time.h
'>'
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17554 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17560 if test $ac_cv_header_sys_time_h != yes; then
17568 if test $ac_cv_header_sys_socket_h != yes; then
17569 for ac_header
in winsock2.h
17571 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17572 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17573 cat >>confdefs.h
<<_ACEOF
17574 #define HAVE_WINSOCK2_H 1
17582 if test "$ac_cv_header_winsock2_h" = yes; then
17584 UNISTD_H_HAVE_WINSOCK2_H
=1
17585 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17592 $as_echo_n "checking for struct timeval... " >&6; }
17593 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17594 $as_echo_n "(cached) " >&6
17596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 #if HAVE_SYS_TIME_H
17599 #include <sys/time.h>
17602 #if HAVE_WINSOCK2_H
17603 # include <winsock2.h>
17609 static struct timeval x; x.tv_sec = x.tv_usec;
17614 if ac_fn_c_try_compile
"$LINENO"; then :
17615 gl_cv_sys_struct_timeval
=yes
17617 gl_cv_sys_struct_timeval
=no
17619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17623 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17624 if test $gl_cv_sys_struct_timeval != yes; then
17625 HAVE_STRUCT_TIMEVAL
=0
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17628 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17629 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17634 #if HAVE_SYS_TIME_H
17635 #include <sys/time.h>
17638 #if HAVE_WINSOCK2_H
17639 # include <winsock2.h>
17645 static struct timeval x;
17646 typedef int verify_tv_sec_type[
17647 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17654 if ac_fn_c_try_compile
"$LINENO"; then :
17655 gl_cv_sys_struct_timeval_tv_sec
=yes
17657 gl_cv_sys_struct_timeval_tv_sec
=no
17659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17663 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17664 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17665 REPLACE_STRUCT_TIMEVAL
=1
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17676 $as_echo_n "checking for unsigned long long int... " >&6; }
17677 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
17680 ac_cv_type_unsigned_long_long_int
=yes
17681 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17685 /* For now, do not test the preprocessor; as of 2007 there are too many
17686 implementations with broken preprocessors. Perhaps this can
17687 be revisited in 2012. In the meantime, code should not expect
17688 #if to work with literals wider than 32 bits. */
17689 /* Test literals. */
17690 long long int ll = 9223372036854775807ll;
17691 long long int nll = -9223372036854775807LL;
17692 unsigned long long int ull = 18446744073709551615ULL;
17693 /* Test constant expressions. */
17694 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17696 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17702 /* Test availability of runtime routines for shift and division. */
17703 long long int llmax = 9223372036854775807ll;
17704 unsigned long long int ullmax = 18446744073709551615ull;
17705 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17706 | (llmax / ll) | (llmax % ll)
17707 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17708 | (ullmax / ull) | (ullmax % ull));
17714 if ac_fn_c_try_link
"$LINENO"; then :
17717 ac_cv_type_unsigned_long_long_int
=no
17719 rm -f core conftest.err conftest.
$ac_objext \
17720 conftest
$ac_exeext conftest.
$ac_ext
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17724 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17725 if test $ac_cv_type_unsigned_long_long_int = yes; then
17727 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17734 $as_echo_n "checking for long long int... " >&6; }
17735 if test "${ac_cv_type_long_long_int+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17738 ac_cv_type_long_long_int
=yes
17739 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17740 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17741 if test $ac_cv_type_long_long_int = yes; then
17742 if test "$cross_compiling" = yes; then :
17745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747 #include <limits.h>
17750 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17751 # define LLONG_MAX (HALF - 1 + HALF)
17756 long long int n = 1;
17760 long long int m = n << i;
17763 if (LLONG_MAX / 2 < m)
17771 if ac_fn_c_try_run
"$LINENO"; then :
17774 ac_cv_type_long_long_int
=no
17776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17784 $as_echo "$ac_cv_type_long_long_int" >&6; }
17785 if test $ac_cv_type_long_long_int = yes; then
17787 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17796 gl_cv_c_multiarch
=no
17797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 #ifndef __APPLE_CC__
17800 not a universal capable compiler
17805 if ac_fn_c_try_compile
"$LINENO"; then :
17809 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17810 if test -n "$prev"; then
17812 i?
86 | x86_64 | ppc | ppc64
)
17813 if test -z "$arch" ||
test "$arch" = "$word"; then
17816 gl_cv_c_multiarch
=yes
17822 if test "x$word" = "x-arch"; then
17829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17830 if test $gl_cv_c_multiarch = yes; then
17831 APPLE_UNIVERSAL_BUILD
=1
17833 APPLE_UNIVERSAL_BUILD
=0
17840 if test $ac_cv_type_long_long_int = yes; then
17841 HAVE_LONG_LONG_INT
=1
17843 HAVE_LONG_LONG_INT
=0
17847 if test $ac_cv_type_unsigned_long_long_int = yes; then
17848 HAVE_UNSIGNED_LONG_LONG_INT
=1
17850 HAVE_UNSIGNED_LONG_LONG_INT
=0
17855 if test $ac_cv_header_wchar_h = yes; then
17862 if test $ac_cv_header_inttypes_h = yes; then
17869 if test $ac_cv_header_sys_types_h = yes; then
17885 if test $gl_cv_have_include_next = yes; then
17886 gl_cv_next_stdint_h
='<'stdint.h
'>'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17889 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17890 if test "${gl_cv_next_stdint_h+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17894 if test $ac_cv_header_stdint_h = yes; then
17897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17899 #include <stdint.h>
17903 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17904 *) gl_absname_cpp
="$ac_cpp" ;;
17909 gl_dirsep_regex
='[/\\]'
17912 gl_dirsep_regex
='\/'
17915 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17917 gl_header_literal_regex
=`echo 'stdint.h' \
17918 | sed -e "$gl_make_literal_regex_sed"`
17919 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17925 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17926 sed -n "$gl_absolute_header_sed"`'"'
17928 gl_cv_next_stdint_h
='<'stdint.h
'>'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17934 $as_echo "$gl_cv_next_stdint_h" >&6; }
17936 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17938 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17940 gl_next_as_first_directive
='<'stdint.h
'>'
17942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17943 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17945 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17950 if test $ac_cv_header_stdint_h = yes; then
17957 if test $ac_cv_header_stdint_h = yes; then
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17959 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17960 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17961 $as_echo_n "(cached) " >&6
17963 gl_cv_header_working_stdint_h
=no
17964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17968 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17969 #include <stdint.h>
17970 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17971 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17972 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17976 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17977 included before <wchar.h>. */
17978 #include <stddef.h>
17979 #include <signal.h>
17981 # include <stdio.h>
17983 # include <wchar.h>
17988 int8_t a1 = INT8_MAX;
17989 int8_t a1min = INT8_MIN;
17992 int16_t a2 = INT16_MAX;
17993 int16_t a2min = INT16_MIN;
17996 int32_t a3 = INT32_MAX;
17997 int32_t a3min = INT32_MIN;
18000 int64_t a4 = INT64_MAX;
18001 int64_t a4min = INT64_MIN;
18004 uint8_t b1 = UINT8_MAX;
18006 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18009 uint16_t b2 = UINT16_MAX;
18012 uint32_t b3 = UINT32_MAX;
18015 uint64_t b4 = UINT64_MAX;
18017 int_least8_t c1 = INT8_C (0x7f);
18018 int_least8_t c1max = INT_LEAST8_MAX;
18019 int_least8_t c1min = INT_LEAST8_MIN;
18020 int_least16_t c2 = INT16_C (0x7fff);
18021 int_least16_t c2max = INT_LEAST16_MAX;
18022 int_least16_t c2min = INT_LEAST16_MIN;
18023 int_least32_t c3 = INT32_C (0x7fffffff);
18024 int_least32_t c3max = INT_LEAST32_MAX;
18025 int_least32_t c3min = INT_LEAST32_MIN;
18026 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18027 int_least64_t c4max = INT_LEAST64_MAX;
18028 int_least64_t c4min = INT_LEAST64_MIN;
18029 uint_least8_t d1 = UINT8_C (0xff);
18030 uint_least8_t d1max = UINT_LEAST8_MAX;
18031 uint_least16_t d2 = UINT16_C (0xffff);
18032 uint_least16_t d2max = UINT_LEAST16_MAX;
18033 uint_least32_t d3 = UINT32_C (0xffffffff);
18034 uint_least32_t d3max = UINT_LEAST32_MAX;
18035 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18036 uint_least64_t d4max = UINT_LEAST64_MAX;
18037 int_fast8_t e1 = INT_FAST8_MAX;
18038 int_fast8_t e1min = INT_FAST8_MIN;
18039 int_fast16_t e2 = INT_FAST16_MAX;
18040 int_fast16_t e2min = INT_FAST16_MIN;
18041 int_fast32_t e3 = INT_FAST32_MAX;
18042 int_fast32_t e3min = INT_FAST32_MIN;
18043 int_fast64_t e4 = INT_FAST64_MAX;
18044 int_fast64_t e4min = INT_FAST64_MIN;
18045 uint_fast8_t f1 = UINT_FAST8_MAX;
18046 uint_fast16_t f2 = UINT_FAST16_MAX;
18047 uint_fast32_t f3 = UINT_FAST32_MAX;
18048 uint_fast64_t f4 = UINT_FAST64_MAX;
18050 intptr_t g = INTPTR_MAX;
18051 intptr_t gmin = INTPTR_MIN;
18054 uintptr_t h = UINTPTR_MAX;
18056 intmax_t i = INTMAX_MAX;
18057 uintmax_t j = UINTMAX_MAX;
18059 #include <limits.h> /* for CHAR_BIT */
18060 #define TYPE_MINIMUM(t) \
18061 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18062 #define TYPE_MAXIMUM(t) \
18063 ((t) ((t) 0 < (t) -1 \
18065 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18068 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18069 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18071 /* Detect bug in FreeBSD 6.0 / ia64. */
18072 int check_SIG_ATOMIC:
18073 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18074 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18076 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18078 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18079 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18081 /* Detect bug in mingw. */
18083 WINT_MIN == TYPE_MINIMUM (wint_t)
18084 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18087 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18089 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18090 int check_UINT16_C:
18091 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18093 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18095 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18098 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18101 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18104 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18106 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18107 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18108 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18109 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18110 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18111 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18112 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18113 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18114 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18115 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18116 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18127 if ac_fn_c_try_compile
"$LINENO"; then :
18128 if test "$cross_compiling" = yes; then :
18129 gl_cv_header_working_stdint_h
=yes
18132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18136 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18137 #include <stdint.h>
18140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18141 included before <wchar.h>. */
18142 #include <stddef.h>
18143 #include <signal.h>
18145 # include <stdio.h>
18147 # include <wchar.h>
18152 #include <string.h>
18153 #define MVAL(macro) MVAL1(macro)
18154 #define MVAL1(expression) #expression
18155 static const char *macro_values[] =
18189 for (mv = macro_values; *mv != NULL; mv++)
18191 const char *value = *mv;
18192 /* Test whether it looks like a cast expression. */
18193 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18194 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18195 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18196 || strncmp (value, "((int)"/*)*/, 6) == 0
18197 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18198 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18199 return mv - macro_values + 1;
18207 if ac_fn_c_try_run
"$LINENO"; then :
18208 gl_cv_header_working_stdint_h
=yes
18210 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18211 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18220 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18222 if test "$gl_cv_header_working_stdint_h" = yes; then
18225 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18227 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18228 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18229 eval as_val
=\$
$as_ac_Header
18230 if test "x$as_val" = x
""yes; then :
18231 cat >>confdefs.h
<<_ACEOF
18232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18239 if test $ac_cv_header_sys_inttypes_h = yes; then
18240 HAVE_SYS_INTTYPES_H
=1
18242 HAVE_SYS_INTTYPES_H
=0
18245 if test $ac_cv_header_sys_bitypes_h = yes; then
18246 HAVE_SYS_BITYPES_H
=1
18248 HAVE_SYS_BITYPES_H
=0
18254 if test $APPLE_UNIVERSAL_BUILD = 0; then
18257 for gltype
in ptrdiff_t size_t
; do
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18259 $as_echo_n "checking for bit size of $gltype... " >&6; }
18260 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18261 $as_echo_n "(cached) " >&6
18263 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18264 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18265 included before <wchar.h>. */
18266 #include <stddef.h>
18267 #include <signal.h>
18269 # include <stdio.h>
18271 # include <wchar.h>
18274 #include <limits.h>"; then :
18280 eval gl_cv_bitsizeof_
${gltype}=\
$result
18283 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18285 $as_echo "$ac_res" >&6; }
18286 eval result
=\
$gl_cv_bitsizeof_${gltype}
18287 if test $result = unknown
; then
18290 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18291 cat >>confdefs.h
<<_ACEOF
18292 #define BITSIZEOF_${GLTYPE} $result
18295 eval BITSIZEOF_
${GLTYPE}=\
$result
18302 for gltype
in sig_atomic_t wchar_t wint_t
; do
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18304 $as_echo_n "checking for bit size of $gltype... " >&6; }
18305 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18306 $as_echo_n "(cached) " >&6
18308 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18310 included before <wchar.h>. */
18311 #include <stddef.h>
18312 #include <signal.h>
18314 # include <stdio.h>
18316 # include <wchar.h>
18319 #include <limits.h>"; then :
18325 eval gl_cv_bitsizeof_
${gltype}=\
$result
18328 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18330 $as_echo "$ac_res" >&6; }
18331 eval result
=\
$gl_cv_bitsizeof_${gltype}
18332 if test $result = unknown
; then
18335 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18336 cat >>confdefs.h
<<_ACEOF
18337 #define BITSIZEOF_${GLTYPE} $result
18340 eval BITSIZEOF_
${GLTYPE}=\
$result
18346 for gltype
in sig_atomic_t wchar_t wint_t
; do
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18348 $as_echo_n "checking whether $gltype is signed... " >&6; }
18349 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18350 $as_echo_n "(cached) " >&6
18352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18355 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18356 included before <wchar.h>. */
18357 #include <stddef.h>
18358 #include <signal.h>
18360 # include <stdio.h>
18362 # include <wchar.h>
18365 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18374 if ac_fn_c_try_compile
"$LINENO"; then :
18379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18380 eval gl_cv_type_
${gltype}_signed
=\
$result
18383 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18385 $as_echo "$ac_res" >&6; }
18386 eval result
=\
$gl_cv_type_${gltype}_signed
18387 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18388 if test "$result" = yes; then
18389 cat >>confdefs.h
<<_ACEOF
18390 #define HAVE_SIGNED_${GLTYPE} 1
18393 eval HAVE_SIGNED_
${GLTYPE}=1
18395 eval HAVE_SIGNED_
${GLTYPE}=0
18400 gl_cv_type_ptrdiff_t_signed
=yes
18401 gl_cv_type_size_t_signed
=no
18402 if test $APPLE_UNIVERSAL_BUILD = 0; then
18405 for gltype
in ptrdiff_t size_t
; do
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18407 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18408 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18409 $as_echo_n "(cached) " >&6
18411 eval gl_cv_type_
${gltype}_suffix
=no
18412 eval result
=\
$gl_cv_type_${gltype}_signed
18413 if test "$result" = yes; then
18418 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18420 '') gltype1
='int';;
18421 l
) gltype1
='long int';;
18422 ll
) gltype1
='long long int';;
18423 i64
) gltype1
='__int64';;
18424 u
) gltype1
='unsigned int';;
18425 ul
) gltype1
='unsigned long int';;
18426 ull
) gltype1
='unsigned long long int';;
18427 ui64
)gltype1
='unsigned __int64';;
18429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18432 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18433 included before <wchar.h>. */
18434 #include <stddef.h>
18435 #include <signal.h>
18437 # include <stdio.h>
18439 # include <wchar.h>
18442 extern $gltype foo;
18443 extern $gltype1 foo;
18452 if ac_fn_c_try_compile
"$LINENO"; then :
18453 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18456 eval result
=\
$gl_cv_type_${gltype}_suffix
18457 test "$result" != no
&& break
18460 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18462 $as_echo "$ac_res" >&6; }
18463 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18464 eval result
=\
$gl_cv_type_${gltype}_suffix
18465 test "$result" = no
&& result
=
18466 eval ${GLTYPE}_SUFFIX
=\
$result
18467 cat >>confdefs.h
<<_ACEOF
18468 #define ${GLTYPE}_SUFFIX $result
18477 for gltype
in sig_atomic_t wchar_t wint_t
; do
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18479 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18480 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18481 $as_echo_n "(cached) " >&6
18483 eval gl_cv_type_
${gltype}_suffix
=no
18484 eval result
=\
$gl_cv_type_${gltype}_signed
18485 if test "$result" = yes; then
18490 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18492 '') gltype1
='int';;
18493 l
) gltype1
='long int';;
18494 ll
) gltype1
='long long int';;
18495 i64
) gltype1
='__int64';;
18496 u
) gltype1
='unsigned int';;
18497 ul
) gltype1
='unsigned long int';;
18498 ull
) gltype1
='unsigned long long int';;
18499 ui64
)gltype1
='unsigned __int64';;
18501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18504 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18505 included before <wchar.h>. */
18506 #include <stddef.h>
18507 #include <signal.h>
18509 # include <stdio.h>
18511 # include <wchar.h>
18514 extern $gltype foo;
18515 extern $gltype1 foo;
18524 if ac_fn_c_try_compile
"$LINENO"; then :
18525 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18528 eval result
=\
$gl_cv_type_${gltype}_suffix
18529 test "$result" != no
&& break
18532 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18534 $as_echo "$ac_res" >&6; }
18535 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18536 eval result
=\
$gl_cv_type_${gltype}_suffix
18537 test "$result" = no
&& result
=
18538 eval ${GLTYPE}_SUFFIX
=\
$result
18539 cat >>confdefs.h
<<_ACEOF
18540 #define ${GLTYPE}_SUFFIX $result
18547 if test $BITSIZEOF_WINT_T -lt 32; then
18548 BITSIZEOF_WINT_T
=32
18554 if test -n "$STDINT_H"; then
18555 GL_GENERATE_STDINT_H_TRUE
=
18556 GL_GENERATE_STDINT_H_FALSE
='#'
18558 GL_GENERATE_STDINT_H_TRUE
='#'
18559 GL_GENERATE_STDINT_H_FALSE
=
18568 GNULIB_STRTOIMAX
=0;
18569 GNULIB_STRTOUMAX
=0;
18570 HAVE_DECL_IMAXABS
=1;
18571 HAVE_DECL_IMAXDIV
=1;
18572 HAVE_DECL_STRTOIMAX
=1;
18573 HAVE_DECL_STRTOUMAX
=1;
18574 REPLACE_STRTOIMAX
=0;
18575 INT32_MAX_LT_INTMAX_MAX
=1;
18576 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18577 PRI_MACROS_BROKEN
=0;
18578 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18579 UINT32_MAX_LT_UINTMAX_MAX
=1;
18580 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18596 if test $gl_cv_have_include_next = yes; then
18597 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18600 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18601 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18602 $as_echo_n "(cached) " >&6
18605 if test $ac_cv_header_inttypes_h = yes; then
18608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18610 #include <inttypes.h>
18614 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18615 *) gl_absname_cpp
="$ac_cpp" ;;
18620 gl_dirsep_regex
='[/\\]'
18623 gl_dirsep_regex
='\/'
18626 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18628 gl_header_literal_regex
=`echo 'inttypes.h' \
18629 | sed -e "$gl_make_literal_regex_sed"`
18630 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18631 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18636 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18637 sed -n "$gl_absolute_header_sed"`'"'
18639 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18645 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18647 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18649 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18651 gl_next_as_first_directive
='<'inttypes.h
'>'
18653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18654 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18656 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18671 $as_echo_n "checking for 64-bit off_t... " >&6; }
18672 if test "${gl_cv_type_off_t_64+set}" = set; then :
18673 $as_echo_n "(cached) " >&6
18675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677 #include <sys/types.h>
18678 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18688 if ac_fn_c_try_compile
"$LINENO"; then :
18689 gl_cv_type_off_t_64
=yes
18691 gl_cv_type_off_t_64
=no
18693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18697 $as_echo "$gl_cv_type_off_t_64" >&6; }
18698 if test $gl_cv_type_off_t_64 = no
; then
18699 WINDOWS_64_BIT_OFF_T
=1
18701 WINDOWS_64_BIT_OFF_T
=0
18703 WINDOWS_64_BIT_ST_SIZE
=1
18706 WINDOWS_64_BIT_OFF_T
=0
18707 WINDOWS_64_BIT_ST_SIZE
=0
18724 GNULIB_UTIMENSAT
=0;
18738 REPLACE_FUTIMENS
=0;
18744 REPLACE_UTIMENSAT
=0;
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18750 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18751 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18752 $as_echo_n "(cached) " >&6
18754 rm -f conftest.sym conftest.
file
18755 echo >conftest.
file
18756 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18757 if test "$cross_compiling" = yes; then :
18759 # Guess yes on glibc systems.
18760 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18761 # If we don't know, assume the worst.
18762 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768 $ac_includes_default
18773 /* Linux will dereference the symlink and fail, as required by
18774 POSIX. That is better in the sense that it means we will not
18775 have to compile and use the lstat wrapper. */
18776 return lstat ("conftest.sym/", &sbuf) == 0;
18782 if ac_fn_c_try_run
"$LINENO"; then :
18783 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18785 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18787 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18788 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18792 # If the 'ln -s' command failed, then we probably don't even
18793 # have an lstat function.
18794 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18796 rm -f conftest.sym conftest.
file
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18800 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18801 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18804 cat >>confdefs.h
<<_ACEOF
18805 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18813 GNULIB_NANOSLEEP
=0;
18817 HAVE_DECL_LOCALTIME_R
=1;
18821 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18822 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18823 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18824 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
18841 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
18842 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
18843 $as_echo_n "(cached) " >&6
18846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848 #include <sys/select.h>
18857 if ac_fn_c_try_compile
"$LINENO"; then :
18858 gl_cv_header_sys_select_h_selfcontained
=yes
18860 gl_cv_header_sys_select_h_selfcontained
=no
18862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18863 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
18864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866 #include <sys/select.h>
18870 int memset; int bzero;
18876 if ac_fn_c_try_compile
"$LINENO"; then :
18877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18878 /* end confdefs.h. */
18879 #include <sys/select.h>
18885 #define memset nonexistent_memset
18890 void *memset (void *, int, unsigned long);
18892 #define bzero nonexistent_bzero
18897 void bzero (void *, unsigned long);
18906 if ac_fn_c_try_link
"$LINENO"; then :
18909 gl_cv_header_sys_select_h_selfcontained
=no
18911 rm -f core conftest.err conftest.
$ac_objext \
18912 conftest
$ac_exeext conftest.
$ac_ext
18915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
18920 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
18930 if test $gl_cv_have_include_next = yes; then
18931 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
18934 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
18935 if test "${gl_cv_next_sys_select_h+set}" = set; then :
18936 $as_echo_n "(cached) " >&6
18939 if test $ac_cv_header_sys_select_h = yes; then
18942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h. */
18944 #include <sys/select.h>
18948 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18949 *) gl_absname_cpp
="$ac_cpp" ;;
18954 gl_dirsep_regex
='[/\\]'
18957 gl_dirsep_regex
='\/'
18960 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18962 gl_header_literal_regex
=`echo 'sys/select.h' \
18963 | sed -e "$gl_make_literal_regex_sed"`
18964 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18970 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18971 sed -n "$gl_absolute_header_sed"`'"'
18973 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
18979 $as_echo "$gl_cv_next_sys_select_h" >&6; }
18981 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
18983 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18985 gl_next_as_first_directive
='<'sys
/select.h
'>'
18987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18988 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
18990 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
18995 if test $ac_cv_header_sys_select_h = yes; then
18996 HAVE_SYS_SELECT_H
=1
18998 HAVE_SYS_SELECT_H
=0
19005 if test $ac_cv_header_sys_socket_h != yes; then
19006 for ac_header
in winsock2.h
19008 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19009 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19010 cat >>confdefs.h
<<_ACEOF
19011 #define HAVE_WINSOCK2_H 1
19019 if test "$ac_cv_header_winsock2_h" = yes; then
19021 UNISTD_H_HAVE_WINSOCK2_H
=1
19022 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19034 GNULIB_PTHREAD_SIGMASK
=0;
19036 GNULIB_SIGNAL_H_SIGPIPE
=0;
19037 GNULIB_SIGPROCMASK
=0;
19038 GNULIB_SIGACTION
=0;
19039 HAVE_POSIX_SIGNALBLOCKING
=1;
19040 HAVE_PTHREAD_SIGMASK
=1;
19045 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19047 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19049 HAVE_SIGHANDLER_T
=1;
19050 REPLACE_PTHREAD_SIGMASK
=0;
19058 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19059 #include <signal.h>
19060 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19061 #include <sys/types.h>
19064 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19066 cat >>confdefs.h
<<_ACEOF
19067 #define HAVE_SIGSET_T 1
19070 gl_cv_type_sigset_t
=yes
19072 gl_cv_type_sigset_t
=no
19075 if test $gl_cv_type_sigset_t != yes; then
19081 if test $ac_cv_header_sys_socket_h = no
; then
19082 for ac_header
in ws2tcpip.h
19084 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19085 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19086 cat >>confdefs.h
<<_ACEOF
19087 #define HAVE_WS2TCPIP_H 1
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19097 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19098 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19104 #include <stdbool.h>
19106 "error: bool is not defined"
19109 "error: false is not defined"
19112 "error: false is not 0"
19115 "error: true is not defined"
19118 "error: true is not 1"
19120 #ifndef __bool_true_false_are_defined
19121 "error: __bool_true_false_are_defined is not defined"
19124 struct s { _Bool s: 1; _Bool t; } s;
19126 char a[true == 1 ? 1 : -1];
19127 char b[false == 0 ? 1 : -1];
19128 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19129 char d[(bool) 0.5 == true ? 1 : -1];
19130 /* See body of main program for 'e'. */
19131 char f[(_Bool) 0.0 == false ? 1 : -1];
19133 char h[sizeof (_Bool)];
19134 char i[sizeof s.t];
19135 enum { j = false, k = true, l = false * true, m = true * 256 };
19136 /* The following fails for
19137 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19139 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19140 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19141 /* Catch a bug in an HP-UX C compiler. See
19142 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19143 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19155 /* Refer to every declared value, to avoid compiler optimizations. */
19156 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19157 + !m + !n + !o + !p + !q + !pq);
19163 if ac_fn_c_try_compile
"$LINENO"; then :
19164 ac_cv_header_stdbool_h
=yes
19166 ac_cv_header_stdbool_h
=no
19168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19171 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19172 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19173 if test "x$ac_cv_type__Bool" = x
""yes; then :
19175 cat >>confdefs.h
<<_ACEOF
19176 #define HAVE__BOOL 1
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19189 $as_echo_n "checking for wchar_t... " >&6; }
19190 if test "${gt_cv_c_wchar_t+set}" = set; then :
19191 $as_echo_n "(cached) " >&6
19193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19194 /* end confdefs.h. */
19195 #include <stddef.h>
19196 wchar_t foo = (wchar_t)'\0';
19205 if ac_fn_c_try_compile
"$LINENO"; then :
19206 gt_cv_c_wchar_t
=yes
19210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19213 $as_echo "$gt_cv_c_wchar_t" >&6; }
19214 if test $gt_cv_c_wchar_t = yes; then
19216 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19229 GNULIB_FPRINTF_POSIX
=0;
19245 GNULIB_OBSTACK_PRINTF
=0;
19246 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19251 GNULIB_PRINTF_POSIX
=0;
19260 GNULIB_SPRINTF_POSIX
=0;
19261 GNULIB_STDIO_H_NONBLOCKING
=0;
19262 GNULIB_STDIO_H_SIGPIPE
=0;
19264 GNULIB_VASPRINTF
=0;
19269 GNULIB_VFPRINTF_POSIX
=0;
19271 GNULIB_VPRINTF_POSIX
=0;
19272 GNULIB_VSNPRINTF
=0;
19273 GNULIB_VSPRINTF_POSIX
=0;
19274 HAVE_DECL_FPURGE
=1;
19275 HAVE_DECL_FSEEKO
=1;
19276 HAVE_DECL_FTELLO
=1;
19277 HAVE_DECL_GETDELIM
=1;
19278 HAVE_DECL_GETLINE
=1;
19279 HAVE_DECL_OBSTACK_PRINTF
=1;
19280 HAVE_DECL_SNPRINTF
=1;
19281 HAVE_DECL_VSNPRINTF
=1;
19302 REPLACE_GETDELIM
=0;
19304 REPLACE_OBSTACK_PRINTF
=0;
19310 REPLACE_RENAMEAT
=0;
19311 REPLACE_SNPRINTF
=0;
19313 REPLACE_STDIO_READ_FUNCS
=0;
19314 REPLACE_STDIO_WRITE_FUNCS
=0;
19316 REPLACE_VASPRINTF
=0;
19317 REPLACE_VDPRINTF
=0;
19318 REPLACE_VFPRINTF
=0;
19320 REPLACE_VSNPRINTF
=0;
19321 REPLACE_VSPRINTF
=0;
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19324 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19325 if test "${ac_cv_struct_tm+set}" = set; then :
19326 $as_echo_n "(cached) " >&6
19328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 #include <sys/types.h>
19337 int *p = &tm.tm_sec;
19343 if ac_fn_c_try_compile
"$LINENO"; then :
19344 ac_cv_struct_tm
=time.h
19346 ac_cv_struct_tm
=sys
/time.h
19348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19351 $as_echo "$ac_cv_struct_tm" >&6; }
19352 if test $ac_cv_struct_tm = sys
/time.h
; then
19354 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19358 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19359 #include <$ac_cv_struct_tm>
19362 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19364 cat >>confdefs.h
<<_ACEOF
19365 #define HAVE_STRUCT_TM_TM_ZONE 1
19371 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19373 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19376 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19378 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19384 cat >>confdefs.h
<<_ACEOF
19385 #define HAVE_DECL_TZNAME $ac_have_decl
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19389 $as_echo_n "checking for tzname... " >&6; }
19390 if test "${ac_cv_var_tzname+set}" = set; then :
19391 $as_echo_n "(cached) " >&6
19393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19396 #if !HAVE_DECL_TZNAME
19397 extern char *tzname[];
19403 return tzname[0][0];
19408 if ac_fn_c_try_link
"$LINENO"; then :
19409 ac_cv_var_tzname
=yes
19411 ac_cv_var_tzname
=no
19413 rm -f core conftest.err conftest.
$ac_objext \
19414 conftest
$ac_exeext conftest.
$ac_ext
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19417 $as_echo "$ac_cv_var_tzname" >&6; }
19418 if test $ac_cv_var_tzname = yes; then
19420 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19426 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19428 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19430 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19437 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19438 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19444 cat >>confdefs.h
<<_ACEOF
19445 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19450 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19451 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19457 cat >>confdefs.h
<<_ACEOF
19458 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19464 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19465 if test "${ac_cv_header_stat_broken+set}" = set; then :
19466 $as_echo_n "(cached) " >&6
19468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470 #include <sys/types.h>
19471 #include <sys/stat.h>
19473 #if defined S_ISBLK && defined S_IFDIR
19474 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19477 #if defined S_ISBLK && defined S_IFCHR
19478 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19481 #if defined S_ISLNK && defined S_IFREG
19482 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19485 #if defined S_ISSOCK && defined S_IFREG
19486 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19490 if ac_fn_c_try_compile
"$LINENO"; then :
19491 ac_cv_header_stat_broken
=no
19493 ac_cv_header_stat_broken
=yes
19495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19498 $as_echo "$ac_cv_header_stat_broken" >&6; }
19499 if test $ac_cv_header_stat_broken = yes; then
19501 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19507 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19508 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19512 cat >>confdefs.h
<<_ACEOF
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19521 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19522 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19523 $as_echo_n "(cached) " >&6
19525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19532 static struct timespec x; x.tv_sec = x.tv_nsec;
19537 if ac_fn_c_try_compile
"$LINENO"; then :
19538 gl_cv_sys_struct_timespec_in_time_h
=yes
19540 gl_cv_sys_struct_timespec_in_time_h
=no
19542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19545 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19547 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19548 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19549 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19550 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19551 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19554 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19555 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19556 $as_echo_n "(cached) " >&6
19558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19560 #include <sys/time.h>
19565 static struct timespec x; x.tv_sec = x.tv_nsec;
19570 if ac_fn_c_try_compile
"$LINENO"; then :
19571 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19573 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19578 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19579 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19580 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19583 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19584 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19585 $as_echo_n "(cached) " >&6
19587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19588 /* end confdefs.h. */
19589 #include <pthread.h>
19594 static struct timespec x; x.tv_sec = x.tv_nsec;
19599 if ac_fn_c_try_compile
"$LINENO"; then :
19600 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19602 gl_cv_sys_struct_timespec_in_pthread_h
=no
19604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19607 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19608 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19609 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19628 if test $gl_cv_have_include_next = yes; then
19629 gl_cv_next_time_h
='<'time.h
'>'
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19632 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19633 if test "${gl_cv_next_time_h+set}" = set; then :
19634 $as_echo_n "(cached) " >&6
19637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19643 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19644 *) gl_absname_cpp
="$ac_cpp" ;;
19649 gl_dirsep_regex
='[/\\]'
19652 gl_dirsep_regex
='\/'
19655 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19657 gl_header_literal_regex
=`echo 'time.h' \
19658 | sed -e "$gl_make_literal_regex_sed"`
19659 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19660 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19665 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19666 sed -n "$gl_absolute_header_sed"`'"'
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19671 $as_echo "$gl_cv_next_time_h" >&6; }
19673 NEXT_TIME_H
=$gl_cv_next_time_h
19675 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19677 gl_next_as_first_directive
='<'time.h
'>'
19679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19680 gl_next_as_first_directive
=$gl_cv_next_time_h
19682 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19699 $as_echo_n "checking whether the utimes function works... " >&6; }
19700 if test "${gl_cv_func_working_utimes+set}" = set; then :
19701 $as_echo_n "(cached) " >&6
19704 if test "$cross_compiling" = yes; then :
19705 gl_cv_func_working_utimes
=no
19707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19710 #include <sys/types.h>
19711 #include <sys/stat.h>
19713 #include <sys/time.h>
19715 #include <unistd.h>
19716 #include <stdlib.h>
19721 inorder (time_t a, time_t b, time_t c)
19723 return a <= b && b <= c;
19730 char const *file = "conftest.utimes";
19731 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19733 /* Test whether utimes() essentially works. */
19736 FILE *f = fopen (file, "w");
19739 else if (fclose (f) != 0)
19741 else if (utimes (file, timeval) != 0)
19743 else if (lstat (file, &sbuf) != 0)
19745 else if (!(sbuf.st_atime == timeval[0].tv_sec
19746 && sbuf.st_mtime == timeval[1].tv_sec))
19748 if (unlink (file) != 0)
19752 /* Test whether utimes() with a NULL argument sets the file's timestamp
19753 to the current time. Use 'fstat' as well as 'time' to
19754 determine the "current" time, to accommodate NFS file systems
19755 if there is a time skew between the host and the NFS server. */
19757 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19763 struct stat st0, st1, st2;
19764 if (time (&t0) == (time_t) -1)
19766 else if (fstat (fd, &st0) != 0)
19768 else if (utimes (file, timeval) != 0)
19770 else if (utimes (file, NULL) != 0)
19772 else if (fstat (fd, &st1) != 0)
19774 else if (write (fd, "\n", 1) != 1)
19776 else if (fstat (fd, &st2) != 0)
19778 else if (time (&t2) == (time_t) -1)
19782 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19783 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19784 if (! (st1.st_atime == st1.st_mtime))
19786 if (! (m_ok_POSIX || m_ok_NFS))
19789 if (close (fd) != 0)
19792 if (unlink (file) != 0)
19796 /* Test whether utimes() with a NULL argument works on read-only files. */
19798 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19801 else if (close (fd) != 0)
19803 else if (utimes (file, NULL) != 0)
19805 if (unlink (file) != 0)
19813 if ac_fn_c_try_run
"$LINENO"; then :
19814 gl_cv_func_working_utimes
=yes
19816 gl_cv_func_working_utimes
=no
19818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19824 $as_echo "$gl_cv_func_working_utimes" >&6; }
19826 if test $gl_cv_func_working_utimes = yes; then
19828 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
19837 $as_echo_n "checking for struct utimbuf... " >&6; }
19838 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
19839 $as_echo_n "(cached) " >&6
19841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h. */
19843 #if HAVE_SYS_TIME_H
19844 #include <sys/time.h>
19847 #ifdef HAVE_UTIME_H
19854 static struct utimbuf x; x.actime = x.modtime;
19859 if ac_fn_c_try_compile
"$LINENO"; then :
19860 gl_cv_sys_struct_utimbuf
=yes
19862 gl_cv_sys_struct_utimbuf
=no
19864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
19867 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
19869 if test $gl_cv_sys_struct_utimbuf = yes; then
19871 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
19887 GL_COND_LIBTOOL_TRUE
=
19888 GL_COND_LIBTOOL_FALSE
='#'
19890 GL_COND_LIBTOOL_TRUE
='#'
19891 GL_COND_LIBTOOL_FALSE
=
19894 gl_cond_libtool
=false
19907 gl_source_base
='lib'
19910 if test $ac_cv_func_alloca_works = no
; then
19914 # Define an additional variable used in the Makefile substitution.
19915 if test $ac_cv_working_alloca_h = yes; then
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19917 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19918 if test "${gl_cv_rpl_alloca+set}" = set; then :
19919 $as_echo_n "(cached) " >&6
19922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19923 /* end confdefs.h. */
19925 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19931 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19932 gl_cv_rpl_alloca
=yes
19934 gl_cv_rpl_alloca
=no
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19941 $as_echo "$gl_cv_rpl_alloca" >&6; }
19942 if test $gl_cv_rpl_alloca = yes; then
19944 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19954 if test -n "$ALLOCA_H"; then
19955 GL_GENERATE_ALLOCA_H_TRUE
=
19956 GL_GENERATE_ALLOCA_H_FALSE
='#'
19958 GL_GENERATE_ALLOCA_H_TRUE
='#'
19959 GL_GENERATE_ALLOCA_H_FALSE
=
19967 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19968 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19970 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
19971 # programs in the package would end up linked with that potentially-shared
19972 # library, inducing unnecessary run-time overhead.
19975 gl_saved_libs
=$LIBS
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19977 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19978 if test "${ac_cv_search_clock_gettime+set}" = set; then :
19979 $as_echo_n "(cached) " >&6
19981 ac_func_search_save_LIBS
=$LIBS
19982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19991 char clock_gettime ();
19995 return clock_gettime ();
20000 for ac_lib
in '' rt posix4
; do
20001 if test -z "$ac_lib"; then
20002 ac_res
="none required"
20005 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20007 if ac_fn_c_try_link
"$LINENO"; then :
20008 ac_cv_search_clock_gettime
=$ac_res
20010 rm -f core conftest.err conftest.
$ac_objext \
20012 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20016 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20019 ac_cv_search_clock_gettime
=no
20021 rm conftest.
$ac_ext
20022 LIBS
=$ac_func_search_save_LIBS
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20025 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20026 ac_res
=$ac_cv_search_clock_gettime
20027 if test "$ac_res" != no
; then :
20028 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20029 test "$ac_cv_search_clock_gettime" = "none required" ||
20030 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20033 for ac_func
in clock_gettime clock_settime
20035 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20036 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20037 eval as_val
=\$
$as_ac_var
20038 if test "x$as_val" = x
""yes; then :
20039 cat >>confdefs.h
<<_ACEOF
20040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20046 LIBS
=$gl_saved_libs
20072 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20075 if test $HAVE_DUP2 = 1; then
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20077 $as_echo_n "checking whether dup2 works... " >&6; }
20078 if test "${gl_cv_func_dup2_works+set}" = set; then :
20079 $as_echo_n "(cached) " >&6
20081 if test "$cross_compiling" = yes; then :
20083 mingw
*) # on this platform, dup2 always returns 0 for success
20084 gl_cv_func_dup2_works
="guessing no" ;;
20085 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20086 gl_cv_func_dup2_works
="guessing no" ;;
20087 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20088 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20089 gl_cv_func_dup2_works
="guessing no" ;;
20090 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20091 gl_cv_func_dup2_works
="guessing no" ;;
20092 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20093 gl_cv_func_dup2_works
="guessing no" ;;
20094 *) gl_cv_func_dup2_works
="guessing yes" ;;
20097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20100 #include <unistd.h>
20108 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20111 if (dup2 (1, 1) == 0)
20114 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20118 if (dup2 (0, 0) != -1)
20120 /* Many gnulib modules require POSIX conformance of EBADF. */
20121 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20130 if ac_fn_c_try_run
"$LINENO"; then :
20131 gl_cv_func_dup2_works
=yes
20133 gl_cv_func_dup2_works
=no
20135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20142 $as_echo "$gl_cv_func_dup2_works" >&6; }
20143 case "$gl_cv_func_dup2_works" in
20152 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20161 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20192 EXECINFO_H
='execinfo.h'
20194 if test $ac_cv_header_execinfo_h = yes; then
20195 gl_saved_libs
=$LIBS
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20197 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20198 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20199 $as_echo_n "(cached) " >&6
20201 ac_func_search_save_LIBS
=$LIBS
20202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20205 /* Override any GCC internal prototype to avoid an error.
20206 Use char because int might match the return type of a GCC
20207 builtin and then its argument prototype would still apply. */
20211 char backtrace_symbols_fd ();
20215 return backtrace_symbols_fd ();
20220 for ac_lib
in '' execinfo
; do
20221 if test -z "$ac_lib"; then
20222 ac_res
="none required"
20225 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20227 if ac_fn_c_try_link
"$LINENO"; then :
20228 ac_cv_search_backtrace_symbols_fd
=$ac_res
20230 rm -f core conftest.err conftest.
$ac_objext \
20232 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20236 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20239 ac_cv_search_backtrace_symbols_fd
=no
20241 rm conftest.
$ac_ext
20242 LIBS
=$ac_func_search_save_LIBS
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20245 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20246 ac_res
=$ac_cv_search_backtrace_symbols_fd
20247 if test "$ac_res" != no
; then :
20248 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20249 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20250 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20253 LIBS
=$gl_saved_libs
20254 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20257 if test -n "$EXECINFO_H"; then
20266 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20272 if test -n "$EXECINFO_H"; then
20273 GL_GENERATE_EXECINFO_H_TRUE
=
20274 GL_GENERATE_EXECINFO_H_FALSE
='#'
20276 GL_GENERATE_EXECINFO_H_TRUE
='#'
20277 GL_GENERATE_EXECINFO_H_FALSE
=
20288 # Persuade glibc <stdlib.h> to declare getloadavg().
20293 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20294 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20296 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20297 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20300 gl_func_getloadavg_done
=no
20302 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20303 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20304 # to get the right answer into the cache.
20305 # For kstat on solaris, we need to test for libelf and libkvm to force the
20306 # definition of SVR4 below.
20307 if test $gl_func_getloadavg_done = no
; then
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20309 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20310 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20311 $as_echo_n "(cached) " >&6
20313 ac_check_lib_save_LIBS
=$LIBS
20315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20328 return elf_begin ();
20333 if ac_fn_c_try_link
"$LINENO"; then :
20334 ac_cv_lib_elf_elf_begin
=yes
20336 ac_cv_lib_elf_elf_begin
=no
20338 rm -f core conftest.err conftest.
$ac_objext \
20339 conftest
$ac_exeext conftest.
$ac_ext
20340 LIBS
=$ac_check_lib_save_LIBS
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20343 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20344 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20349 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20350 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20353 ac_check_lib_save_LIBS
=$LIBS
20355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h. */
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20368 return kvm_open ();
20373 if ac_fn_c_try_link
"$LINENO"; then :
20374 ac_cv_lib_kvm_kvm_open
=yes
20376 ac_cv_lib_kvm_kvm_open
=no
20378 rm -f core conftest.err conftest.
$ac_objext \
20379 conftest
$ac_exeext conftest.
$ac_ext
20380 LIBS
=$ac_check_lib_save_LIBS
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20383 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20384 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20388 # Check for the 4.4BSD definition of getloadavg.
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20390 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20391 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20392 $as_echo_n "(cached) " >&6
20394 ac_check_lib_save_LIBS
=$LIBS
20395 LIBS
="-lutil $LIBS"
20396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20399 /* Override any GCC internal prototype to avoid an error.
20400 Use char because int might match the return type of a GCC
20401 builtin and then its argument prototype would still apply. */
20405 char getloadavg ();
20409 return getloadavg ();
20414 if ac_fn_c_try_link
"$LINENO"; then :
20415 ac_cv_lib_util_getloadavg
=yes
20417 ac_cv_lib_util_getloadavg
=no
20419 rm -f core conftest.err conftest.
$ac_objext \
20420 conftest
$ac_exeext conftest.
$ac_ext
20421 LIBS
=$ac_check_lib_save_LIBS
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20424 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20425 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20426 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20431 if test $gl_func_getloadavg_done = no
; then
20432 # There is a commonly available library for RS/6000 AIX.
20433 # Since it is not a standard part of AIX, it might be installed locally.
20434 gl_getloadavg_LIBS
=$LIBS
20435 LIBS
="-L/usr/local/lib $LIBS"
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20437 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20438 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20439 $as_echo_n "(cached) " >&6
20441 ac_check_lib_save_LIBS
=$LIBS
20442 LIBS
="-lgetloadavg $LIBS"
20443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20446 /* Override any GCC internal prototype to avoid an error.
20447 Use char because int might match the return type of a GCC
20448 builtin and then its argument prototype would still apply. */
20452 char getloadavg ();
20456 return getloadavg ();
20461 if ac_fn_c_try_link
"$LINENO"; then :
20462 ac_cv_lib_getloadavg_getloadavg
=yes
20464 ac_cv_lib_getloadavg_getloadavg
=no
20466 rm -f core conftest.err conftest.
$ac_objext \
20467 conftest
$ac_exeext conftest.
$ac_ext
20468 LIBS
=$ac_check_lib_save_LIBS
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20471 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20472 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20473 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20475 LIBS
=$gl_getloadavg_LIBS
20480 # Set up the replacement function if necessary.
20481 if test $gl_func_getloadavg_done = no
; then
20484 # Solaris has libkstat which does not require root.
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20486 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20487 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20490 ac_check_lib_save_LIBS
=$LIBS
20491 LIBS
="-lkstat $LIBS"
20492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20493 /* end confdefs.h. */
20495 /* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
20501 char kstat_open ();
20505 return kstat_open ();
20510 if ac_fn_c_try_link
"$LINENO"; then :
20511 ac_cv_lib_kstat_kstat_open
=yes
20513 ac_cv_lib_kstat_kstat_open
=no
20515 rm -f core conftest.err conftest.
$ac_objext \
20516 conftest
$ac_exeext conftest.
$ac_ext
20517 LIBS
=$ac_check_lib_save_LIBS
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20520 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20521 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20522 cat >>confdefs.h
<<_ACEOF
20523 #define HAVE_LIBKSTAT 1
20526 LIBS
="-lkstat $LIBS"
20530 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20532 # AIX has libperfstat which does not require root
20533 if test $gl_func_getloadavg_done = no
; then
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20535 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20536 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20537 $as_echo_n "(cached) " >&6
20539 ac_check_lib_save_LIBS
=$LIBS
20540 LIBS
="-lperfstat $LIBS"
20541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20550 char perfstat_cpu_total ();
20554 return perfstat_cpu_total ();
20559 if ac_fn_c_try_link
"$LINENO"; then :
20560 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20562 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20564 rm -f core conftest.err conftest.
$ac_objext \
20565 conftest
$ac_exeext conftest.
$ac_ext
20566 LIBS
=$ac_check_lib_save_LIBS
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20569 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20570 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20571 cat >>confdefs.h
<<_ACEOF
20572 #define HAVE_LIBPERFSTAT 1
20575 LIBS
="-lperfstat $LIBS"
20579 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20582 if test $gl_func_getloadavg_done = no
; then
20583 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20584 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20585 gl_func_getloadavg_done
=yes
20587 $as_echo "#define DGUX 1" >>confdefs.h
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20590 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20591 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20592 $as_echo_n "(cached) " >&6
20594 ac_check_lib_save_LIBS
=$LIBS
20596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20599 /* Override any GCC internal prototype to avoid an error.
20600 Use char because int might match the return type of a GCC
20601 builtin and then its argument prototype would still apply. */
20605 char dg_sys_info ();
20609 return dg_sys_info ();
20614 if ac_fn_c_try_link
"$LINENO"; then :
20615 ac_cv_lib_dgc_dg_sys_info
=yes
20617 ac_cv_lib_dgc_dg_sys_info
=no
20619 rm -f core conftest.err conftest.
$ac_objext \
20620 conftest
$ac_exeext conftest.
$ac_ext
20621 LIBS
=$ac_check_lib_save_LIBS
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20624 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20625 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20626 cat >>confdefs.h
<<_ACEOF
20627 #define HAVE_LIBDGC 1
20642 if test "x$gl_save_LIBS" = x
; then
20643 GETLOADAVG_LIBS
=$LIBS
20645 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20650 # Test whether the system declares getloadavg. Solaris has the function
20651 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20652 for ac_header
in sys
/loadavg.h
20654 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20655 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20656 cat >>confdefs.h
<<_ACEOF
20657 #define HAVE_SYS_LOADAVG_H 1
20664 if test $ac_cv_header_sys_loadavg_h = yes; then
20665 HAVE_SYS_LOADAVG_H
=1
20667 HAVE_SYS_LOADAVG_H
=0
20669 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20670 # include <sys/loadavg.h>
20672 #include <stdlib.h>
20674 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20677 HAVE_DECL_GETLOADAVG
=0
20681 if test $HAVE_GETLOADAVG = 0; then
20690 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20693 # Figure out what our getloadavg.c needs.
20697 # On HPUX9, an unprivileged user can get load averages this way.
20698 if test $gl_func_getloadavg_done = no
; then
20699 for ac_func
in pstat_getdynamic
20701 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20702 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20703 cat >>confdefs.h
<<_ACEOF
20704 #define HAVE_PSTAT_GETDYNAMIC 1
20706 gl_func_getloadavg_done
=yes
20712 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20713 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20714 # Irix 4.0.5F has the header but not the library.
20715 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20716 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20717 gl_func_getloadavg_done
=yes
20719 $as_echo "#define SVR4 1" >>confdefs.h
20723 if test $gl_func_getloadavg_done = no
; then
20724 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20725 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20726 gl_func_getloadavg_done
=yes
20728 $as_echo "#define UMAX 1" >>confdefs.h
20731 $as_echo "#define UMAX4_3 1" >>confdefs.h
20738 if test $gl_func_getloadavg_done = no
; then
20739 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20740 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20741 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20748 if test $gl_func_getloadavg_done = no
; then
20749 for ac_header
in mach
/mach.h
20751 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20752 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20753 cat >>confdefs.h
<<_ACEOF
20754 #define HAVE_MACH_MACH_H 1
20763 for ac_header
in nlist.h
20765 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20766 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20767 cat >>confdefs.h
<<_ACEOF
20768 #define HAVE_NLIST_H 1
20770 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20772 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20774 cat >>confdefs.h
<<_ACEOF
20775 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h. */
20788 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20789 x.n_un.n_name = "";
20797 if ac_fn_c_try_link
"$LINENO"; then :
20799 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20802 rm -f core conftest.err conftest.
$ac_objext \
20803 conftest
$ac_exeext conftest.
$ac_ext
20815 GNULIB_GETLOADAVG
=1
20826 if test $REPLACE_GETOPT = 1; then
20835 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20845 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20850 GNULIB_GL_UNISTD_H_GETOPT
=1
20860 if test -n "$gl_replace_getopt"; then
20864 if test $REPLACE_GETOPT = 1; then
20868 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20874 if test $REPLACE_GETOPT = 1; then
20883 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20893 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20898 GNULIB_GL_UNISTD_H_GETOPT
=1
20912 gl_gettimeofday_timezone
=void
20913 if test $ac_cv_func_gettimeofday != yes; then
20914 HAVE_GETTIMEOFDAY
=0
20919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20920 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20921 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
20922 $as_echo_n "(cached) " >&6
20924 if test "$cross_compiling" = yes; then :
20925 # When cross-compiling:
20927 # Guess all is fine on glibc systems.
20928 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20929 # If we don't know, assume the worst.
20930 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20936 #include <string.h>
20937 #include <sys/time.h>
20939 #include <stdlib.h>
20947 struct tm saved_lt;
20949 lt = localtime (&t);
20951 gettimeofday (&tv, NULL);
20952 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20958 if ac_fn_c_try_run
"$LINENO"; then :
20959 gl_cv_func_gettimeofday_clobber
=no
20961 gl_cv_func_gettimeofday_clobber
=yes
20963 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20964 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20969 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20971 case "$gl_cv_func_gettimeofday_clobber" in
20973 REPLACE_GETTIMEOFDAY
=1
20976 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
20979 $as_echo "#define localtime rpl_localtime" >>confdefs.h
20983 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20989 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20990 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20995 #include <sys/time.h>
20997 int gettimeofday (struct timeval *restrict, void *restrict);
21002 /* glibc uses struct timezone * rather than the POSIX void *
21003 if _GNU_SOURCE is defined. However, since the only portable
21004 use of gettimeofday uses NULL as the second parameter, and
21005 since the glibc definition is actually more typesafe, it is
21006 not worth wrapping this to get a compliant signature. */
21007 int (*f) (struct timeval *restrict, void *restrict)
21010 return !(x | c.tv_sec | c.tv_usec);
21016 if ac_fn_c_try_compile
"$LINENO"; then :
21017 gl_cv_func_gettimeofday_posix_signature
=yes
21019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021 #include <sys/time.h>
21022 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21032 if ac_fn_c_try_compile
"$LINENO"; then :
21033 gl_cv_func_gettimeofday_posix_signature
=almost
21035 gl_cv_func_gettimeofday_posix_signature
=no
21037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21042 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21043 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21044 gl_gettimeofday_timezone
='struct timezone'
21045 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21046 REPLACE_GETTIMEOFDAY
=1
21048 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21049 REPLACE_GETTIMEOFDAY
=1
21054 cat >>confdefs.h
<<_ACEOF
21055 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21059 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21068 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21071 for ac_header
in sys
/timeb.h
21073 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21074 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21075 cat >>confdefs.h
<<_ACEOF
21076 #define HAVE_SYS_TIMEB_H 1
21083 for ac_func
in _ftime
21085 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21086 if test "x$ac_cv_func__ftime" = x
""yes; then :
21087 cat >>confdefs.h
<<_ACEOF
21088 #define HAVE__FTIME 1
21101 GNULIB_GETTIMEOFDAY
=1
21112 if test $ac_cv_func_lstat = yes; then
21114 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21123 if test $REPLACE_LSTAT = 1; then
21132 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21156 if test $APPLE_UNIVERSAL_BUILD = 1; then
21157 # A universal build on Apple Mac OS X platforms.
21158 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21159 # But we need a configuration result that is valid in both modes.
21160 gl_cv_func_working_mktime
=no
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21163 $as_echo_n "checking for working mktime... " >&6; }
21164 if test "${gl_cv_func_working_mktime+set}" = set; then :
21165 $as_echo_n "(cached) " >&6
21167 if test "$cross_compiling" = yes; then :
21168 gl_cv_func_working_mktime
=no
21170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21171 /* end confdefs.h. */
21172 /* Test program from Paul Eggert and Tony Leneis. */
21173 #include <limits.h>
21174 #include <stdlib.h>
21177 #ifdef HAVE_UNISTD_H
21178 # include <unistd.h>
21182 # define alarm(X) /* empty */
21185 /* Work around redefinition to rpl_putenv by other config tests. */
21188 static time_t time_t_max;
21189 static time_t time_t_min;
21191 /* Values we'll use to set the TZ environment variable. */
21192 static char *tz_strings[] = {
21193 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21194 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21196 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21198 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21199 Based on a problem report from Andreas Jaeger. */
21201 spring_forward_gap ()
21203 /* glibc (up to about 1998-10-07) failed this test. */
21206 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21207 instead of "TZ=America/Vancouver" in order to detect the bug even
21208 on systems that don't support the Olson extension, or don't have the
21209 full zoneinfo tables installed. */
21210 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21219 return mktime (&tm) != (time_t) -1;
21223 mktime_test1 (time_t now)
21226 return ! (lt = localtime (&now)) || mktime (lt) == now;
21230 mktime_test (time_t now)
21232 return (mktime_test1 (now)
21233 && mktime_test1 ((time_t) (time_t_max - now))
21234 && mktime_test1 ((time_t) (time_t_min + now)));
21240 /* Based on code from Ariel Faigon. */
21250 return tm.tm_mon == 2 && tm.tm_mday == 31;
21254 bigtime_test (int j)
21258 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21259 now = mktime (&tm);
21260 if (now != (time_t) -1)
21262 struct tm *lt = localtime (&now);
21264 && lt->tm_year == tm.tm_year
21265 && lt->tm_mon == tm.tm_mon
21266 && lt->tm_mday == tm.tm_mday
21267 && lt->tm_hour == tm.tm_hour
21268 && lt->tm_min == tm.tm_min
21269 && lt->tm_sec == tm.tm_sec
21270 && lt->tm_yday == tm.tm_yday
21271 && lt->tm_wday == tm.tm_wday
21272 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21273 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21282 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21283 ignoring leap seconds. */
21284 unsigned long int answer = 2527315200UL;
21288 tm.tm_year = 2050 - 1900;
21291 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21294 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21295 instead of "TZ=America/Vancouver" in order to detect the bug even
21296 on systems that don't support the Olson extension, or don't have the
21297 full zoneinfo tables installed. */
21298 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21302 /* Check that the result is either a failure, or close enough
21303 to the correct answer that we can assume the discrepancy is
21304 due to leap seconds. */
21305 return (t == (time_t) -1
21306 || (0 < t && answer - 120 <= t && t <= answer + 120));
21315 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21316 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21318 /* This test makes some buggy mktime implementations loop.
21319 Give up after 60 seconds; a mktime slower than that
21320 isn't worth using anyway. */
21323 time_t_max = (! time_t_signed
21325 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21327 time_t_min = (! time_t_signed
21329 : time_t_signed_magnitude
21333 delta = time_t_max / 997; /* a suitable prime number */
21334 for (i = 0; i < N_STRINGS; i++)
21337 putenv (tz_strings[i]);
21339 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21340 if (! mktime_test (t))
21342 if ((result & 2) == 0
21343 && ! (mktime_test ((time_t) 1)
21344 && mktime_test ((time_t) (60 * 60))
21345 && mktime_test ((time_t) (60 * 60 * 24))))
21348 for (j = 1; (result & 4) == 0; j <<= 1)
21350 if (! bigtime_test (j))
21352 if (INT_MAX / 2 < j)
21355 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21358 if (! irix_6_4_bug ())
21360 if (! spring_forward_gap ())
21362 if (! year_2050_test ())
21367 if ac_fn_c_try_run
"$LINENO"; then :
21368 gl_cv_func_working_mktime
=yes
21370 gl_cv_func_working_mktime
=no
21372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21379 $as_echo "$gl_cv_func_working_mktime" >&6; }
21381 if test $gl_cv_func_working_mktime = no
; then
21387 if test $REPLACE_MKTIME = 1; then
21396 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21417 if test $ac_cv_func_pselect = yes; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21419 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21420 if test "${gl_cv_sig_pselect+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21425 #include <sys/select.h>
21430 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21431 struct timespec const *restrict,
21432 sigset_t const *restrict) = pselect;
21438 if ac_fn_c_try_link
"$LINENO"; then :
21439 gl_cv_sig_pselect
=yes
21441 gl_cv_sig_pselect
=no
21443 rm -f core conftest.err conftest.
$ac_objext \
21444 conftest
$ac_exeext conftest.
$ac_ext
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21447 $as_echo "$gl_cv_sig_pselect" >&6; }
21450 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21454 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21463 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21481 LIB_PTHREAD_SIGMASK
=
21484 if test $ac_cv_func_pthread_sigmask = yes; then
21487 HAVE_PTHREAD_SIGMASK
=0
21488 REPLACE_PTHREAD_SIGMASK
=1
21494 if test $HAVE_PTHREAD_SIGMASK = 1; then
21497 if test -z "$LIB_PTHREAD_SIGMASK"; then
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21499 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21500 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21501 $as_echo_n "(cached) " >&6
21504 if test "$cross_compiling" = yes; then :
21507 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21508 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21510 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21515 /* end confdefs.h. */
21517 #include <pthread.h>
21518 #include <signal.h>
21519 #include <stddef.h>
21523 sigemptyset (&set);
21524 return pthread_sigmask (1729, &set, NULL) != 0;
21527 if ac_fn_c_try_run
"$LINENO"; then :
21528 gl_cv_func_pthread_sigmask_in_libc_works
=no
21530 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21539 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21540 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21542 REPLACE_PTHREAD_SIGMASK
=1
21544 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21551 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21552 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21553 $as_echo_n "(cached) " >&6
21556 gl_save_LIBS
="$LIBS"
21557 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21558 if test "$cross_compiling" = yes; then :
21561 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21563 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21570 #include <pthread.h>
21571 #include <signal.h>
21572 #include <stddef.h>
21576 sigemptyset (&set);
21577 if (pthread_sigmask (1729, &set, NULL) == -1)
21582 if ac_fn_c_try_run
"$LINENO"; then :
21583 gl_cv_func_pthread_sigmask_return_works
=yes
21585 gl_cv_func_pthread_sigmask_return_works
=no
21587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21591 LIBS
="$gl_save_LIBS"
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21595 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21596 case "$gl_cv_func_pthread_sigmask_return_works" in
21598 REPLACE_PTHREAD_SIGMASK
=1
21600 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21606 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21607 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21608 $as_echo_n "(cached) " >&6
21613 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21615 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21617 gl_save_LIBS
="$LIBS"
21618 LIBS
="$LIBS $LIBMULTITHREAD"
21619 if test "$cross_compiling" = yes; then :
21622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21623 /* end confdefs.h. */
21625 #include <pthread.h>
21626 #include <signal.h>
21628 #include <stdlib.h>
21629 #include <unistd.h>
21630 static volatile int sigint_occurred;
21632 sigint_handler (int sig)
21639 int pid = getpid ();
21641 signal (SIGINT, sigint_handler);
21642 sigemptyset (&set);
21643 sigaddset (&set, SIGINT);
21644 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21646 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21647 if (!(system (command) == 0))
21650 if (!(sigint_occurred == 0))
21652 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21654 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21659 if ac_fn_c_try_run
"$LINENO"; then :
21662 gl_cv_func_pthread_sigmask_unblock_works
=no
21664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21668 LIBS
="$gl_save_LIBS"
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21672 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21673 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21675 REPLACE_PTHREAD_SIGMASK
=1
21677 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21683 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21692 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21695 if test $HAVE_PTHREAD_SIGMASK = 1; then
21697 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21707 GNULIB_PTHREAD_SIGMASK
=1
21716 if test $ac_cv_func_readlink = no
; then
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21720 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21721 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21722 $as_echo_n "(cached) " >&6
21724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21725 /* end confdefs.h. */
21726 #include <unistd.h>
21727 /* Cause compilation failure if original declaration has wrong type. */
21728 ssize_t readlink (const char *, char *, size_t);
21737 if ac_fn_c_try_compile
"$LINENO"; then :
21738 gl_cv_decl_readlink_works
=yes
21740 gl_cv_decl_readlink_works
=no
21742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21745 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21747 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21748 if test "${gl_cv_func_readlink_works+set}" = set; then :
21749 $as_echo_n "(cached) " >&6
21751 # We have readlink, so assume ln -s works.
21752 ln -s conftest.no-such conftest.link
21753 ln -s conftest.link conftest.lnk2
21754 if test "$cross_compiling" = yes; then :
21756 # Guess yes on glibc systems.
21757 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21758 # If we don't know, assume the worst.
21759 *) gl_cv_func_readlink_works
="guessing no" ;;
21763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h. */
21765 #include <unistd.h>
21771 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21776 if ac_fn_c_try_run
"$LINENO"; then :
21777 gl_cv_func_readlink_works
=yes
21779 gl_cv_func_readlink_works
=no
21781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21785 rm -f conftest.link conftest.lnk2
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21788 $as_echo "$gl_cv_func_readlink_works" >&6; }
21789 case "$gl_cv_func_readlink_works" in
21791 if test "$gl_cv_decl_readlink_works" != yes; then
21797 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21804 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21813 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21841 if test $gl_cv_have_include_next = yes; then
21842 gl_cv_next_signal_h
='<'signal.h
'>'
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21845 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21846 if test "${gl_cv_next_signal_h+set}" = set; then :
21847 $as_echo_n "(cached) " >&6
21850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21851 /* end confdefs.h. */
21852 #include <signal.h>
21856 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21857 *) gl_absname_cpp
="$ac_cpp" ;;
21862 gl_dirsep_regex
='[/\\]'
21865 gl_dirsep_regex
='\/'
21868 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21870 gl_header_literal_regex
=`echo 'signal.h' \
21871 | sed -e "$gl_make_literal_regex_sed"`
21872 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21873 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21878 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21879 sed -n "$gl_absolute_header_sed"`'"'
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21884 $as_echo "$gl_cv_next_signal_h" >&6; }
21886 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21888 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21890 gl_next_as_first_directive
='<'signal.h
'>'
21892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21893 gl_next_as_first_directive
=$gl_cv_next_signal_h
21895 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21901 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21902 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21903 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21904 #include <signal.h>
21907 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21910 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21919 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21920 #include <signal.h>
21923 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21926 HAVE_SIGHANDLER_T
=0
21932 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21933 /* <sys/types.h> is not needed according to POSIX, but the
21934 <sys/socket.h> in i386-unknown-freebsd4.10 and
21935 powerpc-apple-darwin5.5 required it. */
21936 #include <sys/types.h>
21937 #if HAVE_SYS_SOCKET_H
21938 # include <sys/socket.h>
21939 #elif HAVE_WS2TCPIP_H
21940 # include <ws2tcpip.h>
21944 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21948 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21949 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21950 $as_echo_n "(cached) " >&6
21952 # Systems have either "struct sockaddr *" or
21953 # "void *" as the second argument to getpeername
21954 gl_cv_socklen_t_equiv
=
21955 for arg2
in "struct sockaddr" void
; do
21956 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #include <sys/types.h>
21960 #include <sys/socket.h>
21962 int getpeername (int, $arg2 *, $t *);
21967 getpeername (0, 0, &len);
21972 if ac_fn_c_try_compile
"$LINENO"; then :
21973 gl_cv_socklen_t_equiv
="$t"
21975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21976 test "$gl_cv_socklen_t_equiv" != "" && break
21978 test "$gl_cv_socklen_t_equiv" != "" && break
21983 if test "$gl_cv_socklen_t_equiv" = ""; then
21984 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21987 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21989 cat >>confdefs.h
<<_ACEOF
21990 #define socklen_t $gl_cv_socklen_t_equiv
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21997 $as_echo_n "checking for ssize_t... " >&6; }
21998 if test "${gt_cv_ssize_t+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22002 /* end confdefs.h. */
22003 #include <sys/types.h>
22007 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22013 if ac_fn_c_try_compile
"$LINENO"; then :
22018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22021 $as_echo "$gt_cv_ssize_t" >&6; }
22022 if test $gt_cv_ssize_t = no
; then
22024 $as_echo "#define ssize_t int" >>confdefs.h
22032 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>
22033 #include <sys/stat.h>
22035 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22037 cat >>confdefs.h
<<_ACEOF
22038 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22042 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22043 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22044 $as_echo_n "(cached) " >&6
22046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22049 #include <sys/types.h>
22050 #include <sys/stat.h>
22051 #if HAVE_SYS_TIME_H
22052 # include <sys/time.h>
22055 struct timespec ts;
22068 if ac_fn_c_try_compile
"$LINENO"; then :
22069 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22071 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22076 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22077 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22079 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22083 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>
22084 #include <sys/stat.h>
22086 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22088 cat >>confdefs.h
<<_ACEOF
22089 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22094 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22095 #include <sys/stat.h>
22097 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22099 cat >>confdefs.h
<<_ACEOF
22100 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22105 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>
22106 #include <sys/stat.h>
22108 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22110 cat >>confdefs.h
<<_ACEOF
22111 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22127 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>
22128 #include <sys/stat.h>
22130 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22132 cat >>confdefs.h
<<_ACEOF
22133 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22138 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22139 #include <sys/stat.h>
22141 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22143 cat >>confdefs.h
<<_ACEOF
22144 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22149 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>
22150 #include <sys/stat.h>
22152 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22154 cat >>confdefs.h
<<_ACEOF
22155 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22168 $as_echo_n "checking for working stdalign.h... " >&6; }
22169 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22170 $as_echo_n "(cached) " >&6
22172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22174 #include <stdalign.h>
22175 #include <stddef.h>
22177 /* Test that alignof yields a result consistent with offsetof.
22178 This catches GCC bug 52023
22179 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22181 template <class t> struct alignof_helper { char a; t b; };
22182 # define ao(type) offsetof (alignof_helper<type>, b)
22184 # define ao(type) offsetof (struct { char a; type b; }, b)
22186 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22187 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22188 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22190 /* Test _Alignas only on platforms where gnulib can help. */
22192 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22193 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22194 int alignas (8) alignas_int = 1;
22195 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22206 if ac_fn_c_try_compile
"$LINENO"; then :
22207 gl_cv_header_working_stdalign_h
=yes
22209 gl_cv_header_working_stdalign_h
=no
22211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22214 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22216 if test $gl_cv_header_working_stdalign_h = yes; then
22219 STDALIGN_H
='stdalign.h'
22223 if test -n "$STDALIGN_H"; then
22224 GL_GENERATE_STDALIGN_H_TRUE
=
22225 GL_GENERATE_STDALIGN_H_FALSE
='#'
22227 GL_GENERATE_STDALIGN_H_TRUE
='#'
22228 GL_GENERATE_STDALIGN_H_FALSE
=
22234 NEXT_STDARG_H
='<stdarg.h>'
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22236 $as_echo_n "checking for va_copy... " >&6; }
22237 if test "${gl_cv_func_va_copy+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243 #include <stdarg.h>
22249 void (*func) (va_list, va_list) = va_copy;
22256 if ac_fn_c_try_compile
"$LINENO"; then :
22257 gl_cv_func_va_copy
=yes
22259 gl_cv_func_va_copy
=no
22261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22265 $as_echo "$gl_cv_func_va_copy" >&6; }
22266 if test $gl_cv_func_va_copy = no
; then
22267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22268 /* end confdefs.h. */
22269 #if defined _AIX && !defined __GNUC__
22274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22275 $EGREP "vaccine" >/dev
/null
2>&1; then :
22282 if test $gl_aixcc = yes; then
22292 if test $gl_cv_have_include_next = yes; then
22293 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22296 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22297 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22298 $as_echo_n "(cached) " >&6
22301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22303 #include <stdarg.h>
22307 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22308 *) gl_absname_cpp
="$ac_cpp" ;;
22313 gl_dirsep_regex
='[/\\]'
22316 gl_dirsep_regex
='\/'
22319 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22321 gl_header_literal_regex
=`echo 'stdarg.h' \
22322 | sed -e "$gl_make_literal_regex_sed"`
22323 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22324 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22329 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22330 sed -n "$gl_absolute_header_sed"`'"'
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22335 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22337 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22339 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22341 gl_next_as_first_directive
='<'stdarg.h
'>'
22343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22344 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22346 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22351 if test "$gl_cv_next_stdarg_h" = '""'; then
22352 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22353 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22357 saved_as_echo_n
="$as_echo_n"
22359 if test "${gl_cv_func___va_copy+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22364 /* end confdefs.h. */
22365 #include <stdarg.h>
22378 if ac_fn_c_try_compile
"$LINENO"; then :
22379 gl_cv_func___va_copy
=yes
22381 gl_cv_func___va_copy
=no
22383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22386 as_echo_n
="$saved_as_echo_n"
22388 if test $gl_cv_func___va_copy = yes; then
22390 $as_echo "#define va_copy __va_copy" >>confdefs.h
22395 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22401 if test -n "$STDARG_H"; then
22402 GL_GENERATE_STDARG_H_TRUE
=
22403 GL_GENERATE_STDARG_H_FALSE
='#'
22405 GL_GENERATE_STDARG_H_TRUE
='#'
22406 GL_GENERATE_STDARG_H_FALSE
=
22414 # Define two additional variables used in the Makefile substitution.
22416 if test "$ac_cv_header_stdbool_h" = yes; then
22419 STDBOOL_H
='stdbool.h'
22422 if test -n "$STDBOOL_H"; then
22423 GL_GENERATE_STDBOOL_H_TRUE
=
22424 GL_GENERATE_STDBOOL_H_FALSE
='#'
22426 GL_GENERATE_STDBOOL_H_TRUE
='#'
22427 GL_GENERATE_STDBOOL_H_FALSE
=
22431 if test "$ac_cv_type__Bool" = yes; then
22442 if test $gt_cv_c_wchar_t = no
; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22447 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22448 if test "${gl_cv_decl_null_works+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22452 /* end confdefs.h. */
22453 #include <stddef.h>
22454 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22464 if ac_fn_c_try_compile
"$LINENO"; then :
22465 gl_cv_decl_null_works
=yes
22467 gl_cv_decl_null_works
=no
22469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22472 $as_echo "$gl_cv_decl_null_works" >&6; }
22473 if test $gl_cv_decl_null_works = no
; then
22478 if test -n "$STDDEF_H"; then
22479 GL_GENERATE_STDDEF_H_TRUE
=
22480 GL_GENERATE_STDDEF_H_FALSE
='#'
22482 GL_GENERATE_STDDEF_H_TRUE
='#'
22483 GL_GENERATE_STDDEF_H_FALSE
=
22486 if test -n "$STDDEF_H"; then
22495 if test $gl_cv_have_include_next = yes; then
22496 gl_cv_next_stddef_h
='<'stddef.h
'>'
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22499 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22500 if test "${gl_cv_next_stddef_h+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506 #include <stddef.h>
22510 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22511 *) gl_absname_cpp
="$ac_cpp" ;;
22516 gl_dirsep_regex
='[/\\]'
22519 gl_dirsep_regex
='\/'
22522 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22524 gl_header_literal_regex
=`echo 'stddef.h' \
22525 | sed -e "$gl_make_literal_regex_sed"`
22526 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22527 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22532 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22533 sed -n "$gl_absolute_header_sed"`'"'
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22538 $as_echo "$gl_cv_next_stddef_h" >&6; }
22540 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22542 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22544 gl_next_as_first_directive
='<'stddef.h
'>'
22546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22547 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22549 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22568 if test $gl_cv_have_include_next = yes; then
22569 gl_cv_next_stdio_h
='<'stdio.h
'>'
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22572 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22573 if test "${gl_cv_next_stdio_h+set}" = set; then :
22574 $as_echo_n "(cached) " >&6
22577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h. */
22583 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22584 *) gl_absname_cpp
="$ac_cpp" ;;
22589 gl_dirsep_regex
='[/\\]'
22592 gl_dirsep_regex
='\/'
22595 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22597 gl_header_literal_regex
=`echo 'stdio.h' \
22598 | sed -e "$gl_make_literal_regex_sed"`
22599 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22600 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22605 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22606 sed -n "$gl_absolute_header_sed"`'"'
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22611 $as_echo "$gl_cv_next_stdio_h" >&6; }
22613 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22615 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22617 gl_next_as_first_directive
='<'stdio.h
'>'
22619 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22620 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22622 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22631 cat >>confdefs.h
<<_ACEOF
22632 #define GNULIB_FSCANF 1
22639 cat >>confdefs.h
<<_ACEOF
22640 #define GNULIB_SCANF 1
22676 if test $gl_cv_have_include_next = yes; then
22677 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22680 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22681 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
22685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22687 #include <stdlib.h>
22691 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22692 *) gl_absname_cpp
="$ac_cpp" ;;
22697 gl_dirsep_regex
='[/\\]'
22700 gl_dirsep_regex
='\/'
22703 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22705 gl_header_literal_regex
=`echo 'stdlib.h' \
22706 | sed -e "$gl_make_literal_regex_sed"`
22707 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22713 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22714 sed -n "$gl_absolute_header_sed"`'"'
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22719 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22721 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22723 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22725 gl_next_as_first_directive
='<'stdlib.h
'>'
22727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22728 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22730 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22740 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22748 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22757 if test "$ac_cv_have_decl_strtoimax" != yes; then
22758 HAVE_DECL_STRTOIMAX
=0
22761 if test $ac_cv_func_strtoimax = yes; then
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22764 $as_echo_n "checking whether strtoimax works... " >&6; }
22765 if test "${gl_cv_func_strtoimax+set}" = set; then :
22766 $as_echo_n "(cached) " >&6
22768 if test "$cross_compiling" = yes; then :
22770 # Guess no on AIX 5.
22771 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22772 # Guess yes otherwise.
22773 *) gl_cv_func_strtoimax
="guessing yes" ;;
22777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22778 /* end confdefs.h. */
22781 #include <string.h>
22782 #include <inttypes.h>
22785 if (sizeof (intmax_t) > sizeof (int))
22787 const char *s = "4294967295";
22791 res = strtoimax (s, &p, 10);
22792 if (p != s + strlen (s))
22796 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22801 const char *s = "2147483647";
22805 res = strtoimax (s, &p, 10);
22806 if (p != s + strlen (s))
22810 if (res != 2147483647)
22817 if ac_fn_c_try_run
"$LINENO"; then :
22818 gl_cv_func_strtoimax
=yes
22820 gl_cv_func_strtoimax
=no
22822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
22829 $as_echo "$gl_cv_func_strtoimax" >&6; }
22830 case "$gl_cv_func_strtoimax" in
22831 *no
) REPLACE_STRTOIMAX
=1 ;;
22837 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
22846 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
22849 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
22850 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
22856 cat >>confdefs.h
<<_ACEOF
22857 #define HAVE_DECL_STRTOLL $ac_have_decl
22878 if test "$ac_cv_have_decl_strtoumax" != yes; then
22879 HAVE_DECL_STRTOUMAX
=0
22882 if test $ac_cv_func_strtoumax = no
; then
22891 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
22894 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
22895 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
22901 cat >>confdefs.h
<<_ACEOF
22902 #define HAVE_DECL_STRTOULL $ac_have_decl
22921 if test $ac_cv_func_symlink = no
; then
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22925 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22926 if test "${gl_cv_func_symlink_works+set}" = set; then :
22927 $as_echo_n "(cached) " >&6
22929 if test "$cross_compiling" = yes; then :
22931 # Guess yes on glibc systems.
22932 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
22933 # If we don't know, assume the worst.
22934 *) gl_cv_func_symlink_works
="guessing no" ;;
22938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22940 #include <unistd.h>
22946 if (!symlink ("a", "conftest.link/"))
22948 if (symlink ("conftest.f", "conftest.lnk2"))
22950 else if (!symlink ("a", "conftest.lnk2/"))
22958 if ac_fn_c_try_run
"$LINENO"; then :
22959 gl_cv_func_symlink_works
=yes
22961 gl_cv_func_symlink_works
=no
22963 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22964 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22967 rm -f conftest.f conftest.link conftest.lnk2
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22970 $as_echo "$gl_cv_func_symlink_works" >&6; }
22971 case "$gl_cv_func_symlink_works" in
22979 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22988 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23006 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23007 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23008 $as_echo_n "(cached) " >&6
23011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23012 /* end confdefs.h. */
23013 #include <sys/select.h>
23022 if ac_fn_c_try_compile
"$LINENO"; then :
23023 gl_cv_header_sys_select_h_selfcontained
=yes
23025 gl_cv_header_sys_select_h_selfcontained
=no
23027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23028 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23031 #include <sys/select.h>
23035 int memset; int bzero;
23041 if ac_fn_c_try_compile
"$LINENO"; then :
23042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23044 #include <sys/select.h>
23050 #define memset nonexistent_memset
23055 void *memset (void *, int, unsigned long);
23057 #define bzero nonexistent_bzero
23062 void bzero (void *, unsigned long);
23071 if ac_fn_c_try_link
"$LINENO"; then :
23074 gl_cv_header_sys_select_h_selfcontained
=no
23076 rm -f core conftest.err conftest.
$ac_objext \
23077 conftest
$ac_exeext conftest.
$ac_ext
23080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23085 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23095 if test $gl_cv_have_include_next = yes; then
23096 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23099 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23100 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23104 if test $ac_cv_header_sys_select_h = yes; then
23107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23108 /* end confdefs.h. */
23109 #include <sys/select.h>
23113 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23114 *) gl_absname_cpp
="$ac_cpp" ;;
23119 gl_dirsep_regex
='[/\\]'
23122 gl_dirsep_regex
='\/'
23125 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23127 gl_header_literal_regex
=`echo 'sys/select.h' \
23128 | sed -e "$gl_make_literal_regex_sed"`
23129 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23130 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23135 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23136 sed -n "$gl_absolute_header_sed"`'"'
23138 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23144 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23146 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23148 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23150 gl_next_as_first_directive
='<'sys
/select.h
'>'
23152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23153 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23155 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23160 if test $ac_cv_header_sys_select_h = yes; then
23161 HAVE_SYS_SELECT_H
=1
23163 HAVE_SYS_SELECT_H
=0
23170 if test $ac_cv_header_sys_socket_h != yes; then
23171 for ac_header
in winsock2.h
23173 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23174 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23175 cat >>confdefs.h
<<_ACEOF
23176 #define HAVE_WINSOCK2_H 1
23184 if test "$ac_cv_header_winsock2_h" = yes; then
23186 UNISTD_H_HAVE_WINSOCK2_H
=1
23187 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23213 if test $gl_cv_have_include_next = yes; then
23214 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23217 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23218 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23219 $as_echo_n "(cached) " >&6
23222 if test $ac_cv_header_sys_stat_h = yes; then
23225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h. */
23227 #include <sys/stat.h>
23231 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23232 *) gl_absname_cpp
="$ac_cpp" ;;
23237 gl_dirsep_regex
='[/\\]'
23240 gl_dirsep_regex
='\/'
23243 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23245 gl_header_literal_regex
=`echo 'sys/stat.h' \
23246 | sed -e "$gl_make_literal_regex_sed"`
23247 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23248 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23253 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23254 sed -n "$gl_absolute_header_sed"`'"'
23256 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23262 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23264 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23266 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23268 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23271 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23273 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23285 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23287 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23291 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23292 #include <sys/stat.h>
23294 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23298 $as_echo "#define nlink_t int" >>confdefs.h
23319 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23321 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23327 cat >>confdefs.h
<<_ACEOF
23328 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23331 if test $ac_cv_have_decl_localtime_r = no
; then
23332 HAVE_DECL_LOCALTIME_R
=0
23336 if test $ac_cv_func_localtime_r = yes; then
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23339 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23340 if test "${gl_cv_time_r_posix+set}" = set; then :
23341 $as_echo_n "(cached) " >&6
23343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23349 /* We don't need to append 'restrict's to the argument types,
23350 even though the POSIX signature has the 'restrict's,
23351 since C99 says they can't affect type compatibility. */
23352 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23354 /* Check the return type is a pointer.
23355 On HP-UX 10 it is 'int'. */
23356 *localtime_r (0, 0);
23362 if ac_fn_c_try_compile
"$LINENO"; then :
23363 gl_cv_time_r_posix
=yes
23365 gl_cv_time_r_posix
=no
23367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23371 $as_echo "$gl_cv_time_r_posix" >&6; }
23372 if test $gl_cv_time_r_posix = yes; then
23373 REPLACE_LOCALTIME_R
=0
23375 REPLACE_LOCALTIME_R
=1
23381 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23390 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23421 if test $gl_cv_have_include_next = yes; then
23422 gl_cv_next_unistd_h
='<'unistd.h
'>'
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23425 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23426 if test "${gl_cv_next_unistd_h+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23430 if test $ac_cv_header_unistd_h = yes; then
23433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h. */
23435 #include <unistd.h>
23439 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23440 *) gl_absname_cpp
="$ac_cpp" ;;
23445 gl_dirsep_regex
='[/\\]'
23448 gl_dirsep_regex
='\/'
23451 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23453 gl_header_literal_regex
=`echo 'unistd.h' \
23454 | sed -e "$gl_make_literal_regex_sed"`
23455 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23461 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23462 sed -n "$gl_absolute_header_sed"`'"'
23464 gl_cv_next_unistd_h
='<'unistd.h
'>'
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23470 $as_echo "$gl_cv_next_unistd_h" >&6; }
23472 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23474 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23475 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23476 gl_next_as_first_directive
='<'unistd.h
'>'
23478 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23479 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23481 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23486 if test $ac_cv_header_unistd_h = yes; then
23505 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23507 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23508 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23509 $as_echo_n "(cached) " >&6
23511 touch conftest.
file
23512 if test "$cross_compiling" = yes; then :
23514 # Guess yes on glibc systems.
23515 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23516 # If we don't know, assume the worst.
23517 *) gl_cv_func_futimesat_works
="guessing no" ;;
23521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23522 /* end confdefs.h. */
23524 #include <stddef.h>
23525 #include <sys/times.h>
23531 int fd = open ("conftest.file", O_RDWR);
23532 if (fd < 0) return 1;
23533 if (futimesat (fd, NULL, NULL)) return 2;
23539 if ac_fn_c_try_run
"$LINENO"; then :
23540 gl_cv_func_futimesat_works
=yes
23542 gl_cv_func_futimesat_works
=no
23544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23548 rm -f conftest.
file
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23551 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23552 case "$gl_cv_func_futimesat_works" in
23556 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23562 gl_gnulib_enabled_dosname
=false
23563 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23564 gl_gnulib_enabled_pathmax
=false
23565 gl_gnulib_enabled_stat
=false
23566 gl_gnulib_enabled_strtoll
=false
23567 gl_gnulib_enabled_strtoull
=false
23568 gl_gnulib_enabled_verify
=false
23569 func_gl_gnulib_m4code_dosname
()
23571 if ! $gl_gnulib_enabled_dosname; then
23572 gl_gnulib_enabled_dosname
=true
23575 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23577 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23580 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23583 func_gl_gnulib_m4code_pathmax
()
23585 if ! $gl_gnulib_enabled_pathmax; then
23589 gl_gnulib_enabled_pathmax
=true
23592 func_gl_gnulib_m4code_stat
()
23594 if ! $gl_gnulib_enabled_stat; then
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23599 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23600 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23601 $as_echo_n "(cached) " >&6
23603 if test "$cross_compiling" = yes; then :
23605 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23606 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23610 /* end confdefs.h. */
23611 #include <sys/stat.h>
23616 struct stat st; return stat (".", &st) != stat ("./", &st);
23621 if ac_fn_c_try_run
"$LINENO"; then :
23622 gl_cv_func_stat_dir_slash
=yes
23624 gl_cv_func_stat_dir_slash
=no
23626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23627 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23632 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23634 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23635 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23639 # Assume that if we have lstat, we can also check symlinks.
23640 if test $ac_cv_func_lstat = yes; then
23641 ln -s conftest.tmp conftest.lnk
23643 if test "$cross_compiling" = yes; then :
23645 # Guess yes on glibc systems.
23646 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23647 # If we don't know, assume the worst.
23648 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23653 /* end confdefs.h. */
23654 #include <sys/stat.h>
23661 if (!stat ("conftest.tmp/", &st))
23664 if (!stat ("conftest.lnk/", &st))
23673 if ac_fn_c_try_run
"$LINENO"; then :
23674 gl_cv_func_stat_file_slash
=yes
23676 gl_cv_func_stat_file_slash
=no
23678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23682 rm -f conftest.tmp conftest.lnk
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23685 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23686 case $gl_cv_func_stat_dir_slash in
23687 *no
) REPLACE_STAT
=1
23689 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23692 case $gl_cv_func_stat_file_slash in
23693 *no
) REPLACE_STAT
=1
23695 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23699 if test $REPLACE_STAT = 1; then
23708 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23726 gl_gnulib_enabled_stat
=true
23727 if test $REPLACE_STAT = 1; then
23728 func_gl_gnulib_m4code_dosname
23730 if test $REPLACE_STAT = 1; then
23731 func_gl_gnulib_m4code_pathmax
23733 if test $REPLACE_STAT = 1; then
23734 func_gl_gnulib_m4code_verify
23738 func_gl_gnulib_m4code_strtoll
()
23740 if ! $gl_gnulib_enabled_strtoll; then
23744 if test "$ac_cv_type_long_long_int" = yes; then
23745 for ac_func
in strtoll
23747 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23748 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23749 cat >>confdefs.h
<<_ACEOF
23750 #define HAVE_STRTOLL 1
23756 if test $ac_cv_func_strtoll = no
; then
23761 if test $HAVE_STRTOLL = 0; then
23770 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23787 gl_gnulib_enabled_strtoll
=true
23790 func_gl_gnulib_m4code_strtoull
()
23792 if ! $gl_gnulib_enabled_strtoull; then
23796 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23797 for ac_func
in strtoull
23799 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23800 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23801 cat >>confdefs.h
<<_ACEOF
23802 #define HAVE_STRTOULL 1
23808 if test $ac_cv_func_strtoull = no
; then
23813 if test $HAVE_STRTOULL = 0; then
23822 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
23839 gl_gnulib_enabled_strtoull
=true
23842 func_gl_gnulib_m4code_verify
()
23844 if ! $gl_gnulib_enabled_verify; then
23845 gl_gnulib_enabled_verify
=true
23848 if test $REPLACE_GETOPT = 1; then
23849 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
23851 if test $REPLACE_LSTAT = 1; then
23852 func_gl_gnulib_m4code_dosname
23854 if test $REPLACE_LSTAT = 1; then
23855 func_gl_gnulib_m4code_stat
23857 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23858 func_gl_gnulib_m4code_stat
23860 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
23861 func_gl_gnulib_m4code_strtoll
23863 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23864 func_gl_gnulib_m4code_verify
23866 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
23867 func_gl_gnulib_m4code_strtoull
23869 if test $ac_cv_func_strtoumax = no
; then
23870 func_gl_gnulib_m4code_verify
23873 if $gl_gnulib_enabled_dosname; then
23874 gl_GNULIB_ENABLED_dosname_TRUE
=
23875 gl_GNULIB_ENABLED_dosname_FALSE
='#'
23877 gl_GNULIB_ENABLED_dosname_TRUE
='#'
23878 gl_GNULIB_ENABLED_dosname_FALSE
=
23881 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23882 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
23883 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
23885 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
23886 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
23889 if $gl_gnulib_enabled_pathmax; then
23890 gl_GNULIB_ENABLED_pathmax_TRUE
=
23891 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
23893 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
23894 gl_GNULIB_ENABLED_pathmax_FALSE
=
23897 if $gl_gnulib_enabled_stat; then
23898 gl_GNULIB_ENABLED_stat_TRUE
=
23899 gl_GNULIB_ENABLED_stat_FALSE
='#'
23901 gl_GNULIB_ENABLED_stat_TRUE
='#'
23902 gl_GNULIB_ENABLED_stat_FALSE
=
23905 if $gl_gnulib_enabled_strtoll; then
23906 gl_GNULIB_ENABLED_strtoll_TRUE
=
23907 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
23909 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
23910 gl_GNULIB_ENABLED_strtoll_FALSE
=
23913 if $gl_gnulib_enabled_strtoull; then
23914 gl_GNULIB_ENABLED_strtoull_TRUE
=
23915 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
23917 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
23918 gl_GNULIB_ENABLED_strtoull_FALSE
=
23921 if $gl_gnulib_enabled_verify; then
23922 gl_GNULIB_ENABLED_verify_TRUE
=
23923 gl_GNULIB_ENABLED_verify_FALSE
='#'
23925 gl_GNULIB_ENABLED_verify_TRUE
='#'
23926 gl_GNULIB_ENABLED_verify_FALSE
=
23929 # End of code from modules
23950 gl_source_base
='tests'
23951 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
23953 gl_module_indicator_condition
=$gltests_WITNESS
23964 LIBGNU_LIBDEPS
="$gl_libdeps"
23966 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23969 CFLAGS
=$SAVE_CFLAGS
23973 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
23976 ## The -headerpad option tells ld (see man page) to leave room at the
23977 ## end of the header for adding load commands. Needed for dumping.
23978 ## 0x690 is the total size of 30 segment load commands (at 56
23979 ## each); under Cocoa 31 commands are required.
23980 if test "$HAVE_NS" = "yes"; then
23981 libs_nsgui
="-framework AppKit"
23982 headerpad_extra
=6C8
23985 headerpad_extra
=690
23987 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
23989 ## This is here because src/Makefile.in did some extra fiddling around
23990 ## with LD_SWITCH_SYSTEM. The cpp logic was:
23991 ## #ifndef LD_SWITCH_SYSTEM
23992 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
23993 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
23994 ## not using gcc, darwin.
23995 ## Because this was done in src/Makefile.in, the resulting part of
23996 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
23997 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
23998 ## rather than LD_SWITCH_SYSTEM.
23999 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24000 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24003 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24004 ## find X at run-time.
24005 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24006 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24007 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24008 ## had different values in configure (in ac_link) and src/Makefile.in.
24009 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24010 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24012 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24015 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24016 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24025 ## gnu: GNU needs its own crt0.
24026 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24028 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24029 ## library search parth, i.e. it won't search /usr/lib for libc and
24030 ## friends. Using -nostartfiles instead avoids this problem, and
24031 ## will also work on earlier NetBSD releases.
24032 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24034 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24035 ## MkLinux/LinuxPPC needs this.
24036 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24038 case "$canonical" in
24039 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24045 if test "x$ORDINARY_LINK" = "xyes"; then
24049 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24052 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24053 ## freebsd, gnu-* not on powerpc*|s390x*.
24054 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24056 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24057 ## places that are difficult to figure out at make time. Fortunately,
24058 ## these same versions allow you to pass arbitrary flags on to the
24059 ## linker, so there is no reason not to use it as a linker.
24061 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24062 ## searching for libraries in its internal directories, so we have to
24063 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24064 LD_FIRSTFLAG
="-nostdlib"
24067 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24068 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24073 ## FIXME? The logic here is not precisely the same as that above.
24074 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24075 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24077 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24080 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24083 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24084 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24090 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24091 ## immediately undefine it again and redefine it to empty.
24092 ## Was the C_SWITCH_X_SITE part really necessary?
24093 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24099 ## Ask GCC where to find libgcc.a.
24100 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24104 ## Common for all window systems
24105 if test "$window_system" != "none"; then
24107 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24110 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24112 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24119 #### Report on what we decided to do.
24120 #### Report GTK as a toolkit, even if it doesn't use Xt.
24121 #### It makes printing result more understandable as using GTK sets
24122 #### toolkit_scroll_bars to yes by default.
24123 if test "${HAVE_GTK}" = "yes"; then
24124 if test "${with_gtk3}" = "yes"; then
24132 Configured for \`${canonical}'.
24134 Where should the build process find the source code? ${srcdir}
24135 What compiler should emacs be built with? ${CC} ${CFLAGS}
24136 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24137 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24138 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24139 What window system should Emacs use? ${window_system}
24140 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24142 if test -n "${x_includes}"; then
24143 echo " Where do we find X Windows header files? ${x_includes}"
24145 echo " Where do we find X Windows header files? Standard dirs"
24147 if test -n "${x_libraries}"; then
24148 echo " Where do we find X Windows libraries? ${x_libraries}"
24150 echo " Where do we find X Windows libraries? Standard dirs"
24153 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24154 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24155 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24156 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24157 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24158 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24159 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24160 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24162 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24163 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24164 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24165 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24166 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24167 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24168 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24170 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24171 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24172 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24173 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24175 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24178 if test -n "${EMACSDATA}"; then
24179 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24181 if test -n "${EMACSDOC}"; then
24182 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24187 if test "$HAVE_NS" = "yes"; then
24189 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24190 The installed application will go to nextstep/Emacs.app and can be
24191 run or moved from there."
24192 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24193 echo "The application will be fully self-contained."
24195 echo "The lisp resources for the application will be installed under ${prefix}.
24196 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24197 to run if these resources are not installed."
24202 if test "${opsys}" = "cygwin"; then
24204 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24205 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24211 # Remove any trailing slashes in these variables.
24212 test "${prefix}" != NONE
&&
24213 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24214 test "${exec_prefix}" != NONE
&&
24215 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24217 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"
24219 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"
24222 opt_makefile
=test
/automated
/Makefile
24224 if test -f $srcdir/${opt_makefile}.
in; then
24225 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24226 ac_config_files
="$ac_config_files test/automated/Makefile"
24231 opt_makefile
=admin
/unidata
/Makefile
24233 if test -f $srcdir/${opt_makefile}.
in; then
24234 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24235 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24240 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24244 ac_config_commands
="$ac_config_commands mkdirs"
24247 ac_config_commands
="$ac_config_commands epaths"
24250 ac_config_commands
="$ac_config_commands gdbinit"
24253 cat >confcache
<<\_ACEOF
24254 # This file is a shell script that caches the results of configure
24255 # tests run on this system so they can be shared between configure
24256 # scripts and configure runs, see configure's option --config-cache.
24257 # It is not useful on other systems. If it contains results you don't
24258 # want to keep, you may remove or edit it.
24260 # config.status only pays attention to the cache file if you give it
24261 # the --recheck option to rerun configure.
24263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24265 # following values.
24269 # The following way of writing the cache mishandles newlines in values,
24270 # but we know of no workaround that is simple, portable, and efficient.
24271 # So, we kill variables containing newlines.
24272 # Ultrix sh set writes to stderr and can't be redirected directly,
24273 # and sets the high bit in the cache file unless we assign to the vars.
24275 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24276 eval ac_val
=\$
$ac_var
24280 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24284 _ | IFS | as_nl
) ;; #(
24285 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24286 *) { eval $ac_var=; unset $ac_var;} ;;
24292 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24293 *${as_nl}ac_space
=\
*)
24294 # `set' does not quote correctly, so add quotes: double-quote
24295 # substitution turns \\\\ into \\, and sed turns \\ into \.
24298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24301 # `set' quotes correctly as required by POSIX, so do not add quotes.
24302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24313 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24315 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24316 if test -w "$cache_file"; then
24317 test "x$cache_file" != "x/dev/null" &&
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24319 $as_echo "$as_me: updating cache $cache_file" >&6;}
24320 cat confcache
>$cache_file
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24328 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24329 # Let make expand exec_prefix.
24330 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24332 DEFS
=-DHAVE_CONFIG_H
24336 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24337 # 1. Remove the extension, and $U if already installed.
24338 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24339 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24341 # will be set to the directory where LIBOBJS objects are built.
24342 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24343 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24345 LIBOBJS
=$ac_libobjs
24347 LTLIBOBJS
=$ac_ltlibobjs
24350 if test -n "$EXEEXT"; then
24352 am__EXEEXT_FALSE
='#'
24354 am__EXEEXT_TRUE
='#'
24358 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24359 as_fn_error
"conditional \"AMDEP\" was never defined.
24360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24362 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24363 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24366 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24367 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24370 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24371 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24375 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24376 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24379 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24380 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24383 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24384 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24387 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24388 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24391 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24392 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24395 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24396 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24399 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24400 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24403 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24404 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24407 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24408 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24411 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24412 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24415 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24416 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24419 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24420 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24423 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24424 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24430 if test -n "$gl_LIBOBJS"; then
24431 # Remove the extension.
24432 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24433 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24434 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24435 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24438 gl_LIBOBJS
=$gl_libobjs
24440 gl_LTLIBOBJS
=$gl_ltlibobjs
24446 if test -n "$gltests_LIBOBJS"; then
24447 # Remove the extension.
24448 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24449 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24450 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24451 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24454 gltests_LIBOBJS
=$gltests_libobjs
24456 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24460 : ${CONFIG_STATUS=./config.status}
24462 ac_clean_files_save
=$ac_clean_files
24463 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24465 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24467 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24469 # Generated by $as_me.
24470 # Run this file to recreate the current configuration.
24471 # Compiler output produced by configure, useful for debugging
24472 # configure, is in config.log if it exists.
24475 ac_cs_recheck=false
24478 SHELL=\${CONFIG_SHELL-$SHELL}
24481 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24482 ## -------------------- ##
24483 ## M4sh Initialization. ##
24484 ## -------------------- ##
24486 # Be more Bourne compatible
24487 DUALCASE
=1; export DUALCASE
# for MKS sh
24488 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24491 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24492 # is contrary to our usage. Disable this feature.
24493 alias -g '${1+"$@"}'='"$@"'
24494 setopt NO_GLOB_SUBST
24496 case `(set -o) 2>/dev/null` in #(
24508 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24509 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24510 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24511 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24512 # Prefer a ksh shell builtin over an external printf program on Solaris,
24513 # but without wasting forks for bash or zsh.
24514 if test -z "$BASH_VERSION$ZSH_VERSION" \
24515 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24516 as_echo='print
-r --'
24517 as_echo_n='print
-rn --'
24518 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24519 as_echo='printf %s
\n'
24520 as_echo_n='printf %s
'
24522 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24523 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24524 as_echo_n='/usr
/ucb
/echo -n'
24526 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24527 as_echo_n_body='eval
24531 expr "X$arg" : "X\\(.*\\)$as_nl";
24532 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24534 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24536 export as_echo_n_body
24537 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24539 export as_echo_body
24540 as_echo='sh
-c $as_echo_body as_echo
'
24543 # The user is always right.
24544 if test "${PATH_SEPARATOR+set}" != set; then
24546 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24547 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24554 # We need space, tab and new line, in precisely that order. Quoting is
24555 # there to prevent editors from complaining about space-tab.
24556 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24557 # splitting by setting IFS to empty value.)
24560 # Find who we are. Look in the path if we contain no directory separator.
24562 *[\\/]* ) as_myself=$0 ;;
24563 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24564 for as_dir in $PATH
24567 test -z "$as_dir" && as_dir=.
24568 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24574 # We did not find ourselves, most probably we were run as `sh COMMAND'
24575 # in which case we are not to be found in the path.
24576 if test "x$as_myself" = x
; then
24579 if test ! -f "$as_myself"; then
24580 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24584 # Unset variables that we do not need and which cause bugs (e.g. in
24585 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24586 # suppresses any "Segmentation fault" message there. '((' could
24587 # trigger a bug in pdksh 5.2.14.
24588 for as_var
in BASH_ENV ENV MAIL MAILPATH
24589 do eval test x\
${$as_var+set} = xset \
24590 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24603 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24606 # as_fn_error ERROR [LINENO LOG_FD]
24607 # ---------------------------------
24608 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24609 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24610 # script with status $?, using 1 if that was 0.
24613 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24615 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24616 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24618 $as_echo "$as_me: error: $1" >&2
24619 as_fn_exit
$as_status
24623 # as_fn_set_status STATUS
24624 # -----------------------
24625 # Set $? to STATUS, without forking.
24626 as_fn_set_status
()
24629 } # as_fn_set_status
24631 # as_fn_exit STATUS
24632 # -----------------
24633 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24637 as_fn_set_status
$1
24643 # Portably unset VAR.
24646 { eval $1=; unset $1;}
24648 as_unset
=as_fn_unset
24649 # as_fn_append VAR VALUE
24650 # ----------------------
24651 # Append the text in VALUE to the end of the definition contained in VAR. Take
24652 # advantage of any shell optimizations that allow amortized linear growth over
24653 # repeated appends, instead of the typical quadratic growth present in naive
24655 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24656 eval 'as_fn_append ()
24667 # as_fn_arith ARG...
24668 # ------------------
24669 # Perform arithmetic evaluation on the ARGs, and store the result in the
24670 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24671 # must be portable across $(()) and expr.
24672 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24673 eval 'as_fn_arith ()
24680 as_val
=`expr "$@" || test $? -eq 1`
24685 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24686 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24692 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24693 as_basename
=basename
24698 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24704 as_me
=`$as_basename -- "$0" ||
24705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24706 X"$0" : 'X\(//\)$' \| \
24707 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24709 sed '/^.*\/\([^/][^/]*\)\/*$/{
24723 # Avoid depending upon Character Ranges.
24724 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24725 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24726 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24727 as_cr_digits
='0123456789'
24728 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24730 ECHO_C
= ECHO_N
= ECHO_T
=
24731 case `echo -n x` in #(((((
24733 case `echo 'xy\c'` in
24734 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24736 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24743 rm -f conf$$ conf$$.exe conf$$.
file
24744 if test -d conf$$.dir
; then
24745 rm -f conf$$.dir
/conf$$.
file
24748 mkdir conf$$.dir
2>/dev
/null
24750 if (echo >conf$$.
file) 2>/dev
/null
; then
24751 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24753 # ... but there are two gotchas:
24754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24756 # In both cases, we have to default to `cp -p'.
24757 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24759 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24767 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24768 rmdir conf$$.dir
2>/dev
/null
24773 # Create "$as_dir" as a directory, including parents if necessary.
24778 -*) as_dir
=.
/$as_dir;;
24780 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24784 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24785 *) as_qdir
=$as_dir;;
24787 as_dirs
="'$as_qdir' $as_dirs"
24788 as_dir
=`$as_dirname -- "$as_dir" ||
24789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24790 X"$as_dir" : 'X\(//\)[^/]' \| \
24791 X"$as_dir" : 'X\(//\)$' \| \
24792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24793 $as_echo X"$as_dir" |
24794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24798 /^X\(\/\/\)[^/].*/{
24811 test -d "$as_dir" && break
24813 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24814 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24818 if mkdir
-p .
2>/dev
/null
; then
24819 as_mkdir_p
='mkdir -p "$as_dir"'
24821 test -d .
/-p && rmdir .
/-p
24825 if test -x / >/dev
/null
2>&1; then
24826 as_test_x
='test -x'
24828 if ls -dL / >/dev
/null
2>&1; then
24835 if test -d "$1"; then
24841 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24842 ???[sx]*):;;*)false;;esac;fi
24846 as_executable_p
=$as_test_x
24848 # Sed expression to map a string onto a valid CPP name.
24849 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24851 # Sed expression to map a string onto a valid variable name.
24852 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24856 ## ----------------------------------- ##
24857 ## Main body of $CONFIG_STATUS script. ##
24858 ## ----------------------------------- ##
24860 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
24862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24863 # Save the log message, to keep $0 and so on meaningful, and to
24864 # report actual input values of CONFIG_FILES etc. instead of their
24865 # values after options handling.
24867 This file was extended by emacs $as_me 24.2.50, which was
24868 generated by GNU Autoconf 2.65. Invocation command line was
24870 CONFIG_FILES = $CONFIG_FILES
24871 CONFIG_HEADERS = $CONFIG_HEADERS
24872 CONFIG_LINKS = $CONFIG_LINKS
24873 CONFIG_COMMANDS = $CONFIG_COMMANDS
24876 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24881 case $ac_config_files in *"
24882 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
24885 case $ac_config_headers in *"
24886 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
24890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24891 # Files that config.status was made for.
24892 config_files="$ac_config_files"
24893 config_headers="$ac_config_headers"
24894 config_commands="$ac_config_commands"
24898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24900 \`$as_me' instantiates files and other configuration actions
24901 from templates according to the current configuration. Unless the files
24902 and actions are specified as TAGs, all are instantiated by default.
24904 Usage: $0 [OPTION]... [TAG]...
24906 -h, --help print this help, then exit
24907 -V, --version print version number and configuration settings, then exit
24908 --config print configuration, then exit
24909 -q, --quiet, --silent
24910 do not print progress messages
24911 -d, --debug don't remove temporary files
24912 --recheck update $as_me by reconfiguring in the same conditions
24913 --file=FILE[:TEMPLATE]
24914 instantiate the configuration file FILE
24915 --header=FILE[:TEMPLATE]
24916 instantiate the configuration header FILE
24918 Configuration files:
24921 Configuration headers:
24924 Configuration commands:
24927 Report bugs to the package provider."
24930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24931 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24933 emacs config.status 24.2.50
24934 configured by $0, generated by GNU Autoconf 2.65,
24935 with options \\"\$ac_cs_config\\"
24937 Copyright (C) 2009 Free Software Foundation, Inc.
24938 This config.status script is free software; the Free Software Foundation
24939 gives unlimited permission to copy, distribute and modify it."
24946 test -n "\$AWK" || AWK=awk
24949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24950 # The default lists apply if the user does not specify any file.
24956 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24957 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24968 # Handling of the options.
24969 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24971 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24972 $as_echo "$ac_cs_version"; exit ;;
24973 --config |
--confi |
--conf |
--con |
--co |
--c )
24974 $as_echo "$ac_cs_config"; exit ;;
24975 --debug |
--debu |
--deb |
--de |
--d |
-d )
24977 --file |
--fil |
--fi |
--f )
24980 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24982 as_fn_append CONFIG_FILES
" '$ac_optarg'"
24983 ac_need_defaults
=false
;;
24984 --header |
--heade |
--head |
--hea )
24987 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24989 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
24990 ac_need_defaults
=false
;;
24992 # Conflict between --help and --header
24993 as_fn_error
"ambiguous option: \`$1'
24994 Try \`$0 --help' for more information.";;
24995 --help |
--hel |
-h )
24996 $as_echo "$ac_cs_usage"; exit ;;
24997 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24998 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25001 # This is an error.
25002 -*) as_fn_error
"unrecognized option: \`$1'
25003 Try \`$0 --help' for more information." ;;
25005 *) as_fn_append ac_config_targets
" $1"
25006 ac_need_defaults
=false
;;
25012 ac_configure_extra_args
=
25014 if $ac_cs_silent; then
25016 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25021 if \$ac_cs_recheck; then
25022 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25025 CONFIG_SHELL='$SHELL'
25026 export CONFIG_SHELL
25031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25036 ## Running $as_me. ##
25042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25046 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25047 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25053 # Handling of arguments.
25054 for ac_config_target
in $ac_config_targets
25056 case $ac_config_target in
25057 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25058 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25059 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25060 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25061 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25062 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25063 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25064 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25065 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25066 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25067 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25068 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25069 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25070 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25071 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25072 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25073 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25074 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25075 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25077 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25082 # If the user did not use the arguments to specify the items to instantiate,
25083 # then the envvar interface is used. Set only those that are not.
25084 # We use the long form for the default assignment because of an extremely
25085 # bizarre bug on SunOS 4.1.3.
25086 if $ac_need_defaults; then
25087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25092 # Have a temporary directory for convenience. Make it in the build tree
25093 # simply because there is no reason against having it here, and in addition,
25094 # creating and moving files from /tmp can sometimes cause problems.
25095 # Hook for its removal unless debugging.
25096 # Note that there is a small window in which the directory will not be cleaned:
25097 # after its creation but before its name has been assigned to `$tmp'.
25101 trap 'exit_status=$?
25102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25104 trap 'as_fn_exit 1' 1 2 13 15
25106 # Create a (secure) tmp directory for tmp files.
25109 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25110 test -n "$tmp" && test -d "$tmp"
25113 tmp
=.
/conf$$
-$RANDOM
25114 (umask 077 && mkdir
"$tmp")
25115 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25117 # Set up the scripts for CONFIG_FILES section.
25118 # No need to generate them if there are no CONFIG_FILES.
25119 # This happens for instance with `./config.status config.h'.
25120 if test -n "$CONFIG_FILES"; then
25122 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25123 ac_cs_awk_getline
=:
25124 ac_cs_awk_pipe_init
=
25125 ac_cs_awk_read_file
='
25126 while ((getline aline < (F[key])) > 0)
25129 ac_cs_awk_pipe_fini
=
25131 ac_cs_awk_getline
=false
25132 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25133 ac_cs_awk_read_file
='
25135 print "cat " F[key] " &&"
25136 '$ac_cs_awk_pipe_init
25137 # The final `:' finishes the AND list.
25138 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25140 ac_cr
=`echo X | tr X '\015'`
25141 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25142 # But we know of no other shell where ac_cr would be empty at this
25143 # point, so we can use a bashism as a fallback.
25144 if test "x$ac_cr" = x
; then
25145 eval ac_cr
=\$
\'\\r
\'
25147 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25148 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25151 ac_cs_awk_cr
=$ac_cr
25154 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25157 # Create commands to substitute file output variables.
25159 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25160 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25161 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25164 } >conf$
$files.sh
&&
25165 . .
/conf$
$files.sh ||
25166 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25167 rm -f conf$
$files.sh
25170 echo "cat >conf$$subs.awk <<_ACEOF" &&
25171 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25173 } >conf$$subs.sh ||
25174 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25175 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25177 for ac_last_try in false false false false false :; do
25178 . ./conf$$subs.sh ||
25179 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25181 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25182 if test $ac_delim_n = $ac_delim_num; then
25184 elif $ac_last_try; then
25185 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25187 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25190 rm -f conf$$subs.sh
25192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25193 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25197 s/^/S["/; s
/!.
*/"]=/
25207 s/\(.\{148\}\)..*/\1/
25209 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25214 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25221 s/\(.\{148\}\)..*/\1/
25223 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25227 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25232 ' <conf$$subs.awk | sed '
25237 ' >>$CONFIG_STATUS || ac_write_fail=1
25238 rm -f conf$$subs.awk
25239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25241 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25242 for (key in S) S_is_set[key] = 1
25244 \$ac_cs_awk_pipe_init
25248 nfields = split(line, field, "@
")
25250 len = length(field[1])
25251 for (i = 2; i < nfields; i++) {
25253 keylen = length(key)
25254 if (S_is_set[key]) {
25256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25257 len += length(value) + length(field[++i])
25262 if (nfields == 3 && !substed) {
25264 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25265 \$ac_cs_awk_read_file
25271 \$ac_cs_awk_pipe_fini
25274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25275 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25276 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25279 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25280 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25285 # trailing colons and then remove the whole line if VPATH becomes empty
25286 # (actually we leave an empty line to preserve line numbers).
25287 if test "x
$srcdir" = x.; then
25288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25289 s/:*\$(srcdir):*/:/
25290 s/:*\${srcdir}:*/:/
25292 s/^\([^=]*=[ ]*\):*/\1/
25298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25299 fi # test -n "$CONFIG_FILES"
25301 # Set up the scripts for CONFIG_HEADERS section.
25302 # No need to generate them if there are no CONFIG_HEADERS.
25303 # This happens for instance with `./config.status Makefile'.
25304 if test -n "$CONFIG_HEADERS"; then
25305 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25309 # Transform confdefs.h into an awk script `defines.awk', embedded as
25310 # here-document in config.status, that substitutes the proper values into
25311 # config.h.in to produce config.h.
25313 # Create a delimiter string that does not exist in confdefs.h, to ease
25314 # handling of long lines.
25316 for ac_last_try in false false :; do
25317 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25318 if test -z "$ac_t"; then
25320 elif $ac_last_try; then
25321 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25323 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25327 # For the awk script, D is an array of macro values keyed by name,
25328 # likewise P contains macro parameters if any. Preserve backslash
25329 # newline sequences.
25331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25333 s/.\{148\}/&'"$ac_delim"'/g
25336 s/^[ ]*#[ ]*define[ ][ ]*/ /
25343 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25345 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25350 D["\
1"]=" \
3\\\\\\n
"\\/p
25352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25357 s/.\{148\}/&'"$ac_delim"'/g
25362 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25365 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25367 ' <confdefs.h | sed '
25368 s/'"$ac_delim"'/"\\\
25369 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25372 for (key in D) D_is_set[key] = 1
25375 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25377 split(line, arg, " ")
25378 if (arg[1] == "#") {
25382 defundef
= substr
(arg
[1], 2)
25385 split(mac1
, mac2
, "(") #)
25387 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25388 if (D_is_set
[macro
]) {
25389 # Preserve the white space surrounding the "#".
25390 print prefix
"define", macro P
[macro
] D
[macro
]
25393 # Replace #undef with comments. This is necessary, for example,
25394 # in the case of _POSIX_SOURCE, which is predefined and required
25395 # on some systems where configure will not decide to define it.
25396 if (defundef
== "undef") {
25397 print
"/*", prefix defundef
, macro
, "*/"
25405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25406 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25407 fi # test -n "$CONFIG_HEADERS"
25410 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25415 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25417 case $ac_mode$ac_tag in
25419 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25420 :[FH
]-) ac_tag
=-:-;;
25421 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25438 -) ac_f
="$tmp/stdin";;
25439 *) # Look for the file first in the build tree, then in the source tree
25440 # (if the path is not absolute). The absolute path cannot be DOS-style,
25441 # because $ac_f cannot contain `:'.
25445 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25447 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25449 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25450 as_fn_append ac_file_inputs
" '$ac_f'"
25453 # Let's still pretend it is `configure' which instantiates (i.e., don't
25454 # use $as_me), people would be surprised to read:
25455 # /* config.h. Generated by config.status. */
25456 configure_input
='Generated from '`
25457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25459 if test x
"$ac_file" != x-
; then
25460 configure_input
="$ac_file. $configure_input"
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25462 $as_echo "$as_me: creating $ac_file" >&6;}
25464 # Neutralize special characters interpreted by sed in replacement strings.
25465 case $configure_input in #(
25466 *\
&* |
*\|
* |
*\\* )
25467 ac_sed_conf_input
=`$as_echo "$configure_input" |
25468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25469 *) ac_sed_conf_input
=$configure_input;;
25473 *:-:* |
*:-) cat >"$tmp/stdin" \
25474 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25479 ac_dir
=`$as_dirname -- "$ac_file" ||
25480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25481 X"$ac_file" : 'X\(//\)[^/]' \| \
25482 X"$ac_file" : 'X\(//\)$' \| \
25483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25484 $as_echo X"$ac_file" |
25485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25489 /^X\(\/\/\)[^/].*/{
25502 as_dir
="$ac_dir"; as_fn_mkdir_p
25506 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25508 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25509 # A ".." for each directory in $ac_dir_suffix.
25510 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25511 case $ac_top_builddir_sub in
25512 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25513 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25516 ac_abs_top_builddir
=$ac_pwd
25517 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25518 # for backward compatibility:
25519 ac_top_builddir
=$ac_top_build_prefix
25522 .
) # We are building in place.
25524 ac_top_srcdir
=$ac_top_builddir_sub
25525 ac_abs_top_srcdir
=$ac_pwd ;;
25526 [\\/]* | ?
:[\\/]* ) # Absolute name.
25527 ac_srcdir
=$srcdir$ac_dir_suffix;
25528 ac_top_srcdir
=$srcdir
25529 ac_abs_top_srcdir
=$srcdir ;;
25530 *) # Relative name.
25531 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25532 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25533 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25535 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25545 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25546 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25548 ac_MKDIR_P
=$MKDIR_P
25550 [\\/$
]* | ?
:[\\/]* ) ;;
25551 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25556 # If the template does not know about datarootdir, expand it.
25557 # FIXME: This hack should be removed a few years after 2.60.
25558 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25569 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25570 *datarootdir
*) ac_datarootdir_seen
=yes;;
25571 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25573 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25576 ac_datarootdir_hack='
25577 s&@datadir@&$datadir&g
25578 s&@docdir@&$docdir&g
25579 s&@infodir@&$infodir&g
25580 s&@localedir@&$localedir&g
25581 s&@mandir@&$mandir&g
25582 s&\\\${datarootdir}&$datarootdir&g' ;;
25586 # Neutralize VPATH when `$srcdir' = `.'.
25587 # Shell code in configure.ac might set extrasub.
25588 # FIXME: do we really want to maintain this feature?
25589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25590 ac_sed_extra="$ac_vpsub
25593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25595 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25596 s|@configure_input@|
$ac_sed_conf_input|
;t t
25597 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25598 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25599 s
&@srcdir@
&$ac_srcdir&;t t
25600 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25601 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25602 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25603 s
&@builddir@
&$ac_builddir&;t t
25604 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25605 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25606 s
&@INSTALL@
&$ac_INSTALL&;t t
25607 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25608 $ac_datarootdir_hack
25610 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25611 if $ac_cs_awk_getline; then
25612 $AWK -f "$tmp/subs.
awk"
25614 $AWK -f "$tmp/subs.
awk" | $SHELL
25616 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25618 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25619 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25620 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25622 which seems to be undefined. Please make sure it is defined." >&5
25623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25624 which seems to be undefined. Please make sure it is defined." >&2;}
25628 -) cat "$tmp/out" && rm -f "$tmp/out";;
25629 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25631 || as_fn_error "could not create $ac_file" "$LINENO" 5
25637 if test x"$ac_file" != x-; then
25639 $as_echo "/* $configure_input */" \
25640 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25641 } >"$tmp/config.h" \
25642 || as_fn_error "could not create $ac_file" "$LINENO" 5
25643 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25648 mv "$tmp/config.h" "$ac_file" \
25649 || as_fn_error "could not create $ac_file" "$LINENO" 5
25652 $as_echo "/* $configure_input */" \
25653 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25654 || as_fn_error "could not create -" "$LINENO" 5
25656 # Compute "$ac_file"'s index
in $config_headers.
25659 for _am_header
in $config_headers :; do
25660 case $_am_header in
25661 $_am_arg |
$_am_arg:* )
25664 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25669 X"$_am_arg" : 'X\(//\)[^/]' \| \
25670 X"$_am_arg" : 'X\(//\)$' \| \
25671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25672 $as_echo X"$_am_arg" |
25673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25677 /^X\(\/\/\)[^/].*/{
25689 s/.*/./; q'`/stamp-h
$_am_stamp_count
25692 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25693 $as_echo "$as_me: executing $ac_file commands" >&6;}
25698 case $ac_file$ac_mode in
25699 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25700 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25701 # are listed without --file. Let's play safe and only enable the eval
25702 # if we detect the quoting.
25703 case $CONFIG_FILES in
25704 *\'*) eval set x
"$CONFIG_FILES" ;;
25705 *) set x
$CONFIG_FILES ;;
25710 # Strip MF so we end up with the name of the file.
25711 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25712 # Check whether this is an Automake generated Makefile or not.
25713 # We used to match only the files named `Makefile.in', but
25714 # some people rename them; so instead we look at the file content.
25715 # Grep'ing the first line is not enough: some people post-process
25716 # each Makefile.in and add a new line on top of each file to say so.
25717 # Grep'ing the whole file is not good either: AIX grep has a line
25718 # limit of 2048, but all sed's we know have understand at least 4000.
25719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25720 dirpart
=`$as_dirname -- "$mf" ||
25721 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25722 X"$mf" : 'X\(//\)[^/]' \| \
25723 X"$mf" : 'X\(//\)$' \| \
25724 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25730 /^X\(\/\/\)[^/].*/{
25746 # Extract the definition of DEPDIR, am__include, and am__quote
25747 # from the Makefile without running `make'.
25748 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25749 test -z "$DEPDIR" && continue
25750 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25751 test -z "am__include" && continue
25752 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25753 # When using ansi2knr, U may be empty or an underscore; expand it
25754 U
=`sed -n 's/^U = //p' < "$mf"`
25755 # Find all dependency output files, they are included files with
25756 # $(DEPDIR) in their names. We invoke sed twice because it is the
25757 # simplest approach to changing $(DEPDIR) to its actual value in the
25759 for file in `sed -n "
25760 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25761 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25762 # Make sure the directory exists.
25763 test -f "$dirpart/$file" && continue
25764 fdir
=`$as_dirname -- "$file" ||
25765 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25766 X"$file" : 'X\(//\)[^/]' \| \
25767 X"$file" : 'X\(//\)$' \| \
25768 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25769 $as_echo X"$file" |
25770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25774 /^X\(\/\/\)[^/].*/{
25787 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25788 # echo "creating $dirpart/$file"
25789 echo '# dummy' > "$dirpart/$file"
25795 for dir
in etc lisp
; do
25796 test -d ${dir} || mkdir
${dir}
25800 echo creating src
/epaths.h
25801 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25804 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25805 echo creating src
/.gdbinit
25806 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25816 ac_clean_files
=$ac_clean_files_save
25818 test $ac_write_fail = 0 ||
25819 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
25822 # configure is writing to config.log, and then calls config.status.
25823 # config.status does its own redirection, appending to config.log.
25824 # Unfortunately, on DOS this fails, as config.log is still kept open
25825 # by configure, so config.status won't be able to write to it; its
25826 # output is simply discarded. So we exec the FD to /dev/null,
25827 # effectively closing config.log, so it can be properly (re)opened and
25828 # appended to by config.status. When coming back to configure, we
25829 # need to make the FD available again.
25830 if test "$no_create" != yes; then
25832 ac_config_status_args
=
25833 test "$silent" = yes &&
25834 ac_config_status_args
="$ac_config_status_args --quiet"
25836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25839 # would make configure fail if this is the last instruction.
25840 $ac_cs_success || as_fn_exit $?
25842 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25844 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}