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
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 WINDOWS_64_BIT_ST_SIZE
641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
643 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
645 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
654 REPLACE_STDIO_WRITE_FUNCS
655 REPLACE_STDIO_READ_FUNCS
664 REPLACE_OBSTACK_PRINTF
689 HAVE_DECL_OBSTACK_PRINTF
695 GNULIB_VSPRINTF_POSIX
699 GNULIB_VFPRINTF_POSIX
706 GNULIB_STDIO_H_SIGPIPE
707 GNULIB_STDIO_H_NONBLOCKING
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
764 GL_GENERATE_STDALIGN_H_FALSE
765 GL_GENERATE_STDALIGN_H_TRUE
767 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
771 REPLACE_PTHREAD_SIGMASK
773 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
774 HAVE_STRUCT_SIGACTION_SA_SIGACTION
780 HAVE_POSIX_SIGNALBLOCKING
783 GNULIB_SIGNAL_H_SIGPIPE
785 GNULIB_PTHREAD_SIGMASK
787 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
801 HAVE_DECL_LOCALTIME_R
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
867 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_SIG_ATOMIC_T
873 APPLE_UNIVERSAL_BUILD
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
882 HAVE_UNSIGNED_LONG_LONG_INT
885 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
887 REPLACE_STRUCT_TIMEVAL
893 GNULIB_GL_UNISTD_H_GETOPT
896 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
915 REPLACE_CANONICALIZE_FILE_NAME
920 HAVE_STRUCT_RANDOM_DATA
942 HAVE_CANONICALIZE_FILE_NAME
972 GNULIB_CANONICALIZE_FILE_NAME
976 GL_GENERATE_EXECINFO_H_FALSE
977 GL_GENERATE_EXECINFO_H_TRUE
980 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
981 UNISTD_H_HAVE_WINSOCK2_H
1002 REPLACE_GETDOMAINNAME
1013 HAVE_DECL_SETHOSTNAME
1014 HAVE_DECL_GETUSERSHELL
1015 HAVE_DECL_GETPAGESIZE
1016 HAVE_DECL_GETLOGIN_R
1017 HAVE_DECL_GETDOMAINNAME
1056 GNULIB_UNISTD_H_SIGPIPE
1057 GNULIB_UNISTD_H_NONBLOCKING
1083 GNULIB_GETDTABLESIZE
1084 GNULIB_GETDOMAINNAME
1101 GL_GENERATE_ALLOCA_H_FALSE
1102 GL_GENERATE_ALLOCA_H_TRUE
1105 GL_COND_LIBTOOL_FALSE
1106 GL_COND_LIBTOOL_TRUE
1137 x_default_search_path
1210 INSTALL_ARCH_INDEP_EXTRA
1212 LD_SWITCH_X_SITE_RPATH
1281 INSTALL_STRIP_PROGRAM
1323 program_transform_name
1334 ac_subst_files
='deps_frag
1337 enable_option_checking
1360 with_toolkit_scroll_bars
1372 with_pkg_config_prog
1376 enable_ns_self_contained
1377 enable_locallisppath
1379 enable_check_lisp_object_type
1382 enable_dependency_tracking
1385 enable_link_time_optimization
1388 ac_precious_vars
='build_alias
1400 # Initialize some variables set by options.
1402 ac_init_version
=false
1403 ac_unrecognized_opts
=
1404 ac_unrecognized_sep
=
1405 # The variables have the same names as the options, with
1406 # dashes changed to underlines.
1407 cache_file
=/dev
/null
1414 program_transform_name
=s
,x
,x
,
1422 # Installation directory options.
1423 # These are left unexpanded so users can "make install exec_prefix=/foo"
1424 # and all the variables that are supposed to be based on exec_prefix
1425 # by default will actually change.
1426 # Use braces instead of parens because sh, perl, etc. also accept them.
1427 # (The list follows the same order as the GNU Coding Standards.)
1428 bindir
='${exec_prefix}/bin'
1429 sbindir
='${exec_prefix}/sbin'
1430 libexecdir
='${exec_prefix}/libexec'
1431 datarootdir
='${prefix}/share'
1432 datadir
='${datarootdir}'
1433 sysconfdir
='${prefix}/etc'
1434 sharedstatedir
='${prefix}/com'
1435 localstatedir
='${prefix}/var'
1436 includedir
='${prefix}/include'
1437 oldincludedir
='/usr/include'
1438 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1439 infodir
='${datarootdir}/info'
1444 libdir
='${exec_prefix}/lib'
1445 localedir
='${datarootdir}/locale'
1446 mandir
='${datarootdir}/man'
1452 # If the previous option needs an argument, assign it.
1453 if test -n "$ac_prev"; then
1454 eval $ac_prev=\
$ac_option
1460 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1464 # Accept the important Cygnus configure options, so we can diagnose typos.
1466 case $ac_dashdash$ac_option in
1470 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1472 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1473 bindir
=$ac_optarg ;;
1475 -build |
--build |
--buil |
--bui |
--bu)
1476 ac_prev
=build_alias
;;
1477 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1478 build_alias
=$ac_optarg ;;
1480 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1481 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1482 ac_prev
=cache_file
;;
1483 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1484 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1485 cache_file
=$ac_optarg ;;
1487 --config-cache |
-C)
1488 cache_file
=config.cache
;;
1490 -datadir |
--datadir |
--datadi |
--datad)
1492 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1493 datadir
=$ac_optarg ;;
1495 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1496 |
--dataroo |
--dataro |
--datar)
1497 ac_prev
=datarootdir
;;
1498 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1499 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1500 datarootdir
=$ac_optarg ;;
1502 -disable-* |
--disable-*)
1503 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1506 as_fn_error
"invalid feature name: $ac_useropt"
1507 ac_useropt_orig
=$ac_useropt
1508 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1511 "enable_
$ac_useropt"
1513 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1514 ac_unrecognized_sep
=', ';;
1516 eval enable_
$ac_useropt=no
;;
1518 -docdir |
--docdir |
--docdi |
--doc |
--do)
1520 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1521 docdir
=$ac_optarg ;;
1523 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1525 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1526 dvidir
=$ac_optarg ;;
1528 -enable-* |
--enable-*)
1529 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1532 as_fn_error
"invalid feature name: $ac_useropt"
1533 ac_useropt_orig
=$ac_useropt
1534 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1537 "enable_
$ac_useropt"
1539 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1540 ac_unrecognized_sep
=', ';;
1542 eval enable_
$ac_useropt=\
$ac_optarg ;;
1544 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1545 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1546 |
--exec |
--exe |
--ex)
1547 ac_prev
=exec_prefix
;;
1548 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1549 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1550 |
--exec=* |
--exe=* |
--ex=*)
1551 exec_prefix
=$ac_optarg ;;
1553 -gas |
--gas |
--ga |
--g)
1554 # Obsolete; use --with-gas.
1557 -help |
--help |
--hel |
--he |
-h)
1558 ac_init_help
=long
;;
1559 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1560 ac_init_help
=recursive
;;
1561 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1562 ac_init_help
=short
;;
1564 -host |
--host |
--hos |
--ho)
1565 ac_prev
=host_alias
;;
1566 -host=* |
--host=* |
--hos=* |
--ho=*)
1567 host_alias
=$ac_optarg ;;
1569 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1571 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1573 htmldir
=$ac_optarg ;;
1575 -includedir |
--includedir |
--includedi |
--included |
--include \
1576 |
--includ |
--inclu |
--incl |
--inc)
1577 ac_prev
=includedir
;;
1578 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1579 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1580 includedir
=$ac_optarg ;;
1582 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1584 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1585 infodir
=$ac_optarg ;;
1587 -libdir |
--libdir |
--libdi |
--libd)
1589 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1590 libdir
=$ac_optarg ;;
1592 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1593 |
--libexe |
--libex |
--libe)
1594 ac_prev
=libexecdir
;;
1595 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1596 |
--libexe=* |
--libex=* |
--libe=*)
1597 libexecdir
=$ac_optarg ;;
1599 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1600 ac_prev
=localedir
;;
1601 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1602 localedir
=$ac_optarg ;;
1604 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1605 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1606 ac_prev
=localstatedir
;;
1607 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1608 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1609 localstatedir
=$ac_optarg ;;
1611 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1613 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1614 mandir
=$ac_optarg ;;
1616 -nfp |
--nfp |
--nf)
1617 # Obsolete; use --without-fp.
1620 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1621 |
--no-cr |
--no-c |
-n)
1624 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1625 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1628 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1629 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1630 |
--oldin |
--oldi |
--old |
--ol |
--o)
1631 ac_prev
=oldincludedir
;;
1632 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1633 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1634 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1635 oldincludedir
=$ac_optarg ;;
1637 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1639 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1640 prefix
=$ac_optarg ;;
1642 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1643 |
--program-pre |
--program-pr |
--program-p)
1644 ac_prev
=program_prefix
;;
1645 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1646 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1647 program_prefix
=$ac_optarg ;;
1649 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1650 |
--program-suf |
--program-su |
--program-s)
1651 ac_prev
=program_suffix
;;
1652 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1653 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1654 program_suffix
=$ac_optarg ;;
1656 -program-transform-name |
--program-transform-name \
1657 |
--program-transform-nam |
--program-transform-na \
1658 |
--program-transform-n |
--program-transform- \
1659 |
--program-transform |
--program-transfor \
1660 |
--program-transfo |
--program-transf \
1661 |
--program-trans |
--program-tran \
1662 |
--progr-tra |
--program-tr |
--program-t)
1663 ac_prev
=program_transform_name
;;
1664 -program-transform-name=* |
--program-transform-name=* \
1665 |
--program-transform-nam=* |
--program-transform-na=* \
1666 |
--program-transform-n=* |
--program-transform-=* \
1667 |
--program-transform=* |
--program-transfor=* \
1668 |
--program-transfo=* |
--program-transf=* \
1669 |
--program-trans=* |
--program-tran=* \
1670 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1671 program_transform_name
=$ac_optarg ;;
1673 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1675 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1676 pdfdir
=$ac_optarg ;;
1678 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1680 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1683 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1684 |
-silent |
--silent |
--silen |
--sile |
--sil)
1687 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1689 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1691 sbindir
=$ac_optarg ;;
1693 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1694 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1695 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1697 ac_prev
=sharedstatedir
;;
1698 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1699 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1700 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1702 sharedstatedir
=$ac_optarg ;;
1704 -site |
--site |
--sit)
1706 -site=* |
--site=* |
--sit=*)
1709 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1711 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1712 srcdir
=$ac_optarg ;;
1714 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1715 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1716 ac_prev
=sysconfdir
;;
1717 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1718 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1719 sysconfdir
=$ac_optarg ;;
1721 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1722 ac_prev
=target_alias
;;
1723 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1724 target_alias
=$ac_optarg ;;
1726 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1729 -version |
--version |
--versio |
--versi |
--vers |
-V)
1730 ac_init_version
=: ;;
1733 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1734 # Reject names that are not valid shell variable names.
1735 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1736 as_fn_error
"invalid package name: $ac_useropt"
1737 ac_useropt_orig
=$ac_useropt
1738 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1739 case $ac_user_opts in
1743 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1744 ac_unrecognized_sep
=', ';;
1746 eval with_
$ac_useropt=\
$ac_optarg ;;
1748 -without-* |
--without-*)
1749 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1750 # Reject names that are not valid shell variable names.
1751 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1752 as_fn_error
"invalid package name: $ac_useropt"
1753 ac_useropt_orig
=$ac_useropt
1754 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1755 case $ac_user_opts in
1759 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1760 ac_unrecognized_sep
=', ';;
1762 eval with_
$ac_useropt=no
;;
1765 # Obsolete; use --with-x.
1768 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1769 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1770 ac_prev
=x_includes
;;
1771 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1772 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1773 x_includes
=$ac_optarg ;;
1775 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1776 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1777 ac_prev
=x_libraries
;;
1778 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1779 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1780 x_libraries
=$ac_optarg ;;
1782 -*) as_fn_error
"unrecognized option: \`$ac_option'
1783 Try \`$0 --help' for more information."
1787 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1788 # Reject names that are not valid shell variable names.
1789 case $ac_envvar in #(
1790 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1791 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1793 eval $ac_envvar=\
$ac_optarg
1794 export $ac_envvar ;;
1797 # FIXME: should be removed in autoconf 3.0.
1798 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1800 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1807 if test -n "$ac_prev"; then
1808 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1809 as_fn_error
"missing argument to $ac_option"
1812 if test -n "$ac_unrecognized_opts"; then
1813 case $enable_option_checking in
1815 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1816 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1820 # Check all directory arguments for consistency.
1821 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1822 datadir sysconfdir sharedstatedir localstatedir includedir \
1823 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1824 libdir localedir mandir
1826 eval ac_val
=\$
$ac_var
1827 # Remove trailing slashes.
1830 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1831 eval $ac_var=\
$ac_val;;
1833 # Be sure to have absolute directory names.
1835 [\\/$
]* | ?
:[\\/]* ) continue;;
1836 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1838 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1841 # There might be people who depend on the old broken behavior: `$host'
1842 # used to hold the argument of --host etc.
1843 # FIXME: To remove some day.
1846 target
=$target_alias
1848 # FIXME: To remove some day.
1849 if test "x$host_alias" != x
; then
1850 if test "x$build_alias" = x
; then
1851 cross_compiling
=maybe
1852 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1853 If a cross compiler is detected then cross compile mode will be used." >&2
1854 elif test "x$build_alias" != "x$host_alias"; then
1860 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1862 test "$silent" = yes && exec 6>/dev
/null
1865 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1866 ac_ls_di
=`ls -di .` &&
1867 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1868 as_fn_error
"working directory cannot be determined"
1869 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1870 as_fn_error
"pwd does not report name of working directory"
1873 # Find the source files, if location was not specified.
1874 if test -z "$srcdir"; then
1875 ac_srcdir_defaulted
=yes
1876 # Try the directory containing this script, then the parent directory.
1877 ac_confdir
=`$as_dirname -- "$as_myself" ||
1878 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1879 X"$as_myself" : 'X\(//\)[^/]' \| \
1880 X"$as_myself" : 'X\(//\)$' \| \
1881 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1882 $as_echo X"$as_myself" |
1883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1901 if test ! -r "$srcdir/$ac_unique_file"; then
1905 ac_srcdir_defaulted
=no
1907 if test ! -r "$srcdir/$ac_unique_file"; then
1908 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1909 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1911 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1913 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1915 # When building in place, set srcdir=.
1916 if test "$ac_abs_confdir" = "$ac_pwd"; then
1919 # Remove unnecessary trailing slashes from srcdir.
1920 # Double slashes in file names in object file debugging info
1921 # mess up M-x gdb in Emacs.
1923 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1925 for ac_var
in $ac_precious_vars; do
1926 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1927 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1928 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1929 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1933 # Report the --help message.
1935 if test "$ac_init_help" = "long"; then
1936 # Omit some internal or obsolete options to make the list less imposing.
1937 # This message is too long to be a string in the A/UX 3.1 sh.
1939 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1941 Usage: $0 [OPTION]... [VAR=VALUE]...
1943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1944 VAR=VALUE. See below for descriptions of some of the useful variables.
1946 Defaults for the options are specified in brackets.
1949 -h, --help display this help and exit
1950 --help=short display options specific to this package
1951 --help=recursive display the short help of all the included packages
1952 -V, --version display version information and exit
1953 -q, --quiet, --silent do not print \`checking...' messages
1954 --cache-file=FILE cache test results in FILE [disabled]
1955 -C, --config-cache alias for \`--cache-file=config.cache'
1956 -n, --no-create do not create output files
1957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1959 Installation directories:
1960 --prefix=PREFIX install architecture-independent files in PREFIX
1961 [$ac_default_prefix]
1962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1965 By default, \`make install' will install all the files in
1966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1968 for instance \`--prefix=\$HOME'.
1970 For better control, use the options below.
1972 Fine tuning of the installation directories:
1973 --bindir=DIR user executables [EPREFIX/bin]
1974 --sbindir=DIR system admin executables [EPREFIX/sbin]
1975 --libexecdir=DIR program executables [EPREFIX/libexec]
1976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1979 --libdir=DIR object code libraries [EPREFIX/lib]
1980 --includedir=DIR C header files [PREFIX/include]
1981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1982 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1983 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1984 --infodir=DIR info documentation [DATAROOTDIR/info]
1985 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1986 --mandir=DIR man documentation [DATAROOTDIR/man]
1987 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1988 --htmldir=DIR html documentation [DOCDIR]
1989 --dvidir=DIR dvi documentation [DOCDIR]
1990 --pdfdir=DIR pdf documentation [DOCDIR]
1991 --psdir=DIR ps documentation [DOCDIR]
1997 --program-prefix=PREFIX prepend PREFIX to installed program names
1998 --program-suffix=SUFFIX append SUFFIX to installed program names
1999 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2002 --x-includes=DIR X include files are
in DIR
2003 --x-libraries=DIR X library files are
in DIR
2006 --build=BUILD configure
for building on BUILD
[guessed
]
2007 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2011 if test -n "$ac_init_help"; then
2012 case $ac_init_help in
2013 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2018 --disable-option-checking ignore unrecognized
--enable/--with options
2019 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2020 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2021 --disable-ns-self-contained
2022 disable self contained build under NeXTstep
2023 --enable-locallisppath=PATH
2024 directories Emacs should search
for lisp files
2025 specific to this site
2026 --enable-checking[=LIST
]
2027 enable expensive run-time checks. With LIST
, enable
2028 only specific categories of checks. Categories are
:
2029 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2030 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2031 --enable-check-lisp-object-type
2032 enable compile
time checks
for the Lisp_Object data
2033 type. This is useful
for development
for catching
2034 certain types of bugs.
2035 --enable-profiling build emacs with profiling support. This might not
2036 work on all platforms
2037 --enable-autodepend automatically generate dependencies to .h-files.
2038 Requires GNU Make and Gcc. Enabled
if GNU Make and
2040 --disable-dependency-tracking speeds up one-time build
2041 --enable-dependency-tracking do not reject slow dependency extractors
2042 --disable-largefile omit support
for large files
2043 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2044 developers
, and may generate false alarms when used
2045 with older or non-GNU development tools.
2046 --enable-link-time-optimization
2047 build emacs with link-time optimization. This is
2048 supported only
for GCC since
4.5.0.
2051 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2052 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2053 --without-all omit almost all features and build small executable
2054 with minimal dependencies
2055 --without-pop don
't support POP mail retrieval with movemail
2056 --with-kerberos support Kerberos-authenticated POP
2057 --with-kerberos5 support Kerberos version 5 authenticated POP
2058 --with-hesiod support Hesiod to get the POP server host
2059 --with-mmdf support MMDF mailboxes
2060 --with-mail-unlink unlink, rather than empty, mail spool after reading
2061 --with-mailhost=HOSTNAME
2062 string giving default POP mail host
2063 --without-sound don't compile with sound support
2064 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2065 gtk3
, lucid or athena
, motif
, no
)
2066 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2067 --without-xpm don
't compile with XPM image support
2068 --without-jpeg don't compile with JPEG image support
2069 --without-tiff don
't compile with TIFF image support
2070 --without-gif don't compile with GIF image support
2071 --without-png don
't compile with PNG image support
2072 --without-rsvg don't compile with SVG image support
2073 --without-xml2 don
't compile with XML parsing support
2074 --without-imagemagick don't compile with ImageMagick image support
2075 --without-xft don
't use XFT for anti aliased fonts
2076 --without-libotf don't use libotf
for OpenType font support
2077 --without-m17n-flt don
't use m17n-flt for text shaping
2078 --without-toolkit-scroll-bars
2079 don't use Motif or Xaw3d scroll bars
2080 --without-xaw3d don
't use Xaw3d
2081 --without-xim don't use X11 XIM
2082 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2083 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2085 --without-dbus don't compile with D-Bus support
2086 --without-gconf don
't compile with GConf support
2087 --without-gsettings don't compile with GSettings support
2088 --without-selinux don
't compile with SELinux support
2089 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2090 --without-makeinfo don
't require makeinfo for building manuals
2091 --without-compress-info don't
compress the installed Info pages
2092 --with-pkg-config-prog=PATH
2093 path to pkg-config
for finding GTK and librsvg
2094 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2095 /usr
/lib
, or
/usr
/lib64 on some platforms.
2096 --with-gameuser=USER user
for shared game score files
2097 --with-gnustep-conf=PATH
2098 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2099 or
/etc
/GNUstep
/GNUstep.conf
2100 --with-x use the X Window System
2102 Some influential environment variables
:
2103 CC C compiler
command
2104 CFLAGS C compiler flags
2105 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2106 nonstandard directory
<lib dir
>
2107 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2108 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2109 you have headers
in a nonstandard directory
<include dir
>
2111 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2113 Use these variables to override the choices made by
`configure' or to help
2114 it to find libraries and programs with nonstandard names/locations.
2116 Report bugs to the package provider.
2121 if test "$ac_init_help" = "recursive"; then
2122 # If there are subdirs, report their specific --help.
2123 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2124 test -d "$ac_dir" ||
2125 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2133 # A ".." for each directory in $ac_dir_suffix.
2134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2135 case $ac_top_builddir_sub in
2136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2140 ac_abs_top_builddir=$ac_pwd
2141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2142 # for backward compatibility:
2143 ac_top_builddir=$ac_top_build_prefix
2146 .) # We are building in place.
2148 ac_top_srcdir=$ac_top_builddir_sub
2149 ac_abs_top_srcdir=$ac_pwd ;;
2150 [\\/]* | ?:[\\/]* ) # Absolute name.
2151 ac_srcdir=$srcdir$ac_dir_suffix;
2152 ac_top_srcdir=$srcdir
2153 ac_abs_top_srcdir=$srcdir ;;
2155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2156 ac_top_srcdir=$ac_top_build_prefix$srcdir
2157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2161 cd "$ac_dir" || { ac_status=$?; continue; }
2162 # Check for guested configure.
2163 if test -f "$ac_srcdir/configure.gnu"; then
2165 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2166 elif test -f "$ac_srcdir/configure"; then
2168 $SHELL "$ac_srcdir/configure" --help=recursive
2170 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2172 cd "$ac_pwd" || { ac_status=$?; break; }
2176 test -n "$ac_init_help" && exit $ac_status
2177 if $ac_init_version; then
2179 emacs configure 24.2.50
2180 generated by GNU Autoconf 2.65
2182 Copyright (C) 2009 Free Software Foundation, Inc.
2183 This configure script is free software; the Free Software Foundation
2184 gives unlimited permission to copy, distribute and modify it.
2189 ## ------------------------ ##
2190 ## Autoconf initialization. ##
2191 ## ------------------------ ##
2193 # ac_fn_c_try_compile LINENO
2194 # --------------------------
2195 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_compile ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext
2200 if { { ac_try="$ac_compile"
2202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2203 *) ac_try_echo
=$ac_try;;
2205 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_compile") 2>conftest.err
2209 if test -s conftest.err
; then
2210 grep -v '^ *+' conftest.err
>conftest.er1
2211 cat conftest.er1
>&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest.
$ac_objext; then :
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2227 as_fn_set_status
$ac_retval
2229 } # ac_fn_c_try_compile
2231 # ac_fn_c_try_cpp LINENO
2232 # ----------------------
2233 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 $as_echo "$ac_try_echo"; } >&5
2244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2246 if test -s conftest.err; then
2247 grep -v '^ *+' conftest.err >conftest.er1
2248 cat conftest.er1 >&5
2249 mv -f conftest.er1 conftest.err
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; } >/dev/null && {
2253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2254 test ! -s conftest.err
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 as_fn_set_status $ac_retval
2268 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2269 # -------------------------------------------------------
2270 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2271 # the include files in INCLUDES and setting the cache variable VAR
2273 ac_fn_c_check_header_mongrel ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2286 # Is the header compilable?
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2288 $as_echo_n "checking $2 usability... " >&6; }
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_header_compiler=yes
2297 ac_header_compiler=no
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2301 $as_echo "$ac_header_compiler" >&6; }
2303 # Is the header present?
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2305 $as_echo_n "checking $2 presence... " >&6; }
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2310 if ac_fn_c_try_cpp "$LINENO"; then :
2311 ac_header_preproc=yes
2313 ac_header_preproc=no
2315 rm -f conftest.err conftest.$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2317 $as_echo "$ac_header_preproc" >&6; }
2319 # So? What about this header?
2320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2323 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2325 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2329 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2331 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2333 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2335 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2337 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2345 eval "$3=\$ac_header_compiler"
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353 } # ac_fn_c_check_header_mongrel
2355 # ac_fn_c_try_run LINENO
2356 # ----------------------
2357 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2358 # that executables *can* be run.
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 if { { ac_try="$ac_link"
2364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2365 *) ac_try_echo
=$ac_try;;
2367 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>&5
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2373 { { case "(($ac_try" in
2374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_try") 2>&5
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; }; }; then :
2385 $as_echo "$as_me: program exited with status $ac_status" >&5
2386 $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 ac_retval=$ac_status
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 as_fn_set_status $ac_retval
2397 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2398 # -------------------------------------------------------
2399 # Tests whether HEADER exists and can be compiled using the include files in
2400 # INCLUDES, setting the cache variable VAR accordingly.
2401 ac_fn_c_check_header_compile ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2414 if ac_fn_c_try_compile "$LINENO"; then :
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 } # ac_fn_c_check_header_compile
2428 # ac_fn_c_try_link LINENO
2429 # -----------------------
2430 # Try to link conftest.$ac_ext, and return whether this succeeded.
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 rm -f conftest.$ac_objext conftest$ac_exeext
2435 if { { ac_try="$ac_link"
2437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2438 *) ac_try_echo
=$ac_try;;
2440 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441 $as_echo "$ac_try_echo"; } >&5
2442 (eval "$ac_link") 2>conftest.err
2444 if test -s conftest.err
; then
2445 grep -v '^ *+' conftest.err
>conftest.er1
2446 cat conftest.er1
>&5
2447 mv -f conftest.er1 conftest.err
2449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450 test $ac_status = 0; } && {
2451 test -z "$ac_c_werror_flag" ||
2452 test ! -s conftest.err
2453 } && test -s conftest
$ac_exeext && {
2454 test "$cross_compiling" = yes ||
2455 $as_test_x conftest
$ac_exeext
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.
$ac_ext >&5
2464 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2465 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2466 # interfere with the next link command; also delete a directory that is
2467 # left behind by Apple's compiler. We do this before executing the actions.
2468 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2470 as_fn_set_status
$ac_retval
2472 } # ac_fn_c_try_link
2474 # ac_fn_c_check_decl LINENO SYMBOL VAR
2475 # ------------------------------------
2476 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2477 ac_fn_c_check_decl
()
2479 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2481 $as_echo_n "checking whether $2 is declared... " >&6; }
2482 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2499 if ac_fn_c_try_compile
"$LINENO"; then :
2504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2511 } # ac_fn_c_check_decl
2513 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2514 # ----------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_c_check_header_preproc
()
2518 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 if ac_fn_c_try_cpp
"$LINENO"; then :
2533 rm -f conftest.err conftest.
$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 } # ac_fn_c_check_header_preproc
2542 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2543 # ----------------------------------------------------
2544 # Tries to find if the field MEMBER exists in type AGGR, after including
2545 # INCLUDES, setting cache variable VAR accordingly.
2546 ac_fn_c_check_member
()
2548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2550 $as_echo_n "checking for $2.$3... " >&6; }
2551 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2567 if ac_fn_c_try_compile
"$LINENO"; then :
2570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2577 if (sizeof ac_aggr.$3)
2583 if ac_fn_c_try_compile
"$LINENO"; then :
2588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2597 } # ac_fn_c_check_member
2599 # ac_fn_c_check_func LINENO FUNC VAR
2600 # ----------------------------------
2601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2602 ac_fn_c_check_func
()
2604 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2614 #define $2 innocuous_$2
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $2 (); below.
2618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619 <limits.h> exists even on freestanding compilers. */
2622 # include <limits.h>
2624 # include <assert.h>
2629 /* Override any GCC internal prototype to avoid an error.
2630 Use char because int might match the return type of a GCC
2631 builtin and then its argument prototype would still apply. */
2636 /* The GNU C library defines this for functions which it implements
2637 to always fail with ENOSYS. Some functions are actually named
2638 something starting with __ and the normal name is an alias. */
2639 #if defined __stub_$2 || defined __stub___$2
2651 if ac_fn_c_try_link
"$LINENO"; then :
2656 rm -f core conftest.err conftest.
$ac_objext \
2657 conftest
$ac_exeext conftest.
$ac_ext
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2664 } # ac_fn_c_check_func
2666 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2667 # -------------------------------------------
2668 # Tests whether TYPE exists after having included INCLUDES, setting cache
2669 # variable VAR accordingly.
2670 ac_fn_c_check_type
()
2672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674 $as_echo_n "checking for $2... " >&6; }
2675 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2691 if ac_fn_c_try_compile
"$LINENO"; then :
2692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2704 if ac_fn_c_try_compile
"$LINENO"; then :
2709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2718 } # ac_fn_c_check_type
2720 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2721 # --------------------------------------------
2722 # Tries to find the compile-time value of EXPR in a program that includes
2723 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2725 ac_fn_c_compute_int
()
2727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2728 if test "$cross_compiling" = yes; then
2729 # Depending upon the size, compute the lo and hi bounds.
2730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2736 static int test_array [1 - 2 * !(($2) >= 0)];
2743 if ac_fn_c_try_compile
"$LINENO"; then :
2746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2752 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2759 if ac_fn_c_try_compile
"$LINENO"; then :
2760 ac_hi
=$ac_mid; break
2762 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2763 if test $ac_lo -le $ac_mid; then
2767 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2778 static int test_array [1 - 2 * !(($2) < 0)];
2785 if ac_fn_c_try_compile
"$LINENO"; then :
2788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2794 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2801 if ac_fn_c_try_compile
"$LINENO"; then :
2802 ac_lo
=$ac_mid; break
2804 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2805 if test $ac_mid -le $ac_hi; then
2809 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2819 # Binary search between lo and hi bounds.
2820 while test "x$ac_lo" != "x$ac_hi"; do
2821 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2828 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2835 if ac_fn_c_try_compile
"$LINENO"; then :
2838 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2843 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2850 static long int longval () { return $2; }
2851 static unsigned long int ulongval () { return $2; }
2858 FILE *f = fopen ("conftest.val", "w");
2863 long int i = longval ();
2866 fprintf (f, "%ld", i);
2870 unsigned long int i = ulongval ();
2873 fprintf (f, "%lu", i);
2875 /* Do not output a trailing newline, as this causes \r\n confusion
2876 on some platforms. */
2877 return ferror (f) || fclose (f) != 0;
2883 if ac_fn_c_try_run
"$LINENO"; then :
2884 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2893 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2894 as_fn_set_status
$ac_retval
2896 } # ac_fn_c_compute_int
2897 cat >config.log
<<_ACEOF
2898 This file contains any messages produced by compilers while
2899 running configure, to aid debugging if configure makes a mistake.
2901 It was created by emacs $as_me 24.2.50, which was
2902 generated by GNU Autoconf 2.65. Invocation command line was
2914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir
=.
2938 $as_echo "PATH: $as_dir"
2954 # Keep a trace of the command line.
2955 # Strip out --no-create and --no-recursion so they do not pile up.
2956 # Strip out --silent because we don't want to record it for future runs.
2957 # Also quote any args containing shell meta-characters.
2958 # Make two passes to allow for proper duplicate-argument suppression.
2962 ac_must_keep_next
=false
2968 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2969 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2970 |
-silent |
--silent |
--silen |
--sile |
--sil)
2973 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2976 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2978 as_fn_append ac_configure_args1
" '$ac_arg'"
2979 if test $ac_must_keep_next = true
; then
2980 ac_must_keep_next
=false
# Got value, back to normal.
2983 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2984 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2985 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2986 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2987 case "$ac_configure_args0 " in
2988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2991 -* ) ac_must_keep_next
=true
;;
2994 as_fn_append ac_configure_args
" '$ac_arg'"
2999 { ac_configure_args0
=; unset ac_configure_args0
;}
3000 { ac_configure_args1
=; unset ac_configure_args1
;}
3002 # When interrupted or exit'd, cleanup temporary files, and complete
3003 # config.log. We remove comments because anyway the quotes in there
3004 # would cause problems or look ugly.
3005 # WARNING: Use '\'' to represent an apostrophe within the trap.
3006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3007 trap 'exit_status=$?
3008 # Save into config.log some information that might help in debugging.
3013 ## ---------------- ##
3014 ## Cache variables. ##
3015 ## ---------------- ##
3018 # The following way of writing the cache mishandles newlines in values,
3020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3021 eval ac_val=\$$ac_var
3025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3029 _ | IFS | as_nl) ;; #(
3030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3031 *) { eval $ac_var=; unset $ac_var;} ;;
3036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3037 *${as_nl}ac_space=\ *)
3039 "s/'\''/'\''\\\\'\'''\''/g;
3040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3051 ## ----------------- ##
3052 ## Output variables. ##
3053 ## ----------------- ##
3056 for ac_var in $ac_subst_vars
3058 eval ac_val=\$$ac_var
3060 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3062 $as_echo "$ac_var='\''$ac_val'\''"
3066 if test -n "$ac_subst_files"; then
3068 ## ------------------- ##
3069 ## File substitutions. ##
3070 ## ------------------- ##
3073 for ac_var
in $ac_subst_files
3075 eval ac_val
=\$
$ac_var
3077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3079 $as_echo "$ac_var='\''$ac_val'\''"
3084 if test -s confdefs.h; then
3094 test "$ac_signal" != 0 &&
3095 $as_echo "$as_me: caught signal $ac_signal"
3096 $as_echo "$as_me: exit $exit_status"
3098 rm -f core *.core core.conftest.* &&
3099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3102 for ac_signal
in 1 2 13 15; do
3103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3108 rm -f -r conftest
* confdefs.h
3110 $as_echo "/* confdefs.h */" > confdefs.h
3112 # Predefined preprocessor variables.
3114 cat >>confdefs.h
<<_ACEOF
3115 #define PACKAGE_NAME "$PACKAGE_NAME"
3118 cat >>confdefs.h
<<_ACEOF
3119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3122 cat >>confdefs.h
<<_ACEOF
3123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3126 cat >>confdefs.h
<<_ACEOF
3127 #define PACKAGE_STRING "$PACKAGE_STRING"
3130 cat >>confdefs.h
<<_ACEOF
3131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3134 cat >>confdefs.h
<<_ACEOF
3135 #define PACKAGE_URL "$PACKAGE_URL"
3139 # Let the site file select an alternate cache file if it wants to.
3140 # Prefer an explicitly selected file to automatically selected ones.
3143 if test -n "$CONFIG_SITE"; then
3144 ac_site_file1
=$CONFIG_SITE
3145 elif test "x$prefix" != xNONE
; then
3146 ac_site_file1
=$prefix/share
/config.site
3147 ac_site_file2
=$prefix/etc
/config.site
3149 ac_site_file1
=$ac_default_prefix/share
/config.site
3150 ac_site_file2
=$ac_default_prefix/etc
/config.site
3152 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3154 test "x$ac_site_file" = xNONE
&& continue
3155 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3158 sed 's/^/| /' "$ac_site_file" >&5
3163 if test -r "$cache_file"; then
3164 # Some versions of bash will fail to source /dev/null (special files
3165 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3166 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3168 $as_echo "$as_me: loading cache $cache_file" >&6;}
3170 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3171 *) .
"./$cache_file";;
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3176 $as_echo "$as_me: creating cache $cache_file" >&6;}
3180 as_fn_append ac_header_list
" linux/version.h"
3181 as_fn_append ac_header_list
" sys/systeminfo.h"
3182 as_fn_append ac_header_list
" stdio_ext.h"
3183 as_fn_append ac_header_list
" fcntl.h"
3184 as_fn_append ac_header_list
" coff.h"
3185 as_fn_append ac_header_list
" pty.h"
3186 as_fn_append ac_header_list
" sys/vlimit.h"
3187 as_fn_append ac_header_list
" sys/resource.h"
3188 as_fn_append ac_header_list
" sys/utsname.h"
3189 as_fn_append ac_header_list
" pwd.h"
3190 as_fn_append ac_header_list
" utmp.h"
3191 as_fn_append ac_header_list
" dirent.h"
3192 as_fn_append ac_header_list
" util.h"
3193 as_fn_append ac_header_list
" sys/socket.h"
3194 as_fn_append ac_header_list
" stdlib.h"
3195 as_fn_append ac_header_list
" unistd.h"
3196 as_fn_append ac_header_list
" sys/param.h"
3197 as_fn_append ac_header_list
" pthread.h"
3198 as_fn_append ac_header_list
" malloc/malloc.h"
3199 as_fn_append ac_header_list
" maillock.h"
3200 as_fn_append ac_header_list
" sys/un.h"
3201 as_fn_append ac_func_list
" tzset"
3202 as_fn_append ac_func_list
" readlinkat"
3203 as_fn_append ac_header_list
" execinfo.h"
3204 gl_getopt_required
=GNU
3205 as_fn_append ac_header_list
" getopt.h"
3206 as_fn_append ac_func_list
" gettimeofday"
3207 as_fn_append ac_func_list
" nanotime"
3208 as_fn_append ac_header_list
" sys/time.h"
3209 as_fn_append ac_header_list
" wchar.h"
3210 as_fn_append ac_header_list
" stdint.h"
3211 as_fn_append ac_header_list
" inttypes.h"
3212 as_fn_append ac_func_list
" lstat"
3213 as_fn_append ac_func_list
" alarm"
3214 as_fn_append ac_header_list
" sys/select.h"
3215 as_fn_append ac_func_list
" pselect"
3216 as_fn_append ac_func_list
" pthread_sigmask"
3217 as_fn_append ac_func_list
" readlink"
3218 as_fn_append ac_func_list
" strtoimax"
3219 as_fn_append ac_func_list
" strtoumax"
3220 as_fn_append ac_func_list
" symlink"
3221 as_fn_append ac_header_list
" sys/stat.h"
3222 as_fn_append ac_func_list
" localtime_r"
3223 as_fn_append ac_header_list
" utime.h"
3224 as_fn_append ac_func_list
" futimes"
3225 as_fn_append ac_func_list
" futimesat"
3226 as_fn_append ac_func_list
" futimens"
3227 as_fn_append ac_func_list
" utimensat"
3228 as_fn_append ac_func_list
" lutimes"
3229 # Check that the precious variables saved in the cache have kept the same
3231 ac_cache_corrupted
=false
3232 for ac_var
in $ac_precious_vars; do
3233 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3234 eval ac_new_set
=\
$ac_env_${ac_var}_set
3235 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3236 eval ac_new_val
=\
$ac_env_${ac_var}_value
3237 case $ac_old_set,$ac_new_set in
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3241 ac_cache_corrupted
=: ;;
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3245 ac_cache_corrupted
=: ;;
3248 if test "x$ac_old_val" != "x$ac_new_val"; then
3249 # differences in whitespace do not lead to failure.
3250 ac_old_val_w
=`echo x $ac_old_val`
3251 ac_new_val_w
=`echo x $ac_new_val`
3252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3255 ac_cache_corrupted
=:
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3259 eval $ac_var=\
$ac_old_val
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3267 # Pass precious variables to config.status.
3268 if test "$ac_new_set" = set; then
3270 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3271 *) ac_arg
=$ac_var=$ac_new_val ;;
3273 case " $ac_configure_args " in
3274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3275 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3279 if $ac_cache_corrupted; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3284 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3286 ## -------------------- ##
3287 ## Main body of script. ##
3288 ## -------------------- ##
3291 ac_cpp
='$CPP $CPPFLAGS'
3292 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3297 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3301 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3302 for ac_t
in install-sh
install.sh shtool
; do
3303 if test -f "$ac_dir/$ac_t"; then
3305 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3310 if test -z "$ac_aux_dir"; then
3311 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3314 # These three variables are undocumented and unsupported,
3315 # and are intended to be withdrawn in a future Autoconf release.
3316 # They can cause serious problems if a builder's source tree is in a directory
3317 # whose full name contains unusual characters.
3318 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3319 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3320 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3323 am__api_version
='1.11'
3325 # Find a good install program. We prefer a C program (faster),
3326 # so one script is as good as another. But avoid the broken or
3327 # incompatible versions:
3328 # SysV /etc/install, /usr/sbin/install
3329 # SunOS /usr/etc/install
3330 # IRIX /sbin/install
3332 # AmigaOS /C/install, which installs bootblocks on floppy discs
3333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3336 # OS/2's system install, which has a completely different semantic
3337 # ./install, which can be erroneously created by make from ./install.sh.
3338 # Reject install programs that cannot install multiple files.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3341 if test -z "$INSTALL"; then
3342 if test "${ac_cv_path_install+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir
=.
3350 # Account for people who put trailing slashes in PATH elements.
3351 case $as_dir/ in #((
3352 .
/ | .
// |
/[cC
]/* | \
3353 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3354 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3357 # OSF1 and SCO ODT 3.0 have their own names for install.
3358 # Don't use installbsd from OSF since it installs stuff as root
3360 for ac_prog
in ginstall scoinst
install; do
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3363 if test $ac_prog = install &&
3364 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3365 # AIX install. It has an incompatible calling convention.
3367 elif test $ac_prog = install &&
3368 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3369 # program-specific install script used by HP pwplus--don't use.
3372 rm -rf conftest.one conftest.two conftest.dir
3373 echo one
> conftest.one
3374 echo two
> conftest.two
3376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3377 test -s conftest.one
&& test -s conftest.two
&&
3378 test -s conftest.dir
/conftest.one
&&
3379 test -s conftest.dir
/conftest.two
3381 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3394 rm -rf conftest.one conftest.two conftest.dir
3397 if test "${ac_cv_path_install+set}" = set; then
3398 INSTALL
=$ac_cv_path_install
3400 # As a last resort, use the slow shell script. Don't cache a
3401 # value for INSTALL within a source directory, because that will
3402 # break other packages using the cache if that directory is
3403 # removed, or if the value is a relative name.
3404 INSTALL
=$ac_install_sh
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3408 $as_echo "$INSTALL" >&6; }
3410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3411 # It thinks the first close brace ends the variable substitution.
3412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3416 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3419 $as_echo_n "checking whether build environment is sane... " >&6; }
3422 echo timestamp
> conftest.
file
3423 # Reject unsafe characters in $srcdir or the absolute working directory
3424 # name. Accept space and tab only in the latter.
3428 *[\\\"\
#\$\&\'\`$am_lf]*)
3429 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3432 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3433 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3436 # Do `set' in a subshell so we don't clobber the current shell's
3437 # arguments. Must try -L first in case configure is actually a
3438 # symlink; some systems play weird games with the mod time of symlinks
3439 # (eg FreeBSD returns the mod time of the symlink's containing
3442 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3443 if test "$*" = "X"; then
3445 set X
`ls -t "$srcdir/configure" conftest.file`
3448 if test "$*" != "X $srcdir/configure conftest.file" \
3449 && test "$*" != "X conftest.file $srcdir/configure"; then
3451 # If neither matched, then we have a broken ls. This can happen
3452 # if, for instance, CONFIG_SHELL is bash and it inherits a
3453 # broken ls alias from the environment. This has actually
3454 # happened. Such a system could not be considered "sane".
3455 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3456 alias in your environment" "$LINENO" 5
3459 test "$2" = conftest.
file
3465 as_fn_error
"newly created file is older than distributed files!
3466 Check your system clock" "$LINENO" 5
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469 $as_echo "yes" >&6; }
3470 test "$program_prefix" != NONE
&&
3471 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3472 # Use a double $ so make ignores it.
3473 test "$program_suffix" != NONE
&&
3474 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3475 # Double any \ or $.
3476 # By default was `s,x,x', remove it if useless.
3477 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3478 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3480 # expand $ac_aux_dir to an absolute path
3481 am_aux_dir
=`cd $ac_aux_dir && pwd`
3483 if test x
"${MISSING+set}" != xset
; then
3486 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3488 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3491 # Use eval to expand $SHELL
3492 if eval "$MISSING --run true"; then
3493 am_missing_run
="$MISSING --run "
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3497 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3500 if test x
"${install_sh}" != xset
; then
3503 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3505 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3509 # Installed binaries are usually stripped using `strip' when the user
3510 # run `make install-strip'. However `strip' might not be the right
3511 # tool to use in cross-compilation environments, therefore Automake
3512 # will honor the `STRIP' environment variable to overrule this program.
3513 if test "$cross_compiling" != no
; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3516 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_STRIP+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$STRIP"; then
3523 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_exec_ext
in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 STRIP
=$ac_cv_prog_STRIP
3543 if test -n "$STRIP"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3545 $as_echo "$STRIP" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_STRIP"; then
3555 # Extract the first word of "strip", so it can be a program name with args.
3556 set dummy strip
; ac_word
=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3562 if test -n "$ac_ct_STRIP"; then
3563 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir
=.
3570 for ac_exec_ext
in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_STRIP
="strip"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3583 if test -n "$ac_ct_STRIP"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3585 $as_echo "$ac_ct_STRIP" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_STRIP" = x
; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned
=yes ;;
3603 STRIP
="$ac_cv_prog_STRIP"
3607 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3611 if test -z "$MKDIR_P"; then
3612 if test "${ac_cv_path_mkdir+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3616 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3619 test -z "$as_dir" && as_dir
=.
3620 for ac_prog
in mkdir gmkdir
; do
3621 for ac_exec_ext
in '' $ac_executable_extensions; do
3622 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3624 'mkdir (GNU coreutils) '* | \
3625 'mkdir (coreutils) '* | \
3626 'mkdir (fileutils) '4.1*)
3627 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3637 test -d .
/--version && rmdir .
/--version
3638 if test "${ac_cv_path_mkdir+set}" = set; then
3639 MKDIR_P
="$ac_cv_path_mkdir -p"
3641 # As a last resort, use the slow shell script. Don't cache a
3642 # value for MKDIR_P within a source directory, because that will
3643 # break other packages using the cache if that directory is
3644 # removed, or if the value is a relative name.
3645 MKDIR_P
="$ac_install_sh -d"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3649 $as_echo "$MKDIR_P" >&6; }
3654 [\\/$
]* | ?
:[\\/]*) ;;
3655 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3658 for ac_prog
in gawk mawk nawk
awk
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy
$ac_prog; ac_word
=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_AWK+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3667 if test -n "$AWK"; then
3668 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_exec_ext
in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_AWK
="$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 if test -n "$AWK"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3690 $as_echo "$AWK" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3697 test -n "$AWK" && break
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3701 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3703 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3704 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3705 $as_echo_n "(cached) " >&6
3707 cat >conftest.
make <<\_ACEOF
3710 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3712 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3713 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3715 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3717 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3721 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3723 $as_echo "yes" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 SET_MAKE
="MAKE=${MAKE-make}"
3731 rm -rf .tst
2>/dev
/null
3732 mkdir .tst
2>/dev
/null
3733 if test -d .tst
; then
3738 rmdir .tst
2>/dev
/null
3740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3742 # is not polluted with repeated "-I."
3743 am__isrc
=' -I$(srcdir)'
3744 # test to see if srcdir already configured
3745 if test -f $srcdir/config.status
; then
3746 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3750 # test whether we have cygpath
3751 if test -z "$CYGPATH_W"; then
3752 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3753 CYGPATH_W
='cygpath -w'
3760 # Define the identity of the package.
3765 cat >>confdefs.h
<<_ACEOF
3766 #define PACKAGE "$PACKAGE"
3770 cat >>confdefs.h
<<_ACEOF
3771 #define VERSION "$VERSION"
3774 # Some tools Automake needs.
3776 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3779 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3782 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3785 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3788 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3790 # We need awk for the "check" target. The system "awk" is bad on
3792 # Always define AMTAR for backward compatibility.
3794 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3796 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3805 lispdir
='${datadir}/emacs/${version}/lisp'
3806 leimdir
='${datadir}/emacs/${version}/leim'
3807 standardlisppath
='${lispdir}:${leimdir}'
3808 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3809 '${datadir}/emacs/site-lisp'
3810 lisppath
='${locallisppath}:${standardlisppath}'
3811 etcdir
='${datadir}/emacs/${version}/etc'
3812 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3813 docdir
='${datadir}/emacs/${version}/etc'
3814 gamedir
='${localstatedir}/games/emacs'
3817 # Check whether --with-all was given.
3818 if test "${with_all+set}" = set; then :
3819 withval
=$with_all; with_features
=$withval
3828 # Check whether --with-pop was given.
3829 if test "${with_pop+set}" = set; then :
3832 with_pop
=$with_features
3835 if test "$with_pop" = yes; then
3836 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3841 # Check whether --with-kerberos was given.
3842 if test "${with_kerberos+set}" = set; then :
3843 withval
=$with_kerberos;
3848 if test "$with_kerberos" != no
; then
3849 $as_echo "#define KERBEROS 1" >>confdefs.h
3854 # Check whether --with-kerberos5 was given.
3855 if test "${with_kerberos5+set}" = set; then :
3856 withval
=$with_kerberos5;
3861 if test "${with_kerberos5}" != no
; then
3862 if test "${with_kerberos}" = no
; then
3864 $as_echo "#define KERBEROS 1" >>confdefs.h
3868 $as_echo "#define KERBEROS5 1" >>confdefs.h
3873 # Check whether --with-hesiod was given.
3874 if test "${with_hesiod+set}" = set; then :
3875 withval
=$with_hesiod;
3880 if test "$with_hesiod" != no
; then
3882 $as_echo "#define HESIOD 1" >>confdefs.h
3887 # Check whether --with-mmdf was given.
3888 if test "${with_mmdf+set}" = set; then :
3894 if test "$with_mmdf" != no
; then
3896 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3901 # Check whether --with-mail-unlink was given.
3902 if test "${with_mail_unlink+set}" = set; then :
3903 withval
=$with_mail_unlink;
3908 if test "$with_mail_unlink" != no
; then
3910 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3915 # Check whether --with-mailhost was given.
3916 if test "${with_mailhost+set}" = set; then :
3917 withval
=$with_mailhost;
3918 cat >>confdefs.h
<<_ACEOF
3919 #define MAILHOST "$withval"
3926 # Check whether --with-sound was given.
3927 if test "${with_sound+set}" = set; then :
3928 withval
=$with_sound;
3930 with_sound
=$with_features
3935 # Check whether --with-x-toolkit was given.
3936 if test "${with_x_toolkit+set}" = set; then :
3937 withval
=$with_x_toolkit; case "${withval}" in
3938 y | ye |
yes ) val
=gtk
;;
3940 l | lu | luc | luci | lucid
) val
=lucid
;;
3941 a |
at | ath | athe | athen | athena
) val
=athena
;;
3942 m | mo | mot | moti | motif
) val
=motif
;;
3943 g | gt | gtk
) val
=gtk
;;
3947 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3949 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3950 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3959 # Check whether --with-wide-int was given.
3960 if test "${with_wide_int+set}" = set; then :
3961 withval
=$with_wide_int;
3966 if test "$with_wide_int" = yes; then
3968 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3973 # Check whether --with-xpm was given.
3974 if test "${with_xpm+set}" = set; then :
3977 with_xpm
=$with_features
3981 # Check whether --with-jpeg was given.
3982 if test "${with_jpeg+set}" = set; then :
3985 with_jpeg
=$with_features
3989 # Check whether --with-tiff was given.
3990 if test "${with_tiff+set}" = set; then :
3993 with_tiff
=$with_features
3997 # Check whether --with-gif was given.
3998 if test "${with_gif+set}" = set; then :
4001 with_gif
=$with_features
4005 # Check whether --with-png was given.
4006 if test "${with_png+set}" = set; then :
4009 with_png
=$with_features
4013 # Check whether --with-rsvg was given.
4014 if test "${with_rsvg+set}" = set; then :
4017 with_rsvg
=$with_features
4021 # Check whether --with-xml2 was given.
4022 if test "${with_xml2+set}" = set; then :
4025 with_xml2
=$with_features
4029 # Check whether --with-imagemagick was given.
4030 if test "${with_imagemagick+set}" = set; then :
4031 withval
=$with_imagemagick;
4033 with_imagemagick
=$with_features
4038 # Check whether --with-xft was given.
4039 if test "${with_xft+set}" = set; then :
4042 with_xft
=$with_features
4046 # Check whether --with-libotf was given.
4047 if test "${with_libotf+set}" = set; then :
4048 withval
=$with_libotf;
4050 with_libotf
=$with_features
4054 # Check whether --with-m17n-flt was given.
4055 if test "${with_m17n_flt+set}" = set; then :
4056 withval
=$with_m17n_flt;
4058 with_m17n_flt
=$with_features
4063 # Check whether --with-toolkit-scroll-bars was given.
4064 if test "${with_toolkit_scroll_bars+set}" = set; then :
4065 withval
=$with_toolkit_scroll_bars;
4067 with_toolkit_scroll_bars
=$with_features
4071 # Check whether --with-xaw3d was given.
4072 if test "${with_xaw3d+set}" = set; then :
4073 withval
=$with_xaw3d;
4075 with_xaw3d
=$with_features
4079 # Check whether --with-xim was given.
4080 if test "${with_xim+set}" = set; then :
4083 with_xim
=$with_features
4087 # Check whether --with-ns was given.
4088 if test "${with_ns+set}" = set; then :
4096 # Check whether --with-gpm was given.
4097 if test "${with_gpm+set}" = set; then :
4100 with_gpm
=$with_features
4104 # Check whether --with-dbus was given.
4105 if test "${with_dbus+set}" = set; then :
4108 with_dbus
=$with_features
4112 # Check whether --with-gconf was given.
4113 if test "${with_gconf+set}" = set; then :
4114 withval
=$with_gconf;
4116 with_gconf
=$with_features
4120 # Check whether --with-gsettings was given.
4121 if test "${with_gsettings+set}" = set; then :
4122 withval
=$with_gsettings;
4124 with_gsettings
=$with_features
4128 # Check whether --with-selinux was given.
4129 if test "${with_selinux+set}" = set; then :
4130 withval
=$with_selinux;
4132 with_selinux
=$with_features
4136 # Check whether --with-gnutls was given.
4137 if test "${with_gnutls+set}" = set; then :
4138 withval
=$with_gnutls;
4140 with_gnutls
=$with_features
4144 ## For the times when you want to build Emacs but don't have
4145 ## a suitable makeinfo, and can live without the manuals.
4147 # Check whether --with-makeinfo was given.
4148 if test "${with_makeinfo+set}" = set; then :
4149 withval
=$with_makeinfo;
4151 with_makeinfo
=$with_features
4155 ## Makefile.in needs the cache file name.
4158 ## This is an option because I do not know if all info/man support
4159 ## compressed files, nor how to test if they do so.
4161 # Check whether --with-compress-info was given.
4162 if test "${with_compress_info+set}" = set; then :
4163 withval
=$with_compress_info;
4165 with_compress_info
=$with_features
4168 if test $with_compress_info = yes; then
4176 # Check whether --with-pkg-config-prog was given.
4177 if test "${with_pkg_config_prog+set}" = set; then :
4178 withval
=$with_pkg_config_prog;
4181 if test "X${with_pkg_config_prog}" != X
; then
4182 if test "${with_pkg_config_prog}" != yes; then
4183 PKG_CONFIG
="${with_pkg_config_prog}"
4189 # Check whether --with-crt-dir was given.
4190 if test "${with_crt_dir+set}" = set; then :
4191 withval
=$with_crt_dir;
4194 CRT_DIR
="${with_crt_dir}"
4197 # Check whether --with-gameuser was given.
4198 if test "${with_gameuser+set}" = set; then :
4199 withval
=$with_gameuser;
4202 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4203 && gameuser
="${with_gameuser}"
4204 test "X$gameuser" = X
&& gameuser
=games
4207 # Check whether --with-gnustep-conf was given.
4208 if test "${with_gnustep_conf+set}" = set; then :
4209 withval
=$with_gnustep_conf;
4212 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4213 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4214 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4215 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4217 # Check whether --enable-ns-self-contained was given.
4218 if test "${enable_ns_self_contained+set}" = set; then :
4219 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4221 EN_NS_SELF_CONTAINED
=yes
4225 # Check whether --enable-locallisppath was given.
4226 if test "${enable_locallisppath+set}" = set; then :
4227 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4229 elif test "${enableval}" != "yes"; then
4230 locallisppath
=${enableval}
4235 # Check whether --enable-checking was given.
4236 if test "${enable_checking+set}" = set; then :
4237 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4240 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4241 for check
in $ac_checking_flags
4244 # these set all the flags to specific states
4245 yes) ac_enable_checking
=1 ;;
4246 no
) ac_enable_checking
= ;
4247 ac_gc_check_stringbytes
= ;
4248 ac_gc_check_string_overrun
= ;
4249 ac_gc_check_string_free_list
= ;
4250 ac_xmalloc_overrun
= ;
4251 ac_gc_check_cons_list
= ;
4253 all
) ac_enable_checking
=1 ;
4254 ac_gc_check_stringbytes
=1 ;
4255 ac_gc_check_string_overrun
=1 ;
4256 ac_gc_check_string_free_list
=1 ;
4257 ac_xmalloc_overrun
=1 ;
4258 ac_gc_check_cons_list
=1 ;
4259 ac_glyphs_debug
=1 ;;
4260 # these enable particular checks
4261 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4262 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4263 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4264 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4265 conslist
) ac_gc_check_cons_list
=1 ;;
4266 glyphs
) ac_glyphs_debug
=1 ;;
4267 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4272 if test x
$ac_enable_checking != x
; then
4274 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4277 if test x
$ac_gc_check_stringbytes != x
; then
4279 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4282 if test x
$ac_gc_check_string_overrun != x
; then
4284 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4287 if test x
$ac_gc_check_string_free_list != x
; then
4289 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4292 if test x
$ac_xmalloc_overrun != x
; then
4294 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4297 if test x
$ac_gc_check_cons_list != x
; then
4299 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4302 if test x
$ac_glyphs_debug != x
; then
4304 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4308 # Check whether --enable-check-lisp-object-type was given.
4309 if test "${enable_check_lisp_object_type+set}" = set; then :
4310 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4312 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4319 # Check whether --enable-profiling was given.
4320 if test "${enable_profiling+set}" = set; then :
4321 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4324 if test x
$ac_enable_profiling != x
; then
4325 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4331 # Check whether --enable-autodepend was given.
4332 if test "${enable_autodepend+set}" = set; then :
4333 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4335 ac_enable_autodepend
=yes
4339 #### Make srcdir absolute, if it isn't already. It's important to
4340 #### avoid running the path through pwd unnecessarily, since pwd can
4341 #### give you automounter prefixes, which can go away. We do all this
4342 #### so Emacs can find its files when run uninstalled.
4343 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4348 ## We may be able to use the $PWD environment variable to make this
4349 ## absolute. But sometimes PWD is inaccurate.
4350 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4351 ## but that tested only for a well-formed and valid PWD,
4352 ## it did not object when PWD was well-formed and valid but just wrong.
4353 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4357 srcdir
="`(cd ${srcdir}; pwd)`"
4360 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4363 ### Canonicalize the configuration name.
4365 # Make sure we can run config.sub.
4366 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4367 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370 $as_echo_n "checking build system type... " >&6; }
4371 if test "${ac_cv_build+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_build_alias
=$build_alias
4375 test "x$ac_build_alias" = x
&&
4376 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4377 test "x$ac_build_alias" = x
&&
4378 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4379 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384 $as_echo "$ac_cv_build" >&6; }
4385 case $ac_cv_build in
4387 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4390 ac_save_IFS
=$IFS; IFS
='-'
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4400 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404 $as_echo_n "checking host system type... " >&6; }
4405 if test "${ac_cv_host+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 if test "x$host_alias" = x
; then
4409 ac_cv_host
=$ac_cv_build
4411 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417 $as_echo "$ac_cv_host" >&6; }
4420 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4423 ac_save_IFS
=$IFS; IFS
='-'
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4433 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4437 configuration
=${host_alias-${build_alias-$host}}
4441 ### If you add support for a new configuration, add code to this
4442 ### switch statement to recognize your configuration name and select
4443 ### the appropriate operating system file.
4445 ### You would hope that you could choose an s/*.h
4446 ### file based on the operating system portion. However, it turns out
4447 ### that each s/*.h file is pretty manufacturer-specific.
4448 ### So we basically have to have a special case for each
4449 ### configuration name.
4451 ### As far as handling version numbers on operating systems is
4452 ### concerned, make sure things will fail in a fixable way. If
4453 ### /etc/MACHINES doesn't say anything about version numbers, be
4454 ### prepared to handle anything reasonably. If version numbers
4455 ### matter, be sure /etc/MACHINES says something about it.
4457 opsys
='' unported
=no
4458 case "${canonical}" in
4460 ## GNU/Linux and similar ports
4470 ## FreeBSD kernel + glibc based userland
4485 ## Apple Darwin / Mac OS X
4487 case "${canonical}" in
4494 ## Use fink packages if available.
4495 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4496 ## if test -d /sw/include && test -d /sw/lib; then
4497 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4498 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4502 ## HP 9000 series 700 and 800, running HP/UX
4503 hppa
*-hp-hpux10.2
* )
4506 hppa
*-hp-hpux1[1-9]* )
4508 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4512 rs6000-ibm-aix4.
[23]* )
4515 powerpc-ibm-aix4.
[23]* )
4518 rs6000-ibm-aix
[56]* )
4521 powerpc-ibm-aix
[56]* )
4525 ## Silicon Graphics machines
4529 # Without defining _LANGUAGE_C, things get masked out in the headers
4530 # so that, for instance, grepping for `free' in stdlib.h fails and
4531 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4532 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4537 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4538 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4539 case "${canonical}" in
4541 amd64-
*-*|x86_64-
*-*) ;;
4545 case "${canonical}" in
4546 *-sunos5.6
* |
*-solaris2.6
* )
4550 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4552 emacs_check_sunpro_c
=yes
4554 *-sunos5* |
*-solaris* )
4556 emacs_check_sunpro_c
=yes
4559 ## Watch out for a compiler that we know will not work.
4560 case "${canonical}" in
4561 *-solaris* |
*-sunos5* )
4562 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4563 ## /usr/ucb/cc doesn't work;
4564 ## we should find some other compiler that does work.
4572 ## Intel 386 machines where we don't care about the manufacturer.
4574 case "${canonical}" in
4575 *-cygwin ) opsys
=cygwin
;;
4576 *-darwin* ) opsys
=darwin
;;
4577 *-sysv4.2uw
* ) opsys
=unixware
;;
4578 *-sysv5uw* ) opsys
=unixware
;;
4579 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4580 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4589 ### If the code above didn't choose an operating system, just choose
4590 ### an operating system based on the configuration name. You really
4591 ### only want to use this when you have no idea what the right
4592 ### operating system is; if you know what operating systems a machine
4593 ### runs, it's cleaner to make it explicit in the case statement
4595 if test x
"${opsys}" = x
; then
4596 case "${canonical}" in
4597 *-gnu* ) opsys
=gnu
;;
4606 if test $unported = yes; then
4607 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4608 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4612 #### Choose a compiler.
4615 ac_cpp
='$CPP $CPPFLAGS'
4616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC
="$CC" # Let the user override the test.
4630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir
=.
4635 for ac_exec_ext
in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_CC"; then
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc
; ac_word
=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$ac_ct_CC"; then
4668 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir
=.
4675 for ac_exec_ext
in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_CC
="gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4688 if test -n "$ac_ct_CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4690 $as_echo "$ac_ct_CC" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_CC" = x
; then
4699 case $cross_compiling:$ac_tool_warned in
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned
=yes ;;
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4714 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CC+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC
="$CC" # Let the user override the test.
4723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir
=.
4728 for ac_exec_ext
in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 if test -n "$CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743 $as_echo "$CC" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4752 if test -z "$CC"; then
4753 # Extract the first word of "cc", so it can be a program name with args.
4754 set dummy cc
; ac_word
=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC
="$CC" # Let the user override the test.
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4772 ac_prog_rejected
=yes
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy
$ac_cv_prog_CC
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set CC to just the basename; use the full file name.
4792 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4808 if test -z "$CC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog
in cl.exe
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$CC"; then
4820 ac_cv_prog_CC
="$CC" # Let the user override the test.
4822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir
=.
4827 for ac_exec_ext
in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 if test -n "$CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4842 $as_echo "$CC" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CC" && break
4852 if test -z "$CC"; then
4854 for ac_prog
in cl.exe
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy
$ac_prog; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir
=.
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CC
="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 $as_echo "$ac_ct_CC" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CC" && break
4896 if test "x$ac_ct_CC" = x
; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned
=yes ;;
4912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error
"no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details." "$LINENO" 5; }
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4921 for ac_option
in --version -v -V -qversion; do
4922 { { ac_try
="$ac_compiler $ac_option >&5"
4924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4931 if test -s conftest.err; then
4933 ... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4937 rm -f conftest.er1 conftest.err
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4953 ac_clean_files_save=$ac_clean_files
4954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4955 # Try to create an executable without -o first, disregard a.out.
4956 # It will help us diagnose broken compilers, and finding out an intuition
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4959 $as_echo_n "checking whether the C compiler works... " >&6; }
4960 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4962 # The possible output files:
4963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4966 for ac_file in $ac_files
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4975 if { { ac_try="$ac_link_default"
4977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4978 *) ac_try_echo
=$ac_try;;
4980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981 $as_echo "$ac_try_echo"; } >&5
4982 (eval "$ac_link_default") 2>&5
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
4986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4989 # so that the user can short-circuit this test for compilers unknown to
4991 for ac_file
in $ac_files ''
4993 test -f "$ac_file" ||
continue
4995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4998 # We found the default executable, but exeext='' is most
5002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5004 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5006 # We set ac_cv_exeext here because the later test for it is not
5007 # safe: cross compilers may not add the suffix if given an `-o'
5008 # argument, so we may need to know it at that point already.
5009 # Even if this section looks crufty: it has the advantage of
5016 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5021 if test -z "$ac_file"; then :
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { as_fn_set_status
77
5030 as_fn_error
"C compiler cannot create executables
5031 See \`config.log' for more details." "$LINENO" 5; }; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5037 $as_echo_n "checking for C compiler default output file name... " >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5039 $as_echo "$ac_file" >&6; }
5040 ac_exeext
=$ac_cv_exeext
5042 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5043 ac_clean_files
=$ac_clean_files_save
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5045 $as_echo_n "checking for suffix of executables... " >&6; }
5046 if { { ac_try
="$ac_link"
5048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5052 $as_echo "$ac_try_echo"; } >&5
5053 (eval "$ac_link") 2>&5
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }; then :
5057 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5058 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5059 # work properly (i.e., refer to `conftest.exe'), while it won't with
5061 for ac_file
in conftest.exe conftest conftest.
*; do
5062 test -f "$ac_file" ||
continue
5064 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5065 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5074 See \`config.log' for more details." "$LINENO" 5; }
5076 rm -f conftest conftest
$ac_cv_exeext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5078 $as_echo "$ac_cv_exeext" >&6; }
5080 rm -f conftest.
$ac_ext
5081 EXEEXT
=$ac_cv_exeext
5083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5089 FILE *f = fopen ("conftest.out", "w");
5090 return ferror (f) || fclose (f) != 0;
5096 ac_clean_files
="$ac_clean_files conftest.out"
5097 # Check that the compiler produces executables we can run. If not, either
5098 # the compiler is broken, or we cross compile.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5100 $as_echo_n "checking whether we are cross compiling... " >&6; }
5101 if test "$cross_compiling" != yes; then
5102 { { ac_try
="$ac_link"
5104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5108 $as_echo "$ac_try_echo"; } >&5
5109 (eval "$ac_link") 2>&5
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }
5113 if { ac_try='./conftest$ac_cv_exeext'
5114 { { case "(($ac_try" in
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_try") 2>&5
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; }; then
5126 if test "$cross_compiling" = maybe
; then
5129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5131 as_fn_error
"cannot run C compiled programs.
5132 If you meant to cross compile, use \`--host'.
5133 See \`config.log' for more details." "$LINENO" 5; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5138 $as_echo "$cross_compiling" >&6; }
5140 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5141 ac_clean_files
=$ac_clean_files_save
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5143 $as_echo_n "checking for suffix of object files... " >&6; }
5144 if test "${ac_cv_objext+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5158 rm -f conftest.o conftest.obj
5159 if { { ac_try
="$ac_compile"
5161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5165 $as_echo "$ac_try_echo"; } >&5
5166 (eval "$ac_compile") 2>&5
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then :
5170 for ac_file in conftest.o conftest.obj conftest.*; do
5171 test -f "$ac_file" || continue;
5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5179 $as_echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error "cannot compute suffix of object files
: cannot compile
5185 See \
`config.log' for more details." "$LINENO" 5; }
5187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5190 $as_echo "$ac_cv_objext" >&6; }
5191 OBJEXT=$ac_cv_objext
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5194 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5212 if ac_fn_c_try_compile "$LINENO"; then :
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5222 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5223 if test $ac_compiler_gnu = yes; then
5228 ac_test_CFLAGS=${CFLAGS+set}
5229 ac_save_CFLAGS=$CFLAGS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5231 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5232 if test "${ac_cv_prog_cc_g+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 ac_save_c_werror_flag=$ac_c_werror_flag
5236 ac_c_werror_flag=yes
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"; then :
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5265 if ac_fn_c_try_compile "$LINENO"; then :
5268 ac_c_werror_flag=$ac_save_c_werror_flag
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5281 if ac_fn_c_try_compile "$LINENO"; then :
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_c_werror_flag=$ac_save_c_werror_flag
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5292 $as_echo "$ac_cv_prog_cc_g" >&6; }
5293 if test "$ac_test_CFLAGS" = set; then
5294 CFLAGS=$ac_save_CFLAGS
5295 elif test $ac_cv_prog_cc_g = yes; then
5296 if test "$GCC" = yes; then
5302 if test "$GCC" = yes; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5309 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5310 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 ac_cv_prog_cc_c89=no
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5319 #include <sys/types.h>
5320 #include <sys/stat.h>
5321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5322 struct buf { int x; };
5323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5324 static char *e (p, i)
5330 static char *f (char * (*g) (char **, int), char **p, ...)
5335 s = g (p, va_arg (v,int));
5340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5341 function prototypes and stuff, but not '\xHH' hex character constants.
5342 These don't provoke an error unfortunately, instead are silently treated
5343 as 'x'. The following induces an error, until -std is added to get
5344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5345 array size at least. It's necessary to write '\x00'==0 to get something
5346 that's true only with -std. */
5347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5350 inside strings and character constants. */
5352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5354 int test (int i, double x);
5355 struct s1 {int (*f) (int a);};
5356 struct s2 {int (*f) (double a);};
5357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5371 CC="$ac_save_CC $ac_arg"
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_prog_cc_c89=$ac_arg
5375 rm -f core conftest.err conftest.$ac_objext
5376 test "x$ac_cv_prog_cc_c89" != "xno" && break
5378 rm -f conftest.$ac_ext
5383 case "x$ac_cv_prog_cc_c89" in
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5386 $as_echo "none needed" >&6; } ;;
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5389 $as_echo "unsupported" >&6; } ;;
5391 CC="$CC $ac_cv_prog_cc_c89"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5395 if test "x$ac_cv_prog_cc_c89" != xno; then :
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 DEPDIR="${am__leading_dot}deps"
5406 ac_config_commands="$ac_config_commands depfiles"
5409 am_make=${MAKE-make}
5410 cat > confinc << 'END'
5412 @echo this is the am__doit target
5415 # If we don't find an include directive, just comment out the code.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5417 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5421 # First try GNU make style include.
5422 echo "include confinc" > confmf
5423 # Ignore all kinds of additional output from `make'.
5424 case `$am_make -s -f confmf 2> /dev/null` in #(
5425 *the\ am__doit\ target*)
5431 # Now try BSD make style include.
5432 if test "$am__include" = "#"; then
5433 echo '.include
"confinc"' > confmf
5434 case `$am_make -s -f confmf 2> /dev/null` in #(
5435 *the\ am__doit\ target*)
5436 am__include=.include
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5445 $as_echo "$_am_result" >&6; }
5446 rm -f confinc confmf
5448 # Check whether --enable-dependency-tracking was given.
5449 if test "${enable_dependency_tracking+set}" = set; then :
5450 enableval=$enable_dependency_tracking;
5453 if test "x$enable_dependency_tracking" != xno; then
5454 am_depcomp="$ac_aux_dir/depcomp"
5457 if test "x$enable_dependency_tracking" != xno
; then
5467 depcc
="$CC" am_compiler_list
=
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5470 $as_echo_n "checking dependency style of $depcc... " >&6; }
5471 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5475 # We make a subdir and do the tests there. Otherwise we can end up
5476 # making bogus files that we don't know about and never remove. For
5477 # instance it was reported that on HP-UX the gcc test will end up
5478 # making a dummy file named `D' -- because `-MD' means `put the output
5481 # Copy depcomp to subdir because otherwise we won't find it if we're
5482 # using a relative directory.
5483 cp "$am_depcomp" conftest.dir
5485 # We will build objects and dependencies in a subdirectory because
5486 # it helps to detect inapplicable dependency modes. For instance
5487 # both Tru64's cc and ICC support -MD to output dependencies as a
5488 # side effect of compilation, but ICC will put the dependencies in
5489 # the current directory while Tru64 will put them in the object
5493 am_cv_CC_dependencies_compiler_type
=none
5494 if test "$am_compiler_list" = ""; then
5495 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5498 case " $depcc " in #(
5499 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5502 for depmode
in $am_compiler_list; do
5503 # Setup a source with many dependencies, because some compilers
5504 # like to wrap large dependency lists on column 80 (with \), and
5505 # we should not choose a depcomp mode which is confused by this.
5507 # We need to recreate these files for each test, as the compiler may
5508 # overwrite some of them when testing with obscure command lines.
5509 # This happens at least with the AIX C compiler.
5511 for i
in 1 2 3 4 5 6; do
5512 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5514 # Solaris 8's {/usr,}/bin/sh.
5515 touch sub
/conftst
$i.h
5517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5520 # mode. It turns out that the SunPro C++ compiler does not properly
5521 # handle `-M -o', and we need to detect this. Also, some Intel
5522 # versions had trouble with output in subdirs
5523 am__obj
=sub
/conftest.
${OBJEXT-o}
5524 am__minus_obj
="-o $am__obj"
5527 # This depmode causes a compiler race in universal mode.
5528 test "$am__universal" = false ||
continue
5531 # after this tag, mechanisms are not by side-effect, so they'll
5532 # only be used when explicitly requested
5533 if test "x$enable_dependency_tracking" = xyes
; then
5539 msvisualcpp | msvcmsys
)
5540 # This compiler won't grok `-c -o', but also, the minuso test has
5541 # not run yet. These depmodes are late enough in the game, and
5542 # so weak that their functioning should not be impacted.
5543 am__obj
=conftest.
${OBJEXT-o}
5548 if depmode
=$depmode \
5549 source=sub
/conftest.c object
=$am__obj \
5550 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5551 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5552 >/dev
/null
2>conftest.err
&&
5553 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5555 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5556 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5557 # icc doesn't choke on unknown options, it will just issue warnings
5558 # or remarks (even with -Werror). So we grep stderr for any message
5559 # that says an option was ignored or not supported.
5560 # When given -MP, icc 7.0 and 7.1 complain thusly:
5561 # icc: Command line warning: ignoring option '-M'; no argument required
5562 # The diagnosis changed in icc 8.0:
5563 # icc: Command line remark: option '-MP' not supported
5564 if (grep 'ignoring option' conftest.err ||
5565 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5566 am_cv_CC_dependencies_compiler_type
=$depmode
5575 am_cv_CC_dependencies_compiler_type
=none
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5581 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5584 test "x$enable_dependency_tracking" != xno \
5585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5587 am__fastdepCC_FALSE
='#'
5589 am__fastdepCC_TRUE
='#'
5590 am__fastdepCC_FALSE
=
5594 if test "x$CC" != xcc
; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5601 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5602 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5603 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5604 $as_echo_n "(cached) " >&6
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5617 # Make sure it works both with $CC and with simple cc.
5618 # We do the test twice because some compilers refuse to overwrite an
5619 # existing .o file with -o, though they will create one.
5620 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5622 if { { case "(($ac_try" in
5623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5627 $as_echo "$ac_try_echo"; } >&5
5628 (eval "$ac_try") 2>&5
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; } &&
5632 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5634 *) ac_try_echo
=$ac_try;;
5636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; };
5643 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5644 if test "x$CC" != xcc
; then
5645 # Test first that cc exists at all.
5646 if { ac_try
='cc -c conftest.$ac_ext >&5'
5647 { { case "(($ac_try" in
5648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; }; }; then
5657 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5661 *) ac_try_echo
=$ac_try;;
5663 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5683 # cc exists but doesn't like -o.
5684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 rm -f core conftest*
5694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5701 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5705 # FIXME: we rely on the cache variable name because
5706 # there is no other way.
5708 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5709 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5710 if test "$am_t" != yes; then
5711 # Losing compiler, so override with the script.
5712 # FIXME: It is wrong to rewrite CC.
5713 # But if we don't then we get into trouble of one sort or another.
5714 # A longer-term fix would be to have automake use am__CC in this case,
5715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5716 CC="$am_aux_dir/compile $CC"
5721 if test x$GCC = xyes; then
5722 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5724 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5727 # Avoid gnulib's threadlib module, as we do threads our own way.
5730 # Initialize gnulib right after choosing the compiler.
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5739 # On Suns, sometimes $CPP names a directory.
5740 if test -n "$CPP" && test -d "$CPP"; then
5743 if test -z "$CPP"; then
5744 if test "${ac_cv_prog_CPP+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5751 for ac_c_preproc_warn_flag in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5762 # include <limits.h>
5764 # include <assert.h>
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5771 # Broken: fails on valid input.
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5786 # Passes both tests.
5790 rm -f conftest.err conftest.$ac_ext
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.err conftest.
$ac_ext
5795 if $ac_preproc_ok; then :
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5808 $as_echo "$CPP" >&6; }
5810 for ac_c_preproc_warn_flag
in '' yes
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 # include <limits.h>
5823 # include <assert.h>
5827 if ac_fn_c_try_cpp
"$LINENO"; then :
5830 # Broken: fails on valid input.
5833 rm -f conftest.err conftest.
$ac_ext
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <ac_nonexistent.h>
5841 if ac_fn_c_try_cpp
"$LINENO"; then :
5842 # Broken: success on invalid input.
5845 # Passes both tests.
5849 rm -f conftest.err conftest.
$ac_ext
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.
$ac_ext
5854 if $ac_preproc_ok; then :
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5860 See \`config.log' for more details." "$LINENO" 5; }
5864 ac_cpp
='$CPP $CPPFLAGS'
5865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5872 if test "${ac_cv_path_GREP+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 if test -z "$GREP"; then
5876 ac_path_GREP_found
=false
5877 # Loop through the user's path and test for each of PROGNAME-LIST
5878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5879 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5882 test -z "$as_dir" && as_dir
=.
5883 for ac_prog
in grep ggrep
; do
5884 for ac_exec_ext
in '' $ac_executable_extensions; do
5885 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5887 # Check for GNU ac_path_GREP and select it if it is found.
5888 # Check for GNU $ac_path_GREP
5889 case `"$ac_path_GREP" --version 2>&1` in
5891 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5894 $as_echo_n 0123456789 >"conftest.in"
5897 cat "conftest.in" "conftest.in" >"conftest.tmp"
5898 mv "conftest.tmp" "conftest.in"
5899 cp "conftest.in" "conftest.nl"
5900 $as_echo 'GREP' >> "conftest.nl"
5901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5902 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5903 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5905 # Best one so far, save it but keep looking for a better one
5906 ac_cv_path_GREP
="$ac_path_GREP"
5907 ac_path_GREP_max
=$ac_count
5909 # 10*(2^10) chars as input seems more than enough
5910 test $ac_count -gt 10 && break
5912 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5915 $ac_path_GREP_found && break 3
5920 if test -z "$ac_cv_path_GREP"; then
5921 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924 ac_cv_path_GREP
=$GREP
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5929 $as_echo "$ac_cv_path_GREP" >&6; }
5930 GREP
="$ac_cv_path_GREP"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5934 $as_echo_n "checking for egrep... " >&6; }
5935 if test "${ac_cv_path_EGREP+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5938 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5939 then ac_cv_path_EGREP
="$GREP -E"
5941 if test -z "$EGREP"; then
5942 ac_path_EGREP_found
=false
5943 # Loop through the user's path and test for each of PROGNAME-LIST
5944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5945 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5948 test -z "$as_dir" && as_dir
=.
5949 for ac_prog
in egrep; do
5950 for ac_exec_ext
in '' $ac_executable_extensions; do
5951 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5953 # Check for GNU ac_path_EGREP and select it if it is found.
5954 # Check for GNU $ac_path_EGREP
5955 case `"$ac_path_EGREP" --version 2>&1` in
5957 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5960 $as_echo_n 0123456789 >"conftest.in"
5963 cat "conftest.in" "conftest.in" >"conftest.tmp"
5964 mv "conftest.tmp" "conftest.in"
5965 cp "conftest.in" "conftest.nl"
5966 $as_echo 'EGREP' >> "conftest.nl"
5967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5968 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5969 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5971 # Best one so far, save it but keep looking for a better one
5972 ac_cv_path_EGREP
="$ac_path_EGREP"
5973 ac_path_EGREP_max
=$ac_count
5975 # 10*(2^10) chars as input seems more than enough
5976 test $ac_count -gt 10 && break
5978 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5981 $ac_path_EGREP_found && break 3
5986 if test -z "$ac_cv_path_EGREP"; then
5987 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5990 ac_cv_path_EGREP
=$EGREP
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5996 $as_echo "$ac_cv_path_EGREP" >&6; }
5997 EGREP
="$ac_cv_path_EGREP"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6003 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6004 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6018 gl_cv_c_amsterdam_compiler
=yes
6020 gl_cv_c_amsterdam_compiler
=no
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6027 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6028 if test -z "$AR"; then
6029 if test $gl_cv_c_amsterdam_compiler = yes; then
6031 if test -z "$ARFLAGS"; then
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6037 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_AR+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -n "$AR"; then
6044 ac_cv_prog_AR
="$AR" # Let the user override the test.
6046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir
=.
6051 for ac_exec_ext
in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 if test -n "$AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6066 $as_echo "$AR" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6074 if test -z "$ac_cv_prog_AR"; then
6076 # Extract the first word of "ar", so it can be a program name with args.
6077 set dummy
ar; ac_word
=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 if test -n "$ac_ct_AR"; then
6084 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir
=.
6091 for ac_exec_ext
in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_AR
="ar"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6104 if test -n "$ac_ct_AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6106 $as_echo "$ac_ct_AR" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 if test "x$ac_ct_AR" = x
; then
6115 case $cross_compiling:$ac_tool_warned in
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned
=yes ;;
6127 if test -z "$ARFLAGS"; then
6132 if test -z "$ARFLAGS"; then
6138 if test -z "$RANLIB"; then
6139 if test $gl_cv_c_amsterdam_compiler = yes; then
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6144 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$RANLIB"; then
6151 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir
=.
6158 for ac_exec_ext
in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 RANLIB
=$ac_cv_prog_RANLIB
6171 if test -n "$RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6173 $as_echo "$RANLIB" >&6; }
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6181 if test -z "$ac_cv_prog_RANLIB"; then
6182 ac_ct_RANLIB
=$RANLIB
6183 # Extract the first word of "ranlib", so it can be a program name with args.
6184 set dummy ranlib
; ac_word
=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6190 if test -n "$ac_ct_RANLIB"; then
6191 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir
=.
6198 for ac_exec_ext
in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6211 if test -n "$ac_ct_RANLIB"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6213 $as_echo "$ac_ct_RANLIB" >&6; }
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6219 if test "x$ac_ct_RANLIB" = x
; then
6222 case $cross_compiling:$ac_tool_warned in
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned
=yes ;;
6228 RANLIB
=$ac_ct_RANLIB
6231 RANLIB
="$ac_cv_prog_RANLIB"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6239 $as_echo_n "checking for ANSI C header files... " >&6; }
6240 if test "${ac_cv_header_stdc+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6258 if ac_fn_c_try_compile
"$LINENO"; then :
6259 ac_cv_header_stdc
=yes
6261 ac_cv_header_stdc
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev
/null
2>&1; then :
6276 ac_cv_header_stdc
=no
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "free" >/dev
/null
2>&1; then :
6293 ac_cv_header_stdc
=no
6299 if test $ac_cv_header_stdc = yes; then
6300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6301 if test "$cross_compiling" = yes; then :
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6308 #if ((' ' & 0x0FF) == 0x020)
6309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6312 # define ISLOWER(c) \
6313 (('a' <= (c) && (c) <= 'i') \
6314 || ('j' <= (c) && (c) <= 'r') \
6315 || ('s' <= (c) && (c) <= 'z'))
6316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6324 for (i = 0; i < 256; i++)
6325 if (XOR (islower (i), ISLOWER (i))
6326 || toupper (i) != TOUPPER (i))
6331 if ac_fn_c_try_run
"$LINENO"; then :
6334 ac_cv_header_stdc
=no
6336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6343 $as_echo "$ac_cv_header_stdc" >&6; }
6344 if test $ac_cv_header_stdc = yes; then
6346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6352 inttypes.h stdint.h unistd.h
6354 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 eval as_val
=\$
$as_ac_Header
6358 if test "x$as_val" = x
""yes; then :
6359 cat >>confdefs.h
<<_ACEOF
6360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6371 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6372 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6379 if test "$MINIX" = yes; then
6381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6387 $as_echo "#define _MINIX 1" >>confdefs.h
6394 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6401 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6402 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6408 # define __EXTENSIONS__ 1
6409 $ac_includes_default
6418 if ac_fn_c_try_compile
"$LINENO"; then :
6419 ac_cv_safe_to_define___extensions__
=yes
6421 ac_cv_safe_to_define___extensions__
=no
6423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6426 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6427 test $ac_cv_safe_to_define___extensions__ = yes &&
6428 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6430 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6447 # Check whether --enable-largefile was given.
6448 if test "${enable_largefile+set}" = set; then :
6449 enableval
=$enable_largefile;
6452 if test "$enable_largefile" != no
; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6455 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6456 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6459 ac_cv_sys_largefile_CC
=no
6460 if test "$GCC" != yes; then
6463 # IRIX 6.2 and later do not support large files by default,
6464 # so use the C compiler's -n32 option if that helps.
6465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6468 /* Check that off_t can represent 2**63 - 1 correctly.
6469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6470 since some C++ compilers masquerading as C compilers
6471 incorrectly reject 9223372036854775807. */
6472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6474 && LARGE_OFF_T % 2147483647 == 1)
6484 if ac_fn_c_try_compile
"$LINENO"; then :
6487 rm -f core conftest.err conftest.
$ac_objext
6489 if ac_fn_c_try_compile
"$LINENO"; then :
6490 ac_cv_sys_largefile_CC
=' -n32'; break
6492 rm -f core conftest.err conftest.
$ac_objext
6496 rm -f conftest.
$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6500 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6501 if test "$ac_cv_sys_largefile_CC" != no
; then
6502 CC
=$CC$ac_cv_sys_largefile_CC
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6506 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6507 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <sys/types.h>
6514 /* Check that off_t can represent 2**63 - 1 correctly.
6515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6516 since some C++ compilers masquerading as C compilers
6517 incorrectly reject 9223372036854775807. */
6518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6520 && LARGE_OFF_T % 2147483647 == 1)
6530 if ac_fn_c_try_compile
"$LINENO"; then :
6531 ac_cv_sys_file_offset_bits
=no
; break
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #define _FILE_OFFSET_BITS 64
6537 #include <sys/types.h>
6538 /* Check that off_t can represent 2**63 - 1 correctly.
6539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6540 since some C++ compilers masquerading as C compilers
6541 incorrectly reject 9223372036854775807. */
6542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6544 && LARGE_OFF_T % 2147483647 == 1)
6554 if ac_fn_c_try_compile
"$LINENO"; then :
6555 ac_cv_sys_file_offset_bits
=64; break
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 ac_cv_sys_file_offset_bits
=unknown
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6563 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6564 case $ac_cv_sys_file_offset_bits in #(
6567 cat >>confdefs.h
<<_ACEOF
6568 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6573 if test $ac_cv_sys_file_offset_bits = unknown
; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6575 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6576 if test "${ac_cv_sys_large_files+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6599 if ac_fn_c_try_compile
"$LINENO"; then :
6600 ac_cv_sys_large_files
=no
; break
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #define _LARGE_FILES 1
6606 #include <sys/types.h>
6607 /* Check that off_t can represent 2**63 - 1 correctly.
6608 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6609 since some C++ compilers masquerading as C compilers
6610 incorrectly reject 9223372036854775807. */
6611 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6613 && LARGE_OFF_T % 2147483647 == 1)
6623 if ac_fn_c_try_compile
"$LINENO"; then :
6624 ac_cv_sys_large_files
=1; break
6626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 ac_cv_sys_large_files
=unknown
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6632 $as_echo "$ac_cv_sys_large_files" >&6; }
6633 case $ac_cv_sys_large_files in #(
6636 cat >>confdefs.h
<<_ACEOF
6637 #define _LARGE_FILES $ac_cv_sys_large_files
6647 case $ac_cv_prog_cc_stdc in #(
6649 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6652 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6653 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6656 ac_cv_prog_cc_c99
=no
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6661 #include <stdbool.h>
6666 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6667 #define debug(...) fprintf (stderr, __VA_ARGS__)
6668 #define showlist(...) puts (#__VA_ARGS__)
6669 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6671 test_varargs_macros (void)
6676 debug ("X = %d\n", x);
6677 showlist (The first, second, and third items.);
6678 report (x>y, "x is %d but y is %d", x, y);
6681 // Check long long types.
6682 #define BIG64 18446744073709551615ull
6683 #define BIG32 4294967295ul
6684 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6686 your preprocessor is broken;
6690 your preprocessor is broken;
6692 static long long int bignum = -9223372036854775807LL;
6693 static unsigned long long int ubignum = BIG64;
6695 struct incomplete_array
6703 const wchar_t *name;
6707 typedef const char *ccp;
6710 test_restrict (ccp restrict text)
6712 // See if C++-style comments work.
6713 // Iterate through items via the restricted pointer.
6714 // Also check for declarations in for loops.
6715 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6720 // Check varargs and va_copy.
6722 test_varargs (const char *format, ...)
6725 va_start (args, format);
6727 va_copy (args_copy, args);
6738 str = va_arg (args_copy, const char *);
6741 number = va_arg (args_copy, int);
6744 fnumber = va_arg (args_copy, double);
6759 _Bool success = false;
6762 if (test_restrict ("String literal") == 0)
6764 char *restrict newvar = "Another string";
6767 test_varargs ("s, d' f .", "string", 65, 34.234);
6768 test_varargs_macros ();
6770 // Check flexible array members.
6771 struct incomplete_array *ia =
6772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6774 for (int i = 0; i < ia->datasize; ++i)
6775 ia->data[i] = i * 1.234;
6777 // Check named initializers.
6778 struct named_init ni = {
6780 .name = L"Test wide string",
6781 .average = 543.34343,
6786 int dynamic_array[ni.number];
6787 dynamic_array[ni.number - 1] = 543;
6789 // work around unused variable warnings
6790 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6791 || dynamic_array[ni.number - 1] != 543);
6797 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6799 CC
="$ac_save_CC $ac_arg"
6800 if ac_fn_c_try_compile
"$LINENO"; then :
6801 ac_cv_prog_cc_c99
=$ac_arg
6803 rm -f core conftest.err conftest.
$ac_objext
6804 test "x$ac_cv_prog_cc_c99" != "xno" && break
6806 rm -f conftest.
$ac_ext
6811 case "x$ac_cv_prog_cc_c99" in
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6814 $as_echo "none needed" >&6; } ;;
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6817 $as_echo "unsupported" >&6; } ;;
6819 CC
="$CC $ac_cv_prog_cc_c99"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6821 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6823 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6824 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6828 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6831 ac_cv_prog_cc_c89
=no
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6837 #include <sys/types.h>
6838 #include <sys/stat.h>
6839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6840 struct buf { int x; };
6841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6842 static char *e (p, i)
6848 static char *f (char * (*g) (char **, int), char **p, ...)
6853 s = g (p, va_arg (v,int));
6858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6859 function prototypes and stuff, but not '\xHH' hex character constants.
6860 These don't provoke an error unfortunately, instead are silently treated
6861 as 'x'. The following induces an error, until -std is added to get
6862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6863 array size at least. It's necessary to write '\x00'==0 to get something
6864 that's true only with -std. */
6865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6868 inside strings and character constants. */
6870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6872 int test (int i, double x);
6873 struct s1 {int (*f) (int a);};
6874 struct s2 {int (*f) (double a);};
6875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6886 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6889 CC
="$ac_save_CC $ac_arg"
6890 if ac_fn_c_try_compile
"$LINENO"; then :
6891 ac_cv_prog_cc_c89
=$ac_arg
6893 rm -f core conftest.err conftest.
$ac_objext
6894 test "x$ac_cv_prog_cc_c89" != "xno" && break
6896 rm -f conftest.
$ac_ext
6901 case "x$ac_cv_prog_cc_c89" in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6904 $as_echo "none needed" >&6; } ;;
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6907 $as_echo "unsupported" >&6; } ;;
6909 CC
="$CC $ac_cv_prog_cc_c89"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6913 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6914 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6916 ac_cv_prog_cc_stdc
=no
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6923 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6924 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6928 case $ac_cv_prog_cc_stdc in #(
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6931 $as_echo "unsupported" >&6; } ;; #(
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934 $as_echo "none needed" >&6; } ;; #(
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6937 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6942 # Code from module alloca-opt:
6943 # Code from module allocator:
6944 # Code from module c-ctype:
6945 # Code from module c-strcase:
6946 # Code from module careadlinkat:
6947 # Code from module clock-time:
6948 # Code from module crypto/md5:
6949 # Code from module crypto/sha1:
6950 # Code from module crypto/sha256:
6951 # Code from module crypto/sha512:
6952 # Code from module dosname:
6953 # Code from module dtoastr:
6954 # Code from module dtotimespec:
6955 # Code from module dup2:
6956 # Code from module environ:
6957 # Code from module execinfo:
6958 # Code from module extensions:
6960 # Code from module extern-inline:
6961 # Code from module filemode:
6962 # Code from module getloadavg:
6963 # Code from module getopt-gnu:
6964 # Code from module getopt-posix:
6965 # Code from module gettext-h:
6966 # Code from module gettime:
6967 # Code from module gettimeofday:
6968 # Code from module ignore-value:
6969 # Code from module include_next:
6970 # Code from module intprops:
6971 # Code from module inttypes-incomplete:
6972 # Code from module largefile:
6974 # Code from module lstat:
6975 # Code from module manywarnings:
6976 # Code from module mktime:
6977 # Code from module multiarch:
6978 # Code from module nocrash:
6979 # Code from module pathmax:
6980 # Code from module pselect:
6981 # Code from module pthread_sigmask:
6982 # Code from module readlink:
6983 # Code from module signal-h:
6984 # Code from module snippet/_Noreturn:
6985 # Code from module snippet/arg-nonnull:
6986 # Code from module snippet/c++defs:
6987 # Code from module snippet/warn-on-use:
6988 # Code from module socklen:
6989 # Code from module ssize_t:
6990 # Code from module stat:
6991 # Code from module stat-time:
6992 # Code from module stdalign:
6993 # Code from module stdarg:
6997 # Code from module stdbool:
6998 # Code from module stddef:
6999 # Code from module stdint:
7000 # Code from module stdio:
7001 # Code from module stdlib:
7002 # Code from module strftime:
7003 # Code from module strtoimax:
7004 # Code from module strtoll:
7005 # Code from module strtoull:
7006 # Code from module strtoumax:
7007 # Code from module symlink:
7008 # Code from module sys_select:
7009 # Code from module sys_stat:
7010 # Code from module sys_time:
7011 # Code from module time:
7012 # Code from module time_r:
7013 # Code from module timer-time:
7014 # Code from module timespec:
7015 # Code from module timespec-add:
7016 # Code from module timespec-sub:
7017 # Code from module u64:
7018 # Code from module unistd:
7019 # Code from module utimens:
7020 # Code from module verify:
7021 # Code from module warnings:
7024 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7025 # if -g3 works and the user does not specify CFLAGS.
7026 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7027 if test "$ac_test_CFLAGS" != set; then
7030 emacs_g3_CFLAGS
='-g3';;
7032 emacs_g3_CFLAGS
='-g3 -O2';;
7034 emacs_g3_CFLAGS
='';;
7036 if test -n "$emacs_g3_CFLAGS"; then
7037 emacs_save_CFLAGS
=$CFLAGS
7038 CFLAGS
=$emacs_g3_CFLAGS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7040 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7041 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7055 if ac_fn_c_try_link
"$LINENO"; then :
7056 emacs_cv_prog_cc_g3
=yes
7058 emacs_cv_prog_cc_g3
=no
7060 rm -f core conftest.err conftest.
$ac_objext \
7061 conftest
$ac_exeext conftest.
$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7064 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7065 if test $emacs_cv_prog_cc_g3 = yes; then
7066 CFLAGS
=$emacs_g3_CFLAGS
7068 CFLAGS
=$emacs_save_CFLAGS
7073 # Check whether --enable-gcc-warnings was given.
7074 if test "${enable_gcc_warnings+set}" = set; then :
7075 enableval
=$enable_gcc_warnings; case $enableval in
7077 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7079 gl_gcc_warnings
=$enableval
7086 # Check whether --enable-link-time-optimization was given.
7087 if test "${enable_link_time_optimization+set}" = set; then :
7088 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7090 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7092 if test x
$GCC = xyes
; then
7093 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7094 if test x
$CPUS != x
; then
7100 CFLAGS
="$CFLAGS $LTO"
7101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_compile
"$LINENO"; then :
7113 ac_lto_supported
=yes
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 CFLAGS
="$old_CFLAGS"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7121 $as_echo "$ac_lto_supported" >&6; }
7122 if test "$ac_lto_supported" = "yes"; then
7123 CFLAGS
="$CFLAGS $LTO"
7129 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7130 # ------------------------------------------------
7131 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7132 # Otherwise, run RUN-IF-NOT-FOUND.
7135 # When compiling with GCC, prefer -isystem to -I when including system
7136 # include files, to avoid generating useless diagnostics for the files.
7137 if test "$gl_gcc_warnings" != yes; then
7142 # This, $nw, is the list of warnings we disable.
7145 case $with_x_toolkit in
7146 lucid | athena | motif
)
7147 # Old toolkits mishandle 'const'.
7148 nw
="$nw -Wwrite-strings"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7152 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7153 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7157 gl_save_compiler_FLAGS
="$CFLAGS"
7158 as_fn_append CFLAGS
" -Werror"
7159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7170 if ac_fn_c_try_compile
"$LINENO"; then :
7171 gl_cv_warn_c__Werror
=yes
7173 gl_cv_warn_c__Werror
=no
7175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7176 CFLAGS
="$gl_save_compiler_FLAGS"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7180 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7181 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7182 as_fn_append WERROR_CFLAGS
" -Werror"
7190 nw
="$nw -Waggregate-return" # anachronistic
7191 nw
="$nw -Wlong-long" # C90 is anachronistic
7192 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7193 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7194 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7195 nw
="$nw -Wcast-qual" # Too many warnings for now
7196 nw
="$nw -Wconversion" # Too many warnings for now
7197 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7198 nw
="$nw -Wsign-conversion" # Too many warnings for now
7199 nw
="$nw -Woverlength-strings" # Not a problem these days
7200 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7201 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7202 nw
="$nw -Wpadded" # Our structs are not padded
7203 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7204 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7205 nw
="$nw -Wformat-nonliteral" # we do this a lot
7206 nw
="$nw -Wvla" # warnings in gettext.h
7207 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7208 nw
="$nw -Wswitch-enum" # Too many warnings for now
7209 nw
="$nw -Wswitch-default" # Too many warnings for now
7210 nw
="$nw -Wfloat-equal" # warns about high-quality code
7211 nw
="$nw -Winline" # OK to ignore 'inline'
7212 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7213 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7214 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7216 # Emacs doesn't care about shadowing; see
7217 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7220 # The following lines should be removable at some point.
7221 nw
="$nw -Wstack-protector"
7222 nw
="$nw -Wstrict-overflow"
7223 nw
="$nw -Wsuggest-attribute=pure"
7227 if test -n "$GCC"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7230 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7231 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7235 gl_save_CFLAGS
="$CFLAGS"
7236 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7248 if ac_fn_c_try_compile
"$LINENO"; then :
7249 gl_cv_cc_nomfi_supported
=yes
7251 gl_cv_cc_nomfi_supported
=no
7253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7254 CFLAGS
="$gl_save_CFLAGS"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7258 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7260 if test "$gl_cv_cc_nomfi_supported" = yes; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7262 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7263 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7267 gl_save_CFLAGS
="$CFLAGS"
7268 CFLAGS
="$CFLAGS -W -Werror"
7269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 typedef struct { int a; int b; } s_t;
7285 if ac_fn_c_try_compile
"$LINENO"; then :
7286 gl_cv_cc_nomfi_needed
=no
7288 gl_cv_cc_nomfi_needed
=yes
7290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7291 CFLAGS
="$gl_save_CFLAGS"
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7296 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7301 for gl_manywarn_item
in \
7308 -Wbad-function-cast \
7309 -Wbuiltin-macro-redefined \
7315 -Wcoverage-mismatch \
7318 -Wdeprecated-declarations \
7319 -Wdisabled-optimization \
7321 -Wdouble-promotion \
7326 -Wformat-contains-nul \
7327 -Wformat-extra-args \
7328 -Wformat-nonliteral \
7331 -Wformat-zero-length \
7333 -Wfree-nonheap-object \
7334 -Wignored-qualifiers \
7336 -Wimplicit-function-declaration \
7340 -Wint-to-pointer-cast \
7341 -Winvalid-memory-model \
7343 -Wjump-misses-init \
7346 -Wmaybe-uninitialized \
7348 -Wmissing-declarations \
7349 -Wmissing-field-initializers \
7350 -Wmissing-format-attribute \
7351 -Wmissing-include-dirs \
7352 -Wmissing-noreturn \
7353 -Wmissing-parameter-type \
7354 -Wmissing-prototypes \
7361 -Wold-style-declaration \
7362 -Wold-style-definition \
7364 -Woverlength-strings \
7367 -Wpacked-bitfield-compat \
7371 -Wpointer-to-int-cast \
7376 -Wsizeof-pointer-memaccess \
7380 -Wstrict-prototypes \
7381 -Wsuggest-attribute=const \
7382 -Wsuggest-attribute=format \
7383 -Wsuggest-attribute=noreturn \
7384 -Wsuggest-attribute=pure \
7394 -Wunreachable-code \
7395 -Wunsafe-loop-optimizations \
7397 -Wunused-but-set-parameter \
7398 -Wunused-but-set-variable \
7401 -Wunused-local-typedefs \
7403 -Wunused-parameter \
7409 -Wvector-operation-performance \
7411 -Wvolatile-register-var \
7415 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7418 # Disable the missing-field-initializers warning if needed
7419 if test "$gl_cv_cc_nomfi_needed" = yes; then
7420 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7431 *" $gl_warn_item "*)
7434 gl_warn_set
="$gl_warn_set $gl_warn_item"
7441 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7443 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7444 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_compiler_FLAGS
="$CFLAGS"
7449 as_fn_append CFLAGS
" $w"
7450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_compile
"$LINENO"; then :
7462 eval "$as_gl_Warn=yes"
7464 eval "$as_gl_Warn=no"
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7467 CFLAGS
="$gl_save_compiler_FLAGS"
7470 eval ac_res
=\$
$as_gl_Warn
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7472 $as_echo "$ac_res" >&6; }
7473 eval as_val
=\$
$as_gl_Warn
7474 if test "x$as_val" = x
""yes; then :
7475 as_fn_append WARN_CFLAGS
" $w"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7481 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7482 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7486 gl_save_compiler_FLAGS
="$CFLAGS"
7487 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7499 if ac_fn_c_try_compile
"$LINENO"; then :
7500 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7502 gl_cv_warn_c__Wno_missing_field_initializers
=no
7504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 CFLAGS
="$gl_save_compiler_FLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7509 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7510 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7511 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7516 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7517 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7521 gl_save_compiler_FLAGS
="$CFLAGS"
7522 as_fn_append CFLAGS
" -Wno-sign-compare"
7523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7534 if ac_fn_c_try_compile
"$LINENO"; then :
7535 gl_cv_warn_c__Wno_sign_compare
=yes
7537 gl_cv_warn_c__Wno_sign_compare
=no
7539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7540 CFLAGS
="$gl_save_compiler_FLAGS"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7544 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7545 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7546 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7549 # Too many warnings for now
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7551 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7552 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7556 gl_save_compiler_FLAGS
="$CFLAGS"
7557 as_fn_append CFLAGS
" -Wno-type-limits"
7558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7569 if ac_fn_c_try_compile
"$LINENO"; then :
7570 gl_cv_warn_c__Wno_type_limits
=yes
7572 gl_cv_warn_c__Wno_type_limits
=no
7574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7575 CFLAGS
="$gl_save_compiler_FLAGS"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7579 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7580 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7581 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7584 # Too many warnings for now
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7586 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7587 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7591 gl_save_compiler_FLAGS
="$CFLAGS"
7592 as_fn_append CFLAGS
" -Wno-switch"
7593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7604 if ac_fn_c_try_compile
"$LINENO"; then :
7605 gl_cv_warn_c__Wno_switch
=yes
7607 gl_cv_warn_c__Wno_switch
=no
7609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 CFLAGS
="$gl_save_compiler_FLAGS"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7614 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7615 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7616 as_fn_append WARN_CFLAGS
" -Wno-switch"
7619 # Too many warnings for now
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7626 gl_save_compiler_FLAGS
="$CFLAGS"
7627 as_fn_append CFLAGS
" -Wno-unused-parameter"
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_compile
"$LINENO"; then :
7640 gl_cv_warn_c__Wno_unused_parameter
=yes
7642 gl_cv_warn_c__Wno_unused_parameter
=no
7644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 CFLAGS
="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7651 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7654 # Too many warnings for now
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7656 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7657 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7661 gl_save_compiler_FLAGS
="$CFLAGS"
7662 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7675 gl_cv_warn_c__Wno_format_nonliteral
=yes
7677 gl_cv_warn_c__Wno_format_nonliteral
=no
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 CFLAGS
="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7684 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7685 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7686 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7691 # In spite of excluding -Wlogical-op above, it is enabled, as of
7692 # gcc 4.5.0 20090517.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7699 gl_save_compiler_FLAGS
="$CFLAGS"
7700 as_fn_append CFLAGS
" -Wno-logical-op"
7701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7712 if ac_fn_c_try_compile
"$LINENO"; then :
7713 gl_cv_warn_c__Wno_logical_op
=yes
7715 gl_cv_warn_c__Wno_logical_op
=no
7717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7718 CFLAGS
="$gl_save_compiler_FLAGS"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7724 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7730 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7731 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7735 gl_save_compiler_FLAGS
="$CFLAGS"
7736 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7748 if ac_fn_c_try_compile
"$LINENO"; then :
7749 gl_cv_warn_c__fdiagnostics_show_option
=yes
7751 gl_cv_warn_c__fdiagnostics_show_option
=no
7753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7754 CFLAGS
="$gl_save_compiler_FLAGS"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7758 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7759 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7760 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7765 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7766 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7770 gl_save_compiler_FLAGS
="$CFLAGS"
7771 as_fn_append CFLAGS
" -funit-at-a-time"
7772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7783 if ac_fn_c_try_compile
"$LINENO"; then :
7784 gl_cv_warn_c__funit_at_a_time
=yes
7786 gl_cv_warn_c__funit_at_a_time
=no
7788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 CFLAGS
="$gl_save_compiler_FLAGS"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7793 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7794 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7795 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7801 $as_echo "#define lint 1" >>confdefs.h
7805 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7808 # We use a slightly smaller set of warning options for lib/.
7809 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7811 nw
="$nw -Wunused-macros"
7815 set x
$WARN_CFLAGS; shift
7819 *" $gl_warn_item "*)
7822 gl_warn_set
="$gl_warn_set $gl_warn_item"
7826 GNULIB_WARN_CFLAGS
=$gl_warn_set
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7834 $as_echo_n "checking whether ln -s works... " >&6; }
7836 if test "$LN_S" = "ln -s"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7841 $as_echo "no, using $LN_S" >&6; }
7845 # Extract the first word of "install-info", so it can be a program name with args.
7846 set dummy install-info
; ac_word
=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 case $INSTALL_INFO in
7854 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7858 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7861 test -z "$as_dir" && as_dir
=.
7862 for ac_exec_ext
in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7876 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7877 if test -n "$INSTALL_INFO"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7879 $as_echo "$INSTALL_INFO" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7886 # Extract the first word of "gzip", so it can be a program name with args.
7887 set dummy
gzip; ac_word
=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7895 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir
=.
7903 for ac_exec_ext
in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7917 if test -n "$GZIP_PROG"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7919 $as_echo "$GZIP_PROG" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7927 if test $opsys = gnu-linux
; then
7928 # Extract the first word of "paxctl", so it can be a program name with args.
7929 set dummy paxctl
; ac_word
=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7937 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7941 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7944 test -z "$as_dir" && as_dir
=.
7945 for ac_exec_ext
in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 PAXCTL
=$ac_cv_path_PAXCTL
7959 if test -n "$PAXCTL"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7961 $as_echo "$PAXCTL" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 if test "X$PAXCTL" != X
; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7970 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7982 if ac_fn_c_try_link
"$LINENO"; then :
7983 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7985 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }; PAXCTL
=""; fi
7988 rm -f core conftest.err conftest.
$ac_objext \
7989 conftest
$ac_exeext conftest.
$ac_ext
7993 ## Need makeinfo >= 4.7 (?) to build the manuals.
7994 # Extract the first word of "makeinfo", so it can be a program name with args.
7995 set dummy makeinfo
; ac_word
=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8003 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 for ac_exec_ext
in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8025 MAKEINFO
=$ac_cv_path_MAKEINFO
8026 if test -n "$MAKEINFO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8028 $as_echo "$MAKEINFO" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8035 if test "$MAKEINFO" != "no" && \
8036 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
8040 ## Makeinfo is unusual. For a released Emacs, the manuals are
8041 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8042 ## therefore in the category of "special tools" not normally required, which
8043 ## configure does not have to check for (eg autoconf itself).
8044 ## In a Bazaar checkout on the other hand, the manuals are not included.
8045 ## So makeinfo is a requirement to build from Bazaar, and configure
8046 ## should test for it as it does for any other build requirement.
8047 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8048 ## with pre-built manuals, from a Bazaar checkout.
8051 if test "$MAKEINFO" = "no"; then
8053 if test "x${with_makeinfo}" = "xno"; then
8055 elif test ! -e $srcdir/info
/emacs
; then
8056 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8057 source tree does not seem to have pre-built manuals in the \`info' directory.
8058 Either install a suitable version of makeinfo, or re-run configure
8059 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8065 INFO_OPTS
=--no-split
8070 if test x
$GCC = xyes
; then
8071 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8072 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8074 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8075 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8079 late_LDFLAGS
=$LDFLAGS
8080 if test x
$GCC = xyes
; then
8081 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8083 LDFLAGS
="$LDFLAGS -znocombreloc"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8087 $as_echo_n "checking for -znocombreloc... " >&6; }
8088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8099 if ac_fn_c_try_link
"$LINENO"; then :
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8103 LDFLAGS
=$late_LDFLAGS
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8107 rm -f core conftest.err conftest.
$ac_objext \
8108 conftest
$ac_exeext conftest.
$ac_ext
8111 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8113 your-opsys-here
) CANNOT_DUMP
=yes ;;
8116 test "$CANNOT_DUMP" = "yes" && \
8118 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8124 UNEXEC_OBJ
=unexelf.o
8126 # MSDOS uses unexcoff.o
8127 # MSWindows uses unexw32.o
8129 UNEXEC_OBJ
=unexaix.o
8135 UNEXEC_OBJ
=unexmacosx.o
8138 UNEXEC_OBJ
=unexhp9k800.o
8141 # Use the Solaris dldump() function, called from unexsol.c, to dump
8142 # emacs, instead of the generic ELF dump code found in unexelf.c.
8143 # The resulting binary has a complete symbol table, and is better
8144 # for debugging and other observability tools (debuggers, pstack, etc).
8146 # If you encounter a problem using dldump(), please consider sending
8147 # a message to the OpenSolaris tools-linking mailing list:
8148 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8150 # It is likely that dldump() works with older Solaris too, but this has
8151 # not been tested, so for now this change is for Solaris 10 or newer.
8152 UNEXEC_OBJ
=unexsol.o
8159 ## Let `ld' find image libs and similar things in /usr/local/lib.
8160 ## The system compiler, GCC, has apparently been modified to not
8161 ## look there, contrary to what a stock GCC would do.
8162 ### It's not our place to do this. See bug#10313#17.
8163 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8168 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8169 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8173 ### It's not our place to do this. See bug#10313#17.
8174 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8179 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8180 ## otherwise Emacs dumps core on elf systems.
8181 LD_SWITCH_SYSTEM
="-Z"
8186 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8188 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8189 ## which has not been defined yet. When this was handled with cpp,
8190 ## it was expanded to null when configure sourced the s/*.h file.
8191 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8192 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8193 ## (or somesuch), but because it is supposed to go at the _front_
8194 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8195 ## Compare with the gnu-linux case below, which added to the end
8196 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8197 ## LD_SWITCH_SYSTEM_TEMACS.
8200 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8207 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8208 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8212 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8213 ## With ELF, make sure that all common symbols get allocated to in the
8214 ## data section. Otherwise, the dump of temacs may miss variables in
8215 ## the shared library that have been initialized. For example, with
8216 ## GNU libc, __malloc_initialized would normally be resolved to the
8217 ## shared library's .bss section, which is fatal.
8218 if test "x$GCC" = "xyes"; then
8219 C_SWITCH_MACHINE
="-fno-common"
8221 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8224 UNEXEC_OBJ
=unexalpha.o
8233 ## Some programs in src produce warnings saying certain subprograms
8234 ## are too complex and need a MAXMEM value greater than 2000 for
8235 ## additional optimization. --nils@exp-math.uni-essen.de
8236 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8237 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8238 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8239 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8245 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8246 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8248 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8250 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8252 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8254 ## Motif needs -lgen.
8255 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8260 ### Make sure subsequent tests use flags consistent with the build flags.
8262 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8263 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8265 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8268 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8270 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8277 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8282 START_FILES
='pre-crt0.o'
8285 ## Adding -lm confuses the dynamic linker, so omit it.
8287 START_FILES
='pre-crt0.o'
8290 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8291 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8292 SYSTEM_TYPE
=berkeley-unix
8294 gnu-linux | gnu-kfreebsd
)
8295 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8296 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8298 hpux10-20 | hpux11
)
8300 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8303 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8304 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8305 SYSTEM_TYPE
=berkeley-unix
8309 SYSTEM_TYPE
=usg-unix-v
8317 cat >>confdefs.h
<<_ACEOF
8318 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8324 for file in x
$LIB_STANDARD $START_FILES; do
8326 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8330 if test "x$crt_files" != x
; then
8332 ## If user specified a crt-dir, use that unconditionally.
8335 if test "X$CRT_DIR" = "X"; then
8337 CRT_DIR
=/usr
/lib
# default
8339 case "$canonical" in
8340 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8341 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8342 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8343 ## For anything else (eg /usr/lib32), it is up the user to specify
8344 ## the location (bug#5655).
8345 ## Test for crtn.o, not just the directory, because sometimes the
8346 ## directory exists but does not have the relevant files (bug#1287).
8347 ## FIXME better to test for binary compatibility somehow.
8348 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8351 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8355 hpux10-20
) CRT_DIR
=/lib
;;
8358 test "x${GCC}" = xyes
&& crt_gcc
=yes
8364 for file in $crt_files; do
8366 ## If we're using gcc, try to determine it automatically by asking
8367 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8368 ## system-dependent default from above.]
8369 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8371 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8374 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8375 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8376 X"$crt_file" : 'X\(//\)[^/]' \| \
8377 X"$crt_file" : 'X\(//\)$' \| \
8378 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8379 $as_echo X"$crt_file" |
8380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8403 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8406 test "x$crt_missing" = x || \
8407 as_fn_error
"Required file(s) not found:$crt_missing
8408 Try using the --with-crt-dir option." "$LINENO" 5
8410 fi # crt_files != ""
8416 if test -f $CRT_DIR/crti.o
; then
8418 test -f $CRT_DIR/crtn.o || \
8419 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8421 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8422 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8428 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8429 pre_PKG_CONFIG_LIBS
=$LIBS
8431 # Extract the first word of "pkg-config", so it can be a program name with args.
8432 set dummy pkg-config
; ac_word
=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8440 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8447 test -z "$as_dir" && as_dir
=.
8448 for ac_exec_ext
in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8462 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8463 if test -n "$PKG_CONFIG"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8465 $as_echo "$PKG_CONFIG" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8476 if test "${with_sound}" != "no"; then
8477 # Sound support for GNU/Linux and the free BSDs.
8478 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8480 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8481 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8482 eval as_val
=\$
$as_ac_Header
8483 if test "x$as_val" = x
""yes; then :
8484 cat >>confdefs.h
<<_ACEOF
8485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 have_sound_header
=yes
8492 # Emulation library used on NetBSD.
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8494 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8495 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8498 ac_check_lib_save_LIBS
=$LIBS
8499 LIBS
="-lossaudio $LIBS"
8500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8513 return _oss_ioctl ();
8518 if ac_fn_c_try_link
"$LINENO"; then :
8519 ac_cv_lib_ossaudio__oss_ioctl
=yes
8521 ac_cv_lib_ossaudio__oss_ioctl
=no
8523 rm -f core conftest.err conftest.
$ac_objext \
8524 conftest
$ac_exeext conftest.
$ac_ext
8525 LIBS
=$ac_check_lib_save_LIBS
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8528 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8529 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8538 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8542 if test "$PKG_CONFIG" = "no" ; then
8545 PKG_CONFIG_MIN_VERSION
=0.9.0
8546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8548 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8550 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8551 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8552 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8559 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8560 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8562 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8569 ## If we have a custom action on failure, don't print errors, but
8570 ## do set a variable so people can do so. Do it in a subshell
8571 ## to capture any diagnostics in invoking pkg-config.
8572 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8584 if test $succeeded = yes; then
8590 if test $HAVE_ALSA = yes; then
8591 SAVE_CFLAGS
="$CFLAGS"
8593 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8594 LIBS
="$ALSA_LIBS $LIBS"
8595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <asoundlib.h>
8601 snd_lib_error_set_handler (0);
8606 if ac_fn_c_try_compile
"$LINENO"; then :
8607 emacs_alsa_normal
=yes
8609 emacs_alsa_normal
=no
8611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 if test "$emacs_alsa_normal" != yes; then
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <alsa/asoundlib.h>
8619 snd_lib_error_set_handler (0);
8624 if ac_fn_c_try_compile
"$LINENO"; then :
8625 emacs_alsa_subdir
=yes
8627 emacs_alsa_subdir
=no
8629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 if test "$emacs_alsa_subdir" != yes; then
8631 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8633 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8636 CFLAGS
="$SAVE_CFLAGS"
8638 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8639 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8641 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8645 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8647 gnu-linux|freebsd|netbsd
)
8649 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8661 for ac_header
in $ac_header_list
8663 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8666 eval as_val
=\$
$as_ac_Header
8667 if test "x$as_val" = x
""yes; then :
8668 cat >>confdefs.h
<<_ACEOF
8669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8705 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <sys/personality.h>
8712 personality (PER_LINUX32)
8717 if ac_fn_c_try_compile
"$LINENO"; then :
8718 emacs_cv_personality_linux32
=yes
8720 emacs_cv_personality_linux32
=no
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8724 $as_echo "$emacs_cv_personality_linux32" >&6; }
8726 if test $emacs_cv_personality_linux32 = yes; then
8728 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8732 for ac_header
in term.h
8734 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8735 if test "x$ac_cv_header_term_h" = x
""yes; then :
8736 cat >>confdefs.h
<<_ACEOF
8737 #define HAVE_TERM_H 1
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8746 if test "${ac_cv_header_time+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #include <sys/types.h>
8752 #include <sys/time.h>
8758 if ((struct tm *) 0)
8764 if ac_fn_c_try_compile
"$LINENO"; then :
8765 ac_cv_header_time
=yes
8767 ac_cv_header_time
=no
8769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8772 $as_echo "$ac_cv_header_time" >&6; }
8773 if test $ac_cv_header_time = yes; then
8775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8779 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8780 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8786 cat >>confdefs.h
<<_ACEOF
8787 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8790 if test $ac_cv_have_decl_sys_siglist != yes; then
8791 # For Tru64, at least:
8792 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8793 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8799 cat >>confdefs.h
<<_ACEOF
8800 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8803 if test $ac_cv_have_decl___sys_siglist = yes; then
8805 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8810 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8811 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <sys/types.h>
8817 #include <sys/wait.h>
8819 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8822 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8835 if ac_fn_c_try_compile
"$LINENO"; then :
8836 ac_cv_header_sys_wait_h
=yes
8838 ac_cv_header_sys_wait_h
=no
8840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8843 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8844 if test $ac_cv_header_sys_wait_h = yes; then
8846 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8852 $as_echo_n "checking for speed_t... " >&6; }
8853 if test "${emacs_cv_speed_t+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <termios.h>
8867 if ac_fn_c_try_compile
"$LINENO"; then :
8868 emacs_cv_speed_t
=yes
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8875 $as_echo "$emacs_cv_speed_t" >&6; }
8876 if test $emacs_cv_speed_t = yes; then
8878 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8885 for ac_header
in net
/if.h
8887 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8888 #if HAVE_SYS_SOCKET_H
8889 #include <sys/socket.h>
8892 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8893 cat >>confdefs.h
<<_ACEOF
8894 #define HAVE_NET_IF_H 1
8901 for ac_header
in ifaddrs.h
8903 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8904 #if HAVE_SYS_SOCKET_H
8905 #include <sys/socket.h>
8908 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8909 cat >>confdefs.h
<<_ACEOF
8910 #define HAVE_IFADDRS_H 1
8917 for ac_header
in net
/if_dl.h
8919 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8920 #if HAVE_SYS_SOCKET_H
8921 #include <sys/socket.h>
8924 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8925 cat >>confdefs.h
<<_ACEOF
8926 #define HAVE_NET_IF_DL_H 1
8934 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8935 #if HAVE_SYS_SOCKET_H
8936 #include <sys/socket.h>
8942 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8944 cat >>confdefs.h
<<_ACEOF
8945 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8950 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8951 #if HAVE_SYS_SOCKET_H
8952 #include <sys/socket.h>
8958 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8960 cat >>confdefs.h
<<_ACEOF
8961 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8966 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8967 #if HAVE_SYS_SOCKET_H
8968 #include <sys/socket.h>
8974 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8976 cat >>confdefs.h
<<_ACEOF
8977 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8982 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8990 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8992 cat >>confdefs.h
<<_ACEOF
8993 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8998 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8999 #if HAVE_SYS_SOCKET_H
9000 #include <sys/socket.h>
9006 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9008 cat >>confdefs.h
<<_ACEOF
9009 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9014 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$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_sa_len" = x
""yes; then :
9024 cat >>confdefs.h
<<_ACEOF
9025 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9037 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9039 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9041 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9042 if test "x$testval" != x
; then
9045 ac_enable_autodepend
=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9048 $as_echo "$HAVE_GNU_MAKE" >&6; }
9049 if test $HAVE_GNU_MAKE = yes; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9051 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9052 SAVE_CFLAGS
="$CFLAGS"
9053 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9065 if ac_fn_c_try_compile
"$LINENO"; then :
9068 ac_enable_autodepend
=no
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9071 CFLAGS
="$SAVE_CFLAGS"
9072 test -f deps.d || ac_enable_autodepend
=no
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9075 $as_echo "$ac_enable_autodepend" >&6; }
9077 if test $ac_enable_autodepend = yes; then
9078 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9079 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9080 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9081 deps_frag
=autodeps.mk
9084 deps_frag
=$srcdir/src
/$deps_frag
9090 lisp_frag
=$srcdir/src
/lisp.mk
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9095 $as_echo_n "checking for long file names... " >&6; }
9096 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9099 ac_cv_sys_long_file_names
=yes
9100 # Test for long file names in all the places we know might matter:
9101 # . the current directory, where building will happen
9102 # $prefix/lib where we will be installing things
9103 # $exec_prefix/lib likewise
9104 # $TMPDIR if set, where it might want to write temporary files
9105 # /tmp where it might want to write temporary files
9108 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9109 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9110 # in the usual case where exec_prefix is '${prefix}'.
9112 . |
/* | ?
:[\\/]*) ;; #(
9115 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9116 ac_xdir
=$ac_dir/cf$$
9117 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9118 ac_tf1
=$ac_xdir/conftest9012345
9119 ac_tf2
=$ac_xdir/conftest9012346
9120 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9121 ac_cv_sys_long_file_names
=no
9122 rm -f -r "$ac_xdir" 2>/dev
/null
9123 test $ac_cv_sys_long_file_names = no
&& break
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9127 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9128 if test $ac_cv_sys_long_file_names = yes; then
9130 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9135 #### Choose a window system.
9137 ## We leave window_system equal to none if
9138 ## we end up building without one. Any new window system should
9139 ## set window_system to an appropriate value and add objects to
9140 ## window-system-specific substs.
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9144 $as_echo_n "checking for X... " >&6; }
9147 # Check whether --with-x was given.
9148 if test "${with_x+set}" = set; then :
9152 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9153 if test "x$with_x" = xno
; then
9154 # The user explicitly disabled X.
9157 case $x_includes,$x_libraries in #(
9158 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9159 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9162 # One or both of the vars are not set, and there is no cached value.
9163 ac_x_includes
=no ac_x_libraries
=no
9164 rm -f -r conftest.dir
9165 if mkdir conftest.dir
; then
9167 cat >Imakefile
<<'_ACEOF'
9169 @echo incroot='${INCROOT}'
9171 @echo usrlibdir='${USRLIBDIR}'
9173 @echo libdir='${LIBDIR}'
9175 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9177 for ac_var
in incroot usrlibdir libdir
; do
9178 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9181 for ac_extension
in a so sl dylib la dll
; do
9182 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9183 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9184 ac_im_usrlibdir
=$ac_im_libdir; break
9187 # Screen out bogus values from the imake configuration. They are
9188 # bogus both because they are the default anyway, and because
9189 # using them would break gcc on systems where it needs fixed includes.
9190 case $ac_im_incroot in
9191 /usr
/include
) ac_x_includes
= ;;
9192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9194 case $ac_im_usrlibdir in
9195 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9200 rm -f -r conftest.dir
9203 # Standard set of common directories for X headers.
9204 # Check X11 before X11Rn because it is often a symlink to the current release.
9218 /usr/local/X11/include
9219 /usr/local/X11R7/include
9220 /usr/local/X11R6/include
9221 /usr/local/X11R5/include
9222 /usr/local/X11R4/include
9224 /usr/local/include/X11
9225 /usr/local/include/X11R7
9226 /usr/local/include/X11R6
9227 /usr/local/include/X11R5
9228 /usr/local/include/X11R4
9232 /usr/XFree86/include/X11
9236 /usr/unsupported/include
9238 /usr/local/x11r5/include
9239 /usr/lpp/Xamples/include
9241 /usr/openwin/include
9242 /usr/openwin/share/include'
9244 if test "$ac_x_includes" = no
; then
9245 # Guess where to find include files, by looking for Xlib.h.
9246 # First, try using that file with no special directory specified.
9247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9251 if ac_fn_c_try_cpp
"$LINENO"; then :
9252 # We can compile using X headers with no special include directory.
9255 for ac_dir
in $ac_x_header_dirs; do
9256 if test -r "$ac_dir/X11/Xlib.h"; then
9257 ac_x_includes
=$ac_dir
9262 rm -f conftest.err conftest.
$ac_ext
9263 fi # $ac_x_includes = no
9265 if test "$ac_x_libraries" = no
; then
9266 # Check for the libraries.
9267 # See if we find them without any special options.
9268 # Don't add to $LIBS permanently.
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <X11/Xlib.h>
9282 if ac_fn_c_try_link
"$LINENO"; then :
9284 # We can link X programs with no special library path.
9288 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9290 # Don't even attempt the hair of trying to link an X program!
9291 for ac_extension
in a so sl dylib la dll
; do
9292 if test -r "$ac_dir/libX11.$ac_extension"; then
9293 ac_x_libraries
=$ac_dir
9299 rm -f core conftest.err conftest.
$ac_objext \
9300 conftest
$ac_exeext conftest.
$ac_ext
9301 fi # $ac_x_libraries = no
9303 case $ac_x_includes,$ac_x_libraries in #(
9305 # Didn't find X, or a directory has "'" in its name.
9306 ac_cv_have_x
="have_x=no";; #(
9308 # Record where we found X for the cache.
9309 ac_cv_have_x
="have_x=yes\
9310 ac_x_includes='$ac_x_includes'\
9311 ac_x_libraries='$ac_x_libraries'"
9317 eval "$ac_cv_have_x"
9320 if test "$have_x" != yes; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9322 $as_echo "$have_x" >&6; }
9325 # If each of the values was on the command line, it overrides each guess.
9326 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9327 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9328 # Update the cache value to reflect the command line values.
9329 ac_cv_have_x
="have_x=yes\
9330 ac_x_includes='$x_includes'\
9331 ac_x_libraries='$x_libraries'"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9333 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9336 if test "$no_x" != yes; then
9340 LD_SWITCH_X_SITE_RPATH
=
9341 if test "${x_libraries}" != NONE
; then
9342 if test -n "${x_libraries}"; then
9343 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9344 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9346 x_default_search_path
=""
9347 x_search_path
=${x_libraries}
9348 if test -z "${x_search_path}"; then
9349 x_search_path
=/usr
/lib
9351 for x_library
in `echo ${x_search_path}: | \
9352 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9354 ${x_library}/X11/%L/%T/%N%C%S:\
9355 ${x_library}/X11/%l/%T/%N%C%S:\
9356 ${x_library}/X11/%T/%N%C%S:\
9357 ${x_library}/X11/%L/%T/%N%S:\
9358 ${x_library}/X11/%l/%T/%N%S:\
9359 ${x_library}/X11/%T/%N%S"
9360 if test x
"${x_default_search_path}" = x
; then
9361 x_default_search_path
=${x_search_path}
9363 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9369 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9370 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9373 if test x
"${x_includes}" = x
; then
9374 bitmapdir
=/usr
/include
/X11
/bitmaps
9376 # accumulate include directories that have X11 bitmap subdirectories
9378 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9379 if test -d "${bmd}/X11/bitmaps"; then
9380 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9382 if test -d "${bmd}/bitmaps"; then
9383 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9386 if test ${bmd_acc} != "dummyval"; then
9387 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9394 tmp_CPPFLAGS
="$CPPFLAGS"
9395 tmp_CFLAGS
="$CFLAGS"
9396 CPPFLAGS
="$CPPFLAGS -x objective-c"
9397 CFLAGS
="$CFLAGS -x objective-c"
9398 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9400 if test "${with_ns}" != no
; then
9401 if test "${opsys}" = darwin
; then
9403 ns_appdir
=`pwd`/nextstep
/Emacs.app
9404 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9405 ns_appresdir
=${ns_appdir}/Contents
/Resources
9406 ns_appsrc
=Cocoa
/Emacs.base
9407 elif test -f $GNUSTEP_CONFIG_FILE; then
9409 ns_appdir
=`pwd`/nextstep
/Emacs.app
9410 ns_appbindir
=${ns_appdir}
9411 ns_appresdir
=${ns_appdir}/Resources
9412 ns_appsrc
=GNUstep
/Emacs.base
9413 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9414 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9415 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9416 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9417 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9418 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9419 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9420 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9421 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9422 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9423 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9428 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9429 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <GNUstepBase/GSConfig.h>
9438 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9447 if ac_fn_c_try_compile
"$LINENO"; then :
9448 emacs_cv_objc_exceptions
=yes
9450 emacs_cv_objc_exceptions
=no
9452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9455 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9456 if test $emacs_cv_objc_exceptions = yes; then
9458 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9460 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9464 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9466 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9467 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9470 as_fn_error
"\`--with-ns' was specified, but the include
9471 files are missing or cannot be compiled." "$LINENO" 5
9475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #include <Foundation/NSObjCRuntime.h>
9486 if ac_fn_c_try_compile
"$LINENO"; then :
9487 ns_have_nsinteger
=yes
9489 ns_have_nsinteger
=no
9491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9492 if test $ns_have_nsinteger = yes; then
9494 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9500 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9501 ns_self_contained
=no
9504 if test "${HAVE_NS}" = yes; then
9505 if test "$with_toolkit_scroll_bars" = "no"; then
9506 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9509 window_system
=nextstep
9510 # set up packaging dirs
9511 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9512 ns_self_contained
=yes
9513 prefix
=${ns_appresdir}
9514 exec_prefix
=${ns_appbindir}
9515 libexecdir
="\${ns_appbindir}/libexec"
9516 archlibdir
="\${ns_appbindir}/libexec"
9517 docdir
="\${ns_appresdir}/etc"
9518 etcdir
="\${ns_appresdir}/etc"
9519 infodir
="\${ns_appresdir}/info"
9520 mandir
="\${ns_appresdir}/man"
9521 lispdir
="\${ns_appresdir}/lisp"
9522 leimdir
="\${ns_appresdir}/leim"
9523 INSTALL_ARCH_INDEP_EXTRA
=
9525 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9527 CFLAGS
="$tmp_CFLAGS"
9528 CPPFLAGS
="$tmp_CPPFLAGS"
9535 ## $window_system is now set to the window system we will
9543 case "${window_system}" in
9548 case "${with_x_toolkit}" in
9549 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9550 motif
) USE_X_TOOLKIT
=MOTIF
;;
9552 term_header
=gtkutil.h
9553 USE_X_TOOLKIT
=none
;;
9554 gtk2
) with_gtk2
=yes
9555 term_header
=gtkutil.h
9556 USE_X_TOOLKIT
=none
;;
9557 gtk3
) with_gtk3
=yes
9558 term_header
=gtkutil.h
9559 USE_X_TOOLKIT
=none
;;
9560 no
) USE_X_TOOLKIT
=none
;;
9561 * ) USE_X_TOOLKIT
=maybe
;;
9565 term_header
=nsterm.h
9569 if test -n "${term_header}"; then
9571 cat >>confdefs.h
<<_ACEOF
9572 #define TERM_HEADER "${term_header}"
9577 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9578 # Extract the first word of "X", so it can be a program name with args.
9579 set dummy X
; ac_word
=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9585 if test -n "$HAVE_XSERVER"; then
9586 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9592 test -z "$as_dir" && as_dir
=.
9593 for ac_exec_ext
in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_HAVE_XSERVER
="true"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9606 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9607 if test -n "$HAVE_XSERVER"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9609 $as_echo "$HAVE_XSERVER" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9616 if test "$HAVE_XSERVER" = true ||
9617 test -n "$DISPLAY" ||
9618 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9619 as_fn_error
"You seem to be running X, but no X development libraries
9620 were found. You should install the relevant development files for X
9621 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9622 sure you have development files for image handling, i.e.
9623 tiff, gif, jpeg, png and xpm.
9624 If you are sure you want Emacs compiled without X window support, pass
9626 to configure." "$LINENO" 5
9630 ### If we're using X11, we should use the X menu package.
9633 yes ) HAVE_MENUS
=yes ;;
9636 # Does the opsystem file prohibit the use of the GNU malloc?
9637 # Assume not, until told otherwise.
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9641 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9642 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9648 static void hook (void) {}
9652 malloc_set_state (malloc_get_state ());
9653 __after_morecore_hook = hook;
9654 __malloc_initialize_hook = hook;
9659 if ac_fn_c_try_link
"$LINENO"; then :
9660 emacs_cv_var_doug_lea_malloc
=yes
9662 emacs_cv_var_doug_lea_malloc
=no
9664 rm -f core conftest.err conftest.
$ac_objext \
9665 conftest
$ac_exeext conftest.
$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9668 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9669 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9674 ## darwin ld insists on the use of malloc routines in the System framework.
9675 darwin|sol2-10
) system_malloc
=yes ;;
9678 if test "${system_malloc}" = "yes"; then
9680 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9684 (The GNU allocators don't work with this system configuration.)"
9688 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9689 VMLIMIT_OBJ
=vm-limit.o
9694 if test "$doug_lea_malloc" = "yes" ; then
9695 if test "$GNU_MALLOC" = yes ; then
9697 (Using Doug Lea's new malloc from the GNU C Library.)"
9700 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9703 ## Use mmap directly for allocating larger buffers.
9704 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9705 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9706 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9708 gnu
*) REL_ALLOC
=no
;;
9712 if test x
"${REL_ALLOC}" = x
; then
9713 REL_ALLOC
=${GNU_MALLOC}
9716 use_mmap_for_buffers
=no
9718 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9728 for ac_func
in getpagesize
9730 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9731 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9732 cat >>confdefs.h
<<_ACEOF
9733 #define HAVE_GETPAGESIZE 1
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9740 $as_echo_n "checking for working mmap... " >&6; }
9741 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9742 $as_echo_n "(cached) " >&6
9744 if test "$cross_compiling" = yes; then :
9745 ac_cv_func_mmap_fixed_mapped
=no
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 $ac_includes_default
9750 /* malloc might have been renamed as rpl_malloc. */
9753 /* Thanks to Mike Haertel and Jim Avera for this test.
9754 Here is a matrix of mmap possibilities:
9755 mmap private not fixed
9756 mmap private fixed at somewhere currently unmapped
9757 mmap private fixed at somewhere already mapped
9758 mmap shared not fixed
9759 mmap shared fixed at somewhere currently unmapped
9760 mmap shared fixed at somewhere already mapped
9761 For private mappings, we should verify that changes cannot be read()
9762 back from the file, nor mmap's back from the file at a different
9763 address. (There have been systems where private was not correctly
9764 implemented like the infamous i386 svr4.0, and systems where the
9765 VM page cache was not coherent with the file system buffer cache
9766 like early versions of FreeBSD and possibly contemporary NetBSD.)
9767 For shared mappings, we should conversely verify that changes get
9768 propagated back to all the places they're supposed to be.
9770 Grep wants private fixed already mapped.
9771 The main things grep needs to know about mmap are:
9772 * does it exist and is it safe to write into the mmap'd area
9773 * how to use it (BSD variants) */
9776 #include <sys/mman.h>
9778 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9782 /* This mess was copied from the GNU getpagesize.h. */
9783 #ifndef HAVE_GETPAGESIZE
9784 # ifdef _SC_PAGESIZE
9785 # define getpagesize() sysconf(_SC_PAGESIZE)
9786 # else /* no _SC_PAGESIZE */
9787 # ifdef HAVE_SYS_PARAM_H
9788 # include <sys/param.h>
9789 # ifdef EXEC_PAGESIZE
9790 # define getpagesize() EXEC_PAGESIZE
9791 # else /* no EXEC_PAGESIZE */
9793 # define getpagesize() NBPG * CLSIZE
9796 # endif /* no CLSIZE */
9797 # else /* no NBPG */
9799 # define getpagesize() NBPC
9800 # else /* no NBPC */
9802 # define getpagesize() PAGESIZE
9803 # endif /* PAGESIZE */
9804 # endif /* no NBPC */
9805 # endif /* no NBPG */
9806 # endif /* no EXEC_PAGESIZE */
9807 # else /* no HAVE_SYS_PARAM_H */
9808 # define getpagesize() 8192 /* punt totally */
9809 # endif /* no HAVE_SYS_PARAM_H */
9810 # endif /* no _SC_PAGESIZE */
9812 #endif /* no HAVE_GETPAGESIZE */
9817 char *data, *data2, *data3;
9822 pagesize = getpagesize ();
9824 /* First, make a file with some known garbage in it. */
9825 data = (char *) malloc (pagesize);
9828 for (i = 0; i < pagesize; ++i)
9829 *(data + i) = rand ();
9831 fd = creat ("conftest.mmap", 0600);
9834 if (write (fd, data, pagesize) != pagesize)
9838 /* Next, check that the tail of a page is zero-filled. File must have
9839 non-zero length, otherwise we risk SIGBUS for entire page. */
9840 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9844 if (write (fd2, cdata2, 1) != 1)
9846 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9847 if (data2 == MAP_FAILED)
9849 for (i = 0; i < pagesize; ++i)
9853 if (munmap (data2, pagesize))
9856 /* Next, try to mmap the file at a fixed address which already has
9857 something else allocated at it. If we can, also make sure that
9858 we see the same garbage. */
9859 fd = open ("conftest.mmap", O_RDWR);
9862 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9863 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9865 for (i = 0; i < pagesize; ++i)
9866 if (*(data + i) != *(data2 + i))
9869 /* Finally, make sure that changes to the mapped area do not
9870 percolate back to the file as seen by read(). (This is a bug on
9871 some variants of i386 svr4.0.) */
9872 for (i = 0; i < pagesize; ++i)
9873 *(data2 + i) = *(data2 + i) + 1;
9874 data3 = (char *) malloc (pagesize);
9877 if (read (fd, data3, pagesize) != pagesize)
9879 for (i = 0; i < pagesize; ++i)
9880 if (*(data + i) != *(data3 + i))
9886 if ac_fn_c_try_run
"$LINENO"; then :
9887 ac_cv_func_mmap_fixed_mapped
=yes
9889 ac_cv_func_mmap_fixed_mapped
=no
9891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9897 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9898 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9900 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9903 rm -f conftest.mmap conftest.txt
9905 if test $use_mmap_for_buffers = yes; then
9907 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9912 LIBS
="$LIBS_SYSTEM $LIBS"
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9915 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9916 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9917 $as_echo_n "(cached) " >&6
9919 ac_check_lib_save_LIBS
=$LIBS
9921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9934 return dnet_ntoa ();
9939 if ac_fn_c_try_link
"$LINENO"; then :
9940 ac_cv_lib_dnet_dnet_ntoa
=yes
9942 ac_cv_lib_dnet_dnet_ntoa
=no
9944 rm -f core conftest.err conftest.
$ac_objext \
9945 conftest
$ac_exeext conftest.
$ac_ext
9946 LIBS
=$ac_check_lib_save_LIBS
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9949 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9950 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9951 cat >>confdefs.h
<<_ACEOF
9952 #define HAVE_LIBDNET 1
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9961 $as_echo_n "checking for main in -lXbsd... " >&6; }
9962 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9965 ac_check_lib_save_LIBS
=$LIBS
9967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9979 if ac_fn_c_try_link
"$LINENO"; then :
9980 ac_cv_lib_Xbsd_main
=yes
9982 ac_cv_lib_Xbsd_main
=no
9984 rm -f core conftest.err conftest.
$ac_objext \
9985 conftest
$ac_exeext conftest.
$ac_ext
9986 LIBS
=$ac_check_lib_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9989 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9990 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9991 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9999 if test "$ac_cv_header_pthread_h"; then
10000 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10001 emacs_pthread_function
=pthread_atfork
10003 emacs_pthread_function
=pthread_self
10005 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10007 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10008 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10009 $as_echo_n "(cached) " >&6
10011 ac_check_lib_save_LIBS
=$LIBS
10012 LIBS
="-lpthread $LIBS"
10013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10022 char $emacs_pthread_function ();
10026 return $emacs_pthread_function ();
10031 if ac_fn_c_try_link
"$LINENO"; then :
10032 eval "$as_ac_Lib=yes"
10034 eval "$as_ac_Lib=no"
10036 rm -f core conftest.err conftest.
$ac_objext \
10037 conftest
$ac_exeext conftest.
$ac_ext
10038 LIBS
=$ac_check_lib_save_LIBS
10040 eval ac_res
=\$
$as_ac_Lib
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10042 $as_echo "$ac_res" >&6; }
10043 eval as_val
=\$
$as_ac_Lib
10044 if test "x$as_val" = x
""yes; then :
10049 if test "$HAVE_PTHREAD" = yes; then
10050 case "${canonical}" in
10052 *) LIB_PTHREAD
="-lpthread"
10053 LIBS
="$LIB_PTHREAD $LIBS" ;;
10056 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10062 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10063 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10066 ac_check_lib_save_LIBS
=$LIBS
10067 LIBS
="-lpthreads $LIBS"
10068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10081 return cma_open ();
10086 if ac_fn_c_try_link
"$LINENO"; then :
10087 ac_cv_lib_pthreads_cma_open
=yes
10089 ac_cv_lib_pthreads_cma_open
=no
10091 rm -f core conftest.err conftest.
$ac_objext \
10092 conftest
$ac_exeext conftest.
$ac_ext
10093 LIBS
=$ac_check_lib_save_LIBS
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10096 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10097 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10098 cat >>confdefs.h
<<_ACEOF
10099 #define HAVE_LIBPTHREADS 1
10102 LIBS
="-lpthreads $LIBS"
10107 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10108 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10109 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10110 ## added to LIBS in configure would never contain the pthreads part,
10111 ## but the value used in Makefiles might. FIXME?
10113 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10114 ## be harmless on older versions of X where it happens to exist.
10115 test "$opsys" = "aix4-2" && \
10116 test $ac_cv_lib_pthreads_cma_open = yes && \
10117 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10123 $as_echo_n "checking for -bbigtoc option... " >&6; }
10124 if test "${gdb_cv_bigtoc+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10129 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10130 *) gdb_cv_bigtoc
=-bbigtoc ;;
10133 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10145 if ac_fn_c_try_link
"$LINENO"; then :
10150 rm -f core conftest.err conftest.
$ac_objext \
10151 conftest
$ac_exeext conftest.
$ac_ext
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10155 $as_echo "$gdb_cv_bigtoc" >&6; }
10159 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10160 # used for the tests that follow. We set them back to REAL_CFLAGS and
10161 # REAL_CPPFLAGS later on.
10163 REAL_CFLAGS
="$CFLAGS"
10164 REAL_CPPFLAGS
="$CPPFLAGS"
10166 if test "${HAVE_X11}" = "yes"; then
10167 DEFS
="$C_SWITCH_X_SITE $DEFS"
10168 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10170 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10171 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10173 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10174 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10175 # but it's more convenient here to set LD_RUN_PATH since this
10176 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10177 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10178 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10182 if test "${opsys}" = "gnu-linux"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10184 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10191 XOpenDisplay ("foo");
10196 if ac_fn_c_try_link
"$LINENO"; then :
10197 xgnu_linux_first_failure
=no
10199 xgnu_linux_first_failure
=yes
10201 rm -f core conftest.err conftest.
$ac_objext \
10202 conftest
$ac_exeext conftest.
$ac_ext
10203 if test "${xgnu_linux_first_failure}" = "yes"; then
10204 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10205 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10206 OLD_CPPFLAGS
="$CPPFLAGS"
10208 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10209 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10210 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10211 LIBS
="$LIBS -b i486-linuxaout"
10212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10218 XOpenDisplay ("foo");
10223 if ac_fn_c_try_link
"$LINENO"; then :
10224 xgnu_linux_second_failure
=no
10226 xgnu_linux_second_failure
=yes
10228 rm -f core conftest.err conftest.
$ac_objext \
10229 conftest
$ac_exeext conftest.
$ac_ext
10230 if test "${xgnu_linux_second_failure}" = "yes"; then
10231 # If we get the same failure with -b, there is no use adding -b.
10232 # So take it out. This plays safe.
10233 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10234 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10235 CPPFLAGS
="$OLD_CPPFLAGS"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241 $as_echo "yes" >&6; }
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10249 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10250 # header files included from there.
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10252 $as_echo_n "checking for Xkb... " >&6; }
10253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 #include <X11/Xlib.h>
10256 #include <X11/XKBlib.h>
10260 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10265 if ac_fn_c_try_link
"$LINENO"; then :
10270 rm -f core conftest.err conftest.
$ac_objext \
10271 conftest
$ac_exeext conftest.
$ac_ext
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10273 $as_echo "$emacs_xkb" >&6; }
10274 if test $emacs_xkb = yes; then
10276 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10280 for ac_func
in XrmSetDatabase XScreenResourceString \
10281 XScreenNumberOfScreen
10283 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10284 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10285 eval as_val
=\$
$as_ac_var
10286 if test "x$as_val" = x
""yes; then :
10287 cat >>confdefs.h
<<_ACEOF
10288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10296 if test "${window_system}" = "x11"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10298 $as_echo_n "checking X11 version 6... " >&6; }
10299 if test "${emacs_cv_x11_version_6+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <X11/Xlib.h>
10308 #if XlibSpecificationRelease < 6
10316 if ac_fn_c_try_link
"$LINENO"; then :
10317 emacs_cv_x11_version_6
=yes
10319 emacs_cv_x11_version_6
=no
10321 rm -f core conftest.err conftest.
$ac_objext \
10322 conftest
$ac_exeext conftest.
$ac_ext
10325 if test $emacs_cv_x11_version_6 = yes; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10327 $as_echo "6 or newer" >&6; }
10329 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10332 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10334 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10339 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10345 $as_echo "before 6" >&6; }
10350 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10352 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10353 if test "${with_rsvg}" != "no"; then
10354 RSVG_REQUIRED
=2.11.0
10355 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10360 if test "$PKG_CONFIG" = "no" ; then
10363 PKG_CONFIG_MIN_VERSION
=0.9.0
10364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10366 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10368 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10369 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10370 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10377 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10378 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10380 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10387 ## If we have a custom action on failure, don't print errors, but
10388 ## do set a variable so people can do so. Do it in a subshell
10389 ## to capture any diagnostics in invoking pkg-config.
10390 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10397 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10398 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10402 if test $succeeded = yes; then
10411 if test $HAVE_RSVG = yes; then
10413 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10415 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10416 LIBS
="$RSVG_LIBS $LIBS"
10421 HAVE_IMAGEMAGICK
=no
10422 if test "${HAVE_X11}" = "yes"; then
10423 if test "${with_imagemagick}" != "no"; then
10424 ## 6.2.8 is the earliest version known to work, but earlier versions
10425 ## might work - let us know if you find one.
10426 ## 6.0.7 does not work. See bug#7955.
10427 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10431 if test "$PKG_CONFIG" = "no" ; then
10434 PKG_CONFIG_MIN_VERSION
=0.9.0
10435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10437 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10439 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10440 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10441 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10448 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10449 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10451 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 IMAGEMAGICK_CFLAGS
=""
10457 IMAGEMAGICK_LIBS
=""
10458 ## If we have a custom action on failure, don't print errors, but
10459 ## do set a variable so people can do so. Do it in a subshell
10460 ## to capture any diagnostics in invoking pkg-config.
10461 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10473 if test $succeeded = yes; then
10474 HAVE_IMAGEMAGICK
=yes
10482 if test $HAVE_IMAGEMAGICK = yes; then
10484 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10486 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10487 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10488 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10490 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10491 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10492 eval as_val
=\$
$as_ac_var
10493 if test "x$as_val" = x
""yes; then :
10494 cat >>confdefs.h
<<_ACEOF
10495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10513 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10518 if test "$PKG_CONFIG" = "no" ; then
10521 PKG_CONFIG_MIN_VERSION
=0.9.0
10522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10524 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10526 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10527 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10528 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10535 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10536 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10538 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10545 ## If we have a custom action on failure, don't print errors, but
10546 ## do set a variable so people can do so. Do it in a subshell
10547 ## to capture any diagnostics in invoking pkg-config.
10548 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10560 if test $succeeded = yes; then
10566 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10567 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10569 if test "$pkg_check_gtk" = "yes"; then
10571 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10573 GTK_OBJ
=emacsgtkfixed.o
10574 term_header
=gtkutil.h
10575 USE_GTK_TOOLKIT
="GTK3"
10578 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10582 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10585 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10590 if test "$PKG_CONFIG" = "no" ; then
10593 PKG_CONFIG_MIN_VERSION
=0.9.0
10594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10596 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10598 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10599 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10600 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10607 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10608 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10610 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10617 ## If we have a custom action on failure, don't print errors, but
10618 ## do set a variable so people can do so. Do it in a subshell
10619 ## to capture any diagnostics in invoking pkg-config.
10620 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10632 if test $succeeded = yes; then
10638 if test "$pkg_check_gtk" = "no" &&
10639 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10641 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10643 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10646 if test x
"$pkg_check_gtk" = xyes
; then
10650 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10651 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10652 LIBS
="$GTK_LIBS $LIBS"
10654 for ac_func
in gtk_main
10656 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10657 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10658 cat >>confdefs.h
<<_ACEOF
10659 #define HAVE_GTK_MAIN 1
10665 if test "${GTK_COMPILES}" != "yes"; then
10666 if test "$USE_X_TOOLKIT" != "maybe"; then
10667 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10672 $as_echo "#define USE_GTK 1" >>confdefs.h
10674 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10676 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10680 closing open displays. This is no problem if you just use
10681 one display, but if you use more than one and close one of them
10682 Emacs may crash." >&5
10683 $as_echo "$as_me: 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." >&2;}
10695 if test "${HAVE_GTK}" = "yes"; then
10697 if test "$with_toolkit_scroll_bars" != no
; then
10698 with_toolkit_scroll_bars
=yes
10701 HAVE_GTK_FILE_SELECTION
=no
10702 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10703 #include <gtk/gtk.h>
10705 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10706 HAVE_GTK_FILE_SELECTION
=yes
10708 HAVE_GTK_FILE_SELECTION
=no
10711 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10712 for ac_func
in gtk_file_selection_new
10714 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10715 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10716 cat >>confdefs.h
<<_ACEOF
10717 #define HAVE_GTK_FILE_SELECTION_NEW 1
10726 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10727 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10728 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10729 gtk_orientable_set_orientation \
10730 gtk_window_set_has_resize_grip
10732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10734 eval as_val
=\$
$as_ac_var
10735 if test "x$as_val" = x
""yes; then :
10736 cat >>confdefs.h
<<_ACEOF
10737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10744 term_header
=gtkutil.h
10749 if test "${with_dbus}" = "yes"; then
10753 if test "$PKG_CONFIG" = "no" ; then
10756 PKG_CONFIG_MIN_VERSION
=0.9.0
10757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10759 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10761 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10762 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10763 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10770 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10771 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10773 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10780 ## If we have a custom action on failure, don't print errors, but
10781 ## do set a variable so people can do so. Do it in a subshell
10782 ## to capture any diagnostics in invoking pkg-config.
10783 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10795 if test $succeeded = yes; then
10801 if test "$HAVE_DBUS" = yes; then
10802 LIBS
="$LIBS $DBUS_LIBS"
10804 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10806 for ac_func
in dbus_watch_get_unix_fd \
10807 dbus_type_is_valid \
10808 dbus_validate_bus_name \
10809 dbus_validate_path \
10810 dbus_validate_interface \
10811 dbus_validate_member
10813 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10814 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10815 eval as_val
=\$
$as_ac_var
10816 if test "x$as_val" = x
""yes; then :
10817 cat >>confdefs.h
<<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 DBUS_OBJ
=dbusbind.o
10830 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10834 if test "$PKG_CONFIG" = "no" ; then
10837 PKG_CONFIG_MIN_VERSION
=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10840 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10842 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10843 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10844 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10851 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10852 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10854 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 GSETTINGS_CFLAGS
=""
10861 ## If we have a custom action on failure, don't print errors, but
10862 ## do set a variable so people can do so. Do it in a subshell
10863 ## to capture any diagnostics in invoking pkg-config.
10864 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10876 if test $succeeded = yes; then
10882 if test "$HAVE_GSETTINGS" = "yes"; then
10884 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10886 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10887 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10892 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10896 if test "$PKG_CONFIG" = "no" ; then
10899 PKG_CONFIG_MIN_VERSION
=0.9.0
10900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10902 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10904 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10905 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10906 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10913 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10914 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10916 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10923 ## If we have a custom action on failure, don't print errors, but
10924 ## do set a variable so people can do so. Do it in a subshell
10925 ## to capture any diagnostics in invoking pkg-config.
10926 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10938 if test $succeeded = yes; then
10944 if test "$HAVE_GCONF" = yes; then
10946 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10948 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10949 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10953 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10957 if test "$PKG_CONFIG" = "no" ; then
10960 PKG_CONFIG_MIN_VERSION
=0.9.0
10961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10963 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10965 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10966 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10967 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10974 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10975 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10977 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10984 ## If we have a custom action on failure, don't print errors, but
10985 ## do set a variable so people can do so. Do it in a subshell
10986 ## to capture any diagnostics in invoking pkg-config.
10987 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10999 if test $succeeded = yes; then
11005 if test "$HAVE_GOBJECT" = "yes"; then
11006 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11007 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11009 SAVE_CFLAGS
="$CFLAGS"
11011 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11012 LIBS
="$SETTINGS_LIBS $LIBS"
11013 for ac_func
in g_type_init
11015 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11016 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11017 cat >>confdefs.h
<<_ACEOF
11018 #define HAVE_G_TYPE_INIT 1
11024 CFLAGS
="$SAVE_CFLAGS"
11033 if test "${with_selinux}" = "yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11035 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11036 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11039 ac_check_lib_save_LIBS
=$LIBS
11040 LIBS
="-lselinux $LIBS"
11041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11050 char lgetfilecon ();
11054 return lgetfilecon ();
11059 if ac_fn_c_try_link
"$LINENO"; then :
11060 ac_cv_lib_selinux_lgetfilecon
=yes
11062 ac_cv_lib_selinux_lgetfilecon
=no
11064 rm -f core conftest.err conftest.
$ac_objext \
11065 conftest
$ac_exeext conftest.
$ac_ext
11066 LIBS
=$ac_check_lib_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11069 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11070 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11071 HAVE_LIBSELINUX
=yes
11076 if test "$HAVE_LIBSELINUX" = yes; then
11078 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11080 LIBSELINUX_LIBS
=-lselinux
11086 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11087 if test "${with_gnutls}" = "yes" ; then
11091 if test "$PKG_CONFIG" = "no" ; then
11094 PKG_CONFIG_MIN_VERSION
=0.9.0
11095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11097 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11099 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11100 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11101 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11108 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11109 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11111 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11116 LIBGNUTLS_CFLAGS
=""
11118 ## If we have a custom action on failure, don't print errors, but
11119 ## do set a variable so people can do so. Do it in a subshell
11120 ## to capture any diagnostics in invoking pkg-config.
11121 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11133 if test $succeeded = yes; then
11139 if test "${HAVE_GNUTLS}" = "yes"; then
11141 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11145 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11146 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11147 for ac_func
in gnutls_certificate_set_verify_function
11149 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11150 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11151 cat >>confdefs.h
<<_ACEOF
11152 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11154 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11159 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11161 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11171 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11172 if test "$with_xaw3d" != no
; then
11173 if test "${emacs_cv_xaw3d+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 #include <X11/Intrinsic.h>
11180 #include <X11/Xaw3d/Simple.h>
11189 if ac_fn_c_try_link
"$LINENO"; then :
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11191 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11192 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11195 ac_check_lib_save_LIBS
=$LIBS
11196 LIBS
="-lXaw3d $LIBS"
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11206 char XawScrollbarSetThumb ();
11210 return XawScrollbarSetThumb ();
11215 if ac_fn_c_try_link
"$LINENO"; then :
11216 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11218 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11220 rm -f core conftest.err conftest.
$ac_objext \
11221 conftest
$ac_exeext conftest.
$ac_ext
11222 LIBS
=$ac_check_lib_save_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11225 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11226 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11235 rm -f core conftest.err conftest.
$ac_objext \
11236 conftest
$ac_exeext conftest.
$ac_ext
11242 if test $emacs_cv_xaw3d = yes; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11244 $as_echo_n "checking for xaw3d... " >&6; }
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11246 $as_echo "yes; using Lucid toolkit" >&6; }
11247 USE_X_TOOLKIT
=LUCID
11251 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11255 $as_echo_n "checking for xaw3d... " >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11259 $as_echo_n "checking for libXaw... " >&6; }
11260 if test "${emacs_cv_xaw+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
11263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 #include <X11/Intrinsic.h>
11267 #include <X11/Xaw/Simple.h>
11276 if ac_fn_c_try_link
"$LINENO"; then :
11281 rm -f core conftest.err conftest.
$ac_objext \
11282 conftest
$ac_exeext conftest.
$ac_ext
11285 if test $emacs_cv_xaw = yes; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11287 $as_echo "yes; using Lucid toolkit" >&6; }
11288 USE_X_TOOLKIT
=LUCID
11290 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11291 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11293 as_fn_error
"No X toolkit could be found.
11294 If you are sure you want Emacs compiled without an X toolkit, pass
11295 --with-x-toolkit=no
11296 to configure. Otherwise, install the development libraries for the toolkit
11297 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11302 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11305 if test "${USE_X_TOOLKIT}" != "none"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11307 $as_echo_n "checking X11 toolkit version... " >&6; }
11308 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #include <X11/Intrinsic.h>
11317 #if XtSpecificationRelease < 6
11325 if ac_fn_c_try_link
"$LINENO"; then :
11326 emacs_cv_x11_toolkit_version_6
=yes
11328 emacs_cv_x11_toolkit_version_6
=no
11330 rm -f core conftest.err conftest.
$ac_objext \
11331 conftest
$ac_exeext conftest.
$ac_ext
11334 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11335 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11337 $as_echo "6 or newer" >&6; }
11339 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11341 LIBXTR6
="-lSM -lICE"
11343 ## Use libw.a along with X11R6 Xt.
11344 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11348 $as_echo "before 6" >&6; }
11352 if test x
$HAVE_X11XTR6 = xyes
; then
11353 LIBS
="-lXt -lSM -lICE $LIBS"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11358 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11359 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11362 ac_check_lib_save_LIBS
=$LIBS
11364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11373 char XmuConvertStandardSelection ();
11377 return XmuConvertStandardSelection ();
11382 if ac_fn_c_try_link
"$LINENO"; then :
11383 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11385 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11387 rm -f core conftest.err conftest.
$ac_objext \
11388 conftest
$ac_exeext conftest.
$ac_ext
11389 LIBS
=$ac_check_lib_save_LIBS
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11392 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11393 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11394 cat >>confdefs.h
<<_ACEOF
11395 #define HAVE_LIBXMU 1
11402 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11408 ## These systems don't supply Xmu.
11410 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11415 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11416 if test "${HAVE_X11}" = "yes"; then
11417 if test "${USE_X_TOOLKIT}" != "none"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11419 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11420 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11423 ac_check_lib_save_LIBS
=$LIBS
11424 LIBS
="-lXext $LIBS"
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11434 char XShapeQueryExtension ();
11438 return XShapeQueryExtension ();
11443 if ac_fn_c_try_link
"$LINENO"; then :
11444 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11446 ac_cv_lib_Xext_XShapeQueryExtension
=no
11448 rm -f core conftest.err conftest.
$ac_objext \
11449 conftest
$ac_exeext conftest.
$ac_ext
11450 LIBS
=$ac_check_lib_save_LIBS
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11453 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11454 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11455 cat >>confdefs.h
<<_ACEOF
11456 #define HAVE_LIBXEXT 1
11459 LIBS
="-lXext $LIBS"
11467 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11468 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11469 if test -d /usr
/include
/openmotif
; then
11470 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11471 emacs_cv_openmotif
=yes
11472 case "$canonical" in
11473 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11474 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11477 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11480 emacs_cv_openmotif
=no
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11483 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11484 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11493 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11496 Motif version prior to 2.1.
11502 if ac_fn_c_try_compile
"$LINENO"; then :
11503 emacs_cv_motif_version_2_1
=yes
11505 emacs_cv_motif_version_2_1
=no
11507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11510 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11511 if test $emacs_cv_motif_version_2_1 = yes; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11513 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11514 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS
=$LIBS
11519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11528 char XpCreateContext ();
11532 return XpCreateContext ();
11537 if ac_fn_c_try_link
"$LINENO"; then :
11538 ac_cv_lib_Xp_XpCreateContext
=yes
11540 ac_cv_lib_Xp_XpCreateContext
=no
11542 rm -f core conftest.err conftest.
$ac_objext \
11543 conftest
$ac_exeext conftest.
$ac_ext
11544 LIBS
=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11547 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11548 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11552 if test x
$emacs_cv_openmotif = xyes
; then
11553 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11557 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11558 if test "${emacs_cv_lesstif+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11561 # We put this in CFLAGS temporarily to precede other -I options
11562 # that might be in CFLAGS temporarily.
11563 # We put this in CPPFLAGS where it precedes the other -I options.
11564 OLD_CPPFLAGS
=$CPPFLAGS
11566 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11567 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11579 if ac_fn_c_try_compile
"$LINENO"; then :
11580 emacs_cv_lesstif
=yes
11582 emacs_cv_lesstif
=no
11584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11587 $as_echo "$emacs_cv_lesstif" >&6; }
11588 if test $emacs_cv_lesstif = yes; then
11589 # Make sure this -I option remains in CPPFLAGS after it is set
11590 # back to REAL_CPPFLAGS.
11591 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11592 # have those other -I options anyway. Ultimately, having this
11593 # directory ultimately in CPPFLAGS will be enough.
11594 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11595 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11598 CPPFLAGS
=$OLD_CPPFLAGS
11601 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11602 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11605 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11612 USE_TOOLKIT_SCROLL_BARS
=no
11613 if test "${with_toolkit_scroll_bars}" != "no"; then
11614 if test "${USE_X_TOOLKIT}" != "none"; then
11615 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11619 USE_TOOLKIT_SCROLL_BARS
=yes
11620 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11621 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11623 USE_TOOLKIT_SCROLL_BARS
=yes
11625 elif test "${HAVE_GTK}" = "yes"; then
11626 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11628 USE_TOOLKIT_SCROLL_BARS
=yes
11629 elif test "${HAVE_NS}" = "yes"; then
11630 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11632 USE_TOOLKIT_SCROLL_BARS
=yes
11636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 #include <X11/Xlib.h>
11640 #include <X11/Xresource.h>
11649 if ac_fn_c_try_compile
"$LINENO"; then :
11652 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11660 if test "${with_xim}" != "no"; then
11662 $as_echo "#define USE_XIM 1" >>confdefs.h
11667 if test "${HAVE_XIM}" != "no"; then
11668 late_CFLAGS
=$CFLAGS
11669 if test "$GCC" = yes; then
11670 CFLAGS
="$CFLAGS --pedantic-errors"
11672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 #include <X11/Xlib.h>
11676 #include <X11/Xresource.h>
11685 XPointer *client_data;
11687 /* If we're not using GCC, it's probably not XFree86, and this is
11688 probably right, but we can't use something like --pedantic-errors. */
11689 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11690 char*, XIMProc, XPointer*);
11692 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11698 if ac_fn_c_try_compile
"$LINENO"; then :
11699 emacs_cv_arg6_star
=yes
11701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 if test "$emacs_cv_arg6_star" = yes; then
11703 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11706 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11709 CFLAGS
=$late_CFLAGS
11712 ### Start of font-backend (under any platform) section.
11713 # (nothing here yet -- this is a placeholder)
11714 ### End of font-backend (under any platform) section.
11716 ### Start of font-backend (under X11) section.
11717 if test "${HAVE_X11}" = "yes"; then
11721 if test "$PKG_CONFIG" = "no" ; then
11724 PKG_CONFIG_MIN_VERSION
=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11727 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11729 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11730 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11731 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11738 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11739 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11741 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 FONTCONFIG_CFLAGS
=""
11748 ## If we have a custom action on failure, don't print errors, but
11749 ## do set a variable so people can do so. Do it in a subshell
11750 ## to capture any diagnostics in invoking pkg-config.
11751 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
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
11770 ## Use -lXft if available, unless `--with-xft=no'.
11772 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11775 if test "x${with_xft}" != "xno"; then
11780 if test "$PKG_CONFIG" = "no" ; then
11783 PKG_CONFIG_MIN_VERSION
=0.9.0
11784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11786 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11788 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11789 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11790 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11797 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11798 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11800 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11807 ## If we have a custom action on failure, don't print errors, but
11808 ## do set a variable so people can do so. Do it in a subshell
11809 ## to capture any diagnostics in invoking pkg-config.
11810 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11828 ## Because xftfont.c uses XRenderQueryExtension, we also
11829 ## need to link to -lXrender.
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11832 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11833 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11836 ac_check_lib_save_LIBS
=$LIBS
11837 LIBS
="-lXrender $LIBS"
11838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11841 /* Override any GCC internal prototype to avoid an error.
11842 Use char because int might match the return type of a GCC
11843 builtin and then its argument prototype would still apply. */
11847 char XRenderQueryExtension ();
11851 return XRenderQueryExtension ();
11856 if ac_fn_c_try_link
"$LINENO"; then :
11857 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11859 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11861 rm -f core conftest.err conftest.
$ac_objext \
11862 conftest
$ac_exeext conftest.
$ac_ext
11863 LIBS
=$ac_check_lib_save_LIBS
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11866 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11867 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11871 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11872 OLD_CPPFLAGS
="$CPPFLAGS"
11873 OLD_CFLAGS
="$CFLAGS"
11875 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11876 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11877 XFT_LIBS
="-lXrender $XFT_LIBS"
11878 LIBS
="$XFT_LIBS $LIBS"
11879 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11882 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11883 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11886 ac_check_lib_save_LIBS
=$LIBS
11887 LIBS
="-lXft $XFT_LIBS $LIBS"
11888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11897 char XftFontOpen ();
11901 return XftFontOpen ();
11906 if ac_fn_c_try_link
"$LINENO"; then :
11907 ac_cv_lib_Xft_XftFontOpen
=yes
11909 ac_cv_lib_Xft_XftFontOpen
=no
11911 rm -f core conftest.err conftest.
$ac_objext \
11912 conftest
$ac_exeext conftest.
$ac_ext
11913 LIBS
=$ac_check_lib_save_LIBS
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11916 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11917 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11925 if test "${HAVE_XFT}" = "yes"; then
11927 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11930 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11932 CPPFLAGS
="$OLD_CPPFLAGS"
11933 CFLAGS
="$OLD_CFLAGS"
11935 fi # "${HAVE_XFT}" = "yes"
11936 fi # "$HAVE_XFT" != no
11937 fi # "x${with_xft}" != "xno"
11939 ## We used to allow building with FreeType and without Xft.
11940 ## However, the ftx font backend driver is not in good shape.
11941 if test "$HAVE_XFT" != "yes"; then
11948 if test "$PKG_CONFIG" = "no" ; then
11951 PKG_CONFIG_MIN_VERSION
=0.9.0
11952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11954 $as_echo_n "checking for freetype2... " >&6; }
11956 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11957 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11958 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11965 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11966 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11968 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11975 ## If we have a custom action on failure, don't print errors, but
11976 ## do set a variable so people can do so. Do it in a subshell
11977 ## to capture any diagnostics in invoking pkg-config.
11978 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
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
11997 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12001 if test "${HAVE_FREETYPE}" = "yes"; then
12003 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12005 if test "${with_libotf}" != "no"; then
12009 if test "$PKG_CONFIG" = "no" ; then
12012 PKG_CONFIG_MIN_VERSION
=0.9.0
12013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12015 $as_echo_n "checking for libotf... " >&6; }
12017 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12018 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12019 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12026 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12027 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12029 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12036 ## If we have a custom action on failure, don't print errors, but
12037 ## do set a variable so people can do so. Do it in a subshell
12038 ## to capture any diagnostics in invoking pkg-config.
12039 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12051 if test $succeeded = yes; then
12057 if test "$HAVE_LIBOTF" = "yes"; then
12059 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12062 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12063 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12066 ac_check_lib_save_LIBS
=$LIBS
12068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12077 char OTF_get_variation_glyphs ();
12081 return OTF_get_variation_glyphs ();
12086 if ac_fn_c_try_link
"$LINENO"; then :
12087 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12089 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12091 rm -f core conftest.err conftest.
$ac_objext \
12092 conftest
$ac_exeext conftest.
$ac_ext
12093 LIBS
=$ac_check_lib_save_LIBS
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12096 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12097 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12098 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12100 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12103 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12105 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12113 if test "${HAVE_LIBOTF}" = yes; then
12114 if test "${with_m17n_flt}" != "no"; then
12118 if test "$PKG_CONFIG" = "no" ; then
12121 PKG_CONFIG_MIN_VERSION
=0.9.0
12122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12124 $as_echo_n "checking for m17n-flt... " >&6; }
12126 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12127 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12128 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12135 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12136 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12138 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12145 ## If we have a custom action on failure, don't print errors, but
12146 ## do set a variable so people can do so. Do it in a subshell
12147 ## to capture any diagnostics in invoking pkg-config.
12148 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12160 if test $succeeded = yes; then
12166 if test "$HAVE_M17N_FLT" = "yes"; then
12168 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12180 ### End of font-backend (under X11) section.
12191 ### Use -lXpm if available, unless `--with-xpm=no'.
12194 if test "${HAVE_X11}" = "yes"; then
12195 if test "${with_xpm}" != "no"; then
12196 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12199 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12200 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_check_lib_save_LIBS
=$LIBS
12204 LIBS
="-lXpm -lX11 $LIBS"
12205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12214 char XpmReadFileToPixmap ();
12218 return XpmReadFileToPixmap ();
12223 if ac_fn_c_try_link
"$LINENO"; then :
12224 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12226 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12228 rm -f core conftest.err conftest.
$ac_objext \
12229 conftest
$ac_exeext conftest.
$ac_ext
12230 LIBS
=$ac_check_lib_save_LIBS
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12233 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12234 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12241 if test "${HAVE_XPM}" = "yes"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12243 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include "X11/xpm.h"
12247 #ifndef XpmReturnAllocPixels
12248 no_return_alloc_pixels
12252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12253 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12261 if test "${HAVE_XPM}" = "yes"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 if test "${HAVE_XPM}" = "yes"; then
12273 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12280 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12283 if test "${HAVE_X11}" = "yes"; then
12284 if test "${with_jpeg}" != "no"; then
12285 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12286 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12288 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12289 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12292 ac_check_lib_save_LIBS
=$LIBS
12293 LIBS
="-ljpeg $LIBS"
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12303 char jpeg_destroy_compress ();
12307 return jpeg_destroy_compress ();
12312 if ac_fn_c_try_link
"$LINENO"; then :
12313 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12315 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12317 rm -f core conftest.err conftest.
$ac_objext \
12318 conftest
$ac_exeext conftest.
$ac_ext
12319 LIBS
=$ac_check_lib_save_LIBS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12322 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12323 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12332 if test "${HAVE_JPEG}" = "yes"; then
12333 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <jpeglib.h>
12338 version=JPEG_LIB_VERSION
12341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12342 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12343 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12347 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12353 if test "${HAVE_JPEG}" = "yes"; then
12359 ### Use -lpng if available, unless `--with-png=no'.
12362 if test "${HAVE_X11}" = "yes"; then
12363 if test "${with_png}" != "no"; then
12364 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12365 # in /usr/include/libpng.
12366 for ac_header
in png.h libpng
/png.h
12368 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12369 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12370 eval as_val
=\$
$as_ac_Header
12371 if test "x$as_val" = x
""yes; then :
12372 cat >>confdefs.h
<<_ACEOF
12373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12380 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12382 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12383 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 ac_check_lib_save_LIBS
=$LIBS
12387 LIBS
="-lpng -lz -lm $LIBS"
12388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12397 char png_get_channels ();
12401 return png_get_channels ();
12406 if ac_fn_c_try_link
"$LINENO"; then :
12407 ac_cv_lib_png_png_get_channels
=yes
12409 ac_cv_lib_png_png_get_channels
=no
12411 rm -f core conftest.err conftest.
$ac_objext \
12412 conftest
$ac_exeext conftest.
$ac_ext
12413 LIBS
=$ac_check_lib_save_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12416 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12417 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12424 if test "${HAVE_PNG}" = "yes"; then
12426 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12428 LIBPNG
="-lpng -lz -lm"
12430 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12431 # include <libpng/png.h>
12437 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12441 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12449 ### Use -ltiff if available, unless `--with-tiff=no'.
12452 if test "${HAVE_X11}" = "yes"; then
12453 if test "${with_tiff}" != "no"; then
12454 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12455 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12457 # At least one tiff package requires the jpeg library.
12458 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12460 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12461 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 ac_check_lib_save_LIBS
=$LIBS
12465 LIBS
="-ltiff $tifflibs $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 TIFFGetVersion ();
12479 return TIFFGetVersion ();
12484 if ac_fn_c_try_link
"$LINENO"; then :
12485 ac_cv_lib_tiff_TIFFGetVersion
=yes
12487 ac_cv_lib_tiff_TIFFGetVersion
=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_tiff_TIFFGetVersion" >&5
12494 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12495 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12504 if test "${HAVE_TIFF}" = "yes"; then
12506 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12513 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12516 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12517 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12518 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12519 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12520 # Earlier versions can crash Emacs.
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12522 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12523 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12526 ac_check_lib_save_LIBS
=$LIBS
12528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12537 char EGifPutExtensionLast ();
12541 return EGifPutExtensionLast ();
12546 if ac_fn_c_try_link
"$LINENO"; then :
12547 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12549 ac_cv_lib_gif_EGifPutExtensionLast
=no
12551 rm -f core conftest.err conftest.
$ac_objext \
12552 conftest
$ac_exeext conftest.
$ac_ext
12553 LIBS
=$ac_check_lib_save_LIBS
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12556 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12557 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12567 if test "$HAVE_GIF" = yes; then
12569 elif test "$HAVE_GIF" = maybe
; then
12570 # If gif_lib.h but no libgif, try libungif.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12572 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12573 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12576 ac_check_lib_save_LIBS
=$LIBS
12577 LIBS
="-lungif $LIBS"
12578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12587 char EGifPutExtensionLast ();
12591 return EGifPutExtensionLast ();
12596 if ac_fn_c_try_link
"$LINENO"; then :
12597 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12599 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12601 rm -f core conftest.err conftest.
$ac_objext \
12602 conftest
$ac_exeext conftest.
$ac_ext
12603 LIBS
=$ac_check_lib_save_LIBS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12606 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12607 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12613 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12616 if test "${HAVE_GIF}" = "yes"; then
12618 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12624 if test "${HAVE_X11}" = "yes"; then
12627 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12628 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12629 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12630 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12631 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12632 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12633 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12634 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12635 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12636 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12638 if test "X${MISSING}" != X
; then
12639 as_fn_error
"The following required libraries were not found:
12641 Maybe some development libraries/packages are missing?
12642 If you don't want to link with them give
12644 as options to configure" "$LINENO" 5
12648 ### Use -lgpm if available, unless `--with-gpm=no'.
12651 if test "${with_gpm}" != "no"; then
12652 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12653 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12655 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12656 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12659 ac_check_lib_save_LIBS
=$LIBS
12661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12664 /* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12674 return Gpm_Open ();
12679 if ac_fn_c_try_link
"$LINENO"; then :
12680 ac_cv_lib_gpm_Gpm_Open
=yes
12682 ac_cv_lib_gpm_Gpm_Open
=no
12684 rm -f core conftest.err conftest.
$ac_objext \
12685 conftest
$ac_exeext conftest.
$ac_ext
12686 LIBS
=$ac_check_lib_save_LIBS
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12689 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12690 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12698 if test "${HAVE_GPM}" = "yes"; then
12700 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12712 ### Use NeXTstep API to implement GUI.
12713 if test "${HAVE_NS}" = "yes"; then
12715 $as_echo "#define HAVE_NS 1" >>confdefs.h
12717 if test "${NS_IMPL_COCOA}" = "yes"; then
12719 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12722 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12724 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12726 # See also .m.o rule in Makefile.in */
12727 # FIXME: are all these flags really needed? Document here why. */
12728 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12729 ## Extra CFLAGS applied to src/*.m files.
12730 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"
12732 # We also have mouse menus.
12738 ### Use session management (-lSM -lICE) if available
12741 if test "${HAVE_X11}" = "yes"; then
12742 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12743 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12745 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12746 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12749 ac_check_lib_save_LIBS
=$LIBS
12750 LIBS
="-lSM -lICE $LIBS"
12751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12760 char SmcOpenConnection ();
12764 return SmcOpenConnection ();
12769 if ac_fn_c_try_link
"$LINENO"; then :
12770 ac_cv_lib_SM_SmcOpenConnection
=yes
12772 ac_cv_lib_SM_SmcOpenConnection
=no
12774 rm -f core conftest.err conftest.
$ac_objext \
12775 conftest
$ac_exeext conftest.
$ac_ext
12776 LIBS
=$ac_check_lib_save_LIBS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12779 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12780 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12788 if test "${HAVE_X_SM}" = "yes"; then
12790 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12792 LIBXSM
="-lSM -lICE"
12795 *) LIBS
="$LIBXSM $LIBS" ;;
12801 ### Use libxml (-lxml2) if available
12803 if test "${with_xml2}" != "no"; then
12804 ### I'm not sure what the version number should be, so I just guessed.
12808 if test "$PKG_CONFIG" = "no" ; then
12811 PKG_CONFIG_MIN_VERSION
=0.9.0
12812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12814 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12816 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12817 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12818 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12825 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12826 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12828 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12835 ## If we have a custom action on failure, don't print errors, but
12836 ## do set a variable so people can do so. Do it in a subshell
12837 ## to capture any diagnostics in invoking pkg-config.
12838 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12850 if test $succeeded = yes; then
12856 if test "${HAVE_LIBXML2}" = "yes"; then
12857 LIBS
="$LIBXML2_LIBS $LIBS"
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12859 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12860 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12863 ac_check_lib_save_LIBS
=$LIBS
12864 LIBS
="-lxml2 $LIBS"
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12874 char htmlReadMemory ();
12878 return htmlReadMemory ();
12883 if ac_fn_c_try_link
"$LINENO"; then :
12884 ac_cv_lib_xml2_htmlReadMemory
=yes
12886 ac_cv_lib_xml2_htmlReadMemory
=no
12888 rm -f core conftest.err conftest.
$ac_objext \
12889 conftest
$ac_exeext conftest.
$ac_ext
12890 LIBS
=$ac_check_lib_save_LIBS
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12893 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12894 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12900 if test "${HAVE_LIBXML2}" = "yes"; then
12902 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12913 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12915 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12916 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12930 if ac_fn_c_try_link
"$LINENO"; then :
12931 emacs_cv_netdb_declares_h_errno
=yes
12933 emacs_cv_netdb_declares_h_errno
=no
12935 rm -f core conftest.err conftest.
$ac_objext \
12936 conftest
$ac_exeext conftest.
$ac_ext
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12939 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12940 if test $emacs_cv_netdb_declares_h_errno = yes; then
12942 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12946 # sqrt and other floating-point functions such as fmod and frexp
12947 # are found in -lm on most systems.
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12949 $as_echo_n "checking for sqrt in -lm... " >&6; }
12950 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12953 ac_check_lib_save_LIBS
=$LIBS
12955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12973 if ac_fn_c_try_link
"$LINENO"; then :
12974 ac_cv_lib_m_sqrt
=yes
12976 ac_cv_lib_m_sqrt
=no
12978 rm -f core conftest.err conftest.
$ac_objext \
12979 conftest
$ac_exeext conftest.
$ac_ext
12980 LIBS
=$ac_check_lib_save_LIBS
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12983 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12984 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12985 cat >>confdefs.h
<<_ACEOF
12986 #define HAVE_LIBM 1
12994 # Check for mail-locking functions in a "mail" library. Probably this should
12995 # have the same check as for liblockfile below.
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12997 $as_echo_n "checking for maillock in -lmail... " >&6; }
12998 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13001 ac_check_lib_save_LIBS
=$LIBS
13002 LIBS
="-lmail $LIBS"
13003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13016 return maillock ();
13021 if ac_fn_c_try_link
"$LINENO"; then :
13022 ac_cv_lib_mail_maillock
=yes
13024 ac_cv_lib_mail_maillock
=no
13026 rm -f core conftest.err conftest.
$ac_objext \
13027 conftest
$ac_exeext conftest.
$ac_ext
13028 LIBS
=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13031 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13032 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13038 if test $have_mail = yes; then
13040 LIBS
="$LIBS_MAIL $LIBS"
13042 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13048 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13049 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13052 ac_check_lib_save_LIBS
=$LIBS
13053 LIBS
="-llockfile $LIBS"
13054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13067 return maillock ();
13072 if ac_fn_c_try_link
"$LINENO"; then :
13073 ac_cv_lib_lockfile_maillock
=yes
13075 ac_cv_lib_lockfile_maillock
=no
13077 rm -f core conftest.err conftest.
$ac_objext \
13078 conftest
$ac_exeext conftest.
$ac_ext
13079 LIBS
=$ac_check_lib_save_LIBS
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13082 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13083 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13089 if test $have_lockfile = yes; then
13090 LIBS_MAIL
=-llockfile
13091 LIBS
="$LIBS_MAIL $LIBS"
13093 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13096 # If we have the shared liblockfile, assume we must use it for mail
13097 # locking (e.g. Debian). If we couldn't link against liblockfile
13098 # (no liblockfile.a installed), ensure that we don't need to.
13099 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13100 set dummy liblockfile.so
; ac_word
=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13106 if test -n "$liblockfile"; then
13107 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13110 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13111 for as_dir
in $as_dummy
13114 test -z "$as_dir" && as_dir
=.
13115 for ac_exec_ext
in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_liblockfile
="yes"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13128 liblockfile
=$ac_cv_prog_liblockfile
13129 if test -n "$liblockfile"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13131 $as_echo "$liblockfile" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13138 if test $ac_cv_prog_liblockfile = yes; then
13139 as_fn_error
"Shared liblockfile found but can't link against it.
13140 This probably means that movemail could lose mail.
13141 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13149 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13150 ## interlock access to the mail spool. The alternative is a lock file named
13151 ## /usr/spool/mail/$USER.lock.
13154 aix4-2
) mail_lock
="lockf" ;;
13156 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13158 ## On GNU/Linux systems, both methods are used by various mail programs.
13159 ## I assume most people are using newer mailers that have heard of flock.
13160 ## Change this if you need to.
13161 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13162 ## configure gets the right answers, and that means *NOT* using flock.
13163 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13164 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13165 ## Debian maintainer hasn't provided a clean fix for Emacs.
13166 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13167 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13168 ## correct logic. -- fx
13169 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13170 ## liblockfile is a Free Software replacement for libmail, used on
13171 ## Debian systems and elsewhere. -rfr.
13174 if test $have_mail = yes ||
test $have_lockfile = yes; then
13175 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13181 case "$mail_lock" in
13183 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13187 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13190 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13195 for ac_func
in gethostname \
13196 closedir getrusage get_current_dir_name \
13198 fpathconf
select euidaccess getpagesize setlocale \
13199 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13200 __fpending strsignal setitimer \
13201 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13202 gai_strerror mkstemp getline getdelim fsync sync \
13203 difftime posix_memalign \
13204 getpwent endpwent getgrent endgrent \
13206 cfmakeraw cfsetspeed copysign __executable_start
13208 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13209 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13210 eval as_val
=\$
$as_ac_var
13211 if test "x$as_val" = x
""yes; then :
13212 cat >>confdefs.h
<<_ACEOF
13213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13220 if test $opsys = unixware
; then
13222 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13225 for ac_func
in getwd
13227 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13228 if test "x$ac_cv_func_getwd" = x
""yes; then :
13229 cat >>confdefs.h
<<_ACEOF
13230 #define HAVE_GETWD 1
13238 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13239 ## has a broken `rint' in some library versions including math library
13240 ## version number A.09.05.
13241 ## You can fix the math library by installing patch number PHSS_4630.
13242 ## But we can fix it more reliably for Emacs by just not using rint.
13243 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13246 *) for ac_func
in random rint
13248 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13249 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13250 eval as_val
=\$
$as_ac_var
13251 if test "x$as_val" = x
""yes; then :
13252 cat >>confdefs.h
<<_ACEOF
13253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13262 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13263 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13272 __builtin_unwind_init ();
13277 if ac_fn_c_try_link
"$LINENO"; then :
13278 emacs_cv_func___builtin_unwind_init
=yes
13280 emacs_cv_func___builtin_unwind_init
=no
13282 rm -f core conftest.err conftest.
$ac_objext \
13283 conftest
$ac_exeext conftest.
$ac_ext
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13286 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13287 if test $emacs_cv_func___builtin_unwind_init = yes; then
13289 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13298 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13299 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 #include <sys/types.h> /* for off_t */
13310 int (*fp) (FILE *, off_t, int) = fseeko;
13311 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13316 if ac_fn_c_try_link
"$LINENO"; then :
13317 ac_cv_sys_largefile_source
=no
; break
13319 rm -f core conftest.err conftest.
$ac_objext \
13320 conftest
$ac_exeext conftest.
$ac_ext
13321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 #define _LARGEFILE_SOURCE 1
13324 #include <sys/types.h> /* for off_t */
13329 int (*fp) (FILE *, off_t, int) = fseeko;
13330 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13335 if ac_fn_c_try_link
"$LINENO"; then :
13336 ac_cv_sys_largefile_source
=1; break
13338 rm -f core conftest.err conftest.
$ac_objext \
13339 conftest
$ac_exeext conftest.
$ac_ext
13340 ac_cv_sys_largefile_source
=unknown
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13345 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13346 case $ac_cv_sys_largefile_source in #(
13349 cat >>confdefs.h
<<_ACEOF
13350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13356 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13357 # in glibc 2.1.3, but that breaks too many other things.
13358 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13359 if test $ac_cv_sys_largefile_source != unknown
; then
13361 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13367 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13368 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13371 # Use it with a single arg.
13372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 $ac_includes_default
13383 if ac_fn_c_try_compile
"$LINENO"; then :
13384 ac_cv_func_getpgrp_void
=no
13386 ac_cv_func_getpgrp_void
=yes
13388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13392 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13393 if test $ac_cv_func_getpgrp_void = yes; then
13395 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13401 for ac_func
in grantpt
13403 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13404 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13405 cat >>confdefs.h
<<_ACEOF
13406 #define HAVE_GRANTPT 1
13413 # PTY-related GNU extensions.
13414 for ac_func
in getpt posix_openpt
13416 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13417 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13418 eval as_val
=\$
$as_ac_var
13419 if test "x$as_val" = x
""yes; then :
13420 cat >>confdefs.h
<<_ACEOF
13421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13428 # Check this now, so that we will NOT find the above functions in ncurses.
13429 # That is because we have not set up to link ncurses in lib-src.
13430 # It's better to believe a function is not available
13431 # than to expect to find it in ncurses.
13432 # Also we need tputs and friends to be able to build at all.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13434 $as_echo_n "checking for library containing tputs... " >&6; }
13435 # Run a test program that contains a call to tputs, a call that is
13436 # never executed. This tests whether a pre-'main' dynamic linker
13437 # works with the library. It's too much trouble to actually call
13438 # tputs in the test program, due to portability hassles. When
13439 # cross-compiling, assume the test program will run if it links.
13441 # Maybe curses should be tried earlier?
13442 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13443 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13445 if test -z "$tputs_library"; then
13447 msg
='none required'
13449 LIBS_TERMCAP
=-l$tputs_library
13451 LIBS
="$LIBS_TERMCAP $LIBS"
13453 if test "$cross_compiling" = yes; then :
13454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13457 extern void tputs (const char *, int, int (*)(int));
13458 int main (int argc, char **argv)
13461 tputs (argv[0], 0, 0);
13466 if ac_fn_c_try_link
"$LINENO"; then :
13471 rm -f core conftest.err conftest.
$ac_objext \
13472 conftest
$ac_exeext conftest.
$ac_ext
13474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 extern void tputs (const char *, int, int (*)(int));
13478 int main (int argc, char **argv)
13481 tputs (argv[0], 0, 0);
13486 if ac_fn_c_try_run
"$LINENO"; then :
13491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13496 if test "X$msg" != Xno
; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13501 $as_echo "$msg" >&6; }
13502 if test "X$msg" = Xno
; then
13503 as_fn_error
"The required function \`tputs' was not found in any library.
13504 The following libraries were tried (in order):
13505 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13506 Please try installing whichever of these libraries is most appropriate
13507 for your system, together with its header files.
13508 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13511 ## Use termcap instead of terminfo?
13512 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13514 ## FIXME? In the cases below where we unconditionally set
13515 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13516 ## if that was found above to have tputs.
13517 ## Should we use the gnu* logic everywhere?
13519 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13520 ## The ncurses library has been moved out of the System framework in
13521 ## Mac OS X 10.2. So if configure detects it, set the command-line
13522 ## option to use it.
13523 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13525 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13529 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13530 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13531 $as_echo_n "(cached) " >&6
13533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <osreldate.h>
13539 #if __FreeBSD_version < 400000
13547 if ac_fn_c_try_link
"$LINENO"; then :
13548 emacs_cv_freebsd_terminfo
=yes
13550 emacs_cv_freebsd_terminfo
=no
13552 rm -f core conftest.err conftest.
$ac_objext \
13553 conftest
$ac_exeext conftest.
$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13558 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13560 if test $emacs_cv_freebsd_terminfo = yes; then
13561 LIBS_TERMCAP
="-lncurses"
13564 LIBS_TERMCAP
="-ltermcap"
13569 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13571 LIBS_TERMCAP
="-ltermcap"
13575 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13577 ## hpux: Make sure we get select from libc rather than from libcurses
13578 ## because libcurses on HPUX 10.10 has a broken version of select.
13579 ## We used to use -lc -lcurses, but this may be cleaner.
13580 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13581 # set that way, now it uses the default). Isn't this a contradiction?
13582 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13586 TERMCAP_OBJ
=tparam.o
13587 if test $TERMINFO = yes; then
13589 $as_echo "#define TERMINFO 1" >>confdefs.h
13591 TERMCAP_OBJ
=terminfo.o
13597 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13598 # On Darwin, res_init appears not to be useful: see bug#562 and
13599 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13602 if test $opsys != darwin
; then
13604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <netinet/in.h>
13607 #include <arpa/nameser.h>
13608 #include <resolv.h>
13617 if ac_fn_c_try_link
"$LINENO"; then :
13622 rm -f core conftest.err conftest.
$ac_objext \
13623 conftest
$ac_exeext conftest.
$ac_ext
13624 if test "$have_res_init" = no
; then
13626 LIBS
="$LIBS -lresolv"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13628 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 #include <netinet/in.h>
13632 #include <arpa/nameser.h>
13633 #include <resolv.h>
13642 if ac_fn_c_try_link
"$LINENO"; then :
13647 rm -f core conftest.err conftest.
$ac_objext \
13648 conftest
$ac_exeext conftest.
$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13650 $as_echo "$have_res_init" >&6; }
13651 if test "$have_res_init" = yes ; then
13657 if test "$have_res_init" = yes; then
13659 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13663 # Do we need the Hesiod library to provide the support routines?
13665 if test "$with_hesiod" != no
; then
13666 # Don't set $LIBS here -- see comments above. FIXME which comments?
13667 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13668 if test "x$ac_cv_func_res_send" = x
""yes; then :
13671 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13672 if test "x$ac_cv_func___res_send" = x
""yes; then :
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13676 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13677 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13680 ac_check_lib_save_LIBS
=$LIBS
13681 LIBS
="-lresolv $LIBS"
13682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13695 return res_send ();
13700 if ac_fn_c_try_link
"$LINENO"; then :
13701 ac_cv_lib_resolv_res_send
=yes
13703 ac_cv_lib_resolv_res_send
=no
13705 rm -f core conftest.err conftest.
$ac_objext \
13706 conftest
$ac_exeext conftest.
$ac_ext
13707 LIBS
=$ac_check_lib_save_LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13710 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13711 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13715 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13716 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13719 ac_check_lib_save_LIBS
=$LIBS
13720 LIBS
="-lresolv $LIBS"
13721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13730 char __res_send ();
13734 return __res_send ();
13739 if ac_fn_c_try_link
"$LINENO"; then :
13740 ac_cv_lib_resolv___res_send
=yes
13742 ac_cv_lib_resolv___res_send
=no
13744 rm -f core conftest.err conftest.
$ac_objext \
13745 conftest
$ac_exeext conftest.
$ac_ext
13746 LIBS
=$ac_check_lib_save_LIBS
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13749 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13750 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13760 if test "$resolv" = yes ; then
13765 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13766 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13770 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13771 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13774 ac_check_lib_save_LIBS
=$LIBS
13775 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13785 char hes_getmailhost ();
13789 return hes_getmailhost ();
13794 if ac_fn_c_try_link
"$LINENO"; then :
13795 ac_cv_lib_hesiod_hes_getmailhost
=yes
13797 ac_cv_lib_hesiod_hes_getmailhost
=no
13799 rm -f core conftest.err conftest.
$ac_objext \
13800 conftest
$ac_exeext conftest.
$ac_ext
13801 LIBS
=$ac_check_lib_save_LIBS
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13804 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13805 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13814 if test x
"$hesiod" = xyes
; then
13816 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13823 # Do we need libresolv (due to res_init or Hesiod)?
13824 if test "$resolv" = yes && test $opsys != darwin
; then
13826 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13834 # These tell us which Kerberos-related libraries to use.
13841 if test "${with_kerberos}" != no
; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13843 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13844 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13847 ac_check_lib_save_LIBS
=$LIBS
13848 LIBS
="-lcom_err $LIBS"
13849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13852 /* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
13867 if ac_fn_c_try_link
"$LINENO"; then :
13868 ac_cv_lib_com_err_com_err
=yes
13870 ac_cv_lib_com_err_com_err
=no
13872 rm -f core conftest.err conftest.
$ac_objext \
13873 conftest
$ac_exeext conftest.
$ac_ext
13874 LIBS
=$ac_check_lib_save_LIBS
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13877 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13878 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13884 if test $have_com_err = yes; then
13885 COM_ERRLIB
=-lcom_err
13886 LIBS
="$COM_ERRLIB $LIBS"
13888 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13892 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13893 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13896 ac_check_lib_save_LIBS
=$LIBS
13897 LIBS
="-lcrypto $LIBS"
13898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13907 char mit_des_cbc_encrypt ();
13911 return mit_des_cbc_encrypt ();
13916 if ac_fn_c_try_link
"$LINENO"; then :
13917 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13919 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13921 rm -f core conftest.err conftest.
$ac_objext \
13922 conftest
$ac_exeext conftest.
$ac_ext
13923 LIBS
=$ac_check_lib_save_LIBS
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13926 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13927 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13933 if test $have_crypto = yes; then
13935 LIBS
="$CRYPTOLIB $LIBS"
13937 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13941 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13942 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13945 ac_check_lib_save_LIBS
=$LIBS
13946 LIBS
="-lk5crypto $LIBS"
13947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13956 char mit_des_cbc_encrypt ();
13960 return mit_des_cbc_encrypt ();
13965 if ac_fn_c_try_link
"$LINENO"; then :
13966 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13968 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13970 rm -f core conftest.err conftest.
$ac_objext \
13971 conftest
$ac_exeext conftest.
$ac_ext
13972 LIBS
=$ac_check_lib_save_LIBS
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13975 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13976 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13982 if test $have_k5crypto = yes; then
13983 CRYPTOLIB
=-lk5crypto
13984 LIBS
="$CRYPTOLIB $LIBS"
13986 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13990 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13991 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13994 ac_check_lib_save_LIBS
=$LIBS
13995 LIBS
="-lkrb5 $LIBS"
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14005 char krb5_init_context ();
14009 return krb5_init_context ();
14014 if ac_fn_c_try_link
"$LINENO"; then :
14015 ac_cv_lib_krb5_krb5_init_context
=yes
14017 ac_cv_lib_krb5_krb5_init_context
=no
14019 rm -f core conftest.err conftest.
$ac_objext \
14020 conftest
$ac_exeext conftest.
$ac_ext
14021 LIBS
=$ac_check_lib_save_LIBS
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14024 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14025 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14031 if test $have_krb5=yes; then
14033 LIBS
="$KRB5LIB $LIBS"
14035 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14038 if test "${with_kerberos5}" = no
; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14040 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14041 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14044 ac_check_lib_save_LIBS
=$LIBS
14045 LIBS
="-ldes425 $LIBS"
14046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14055 char des_cbc_encrypt ();
14059 return des_cbc_encrypt ();
14064 if ac_fn_c_try_link
"$LINENO"; then :
14065 ac_cv_lib_des425_des_cbc_encrypt
=yes
14067 ac_cv_lib_des425_des_cbc_encrypt
=no
14069 rm -f core conftest.err conftest.
$ac_objext \
14070 conftest
$ac_exeext conftest.
$ac_ext
14071 LIBS
=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14074 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14075 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14081 if test $have_des425 = yes; then
14083 LIBS
="$DESLIB $LIBS"
14085 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14089 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14090 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14093 ac_check_lib_save_LIBS
=$LIBS
14095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14098 /* Override any GCC internal prototype to avoid an error.
14099 Use char because int might match the return type of a GCC
14100 builtin and then its argument prototype would still apply. */
14104 char des_cbc_encrypt ();
14108 return des_cbc_encrypt ();
14113 if ac_fn_c_try_link
"$LINENO"; then :
14114 ac_cv_lib_des_des_cbc_encrypt
=yes
14116 ac_cv_lib_des_des_cbc_encrypt
=no
14118 rm -f core conftest.err conftest.
$ac_objext \
14119 conftest
$ac_exeext conftest.
$ac_ext
14120 LIBS
=$ac_check_lib_save_LIBS
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14123 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14124 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14130 if test $have_des = yes; then
14132 LIBS
="$DESLIB $LIBS"
14134 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14139 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14140 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14143 ac_check_lib_save_LIBS
=$LIBS
14144 LIBS
="-lkrb4 $LIBS"
14145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14154 char krb_get_cred ();
14158 return krb_get_cred ();
14163 if ac_fn_c_try_link
"$LINENO"; then :
14164 ac_cv_lib_krb4_krb_get_cred
=yes
14166 ac_cv_lib_krb4_krb_get_cred
=no
14168 rm -f core conftest.err conftest.
$ac_objext \
14169 conftest
$ac_exeext conftest.
$ac_ext
14170 LIBS
=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14173 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14174 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14180 if test $have_krb4 = yes; then
14182 LIBS
="$KRB4LIB $LIBS"
14184 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14188 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14189 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14192 ac_check_lib_save_LIBS
=$LIBS
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14203 char krb_get_cred ();
14207 return krb_get_cred ();
14212 if ac_fn_c_try_link
"$LINENO"; then :
14213 ac_cv_lib_krb_krb_get_cred
=yes
14215 ac_cv_lib_krb_krb_get_cred
=no
14217 rm -f core conftest.err conftest.
$ac_objext \
14218 conftest
$ac_exeext conftest.
$ac_ext
14219 LIBS
=$ac_check_lib_save_LIBS
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14222 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14223 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14229 if test $have_krb = yes; then
14231 LIBS
="$KRB4LIB $LIBS"
14233 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14239 if test "${with_kerberos5}" != no
; then
14240 for ac_header
in krb5.h
14242 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14244 cat >>confdefs.h
<<_ACEOF
14245 #define HAVE_KRB5_H 1
14247 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14249 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14251 cat >>confdefs.h
<<_ACEOF
14252 #define HAVE_KRB5_ERROR_TEXT 1
14257 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14259 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14261 cat >>confdefs.h
<<_ACEOF
14262 #define HAVE_KRB5_ERROR_E_TEXT 1
14273 for ac_header
in des.h
14275 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14276 if test "x$ac_cv_header_des_h" = x
""yes; then :
14277 cat >>confdefs.h
<<_ACEOF
14278 #define HAVE_DES_H 1
14282 for ac_header
in kerberosIV
/des.h
14284 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14285 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14286 cat >>confdefs.h
<<_ACEOF
14287 #define HAVE_KERBEROSIV_DES_H 1
14291 for ac_header
in kerberos
/des.h
14293 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14294 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14295 cat >>confdefs.h
<<_ACEOF
14296 #define HAVE_KERBEROS_DES_H 1
14311 for ac_header
in krb.h
14313 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define HAVE_KRB_H 1
14320 for ac_header
in kerberosIV
/krb.h
14322 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14323 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14324 cat >>confdefs.h
<<_ACEOF
14325 #define HAVE_KERBEROSIV_KRB_H 1
14329 for ac_header
in kerberos
/krb.h
14331 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14332 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14333 cat >>confdefs.h
<<_ACEOF
14334 #define HAVE_KERBEROS_KRB_H 1
14350 for ac_header
in com_err.h
14352 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14353 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14354 cat >>confdefs.h
<<_ACEOF
14355 #define HAVE_COM_ERR_H 1
14373 for ac_func
in $ac_func_list
14375 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14376 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14377 eval as_val
=\$
$as_ac_var
14378 if test "x$as_val" = x
""yes; then :
14379 cat >>confdefs.h
<<_ACEOF
14380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14390 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14391 if test "${emacs_cv_localtime_cache+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14394 if test x
$ac_cv_func_tzset = xyes
; then
14395 if test "$cross_compiling" = yes; then :
14396 # If we have tzset, assume the worst when cross-compiling.
14397 emacs_cv_localtime_cache
=yes
14399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14402 char TZ_GMT0[] = "TZ=GMT0";
14403 char TZ_PST8[] = "TZ=PST8";
14406 time_t now = time ((time_t *) 0);
14407 int hour_GMT0, hour_unset;
14408 if (putenv (TZ_GMT0) != 0)
14410 hour_GMT0 = localtime (&now)->tm_hour;
14412 hour_unset = localtime (&now)->tm_hour;
14413 if (putenv (TZ_PST8) != 0)
14415 if (localtime (&now)->tm_hour == hour_GMT0)
14418 if (localtime (&now)->tm_hour != hour_unset)
14423 if ac_fn_c_try_run
"$LINENO"; then :
14424 emacs_cv_localtime_cache
=no
14426 emacs_cv_localtime_cache
=yes
14428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14433 # If we lack tzset, report that localtime does not cache TZ,
14434 # since we can't invalidate the cache if we don't have tzset.
14435 emacs_cv_localtime_cache
=no
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14439 $as_echo "$emacs_cv_localtime_cache" >&6; }
14440 if test $emacs_cv_localtime_cache = yes; then
14442 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14447 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14448 if test "x$ac_cv_func_socket" = x
""yes; then :
14454 if test $ok_so_far = yes; then
14455 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14456 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14464 if test $ok_so_far = yes; then
14465 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14474 if test $ok_so_far = yes; then
14476 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14480 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14482 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14487 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14488 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14490 $as_echo "yes" >&6; }
14492 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 $as_echo "no" >&6; }
14500 *-solaris2.4 |
*-solaris2.4.
*)
14501 : ${ac_cv_func_vfork_works=no};;
14504 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14505 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14509 cat >>confdefs.h
<<_ACEOF
14515 for ac_header
in vfork.h
14517 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14518 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14519 cat >>confdefs.h
<<_ACEOF
14520 #define HAVE_VFORK_H 1
14527 for ac_func
in fork vfork
14529 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14530 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14531 eval as_val
=\$
$as_ac_var
14532 if test "x$as_val" = x
""yes; then :
14533 cat >>confdefs.h
<<_ACEOF
14534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 if test "x$ac_cv_func_fork" = xyes
; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14542 $as_echo_n "checking for working fork... " >&6; }
14543 if test "${ac_cv_func_fork_works+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14546 if test "$cross_compiling" = yes; then :
14547 ac_cv_func_fork_works
=cross
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 $ac_includes_default
14556 /* By Ruediger Kuhlmann. */
14557 return fork () < 0;
14563 if ac_fn_c_try_run
"$LINENO"; then :
14564 ac_cv_func_fork_works
=yes
14566 ac_cv_func_fork_works
=no
14568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14574 $as_echo "$ac_cv_func_fork_works" >&6; }
14577 ac_cv_func_fork_works
=$ac_cv_func_fork
14579 if test "x$ac_cv_func_fork_works" = xcross
; then
14581 *-*-amigaos* |
*-*-msdosdjgpp*)
14582 # Override, as these systems have only a dummy fork() stub
14583 ac_cv_func_fork_works
=no
14586 ac_cv_func_fork_works
=yes
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14590 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14592 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14593 if test "x$ac_cv_func_vfork" = xyes
; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14595 $as_echo_n "checking for working vfork... " >&6; }
14596 if test "${ac_cv_func_vfork_works+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14599 if test "$cross_compiling" = yes; then :
14600 ac_cv_func_vfork_works
=cross
14602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 /* Thanks to Paul Eggert for this test. */
14605 $ac_includes_default
14606 #include <sys/wait.h>
14607 #ifdef HAVE_VFORK_H
14608 # include <vfork.h>
14610 /* On some sparc systems, changes by the child to local and incoming
14611 argument registers are propagated back to the parent. The compiler
14612 is told about this with #include <vfork.h>, but some compilers
14613 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14614 static variable whose address is put into a register that is
14615 clobbered by the vfork. */
14618 sparc_address_test (int arg)
14620 sparc_address_test (arg) int arg;
14623 static pid_t child;
14641 pid_t parent = getpid ();
14644 sparc_address_test (0);
14649 /* Here is another test for sparc vfork register problems. This
14650 test uses lots of local variables, at least as many local
14651 variables as main has allocated so far including compiler
14652 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14653 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14654 reuse the register of parent for one of the local variables,
14655 since it will think that parent can't possibly be used any more
14656 in this routine. Assigning to the local variable will thus
14657 munge parent in the parent process. */
14659 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14660 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14661 /* Convince the compiler that p..p7 are live; otherwise, it might
14662 use the same hardware register for all 8 local variables. */
14663 if (p != p1 || p != p2 || p != p3 || p != p4
14664 || p != p5 || p != p6 || p != p7)
14667 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14668 from child file descriptors. If the child closes a descriptor
14669 before it execs or exits, this munges the parent's descriptor
14670 as well. Test for this by closing stdout in the child. */
14671 _exit(close(fileno(stdout)) != 0);
14676 while (wait(&status) != child)
14679 /* Was there some problem with vforking? */
14682 /* Did the child fail? (This shouldn't happen.) */
14685 /* Did the vfork/compiler bug occur? */
14686 || parent != getpid()
14688 /* Did the file descriptor bug occur? */
14689 || fstat(fileno(stdout), &st) != 0
14694 if ac_fn_c_try_run
"$LINENO"; then :
14695 ac_cv_func_vfork_works
=yes
14697 ac_cv_func_vfork_works
=no
14699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14705 $as_echo "$ac_cv_func_vfork_works" >&6; }
14708 if test "x$ac_cv_func_fork_works" = xcross
; then
14709 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14711 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14714 if test "x$ac_cv_func_vfork_works" = xyes
; then
14716 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14720 $as_echo "#define vfork fork" >>confdefs.h
14723 if test "x$ac_cv_func_fork_works" = xyes
; then
14725 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14730 for ac_func
in snprintf
14732 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14733 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14734 cat >>confdefs.h
<<_ACEOF
14735 #define HAVE_SNPRINTF 1
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14743 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14744 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 #include <langinfo.h>
14753 char* cs = nl_langinfo(CODESET);
14758 if ac_fn_c_try_link
"$LINENO"; then :
14759 emacs_cv_langinfo_codeset
=yes
14761 emacs_cv_langinfo_codeset
=no
14763 rm -f core conftest.err conftest.
$ac_objext \
14764 conftest
$ac_exeext conftest.
$ac_ext
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14768 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14769 if test $emacs_cv_langinfo_codeset = yes; then
14771 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14776 $as_echo_n "checking for mbstate_t... " >&6; }
14777 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 # include <wchar.h>
14787 mbstate_t x; return sizeof x;
14792 if ac_fn_c_try_compile
"$LINENO"; then :
14793 ac_cv_type_mbstate_t
=yes
14795 ac_cv_type_mbstate_t
=no
14797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14800 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14801 if test $ac_cv_type_mbstate_t = yes; then
14803 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14807 $as_echo "#define mbstate_t int" >>confdefs.h
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14812 $as_echo_n "checking for C restricted array declarations... " >&6; }
14813 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 void fred (int x[__restrict]);
14827 if ac_fn_c_try_compile
"$LINENO"; then :
14828 emacs_cv_c_restrict_arr
=yes
14830 emacs_cv_c_restrict_arr
=no
14832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14835 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14836 if test "$emacs_cv_c_restrict_arr" = yes; then
14838 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14844 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14848 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14851 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14853 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14857 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14863 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14867 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14871 $as_echo "#define subprocesses 1" >>confdefs.h
14875 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14880 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14886 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14890 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14894 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14902 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14903 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14909 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14916 irix6-5 | sol2
* | unixware
)
14918 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14923 emacs_broken_SIGIO
=no
14926 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14927 emacs_broken_SIGIO
=yes
14932 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14938 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14946 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14952 darwin | freebsd | netbsd | openbsd
)
14954 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14960 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14961 *) sound_device
="/dev/dsp" ;;
14965 cat >>confdefs.h
<<_ACEOF
14966 #define DEFAULT_SOUND_DEVICE "$sound_device"
14972 darwin | gnu-linux | gnu-kfreebsd
)
14974 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14981 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14983 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14997 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14999 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15001 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15006 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15008 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15010 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15012 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15017 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15019 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15021 $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
15023 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15025 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15030 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15034 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15035 if test "x$ac_cv_func_grantpt" = xyes
; then
15037 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15039 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15041 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15043 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15044 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15046 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15048 elif test "x$ac_cv_func_getpt" = xyes
; then
15049 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15051 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15054 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15058 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15064 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15066 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15068 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15073 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15075 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15077 $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
15079 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15081 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15086 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15091 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15099 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15101 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15104 $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
15113 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15114 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15118 gnu-linux | gnu-kfreebsd
)
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15121 $as_echo_n "checking for signals via characters... " >&6; }
15122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15125 #include <linux/version.h>
15126 #if LINUX_VERSION_CODE < 0x20400
15127 # error "Linux version too old"
15138 if ac_fn_c_try_cpp
"$LINENO"; then :
15139 emacs_signals_via_chars
=yes
15141 emacs_signals_via_chars
=no
15143 rm -f conftest.err conftest.
$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15146 $as_echo "$emacs_signals_via_chars" >&6; }
15147 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15156 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 #include <features.h>
15161 #ifndef __GNU_LIBRARY__
15162 # error "this is not the GNU C library"
15173 if ac_fn_c_try_cpp
"$LINENO"; then :
15178 rm -f conftest.err conftest.
$ac_ext
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15180 $as_echo "$emacs_glibc" >&6; }
15182 if test $emacs_glibc = yes; then
15184 emacs_pending_output
=unknown
15187 gnu | gnu-linux | gnu-kfreebsd
)
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15189 $as_echo_n "checking for style of pending output formalism... " >&6; }
15190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15194 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15195 # error "stdio definitions not found"
15206 if ac_fn_c_try_cpp
"$LINENO"; then :
15207 emacs_pending_output
=new
15209 rm -f conftest.err conftest.
$ac_ext
15211 if test $emacs_pending_output = unknown
; then
15213 gnu-linux | gnu-kfreebsd
)
15214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15219 # error "not using uclibc"
15230 if ac_fn_c_try_cpp
"$LINENO"; then :
15231 emacs_pending_output
=uclibc
15233 emacs_pending_output
=old
15235 rm -f conftest.err conftest.
$ac_ext
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15241 $as_echo "$emacs_pending_output" >&6; }
15243 case $emacs_pending_output in
15245 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15249 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15253 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15259 if test $emacs_pending_output = unknown
; then
15260 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15266 cygwin | darwin | freebsd | netbsd | openbsd
)
15267 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15272 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15277 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15278 test x
$ac_cv_func___fpending = xyes
; then
15279 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15282 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15285 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15297 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15302 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15304 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15308 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15310 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15320 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15323 gnu | freebsd | netbsd | openbsd
)
15325 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15327 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15331 gnu-linux | gnu-kfreebsd
)
15332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15347 if ac_fn_c_try_cpp
"$LINENO"; then :
15348 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15351 rm -f conftest.err conftest.
$ac_ext
15353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15368 if ac_fn_c_try_cpp
"$LINENO"; then :
15370 $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
15373 rm -f conftest.err conftest.
$ac_ext
15378 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15383 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15395 aix4-2 | hpux
* | unixware
)
15396 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15400 gnu-linux | gnu-kfreebsd
)
15401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15404 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15405 || defined __alpha__ || defined __mips__ || defined __s390__ \
15406 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15407 || defined __ia64__ || defined __sh__
15410 # error "setjmp not known to work on this arch"
15421 if ac_fn_c_try_cpp
"$LINENO"; then :
15422 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15425 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15428 rm -f conftest.err conftest.
$ac_ext
15433 if test x
$GCC = xyes
; then
15434 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15438 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15439 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15445 $as_echo_n "checking for _setjmp... " >&6; }
15446 if test "${emacs_cv_func__setjmp+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <setjmp.h>
15463 if ac_fn_c_try_link
"$LINENO"; then :
15464 emacs_cv_func__setjmp
=yes
15466 emacs_cv_func__setjmp
=no
15468 rm -f core conftest.err conftest.
$ac_objext \
15469 conftest
$ac_exeext conftest.
$ac_ext
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15472 $as_echo "$emacs_cv_func__setjmp" >&6; }
15473 if test $emacs_cv_func__setjmp = yes; then
15475 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15479 $as_echo_n "checking for sigsetjmp... " >&6; }
15480 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485 #include <setjmp.h>
15491 if (! sigsetjmp (j, 1))
15497 if ac_fn_c_try_link
"$LINENO"; then :
15498 emacs_cv_func_sigsetjmp
=yes
15500 emacs_cv_func_sigsetjmp
=no
15502 rm -f core conftest.err conftest.
$ac_objext \
15503 conftest
$ac_exeext conftest.
$ac_ext
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15506 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15507 if test $emacs_cv_func_sigsetjmp = yes; then
15509 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15517 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15526 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15542 $as_echo "#define USG /**/" >>confdefs.h
15544 $as_echo "#define USG5 /**/" >>confdefs.h
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15550 # error "_AIX not defined"
15561 if ac_fn_c_try_cpp
"$LINENO"; then :
15565 $as_echo "#define _AIX /**/" >>confdefs.h
15568 rm -f conftest.err conftest.
$ac_ext
15573 $as_echo "#define CYGWIN 1" >>confdefs.h
15578 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15580 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15583 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15588 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15591 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15595 gnu | netbsd | openbsd
)
15596 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15602 # error "BSD_SYSTEM not defined"
15613 if ac_fn_c_try_cpp
"$LINENO"; then :
15616 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15619 rm -f conftest.err conftest.
$ac_ext
15622 gnu-linux | gnu-kfreebsd
)
15623 $as_echo "#define USG /**/" >>confdefs.h
15626 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15631 $as_echo "#define USG /**/" >>confdefs.h
15633 $as_echo "#define USG5 /**/" >>confdefs.h
15636 $as_echo "#define HPUX /**/" >>confdefs.h
15641 $as_echo "#define USG /**/" >>confdefs.h
15643 $as_echo "#define USG5 /**/" >>confdefs.h
15645 $as_echo "#define USG5_4 /**/" >>confdefs.h
15648 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15653 $as_echo "#define USG /**/" >>confdefs.h
15655 $as_echo "#define USG5 /**/" >>confdefs.h
15657 $as_echo "#define USG5_4 /**/" >>confdefs.h
15660 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15665 $as_echo "#define USG /**/" >>confdefs.h
15667 $as_echo "#define USG5 /**/" >>confdefs.h
15669 $as_echo "#define USG5_4 /**/" >>confdefs.h
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15675 $as_echo_n "checking for usable FIONREAD... " >&6; }
15676 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15681 emacs_cv_usable_FIONREAD
=no
15685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <sys/types.h>
15688 #include <sys/ioctl.h>
15690 # include <sys/filio.h>
15696 int foo = ioctl (0, FIONREAD, &foo);
15701 if ac_fn_c_try_compile
"$LINENO"; then :
15702 emacs_cv_usable_FIONREAD
=yes
15704 emacs_cv_usable_FIONREAD
=no
15706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15711 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15712 if test $emacs_cv_usable_FIONREAD = yes; then
15714 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15717 if test $emacs_broken_SIGIO = no
; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15719 $as_echo_n "checking for usable SIGIO... " >&6; }
15720 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15726 #include <signal.h>
15731 int foo = SIGIO | F_SETFL | FASYNC;
15736 if ac_fn_c_try_compile
"$LINENO"; then :
15737 emacs_cv_usable_SIGIO
=yes
15739 emacs_cv_usable_SIGIO
=no
15741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15744 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15745 if test $emacs_cv_usable_SIGIO = yes; then
15747 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15757 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15763 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15769 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15772 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15778 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15783 # Set up the CFLAGS for real compilation, so we can substitute it.
15784 CFLAGS
="$REAL_CFLAGS"
15785 CPPFLAGS
="$REAL_CPPFLAGS"
15787 ## Hack to detect a buggy GCC version.
15788 if test "x$GCC" = xyes \
15789 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15790 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15791 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15792 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15795 version
=$PACKAGE_VERSION
15797 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15799 cat >>confdefs.h
<<_ACEOF
15800 #define COPYRIGHT "$copyright"
15805 ### Specify what sort of things we'll be editing into Makefile and config.h.
15806 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15832 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15833 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15834 ## end of LIBX_BASE, but nothing ever set it.
15839 ## Used in lwlib/Makefile.in.
15848 if test -n "${term_header}"; then
15850 cat >>confdefs.h
<<_ACEOF
15851 #define TERM_HEADER "${term_header}"
15857 cat >>confdefs.h
<<_ACEOF
15858 #define EMACS_CONFIGURATION "${canonical}"
15862 cat >>confdefs.h
<<_ACEOF
15863 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15871 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15873 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15876 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15878 if test "$HAVE_XFT" = "yes"; then
15879 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15880 elif test "$HAVE_FREETYPE" = "yes"; then
15881 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15891 if test "${USE_X_TOOLKIT}" != "none" ; then
15892 WIDGET_OBJ
=widget.o
15894 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15896 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15898 $as_echo "#define USE_LUCID 1" >>confdefs.h
15900 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15902 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15907 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15908 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15912 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15913 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15914 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15918 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15919 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15922 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15928 case "$USE_X_TOOLKIT" in
15929 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15930 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15931 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15935 if test "$USE_X_TOOLKIT" = "none"; then
15936 LIBXT_OTHER
="\$(LIBXSM)"
15937 OLDXMENU_TARGET
="really-oldXMenu"
15939 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15940 OLDXMENU_TARGET
="really-lwlib"
15944 ## The X Menu stuff is present in the X10 distribution, but missing
15945 ## from X11. If we have X10, just use the installed library;
15946 ## otherwise, use our own copy.
15947 if test "${HAVE_X11}" = "yes" ; then
15949 $as_echo "#define HAVE_X11 1" >>confdefs.h
15952 if test "$USE_X_TOOLKIT" = "none"; then
15953 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15955 OLDXMENU
="\${lwlibdir}/liblw.a"
15957 LIBXMENU
="\$(OLDXMENU)"
15958 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15959 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15961 ## For a syntactically valid Makefile; not actually used for anything.
15962 ## See comments in src/Makefile.in.
15964 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15965 if test "${HAVE_X_WINDOWS}" = "yes"; then
15974 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15987 if test "${HAVE_MENUS}" = "yes" ; then
15989 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15993 if test "${GNU_MALLOC}" = "yes" ; then
15995 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16000 if test "${REL_ALLOC}" = "yes" ; then
16002 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16005 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16009 if test "$opsys" = "cygwin"; then
16010 CYGWIN_OBJ
="sheap.o"
16011 ## Cygwin differs because of its unexec().
16013 POST_ALLOC_OBJ
=lastfile.o
16016 PRE_ALLOC_OBJ
=lastfile.o
16023 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16024 # it temporarily reverts them to their pre-pkg-config values,
16025 # because gnulib needs to work with both src (which uses the
16026 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16027 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16028 # and it therefore needs to run in an environment where LIBS does not
16029 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16030 # for some package unrelated to lib-src.
16031 SAVE_CFLAGS
=$CFLAGS
16033 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16034 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16046 LIBC_FATAL_STDERR_
=1
16047 export LIBC_FATAL_STDERR_
16049 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16050 # for constant arguments. Useless!
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16052 $as_echo_n "checking for working alloca.h... " >&6; }
16053 if test "${ac_cv_working_alloca_h+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <alloca.h>
16062 char *p = (char *) alloca (2 * sizeof (int));
16068 if ac_fn_c_try_link
"$LINENO"; then :
16069 ac_cv_working_alloca_h
=yes
16071 ac_cv_working_alloca_h
=no
16073 rm -f core conftest.err conftest.
$ac_objext \
16074 conftest
$ac_exeext conftest.
$ac_ext
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16077 $as_echo "$ac_cv_working_alloca_h" >&6; }
16078 if test $ac_cv_working_alloca_h = yes; then
16080 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16085 $as_echo_n "checking for alloca... " >&6; }
16086 if test "${ac_cv_func_alloca_works+set}" = set; then :
16087 $as_echo_n "(cached) " >&6
16089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16092 # define alloca __builtin_alloca
16095 # include <malloc.h>
16096 # define alloca _alloca
16098 # ifdef HAVE_ALLOCA_H
16099 # include <alloca.h>
16104 # ifndef alloca /* predefined by HP cc +Olibcalls */
16115 char *p = (char *) alloca (1);
16121 if ac_fn_c_try_link
"$LINENO"; then :
16122 ac_cv_func_alloca_works
=yes
16124 ac_cv_func_alloca_works
=no
16126 rm -f core conftest.err conftest.
$ac_objext \
16127 conftest
$ac_exeext conftest.
$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16130 $as_echo "$ac_cv_func_alloca_works" >&6; }
16132 if test $ac_cv_func_alloca_works = yes; then
16134 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16138 # that cause trouble. Some versions do not even contain alloca or
16139 # contain a buggy version. If you still want to use their alloca,
16140 # use ar to extract alloca.o from them instead of compiling alloca.c.
16146 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16148 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16152 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16153 if test "${ac_cv_os_cray+set}" = set; then :
16154 $as_echo_n "(cached) " >&6
16156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 #if defined CRAY && ! defined CRAY2
16165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16166 $EGREP "webecray" >/dev
/null
2>&1; then :
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16175 $as_echo "$ac_cv_os_cray" >&6; }
16176 if test $ac_cv_os_cray = yes; then
16177 for ac_func
in _getb67 GETB67 getb67
; do
16178 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16180 eval as_val
=\$
$as_ac_var
16181 if test "x$as_val" = x
""yes; then :
16183 cat >>confdefs.h
<<_ACEOF
16184 #define CRAY_STACKSEG_END $ac_func
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16194 $as_echo_n "checking stack direction for C alloca... " >&6; }
16195 if test "${ac_cv_c_stack_direction+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16198 if test "$cross_compiling" = yes; then :
16199 ac_cv_c_stack_direction
=0
16201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 $ac_includes_default
16205 find_stack_direction (int *addr, int depth)
16207 int dir, dummy = 0;
16210 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16211 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16212 return dir + dummy;
16216 main (int argc, char **argv)
16218 return find_stack_direction (0, argc + !argv + 20) < 0;
16221 if ac_fn_c_try_run
"$LINENO"; then :
16222 ac_cv_c_stack_direction
=1
16224 ac_cv_c_stack_direction
=-1
16226 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16227 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16232 $as_echo "$ac_cv_c_stack_direction" >&6; }
16233 cat >>confdefs.h
<<_ACEOF
16234 #define STACK_DIRECTION $ac_cv_c_stack_direction
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16244 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16245 if test "${ac_cv_c_bigendian+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16248 ac_cv_c_bigendian
=unknown
16249 # See if we're dealing with a universal compiler.
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #ifndef __APPLE_CC__
16253 not a universal capable compiler
16258 if ac_fn_c_try_compile
"$LINENO"; then :
16260 # Check for potential -arch flags. It is not universal unless
16261 # there are at least two -arch flags with different values.
16264 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16265 if test -n "$ac_prev"; then
16267 i?
86 | x86_64 | ppc | ppc64
)
16268 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16271 ac_cv_c_bigendian
=universal
16277 elif test "x$ac_word" = "x-arch"; then
16282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16283 if test $ac_cv_c_bigendian = unknown
; then
16284 # See if sys/param.h defines the BYTE_ORDER macro.
16285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 #include <sys/types.h>
16288 #include <sys/param.h>
16293 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16294 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16296 bogus endian macros
16303 if ac_fn_c_try_compile
"$LINENO"; then :
16304 # It does; now see whether it defined to BIG_ENDIAN or not.
16305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <sys/types.h>
16308 #include <sys/param.h>
16313 #if BYTE_ORDER != BIG_ENDIAN
16321 if ac_fn_c_try_compile
"$LINENO"; then :
16322 ac_cv_c_bigendian
=yes
16324 ac_cv_c_bigendian
=no
16326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16330 if test $ac_cv_c_bigendian = unknown
; then
16331 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <limits.h>
16339 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16340 bogus endian macros
16347 if ac_fn_c_try_compile
"$LINENO"; then :
16348 # It does; now see whether it defined to _BIG_ENDIAN or not.
16349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 #include <limits.h>
16356 #ifndef _BIG_ENDIAN
16364 if ac_fn_c_try_compile
"$LINENO"; then :
16365 ac_cv_c_bigendian
=yes
16367 ac_cv_c_bigendian
=no
16369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16373 if test $ac_cv_c_bigendian = unknown
; then
16374 # Compile a test program.
16375 if test "$cross_compiling" = yes; then :
16376 # Try to guess by grepping values from an object file.
16377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 short int ascii_mm[] =
16380 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16381 short int ascii_ii[] =
16382 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16383 int use_ascii (int i) {
16384 return ascii_mm[i] + ascii_ii[i];
16386 short int ebcdic_ii[] =
16387 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16388 short int ebcdic_mm[] =
16389 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16390 int use_ebcdic (int i) {
16391 return ebcdic_mm[i] + ebcdic_ii[i];
16398 return use_ascii (foo) == use_ebcdic (foo);
16403 if ac_fn_c_try_compile
"$LINENO"; then :
16404 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16405 ac_cv_c_bigendian
=yes
16407 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16408 if test "$ac_cv_c_bigendian" = unknown
; then
16409 ac_cv_c_bigendian
=no
16411 # finding both strings is unlikely to happen, but who knows?
16412 ac_cv_c_bigendian
=unknown
16416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 $ac_includes_default
16425 /* Are we little or big endian? From Harbison&Steele. */
16429 char c[sizeof (long int)];
16432 return u.c[sizeof (long int) - 1] == 1;
16438 if ac_fn_c_try_run
"$LINENO"; then :
16439 ac_cv_c_bigendian
=no
16441 ac_cv_c_bigendian
=yes
16443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16450 $as_echo "$ac_cv_c_bigendian" >&6; }
16451 case $ac_cv_c_bigendian in #(
16453 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16459 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16463 as_fn_error
"unknown endianness
16464 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16469 $as_echo_n "checking for inline... " >&6; }
16470 if test "${ac_cv_c_inline+set}" = set; then :
16471 $as_echo_n "(cached) " >&6
16474 for ac_kw
in inline __inline__ __inline
; do
16475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #ifndef __cplusplus
16479 static $ac_kw foo_t static_foo () {return 0; }
16480 $ac_kw foo_t foo () {return 0; }
16484 if ac_fn_c_try_compile
"$LINENO"; then :
16485 ac_cv_c_inline
=$ac_kw
16487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16488 test "$ac_cv_c_inline" != no
&& break
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16493 $as_echo "$ac_cv_c_inline" >&6; }
16495 case $ac_cv_c_inline in
16498 case $ac_cv_c_inline in
16500 *) ac_val
=$ac_cv_c_inline;;
16502 cat >>confdefs.h
<<_ACEOF
16503 #ifndef __cplusplus
16504 #define inline $ac_val
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16512 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16513 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16514 $as_echo_n "(cached) " >&6
16516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 /* On HP-UX before 11.23, strtold returns a struct instead of
16519 long double. Reject implementations like that, by requiring
16520 compatibility with the C99 prototype. */
16521 #include <stdlib.h>
16522 static long double (*p) (char const *, char **) = strtold;
16524 test (char const *nptr, char **endptr)
16527 r = strtold (nptr, endptr);
16533 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16538 if ac_fn_c_try_link
"$LINENO"; then :
16539 gl_cv_func_c99_strtold
=yes
16541 gl_cv_func_c99_strtold
=no
16543 rm -f core conftest.err conftest.
$ac_objext \
16544 conftest
$ac_exeext conftest.
$ac_ext
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16547 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16548 if test $gl_cv_func_c99_strtold = yes; then
16550 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16562 GNULIB_EUIDACCESS
=0;
16563 GNULIB_FACCESSAT
=0;
16566 GNULIB_FDATASYNC
=0;
16568 GNULIB_FTRUNCATE
=0;
16570 GNULIB_GETDOMAINNAME
=0;
16571 GNULIB_GETDTABLESIZE
=0;
16572 GNULIB_GETGROUPS
=0;
16573 GNULIB_GETHOSTNAME
=0;
16575 GNULIB_GETLOGIN_R
=0;
16576 GNULIB_GETPAGESIZE
=0;
16577 GNULIB_GETUSERSHELL
=0;
16578 GNULIB_GROUP_MEMBER
=0;
16590 GNULIB_READLINKAT
=0;
16592 GNULIB_SETHOSTNAME
=0;
16595 GNULIB_SYMLINKAT
=0;
16596 GNULIB_TTYNAME_R
=0;
16597 GNULIB_UNISTD_H_NONBLOCKING
=0;
16598 GNULIB_UNISTD_H_SIGPIPE
=0;
16613 HAVE_GETDTABLESIZE
=1;
16615 HAVE_GETHOSTNAME
=1;
16617 HAVE_GETPAGESIZE
=1;
16618 HAVE_GROUP_MEMBER
=1;
16628 HAVE_SETHOSTNAME
=1;
16634 HAVE_DECL_ENVIRON
=1;
16635 HAVE_DECL_FCHDIR
=1;
16636 HAVE_DECL_FDATASYNC
=1;
16637 HAVE_DECL_GETDOMAINNAME
=1;
16638 HAVE_DECL_GETLOGIN_R
=1;
16639 HAVE_DECL_GETPAGESIZE
=1;
16640 HAVE_DECL_GETUSERSHELL
=1;
16641 HAVE_DECL_SETHOSTNAME
=1;
16642 HAVE_DECL_TTYNAME_R
=1;
16644 HAVE_SYS_PARAM_H
=0;
16649 REPLACE_FCHOWNAT
=0;
16650 REPLACE_FTRUNCATE
=0;
16652 REPLACE_GETDOMAINNAME
=0;
16653 REPLACE_GETLOGIN_R
=0;
16654 REPLACE_GETGROUPS
=0;
16655 REPLACE_GETPAGESIZE
=0;
16664 REPLACE_READLINK
=0;
16668 REPLACE_TTYNAME_R
=0;
16670 REPLACE_UNLINKAT
=0;
16673 UNISTD_H_HAVE_WINSOCK2_H
=0;
16674 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16685 $as_echo_n "checking if environ is properly declared... " >&6; }
16686 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16687 $as_echo_n "(cached) " >&6
16690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16693 #include <unistd.h>
16695 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16696 #include <stdlib.h>
16698 extern struct { int foo; } environ;
16707 if ac_fn_c_try_compile
"$LINENO"; then :
16708 gt_cv_var_environ_declaration
=no
16710 gt_cv_var_environ_declaration
=yes
16712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16716 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16717 if test $gt_cv_var_environ_declaration = yes; then
16719 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16724 if test $gt_cv_var_environ_declaration != yes; then
16725 HAVE_DECL_ENVIRON
=0
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16735 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16736 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16742 #include <sys/types.h>
16743 #include <sys/stat.h>
16747 struct stat s; s.st_dm_mode;
16752 if ac_fn_c_try_compile
"$LINENO"; then :
16753 ac_cv_struct_st_dm_mode
=yes
16755 ac_cv_struct_st_dm_mode
=no
16757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16760 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16762 if test $ac_cv_struct_st_dm_mode = yes; then
16764 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16769 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16770 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16776 cat >>confdefs.h
<<_ACEOF
16777 #define HAVE_DECL_STRMODE $ac_have_decl
16783 GNULIB_CALLOC_POSIX
=0;
16784 GNULIB_CANONICALIZE_FILE_NAME
=0;
16785 GNULIB_GETLOADAVG
=0;
16786 GNULIB_GETSUBOPT
=0;
16788 GNULIB_MALLOC_POSIX
=0;
16792 GNULIB_MKOSTEMPS
=0;
16795 GNULIB_POSIX_OPENPT
=0;
16797 GNULIB_PTSNAME_R
=0;
16801 GNULIB_REALLOC_POSIX
=0;
16808 GNULIB_SYSTEM_POSIX
=0;
16814 HAVE_CANONICALIZE_FILE_NAME
=1;
16815 HAVE_DECL_GETLOADAVG
=1;
16823 HAVE_POSIX_OPENPT
=1;
16832 HAVE_DECL_SETENV
=1;
16836 HAVE_STRUCT_RANDOM_DATA
=1;
16837 HAVE_SYS_LOADAVG_H
=0;
16839 HAVE_DECL_UNSETENV
=1;
16841 REPLACE_CANONICALIZE_FILE_NAME
=0;
16845 REPLACE_PTSNAME_R
=0;
16847 REPLACE_RANDOM_R
=0;
16849 REPLACE_REALPATH
=0;
16852 REPLACE_UNSETENV
=0;
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16858 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16859 if test "${gl_cv_have_include_next+set}" = set; then :
16860 $as_echo_n "(cached) " >&6
16862 rm -rf conftestd1a conftestd1b conftestd2
16863 mkdir conftestd1a conftestd1b conftestd2
16864 cat <<EOF > conftestd1a/conftest.h
16865 #define DEFINED_IN_CONFTESTD1
16866 #include_next <conftest.h>
16867 #ifdef DEFINED_IN_CONFTESTD2
16870 #error "include_next doesn't work"
16873 cat <<EOF > conftestd1b/conftest.h
16874 #define DEFINED_IN_CONFTESTD1
16876 #include_next <conftest.h>
16877 #ifdef DEFINED_IN_CONFTESTD2
16880 #error "include_next doesn't work"
16883 cat <<EOF > conftestd2/conftest.h
16884 #ifndef DEFINED_IN_CONFTESTD1
16885 #error "include_next test doesn't work"
16887 #define DEFINED_IN_CONFTESTD2
16889 gl_save_CPPFLAGS
="$CPPFLAGS"
16890 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 #include <conftest.h>
16895 if ac_fn_c_try_compile
"$LINENO"; then :
16896 gl_cv_have_include_next
=yes
16898 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 #include <conftest.h>
16903 if ac_fn_c_try_compile
"$LINENO"; then :
16904 gl_cv_have_include_next
=buggy
16906 gl_cv_have_include_next
=no
16908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16912 CPPFLAGS
="$gl_save_CPPFLAGS"
16913 rm -rf conftestd1a conftestd1b conftestd2
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16917 $as_echo "$gl_cv_have_include_next" >&6; }
16918 PRAGMA_SYSTEM_HEADER
=
16919 if test $gl_cv_have_include_next = yes; then
16920 INCLUDE_NEXT
=include_next
16921 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16922 if test -n "$GCC"; then
16923 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16926 if test $gl_cv_have_include_next = buggy
; then
16927 INCLUDE_NEXT
=include
16928 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16930 INCLUDE_NEXT
=include
16931 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16938 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16939 if test "${gl_cv_pragma_columns+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16951 $EGREP "choke me" >/dev
/null
2>&1; then :
16952 gl_cv_pragma_columns
=yes
16954 gl_cv_pragma_columns
=no
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16961 $as_echo "$gl_cv_pragma_columns" >&6; }
16962 if test $gl_cv_pragma_columns = yes; then
16963 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16984 if test $gl_cv_have_include_next = yes; then
16985 gl_cv_next_getopt_h
='<'getopt.h
'>'
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16988 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16989 if test "${gl_cv_next_getopt_h+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16993 if test $ac_cv_header_getopt_h = yes; then
16996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 #include <getopt.h>
17002 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17003 *) gl_absname_cpp
="$ac_cpp" ;;
17008 gl_dirsep_regex
='[/\\]'
17011 gl_dirsep_regex
='\/'
17014 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17016 gl_header_literal_regex
=`echo 'getopt.h' \
17017 | sed -e "$gl_make_literal_regex_sed"`
17018 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17019 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17024 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17025 sed -n "$gl_absolute_header_sed"`'"'
17027 gl_cv_next_getopt_h
='<'getopt.h
'>'
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17033 $as_echo "$gl_cv_next_getopt_h" >&6; }
17035 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17037 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17039 gl_next_as_first_directive
='<'getopt.h
'>'
17041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17042 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17044 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17049 if test $ac_cv_header_getopt_h = yes; then
17058 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17059 for ac_header
in getopt.h
17061 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17062 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17063 cat >>confdefs.h
<<_ACEOF
17064 #define HAVE_GETOPT_H 1
17068 gl_replace_getopt
=yes
17075 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17076 for ac_func
in getopt_long_only
17078 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17079 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17080 cat >>confdefs.h
<<_ACEOF
17081 #define HAVE_GETOPT_LONG_ONLY 1
17085 gl_replace_getopt
=yes
17091 if test -z "$gl_replace_getopt"; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17093 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17094 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17095 $as_echo_n "(cached) " >&6
17098 if test $cross_compiling = no
; then
17099 if test "$cross_compiling" = yes; then :
17100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17102 as_fn_error
"cannot run test program while cross compiling
17103 See \`config.log' for more details." "$LINENO" 5; }
17105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17108 #include <unistd.h>
17109 #include <stdlib.h>
17110 #include <string.h>
17115 static char program[] = "program";
17116 static char a[] = "-a";
17117 static char foo[] = "foo";
17118 static char bar[] = "bar";
17119 char *argv[] = { program, a, foo, bar, NULL };
17122 c = getopt (4, argv, "ab");
17125 c = getopt (4, argv, "ab");
17128 if (!(optind == 2))
17134 if ac_fn_c_try_run
"$LINENO"; then :
17135 gl_cv_func_getopt_posix
=maybe
17137 gl_cv_func_getopt_posix
=no
17139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17143 if test $gl_cv_func_getopt_posix = maybe
; then
17144 if test "$cross_compiling" = yes; then :
17145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17147 as_fn_error
"cannot run test program while cross compiling
17148 See \`config.log' for more details." "$LINENO" 5; }
17150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17153 #include <unistd.h>
17154 #include <stdlib.h>
17155 #include <string.h>
17160 static char program[] = "program";
17161 static char donald[] = "donald";
17162 static char p[] = "-p";
17163 static char billy[] = "billy";
17164 static char duck[] = "duck";
17165 static char a[] = "-a";
17166 static char bar[] = "bar";
17167 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17170 c = getopt (7, argv, "+abp:q:");
17173 if (!(strcmp (argv[0], "program") == 0))
17175 if (!(strcmp (argv[1], "donald") == 0))
17177 if (!(strcmp (argv[2], "-p") == 0))
17179 if (!(strcmp (argv[3], "billy") == 0))
17181 if (!(strcmp (argv[4], "duck") == 0))
17183 if (!(strcmp (argv[5], "-a") == 0))
17185 if (!(strcmp (argv[6], "bar") == 0))
17187 if (!(optind == 1))
17193 if ac_fn_c_try_run
"$LINENO"; then :
17194 gl_cv_func_getopt_posix
=maybe
17196 gl_cv_func_getopt_posix
=no
17198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17203 if test $gl_cv_func_getopt_posix = maybe
; then
17204 if test "$cross_compiling" = yes; then :
17205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17207 as_fn_error
"cannot run test program while cross compiling
17208 See \`config.log' for more details." "$LINENO" 5; }
17210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17213 #include <unistd.h>
17214 #include <stdlib.h>
17215 #include <string.h>
17220 static char program[] = "program";
17221 static char ab[] = "-ab";
17222 char *argv[3] = { program, ab, NULL };
17223 if (getopt (2, argv, "ab:") != 'a')
17225 if (getopt (2, argv, "ab:") != '?')
17235 if ac_fn_c_try_run
"$LINENO"; then :
17236 gl_cv_func_getopt_posix
=yes
17238 gl_cv_func_getopt_posix
=no
17240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17247 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17248 *) gl_cv_func_getopt_posix
="guessing yes";;
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17254 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17255 case "$gl_cv_func_getopt_posix" in
17256 *no
) gl_replace_getopt
=yes ;;
17260 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17262 $as_echo_n "checking for working GNU getopt function... " >&6; }
17263 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17264 $as_echo_n "(cached) " >&6
17266 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17267 # optstring is necessary for programs like m4 that have POSIX-mandated
17268 # semantics for supporting options interspersed with files.
17269 # Also, since getopt_long is a GNU extension, we require optind=0.
17270 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17271 # so take care to revert to the correct (non-)export state.
17272 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17273 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17274 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17275 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17276 *) gl_had_POSIXLY_CORRECT
= ;;
17279 export POSIXLY_CORRECT
17280 if test "$cross_compiling" = yes; then :
17281 gl_cv_func_getopt_gnu
="guessing no"
17284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17286 #include <getopt.h>
17287 #include <stddef.h>
17288 #include <string.h>
17290 #include <stdlib.h>
17291 #if defined __MACH__ && defined __APPLE__
17292 /* Avoid a crash on Mac OS X. */
17293 #include <mach/mach.h>
17294 #include <mach/mach_error.h>
17295 #include <mach/thread_status.h>
17296 #include <mach/exception.h>
17297 #include <mach/task.h>
17298 #include <pthread.h>
17299 /* The exception port on which our thread listens. */
17300 static mach_port_t our_exception_port;
17301 /* The main function of the thread listening for exceptions of type
17304 mach_exception_thread (void *arg)
17306 /* Buffer for a message to be received. */
17308 mach_msg_header_t head;
17309 mach_msg_body_t msgh_body;
17312 mach_msg_return_t retval;
17313 /* Wait for a message on the exception port. */
17314 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17315 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17316 if (retval != MACH_MSG_SUCCESS)
17321 nocrash_init (void)
17323 mach_port_t self = mach_task_self ();
17324 /* Allocate a port on which the thread shall listen for exceptions. */
17325 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17327 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17328 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17329 MACH_MSG_TYPE_MAKE_SEND)
17331 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17333 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17334 /* Create the thread listening on the exception port. */
17335 pthread_attr_t attr;
17337 if (pthread_attr_init (&attr) == 0
17338 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17339 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17340 pthread_attr_destroy (&attr);
17341 /* Replace the exception port info for these exceptions with our own.
17342 Note that we replace the exception port for the entire task, not only
17343 for a particular thread. This has the effect that when our exception
17344 port gets the message, the thread specific exception port has already
17345 been asked, and we don't need to bother about it.
17346 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17347 task_set_exception_ports (self, mask, our_exception_port,
17348 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17353 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17354 /* Avoid a crash on native Windows. */
17355 #define WIN32_LEAN_AND_MEAN
17356 #include <windows.h>
17357 #include <winerror.h>
17359 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17361 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17363 case EXCEPTION_ACCESS_VIOLATION:
17364 case EXCEPTION_IN_PAGE_ERROR:
17365 case EXCEPTION_STACK_OVERFLOW:
17366 case EXCEPTION_GUARD_PAGE:
17367 case EXCEPTION_PRIV_INSTRUCTION:
17368 case EXCEPTION_ILLEGAL_INSTRUCTION:
17369 case EXCEPTION_DATATYPE_MISALIGNMENT:
17370 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17371 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17374 return EXCEPTION_CONTINUE_SEARCH;
17377 nocrash_init (void)
17379 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17382 /* Avoid a crash on POSIX systems. */
17383 #include <signal.h>
17384 /* A POSIX signal handler. */
17386 exception_handler (int sig)
17391 nocrash_init (void)
17394 signal (SIGSEGV, exception_handler);
17397 signal (SIGBUS, exception_handler);
17411 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17412 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17413 OSF/1 5.1, Solaris 10. */
17415 static char conftest[] = "conftest";
17416 static char plus[] = "-+";
17417 char *argv[3] = { conftest, plus, NULL };
17419 if (getopt (2, argv, "+a") != '?')
17422 /* This code succeeds on glibc 2.8, mingw,
17423 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17424 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17426 static char program[] = "program";
17427 static char p[] = "-p";
17428 static char foo[] = "foo";
17429 static char bar[] = "bar";
17430 char *argv[] = { program, p, foo, bar, NULL };
17433 if (getopt (4, argv, "p::") != 'p')
17435 else if (optarg != NULL)
17437 else if (getopt (4, argv, "p::") != -1)
17439 else if (optind != 2)
17442 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17444 static char program[] = "program";
17445 static char foo[] = "foo";
17446 static char p[] = "-p";
17447 char *argv[] = { program, foo, p, NULL };
17449 if (getopt (3, argv, "-p") != 1)
17451 else if (getopt (3, argv, "-p") != 'p')
17454 /* This code fails on glibc 2.11. */
17456 static char program[] = "program";
17457 static char b[] = "-b";
17458 static char a[] = "-a";
17459 char *argv[] = { program, b, a, NULL };
17460 optind = opterr = 0;
17461 if (getopt (3, argv, "+:a:b") != 'b')
17463 else if (getopt (3, argv, "+:a:b") != ':')
17466 /* This code dumps core on glibc 2.14. */
17468 static char program[] = "program";
17469 static char w[] = "-W";
17470 static char dummy[] = "dummy";
17471 char *argv[] = { program, w, dummy, NULL };
17472 optind = opterr = 1;
17473 if (getopt (3, argv, "W;") != 'W')
17482 if ac_fn_c_try_run
"$LINENO"; then :
17483 gl_cv_func_getopt_gnu
=yes
17485 gl_cv_func_getopt_gnu
=no
17487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17488 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17491 case $gl_had_POSIXLY_CORRECT in
17493 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17494 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17499 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17500 if test "$gl_cv_func_getopt_gnu" != yes; then
17501 gl_replace_getopt
=yes
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17504 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17505 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17508 if test "$cross_compiling" = yes; then :
17510 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17511 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <getopt.h>
17518 #include <stddef.h>
17519 #include <string.h>
17524 static const struct option long_options[] =
17526 { "xtremely-",no_argument, NULL, 1003 },
17527 { "xtra", no_argument, NULL, 1001 },
17528 { "xtreme", no_argument, NULL, 1002 },
17529 { "xtremely", no_argument, NULL, 1003 },
17530 { NULL, 0, NULL, 0 }
17532 /* This code fails on OpenBSD 5.0. */
17534 static char program[] = "program";
17535 static char xtremel[] = "--xtremel";
17536 char *argv[] = { program, xtremel, NULL };
17538 optind = 1; opterr = 0;
17539 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17548 if ac_fn_c_try_run
"$LINENO"; then :
17549 gl_cv_func_getopt_long_gnu
=yes
17551 gl_cv_func_getopt_long_gnu
=no
17553 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17554 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17560 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17561 case "$gl_cv_func_getopt_long_gnu" in
17563 *) gl_replace_getopt
=yes ;;
17574 if test -n "$gl_replace_getopt"; then
17578 if test $REPLACE_GETOPT = 1; then
17582 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17588 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17589 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17595 cat >>confdefs.h
<<_ACEOF
17596 #define HAVE_DECL_GETENV $ac_have_decl
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17605 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17606 if test "${ac_cv_c_restrict+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17609 ac_cv_c_restrict
=no
17610 # The order here caters to the fact that C++ does not require restrict.
17611 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17614 typedef int * int_ptr;
17615 int foo (int_ptr $ac_kw ip) {
17622 int * $ac_kw t = s;
17629 if ac_fn_c_try_compile
"$LINENO"; then :
17630 ac_cv_c_restrict
=$ac_kw
17632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17633 test "$ac_cv_c_restrict" != no
&& break
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17638 $as_echo "$ac_cv_c_restrict" >&6; }
17640 case $ac_cv_c_restrict in
17642 no
) $as_echo "#define restrict /**/" >>confdefs.h
17644 *) cat >>confdefs.h
<<_ACEOF
17645 #define restrict $ac_cv_c_restrict
17651 GNULIB_GETTIMEOFDAY
=0;
17652 HAVE_GETTIMEOFDAY
=1;
17653 HAVE_STRUCT_TIMEVAL
=1;
17655 REPLACE_GETTIMEOFDAY
=0;
17656 REPLACE_STRUCT_TIMEVAL
=0;
17673 if test $gl_cv_have_include_next = yes; then
17674 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17677 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17678 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17682 if test $ac_cv_header_sys_time_h = yes; then
17685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 #include <sys/time.h>
17691 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17692 *) gl_absname_cpp
="$ac_cpp" ;;
17697 gl_dirsep_regex
='[/\\]'
17700 gl_dirsep_regex
='\/'
17703 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17705 gl_header_literal_regex
=`echo 'sys/time.h' \
17706 | sed -e "$gl_make_literal_regex_sed"`
17707 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17713 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17714 sed -n "$gl_absolute_header_sed"`'"'
17716 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17722 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17724 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17726 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17728 gl_next_as_first_directive
='<'sys
/time.h
'>'
17730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17731 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17733 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17739 if test $ac_cv_header_sys_time_h != yes; then
17747 if test $ac_cv_header_sys_socket_h != yes; then
17748 for ac_header
in winsock2.h
17750 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17751 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17752 cat >>confdefs.h
<<_ACEOF
17753 #define HAVE_WINSOCK2_H 1
17761 if test "$ac_cv_header_winsock2_h" = yes; then
17763 UNISTD_H_HAVE_WINSOCK2_H
=1
17764 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17771 $as_echo_n "checking for struct timeval... " >&6; }
17772 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17773 $as_echo_n "(cached) " >&6
17775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 #if HAVE_SYS_TIME_H
17778 #include <sys/time.h>
17781 #if HAVE_WINSOCK2_H
17782 # include <winsock2.h>
17788 static struct timeval x; x.tv_sec = x.tv_usec;
17793 if ac_fn_c_try_compile
"$LINENO"; then :
17794 gl_cv_sys_struct_timeval
=yes
17796 gl_cv_sys_struct_timeval
=no
17798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17802 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17803 if test $gl_cv_sys_struct_timeval != yes; then
17804 HAVE_STRUCT_TIMEVAL
=0
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17807 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17808 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17813 #if HAVE_SYS_TIME_H
17814 #include <sys/time.h>
17817 #if HAVE_WINSOCK2_H
17818 # include <winsock2.h>
17824 static struct timeval x;
17825 typedef int verify_tv_sec_type[
17826 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17833 if ac_fn_c_try_compile
"$LINENO"; then :
17834 gl_cv_sys_struct_timeval_tv_sec
=yes
17836 gl_cv_sys_struct_timeval_tv_sec
=no
17838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17842 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17843 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17844 REPLACE_STRUCT_TIMEVAL
=1
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17855 $as_echo_n "checking for unsigned long long int... " >&6; }
17856 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17859 ac_cv_type_unsigned_long_long_int
=yes
17860 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 /* For now, do not test the preprocessor; as of 2007 there are too many
17865 implementations with broken preprocessors. Perhaps this can
17866 be revisited in 2012. In the meantime, code should not expect
17867 #if to work with literals wider than 32 bits. */
17868 /* Test literals. */
17869 long long int ll = 9223372036854775807ll;
17870 long long int nll = -9223372036854775807LL;
17871 unsigned long long int ull = 18446744073709551615ULL;
17872 /* Test constant expressions. */
17873 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17875 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17881 /* Test availability of runtime routines for shift and division. */
17882 long long int llmax = 9223372036854775807ll;
17883 unsigned long long int ullmax = 18446744073709551615ull;
17884 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17885 | (llmax / ll) | (llmax % ll)
17886 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17887 | (ullmax / ull) | (ullmax % ull));
17893 if ac_fn_c_try_link
"$LINENO"; then :
17896 ac_cv_type_unsigned_long_long_int
=no
17898 rm -f core conftest.err conftest.
$ac_objext \
17899 conftest
$ac_exeext conftest.
$ac_ext
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17903 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17904 if test $ac_cv_type_unsigned_long_long_int = yes; then
17906 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17913 $as_echo_n "checking for long long int... " >&6; }
17914 if test "${ac_cv_type_long_long_int+set}" = set; then :
17915 $as_echo_n "(cached) " >&6
17917 ac_cv_type_long_long_int
=yes
17918 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17919 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17920 if test $ac_cv_type_long_long_int = yes; then
17921 if test "$cross_compiling" = yes; then :
17924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17926 #include <limits.h>
17929 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17930 # define LLONG_MAX (HALF - 1 + HALF)
17935 long long int n = 1;
17939 long long int m = n << i;
17942 if (LLONG_MAX / 2 < m)
17950 if ac_fn_c_try_run
"$LINENO"; then :
17953 ac_cv_type_long_long_int
=no
17955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17963 $as_echo "$ac_cv_type_long_long_int" >&6; }
17964 if test $ac_cv_type_long_long_int = yes; then
17966 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17975 gl_cv_c_multiarch
=no
17976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17978 #ifndef __APPLE_CC__
17979 not a universal capable compiler
17984 if ac_fn_c_try_compile
"$LINENO"; then :
17988 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17989 if test -n "$prev"; then
17991 i?
86 | x86_64 | ppc | ppc64
)
17992 if test -z "$arch" ||
test "$arch" = "$word"; then
17995 gl_cv_c_multiarch
=yes
18001 if test "x$word" = "x-arch"; then
18008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18009 if test $gl_cv_c_multiarch = yes; then
18010 APPLE_UNIVERSAL_BUILD
=1
18012 APPLE_UNIVERSAL_BUILD
=0
18019 if test $ac_cv_type_long_long_int = yes; then
18020 HAVE_LONG_LONG_INT
=1
18022 HAVE_LONG_LONG_INT
=0
18026 if test $ac_cv_type_unsigned_long_long_int = yes; then
18027 HAVE_UNSIGNED_LONG_LONG_INT
=1
18029 HAVE_UNSIGNED_LONG_LONG_INT
=0
18034 if test $ac_cv_header_wchar_h = yes; then
18041 if test $ac_cv_header_inttypes_h = yes; then
18048 if test $ac_cv_header_sys_types_h = yes; then
18064 if test $gl_cv_have_include_next = yes; then
18065 gl_cv_next_stdint_h
='<'stdint.h
'>'
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18068 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18069 if test "${gl_cv_next_stdint_h+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18073 if test $ac_cv_header_stdint_h = yes; then
18076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <stdint.h>
18082 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18083 *) gl_absname_cpp
="$ac_cpp" ;;
18088 gl_dirsep_regex
='[/\\]'
18091 gl_dirsep_regex
='\/'
18094 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18096 gl_header_literal_regex
=`echo 'stdint.h' \
18097 | sed -e "$gl_make_literal_regex_sed"`
18098 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18099 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18104 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18105 sed -n "$gl_absolute_header_sed"`'"'
18107 gl_cv_next_stdint_h
='<'stdint.h
'>'
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18113 $as_echo "$gl_cv_next_stdint_h" >&6; }
18115 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18117 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18119 gl_next_as_first_directive
='<'stdint.h
'>'
18121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18122 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18124 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18129 if test $ac_cv_header_stdint_h = yes; then
18136 if test $ac_cv_header_stdint_h = yes; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18138 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18139 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18142 gl_cv_header_working_stdint_h
=no
18143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18147 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18148 #include <stdint.h>
18149 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18150 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18151 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18155 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18156 included before <wchar.h>. */
18157 #include <stddef.h>
18158 #include <signal.h>
18160 # include <stdio.h>
18162 # include <wchar.h>
18167 int8_t a1 = INT8_MAX;
18168 int8_t a1min = INT8_MIN;
18171 int16_t a2 = INT16_MAX;
18172 int16_t a2min = INT16_MIN;
18175 int32_t a3 = INT32_MAX;
18176 int32_t a3min = INT32_MIN;
18179 int64_t a4 = INT64_MAX;
18180 int64_t a4min = INT64_MIN;
18183 uint8_t b1 = UINT8_MAX;
18185 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18188 uint16_t b2 = UINT16_MAX;
18191 uint32_t b3 = UINT32_MAX;
18194 uint64_t b4 = UINT64_MAX;
18196 int_least8_t c1 = INT8_C (0x7f);
18197 int_least8_t c1max = INT_LEAST8_MAX;
18198 int_least8_t c1min = INT_LEAST8_MIN;
18199 int_least16_t c2 = INT16_C (0x7fff);
18200 int_least16_t c2max = INT_LEAST16_MAX;
18201 int_least16_t c2min = INT_LEAST16_MIN;
18202 int_least32_t c3 = INT32_C (0x7fffffff);
18203 int_least32_t c3max = INT_LEAST32_MAX;
18204 int_least32_t c3min = INT_LEAST32_MIN;
18205 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18206 int_least64_t c4max = INT_LEAST64_MAX;
18207 int_least64_t c4min = INT_LEAST64_MIN;
18208 uint_least8_t d1 = UINT8_C (0xff);
18209 uint_least8_t d1max = UINT_LEAST8_MAX;
18210 uint_least16_t d2 = UINT16_C (0xffff);
18211 uint_least16_t d2max = UINT_LEAST16_MAX;
18212 uint_least32_t d3 = UINT32_C (0xffffffff);
18213 uint_least32_t d3max = UINT_LEAST32_MAX;
18214 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18215 uint_least64_t d4max = UINT_LEAST64_MAX;
18216 int_fast8_t e1 = INT_FAST8_MAX;
18217 int_fast8_t e1min = INT_FAST8_MIN;
18218 int_fast16_t e2 = INT_FAST16_MAX;
18219 int_fast16_t e2min = INT_FAST16_MIN;
18220 int_fast32_t e3 = INT_FAST32_MAX;
18221 int_fast32_t e3min = INT_FAST32_MIN;
18222 int_fast64_t e4 = INT_FAST64_MAX;
18223 int_fast64_t e4min = INT_FAST64_MIN;
18224 uint_fast8_t f1 = UINT_FAST8_MAX;
18225 uint_fast16_t f2 = UINT_FAST16_MAX;
18226 uint_fast32_t f3 = UINT_FAST32_MAX;
18227 uint_fast64_t f4 = UINT_FAST64_MAX;
18229 intptr_t g = INTPTR_MAX;
18230 intptr_t gmin = INTPTR_MIN;
18233 uintptr_t h = UINTPTR_MAX;
18235 intmax_t i = INTMAX_MAX;
18236 uintmax_t j = UINTMAX_MAX;
18238 #include <limits.h> /* for CHAR_BIT */
18239 #define TYPE_MINIMUM(t) \
18240 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18241 #define TYPE_MAXIMUM(t) \
18242 ((t) ((t) 0 < (t) -1 \
18244 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18247 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18248 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18250 /* Detect bug in FreeBSD 6.0 / ia64. */
18251 int check_SIG_ATOMIC:
18252 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18253 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18255 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18257 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18258 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18260 /* Detect bug in mingw. */
18262 WINT_MIN == TYPE_MINIMUM (wint_t)
18263 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18266 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18268 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18269 int check_UINT16_C:
18270 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18272 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18274 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18277 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18280 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18283 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18285 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18286 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18287 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18288 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18289 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18290 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18291 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18292 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18293 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18294 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18295 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18306 if ac_fn_c_try_compile
"$LINENO"; then :
18307 if test "$cross_compiling" = yes; then :
18308 gl_cv_header_working_stdint_h
=yes
18311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18315 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18316 #include <stdint.h>
18319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18320 included before <wchar.h>. */
18321 #include <stddef.h>
18322 #include <signal.h>
18324 # include <stdio.h>
18326 # include <wchar.h>
18331 #include <string.h>
18332 #define MVAL(macro) MVAL1(macro)
18333 #define MVAL1(expression) #expression
18334 static const char *macro_values[] =
18368 for (mv = macro_values; *mv != NULL; mv++)
18370 const char *value = *mv;
18371 /* Test whether it looks like a cast expression. */
18372 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18373 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18374 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18375 || strncmp (value, "((int)"/*)*/, 6) == 0
18376 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18377 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18378 return mv - macro_values + 1;
18386 if ac_fn_c_try_run
"$LINENO"; then :
18387 gl_cv_header_working_stdint_h
=yes
18389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18399 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18401 if test "$gl_cv_header_working_stdint_h" = yes; then
18404 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18406 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18407 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18408 eval as_val
=\$
$as_ac_Header
18409 if test "x$as_val" = x
""yes; then :
18410 cat >>confdefs.h
<<_ACEOF
18411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18418 if test $ac_cv_header_sys_inttypes_h = yes; then
18419 HAVE_SYS_INTTYPES_H
=1
18421 HAVE_SYS_INTTYPES_H
=0
18424 if test $ac_cv_header_sys_bitypes_h = yes; then
18425 HAVE_SYS_BITYPES_H
=1
18427 HAVE_SYS_BITYPES_H
=0
18433 if test $APPLE_UNIVERSAL_BUILD = 0; then
18436 for gltype
in ptrdiff_t size_t
; do
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18438 $as_echo_n "checking for bit size of $gltype... " >&6; }
18439 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18440 $as_echo_n "(cached) " >&6
18442 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18443 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18444 included before <wchar.h>. */
18445 #include <stddef.h>
18446 #include <signal.h>
18448 # include <stdio.h>
18450 # include <wchar.h>
18453 #include <limits.h>"; then :
18459 eval gl_cv_bitsizeof_
${gltype}=\
$result
18462 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18464 $as_echo "$ac_res" >&6; }
18465 eval result
=\
$gl_cv_bitsizeof_${gltype}
18466 if test $result = unknown
; then
18469 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18470 cat >>confdefs.h
<<_ACEOF
18471 #define BITSIZEOF_${GLTYPE} $result
18474 eval BITSIZEOF_
${GLTYPE}=\
$result
18481 for gltype
in sig_atomic_t wchar_t wint_t
; do
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18483 $as_echo_n "checking for bit size of $gltype... " >&6; }
18484 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18485 $as_echo_n "(cached) " >&6
18487 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18488 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18489 included before <wchar.h>. */
18490 #include <stddef.h>
18491 #include <signal.h>
18493 # include <stdio.h>
18495 # include <wchar.h>
18498 #include <limits.h>"; then :
18504 eval gl_cv_bitsizeof_
${gltype}=\
$result
18507 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18509 $as_echo "$ac_res" >&6; }
18510 eval result
=\
$gl_cv_bitsizeof_${gltype}
18511 if test $result = unknown
; then
18514 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18515 cat >>confdefs.h
<<_ACEOF
18516 #define BITSIZEOF_${GLTYPE} $result
18519 eval BITSIZEOF_
${GLTYPE}=\
$result
18525 for gltype
in sig_atomic_t wchar_t wint_t
; do
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18527 $as_echo_n "checking whether $gltype is signed... " >&6; }
18528 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18529 $as_echo_n "(cached) " >&6
18531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18535 included before <wchar.h>. */
18536 #include <stddef.h>
18537 #include <signal.h>
18539 # include <stdio.h>
18541 # include <wchar.h>
18544 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18553 if ac_fn_c_try_compile
"$LINENO"; then :
18558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18559 eval gl_cv_type_
${gltype}_signed
=\
$result
18562 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18564 $as_echo "$ac_res" >&6; }
18565 eval result
=\
$gl_cv_type_${gltype}_signed
18566 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18567 if test "$result" = yes; then
18568 cat >>confdefs.h
<<_ACEOF
18569 #define HAVE_SIGNED_${GLTYPE} 1
18572 eval HAVE_SIGNED_
${GLTYPE}=1
18574 eval HAVE_SIGNED_
${GLTYPE}=0
18579 gl_cv_type_ptrdiff_t_signed
=yes
18580 gl_cv_type_size_t_signed
=no
18581 if test $APPLE_UNIVERSAL_BUILD = 0; then
18584 for gltype
in ptrdiff_t size_t
; do
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18586 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18587 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18588 $as_echo_n "(cached) " >&6
18590 eval gl_cv_type_
${gltype}_suffix
=no
18591 eval result
=\
$gl_cv_type_${gltype}_signed
18592 if test "$result" = yes; then
18597 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18599 '') gltype1
='int';;
18600 l
) gltype1
='long int';;
18601 ll
) gltype1
='long long int';;
18602 i64
) gltype1
='__int64';;
18603 u
) gltype1
='unsigned int';;
18604 ul
) gltype1
='unsigned long int';;
18605 ull
) gltype1
='unsigned long long int';;
18606 ui64
)gltype1
='unsigned __int64';;
18608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18612 included before <wchar.h>. */
18613 #include <stddef.h>
18614 #include <signal.h>
18616 # include <stdio.h>
18618 # include <wchar.h>
18621 extern $gltype foo;
18622 extern $gltype1 foo;
18631 if ac_fn_c_try_compile
"$LINENO"; then :
18632 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18635 eval result
=\
$gl_cv_type_${gltype}_suffix
18636 test "$result" != no
&& break
18639 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18641 $as_echo "$ac_res" >&6; }
18642 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18643 eval result
=\
$gl_cv_type_${gltype}_suffix
18644 test "$result" = no
&& result
=
18645 eval ${GLTYPE}_SUFFIX
=\
$result
18646 cat >>confdefs.h
<<_ACEOF
18647 #define ${GLTYPE}_SUFFIX $result
18656 for gltype
in sig_atomic_t wchar_t wint_t
; do
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18658 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18659 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18660 $as_echo_n "(cached) " >&6
18662 eval gl_cv_type_
${gltype}_suffix
=no
18663 eval result
=\
$gl_cv_type_${gltype}_signed
18664 if test "$result" = yes; then
18669 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18671 '') gltype1
='int';;
18672 l
) gltype1
='long int';;
18673 ll
) gltype1
='long long int';;
18674 i64
) gltype1
='__int64';;
18675 u
) gltype1
='unsigned int';;
18676 ul
) gltype1
='unsigned long int';;
18677 ull
) gltype1
='unsigned long long int';;
18678 ui64
)gltype1
='unsigned __int64';;
18680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18683 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18684 included before <wchar.h>. */
18685 #include <stddef.h>
18686 #include <signal.h>
18688 # include <stdio.h>
18690 # include <wchar.h>
18693 extern $gltype foo;
18694 extern $gltype1 foo;
18703 if ac_fn_c_try_compile
"$LINENO"; then :
18704 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18707 eval result
=\
$gl_cv_type_${gltype}_suffix
18708 test "$result" != no
&& break
18711 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18713 $as_echo "$ac_res" >&6; }
18714 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18715 eval result
=\
$gl_cv_type_${gltype}_suffix
18716 test "$result" = no
&& result
=
18717 eval ${GLTYPE}_SUFFIX
=\
$result
18718 cat >>confdefs.h
<<_ACEOF
18719 #define ${GLTYPE}_SUFFIX $result
18726 if test $BITSIZEOF_WINT_T -lt 32; then
18727 BITSIZEOF_WINT_T
=32
18733 if test -n "$STDINT_H"; then
18734 GL_GENERATE_STDINT_H_TRUE
=
18735 GL_GENERATE_STDINT_H_FALSE
='#'
18737 GL_GENERATE_STDINT_H_TRUE
='#'
18738 GL_GENERATE_STDINT_H_FALSE
=
18747 GNULIB_STRTOIMAX
=0;
18748 GNULIB_STRTOUMAX
=0;
18749 HAVE_DECL_IMAXABS
=1;
18750 HAVE_DECL_IMAXDIV
=1;
18751 HAVE_DECL_STRTOIMAX
=1;
18752 HAVE_DECL_STRTOUMAX
=1;
18753 REPLACE_STRTOIMAX
=0;
18754 INT32_MAX_LT_INTMAX_MAX
=1;
18755 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18756 PRI_MACROS_BROKEN
=0;
18757 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18758 UINT32_MAX_LT_UINTMAX_MAX
=1;
18759 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18775 if test $gl_cv_have_include_next = yes; then
18776 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18779 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18780 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18781 $as_echo_n "(cached) " >&6
18784 if test $ac_cv_header_inttypes_h = yes; then
18787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789 #include <inttypes.h>
18793 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18794 *) gl_absname_cpp
="$ac_cpp" ;;
18799 gl_dirsep_regex
='[/\\]'
18802 gl_dirsep_regex
='\/'
18805 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18807 gl_header_literal_regex
=`echo 'inttypes.h' \
18808 | sed -e "$gl_make_literal_regex_sed"`
18809 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18810 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18815 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18816 sed -n "$gl_absolute_header_sed"`'"'
18818 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18824 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18826 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18828 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18830 gl_next_as_first_directive
='<'inttypes.h
'>'
18832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18833 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18835 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18850 $as_echo_n "checking for 64-bit off_t... " >&6; }
18851 if test "${gl_cv_type_off_t_64+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <sys/types.h>
18857 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18867 if ac_fn_c_try_compile
"$LINENO"; then :
18868 gl_cv_type_off_t_64
=yes
18870 gl_cv_type_off_t_64
=no
18872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18876 $as_echo "$gl_cv_type_off_t_64" >&6; }
18877 if test $gl_cv_type_off_t_64 = no
; then
18878 WINDOWS_64_BIT_OFF_T
=1
18880 WINDOWS_64_BIT_OFF_T
=0
18882 WINDOWS_64_BIT_ST_SIZE
=1
18885 WINDOWS_64_BIT_OFF_T
=0
18886 WINDOWS_64_BIT_ST_SIZE
=0
18903 GNULIB_UTIMENSAT
=0;
18917 REPLACE_FUTIMENS
=0;
18923 REPLACE_UTIMENSAT
=0;
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18929 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18930 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18933 rm -f conftest.sym conftest.
file
18934 echo >conftest.
file
18935 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18936 if test "$cross_compiling" = yes; then :
18938 # Guess yes on glibc systems.
18939 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18940 # If we don't know, assume the worst.
18941 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947 $ac_includes_default
18952 /* Linux will dereference the symlink and fail, as required by
18953 POSIX. That is better in the sense that it means we will not
18954 have to compile and use the lstat wrapper. */
18955 return lstat ("conftest.sym/", &sbuf) == 0;
18961 if ac_fn_c_try_run
"$LINENO"; then :
18962 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18964 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18966 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18967 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18971 # If the 'ln -s' command failed, then we probably don't even
18972 # have an lstat function.
18973 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18975 rm -f conftest.sym conftest.
file
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18979 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18980 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18983 cat >>confdefs.h
<<_ACEOF
18984 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18992 GNULIB_NANOSLEEP
=0;
18996 HAVE_DECL_LOCALTIME_R
=1;
19000 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19001 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19002 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19003 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19020 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19021 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19022 $as_echo_n "(cached) " >&6
19025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19027 #include <sys/select.h>
19036 if ac_fn_c_try_compile
"$LINENO"; then :
19037 gl_cv_header_sys_select_h_selfcontained
=yes
19039 gl_cv_header_sys_select_h_selfcontained
=no
19041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19042 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19045 #include <sys/select.h>
19049 int memset; int bzero;
19055 if ac_fn_c_try_compile
"$LINENO"; then :
19056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19058 #include <sys/select.h>
19064 #define memset nonexistent_memset
19069 void *memset (void *, int, unsigned long);
19071 #define bzero nonexistent_bzero
19076 void bzero (void *, unsigned long);
19085 if ac_fn_c_try_link
"$LINENO"; then :
19088 gl_cv_header_sys_select_h_selfcontained
=no
19090 rm -f core conftest.err conftest.
$ac_objext \
19091 conftest
$ac_exeext conftest.
$ac_ext
19094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19099 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19109 if test $gl_cv_have_include_next = yes; then
19110 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19113 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19114 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19118 if test $ac_cv_header_sys_select_h = yes; then
19121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <sys/select.h>
19127 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19128 *) gl_absname_cpp
="$ac_cpp" ;;
19133 gl_dirsep_regex
='[/\\]'
19136 gl_dirsep_regex
='\/'
19139 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19141 gl_header_literal_regex
=`echo 'sys/select.h' \
19142 | sed -e "$gl_make_literal_regex_sed"`
19143 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19149 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19150 sed -n "$gl_absolute_header_sed"`'"'
19152 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19158 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19160 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19162 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19164 gl_next_as_first_directive
='<'sys
/select.h
'>'
19166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19167 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19169 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19174 if test $ac_cv_header_sys_select_h = yes; then
19175 HAVE_SYS_SELECT_H
=1
19177 HAVE_SYS_SELECT_H
=0
19184 if test $ac_cv_header_sys_socket_h != yes; then
19185 for ac_header
in winsock2.h
19187 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19188 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19189 cat >>confdefs.h
<<_ACEOF
19190 #define HAVE_WINSOCK2_H 1
19198 if test "$ac_cv_header_winsock2_h" = yes; then
19200 UNISTD_H_HAVE_WINSOCK2_H
=1
19201 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19213 GNULIB_PTHREAD_SIGMASK
=0;
19215 GNULIB_SIGNAL_H_SIGPIPE
=0;
19216 GNULIB_SIGPROCMASK
=0;
19217 GNULIB_SIGACTION
=0;
19218 HAVE_POSIX_SIGNALBLOCKING
=1;
19219 HAVE_PTHREAD_SIGMASK
=1;
19224 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19226 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19228 HAVE_SIGHANDLER_T
=1;
19229 REPLACE_PTHREAD_SIGMASK
=0;
19238 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19239 #include <signal.h>
19240 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19241 #include <sys/types.h>
19244 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19246 cat >>confdefs.h
<<_ACEOF
19247 #define HAVE_SIGSET_T 1
19250 gl_cv_type_sigset_t
=yes
19252 gl_cv_type_sigset_t
=no
19255 if test $gl_cv_type_sigset_t != yes; then
19261 if test $ac_cv_header_sys_socket_h = no
; then
19262 for ac_header
in ws2tcpip.h
19264 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19265 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19266 cat >>confdefs.h
<<_ACEOF
19267 #define HAVE_WS2TCPIP_H 1
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19277 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19278 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19279 $as_echo_n "(cached) " >&6
19281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19284 #include <stdbool.h>
19286 "error: bool is not defined"
19289 "error: false is not defined"
19292 "error: false is not 0"
19295 "error: true is not defined"
19298 "error: true is not 1"
19300 #ifndef __bool_true_false_are_defined
19301 "error: __bool_true_false_are_defined is not defined"
19304 struct s { _Bool s: 1; _Bool t; } s;
19306 char a[true == 1 ? 1 : -1];
19307 char b[false == 0 ? 1 : -1];
19308 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19309 char d[(bool) 0.5 == true ? 1 : -1];
19310 /* See body of main program for 'e'. */
19311 char f[(_Bool) 0.0 == false ? 1 : -1];
19313 char h[sizeof (_Bool)];
19314 char i[sizeof s.t];
19315 enum { j = false, k = true, l = false * true, m = true * 256 };
19316 /* The following fails for
19317 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19319 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19320 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19321 /* Catch a bug in an HP-UX C compiler. See
19322 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19323 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19335 /* Refer to every declared value, to avoid compiler optimizations. */
19336 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19337 + !m + !n + !o + !p + !q + !pq);
19343 if ac_fn_c_try_compile
"$LINENO"; then :
19344 ac_cv_header_stdbool_h
=yes
19346 ac_cv_header_stdbool_h
=no
19348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19351 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19352 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19353 if test "x$ac_cv_type__Bool" = x
""yes; then :
19355 cat >>confdefs.h
<<_ACEOF
19356 #define HAVE__BOOL 1
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19369 $as_echo_n "checking for wchar_t... " >&6; }
19370 if test "${gt_cv_c_wchar_t+set}" = set; then :
19371 $as_echo_n "(cached) " >&6
19373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19375 #include <stddef.h>
19376 wchar_t foo = (wchar_t)'\0';
19385 if ac_fn_c_try_compile
"$LINENO"; then :
19386 gt_cv_c_wchar_t
=yes
19390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19393 $as_echo "$gt_cv_c_wchar_t" >&6; }
19394 if test $gt_cv_c_wchar_t = yes; then
19396 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19409 GNULIB_FPRINTF_POSIX
=0;
19425 GNULIB_OBSTACK_PRINTF
=0;
19426 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19431 GNULIB_PRINTF_POSIX
=0;
19440 GNULIB_SPRINTF_POSIX
=0;
19441 GNULIB_STDIO_H_NONBLOCKING
=0;
19442 GNULIB_STDIO_H_SIGPIPE
=0;
19444 GNULIB_VASPRINTF
=0;
19449 GNULIB_VFPRINTF_POSIX
=0;
19451 GNULIB_VPRINTF_POSIX
=0;
19452 GNULIB_VSNPRINTF
=0;
19453 GNULIB_VSPRINTF_POSIX
=0;
19454 HAVE_DECL_FPURGE
=1;
19455 HAVE_DECL_FSEEKO
=1;
19456 HAVE_DECL_FTELLO
=1;
19457 HAVE_DECL_GETDELIM
=1;
19458 HAVE_DECL_GETLINE
=1;
19459 HAVE_DECL_OBSTACK_PRINTF
=1;
19460 HAVE_DECL_SNPRINTF
=1;
19461 HAVE_DECL_VSNPRINTF
=1;
19482 REPLACE_GETDELIM
=0;
19484 REPLACE_OBSTACK_PRINTF
=0;
19490 REPLACE_RENAMEAT
=0;
19491 REPLACE_SNPRINTF
=0;
19493 REPLACE_STDIO_READ_FUNCS
=0;
19494 REPLACE_STDIO_WRITE_FUNCS
=0;
19496 REPLACE_VASPRINTF
=0;
19497 REPLACE_VDPRINTF
=0;
19498 REPLACE_VFPRINTF
=0;
19500 REPLACE_VSNPRINTF
=0;
19501 REPLACE_VSPRINTF
=0;
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19504 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19505 if test "${ac_cv_struct_tm+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 #include <sys/types.h>
19517 int *p = &tm.tm_sec;
19523 if ac_fn_c_try_compile
"$LINENO"; then :
19524 ac_cv_struct_tm
=time.h
19526 ac_cv_struct_tm
=sys
/time.h
19528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19531 $as_echo "$ac_cv_struct_tm" >&6; }
19532 if test $ac_cv_struct_tm = sys
/time.h
; then
19534 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19538 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19539 #include <$ac_cv_struct_tm>
19542 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19544 cat >>confdefs.h
<<_ACEOF
19545 #define HAVE_STRUCT_TM_TM_ZONE 1
19551 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19553 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19556 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19558 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19564 cat >>confdefs.h
<<_ACEOF
19565 #define HAVE_DECL_TZNAME $ac_have_decl
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19569 $as_echo_n "checking for tzname... " >&6; }
19570 if test "${ac_cv_var_tzname+set}" = set; then :
19571 $as_echo_n "(cached) " >&6
19573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 #if !HAVE_DECL_TZNAME
19577 extern char *tzname[];
19583 return tzname[0][0];
19588 if ac_fn_c_try_link
"$LINENO"; then :
19589 ac_cv_var_tzname
=yes
19591 ac_cv_var_tzname
=no
19593 rm -f core conftest.err conftest.
$ac_objext \
19594 conftest
$ac_exeext conftest.
$ac_ext
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19597 $as_echo "$ac_cv_var_tzname" >&6; }
19598 if test $ac_cv_var_tzname = yes; then
19600 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19606 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19608 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19610 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19617 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19618 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19624 cat >>confdefs.h
<<_ACEOF
19625 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19630 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19631 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19637 cat >>confdefs.h
<<_ACEOF
19638 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19644 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19645 if test "${ac_cv_header_stat_broken+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19650 #include <sys/types.h>
19651 #include <sys/stat.h>
19653 #if defined S_ISBLK && defined S_IFDIR
19654 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19657 #if defined S_ISBLK && defined S_IFCHR
19658 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19661 #if defined S_ISLNK && defined S_IFREG
19662 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19665 #if defined S_ISSOCK && defined S_IFREG
19666 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19670 if ac_fn_c_try_compile
"$LINENO"; then :
19671 ac_cv_header_stat_broken
=no
19673 ac_cv_header_stat_broken
=yes
19675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19678 $as_echo "$ac_cv_header_stat_broken" >&6; }
19679 if test $ac_cv_header_stat_broken = yes; then
19681 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19687 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19688 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19692 cat >>confdefs.h
<<_ACEOF
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19701 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19702 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19703 $as_echo_n "(cached) " >&6
19705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h. */
19712 static struct timespec x; x.tv_sec = x.tv_nsec;
19717 if ac_fn_c_try_compile
"$LINENO"; then :
19718 gl_cv_sys_struct_timespec_in_time_h
=yes
19720 gl_cv_sys_struct_timespec_in_time_h
=no
19722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19725 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19727 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19728 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19729 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19730 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19731 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19734 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19735 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19736 $as_echo_n "(cached) " >&6
19738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19740 #include <sys/time.h>
19745 static struct timespec x; x.tv_sec = x.tv_nsec;
19750 if ac_fn_c_try_compile
"$LINENO"; then :
19751 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19753 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19758 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19759 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19760 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19763 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19764 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19765 $as_echo_n "(cached) " >&6
19767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19769 #include <pthread.h>
19774 static struct timespec x; x.tv_sec = x.tv_nsec;
19779 if ac_fn_c_try_compile
"$LINENO"; then :
19780 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19782 gl_cv_sys_struct_timespec_in_pthread_h
=no
19784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19787 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19788 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19789 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19808 if test $gl_cv_have_include_next = yes; then
19809 gl_cv_next_time_h
='<'time.h
'>'
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19812 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19813 if test "${gl_cv_next_time_h+set}" = set; then :
19814 $as_echo_n "(cached) " >&6
19817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19823 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19824 *) gl_absname_cpp
="$ac_cpp" ;;
19829 gl_dirsep_regex
='[/\\]'
19832 gl_dirsep_regex
='\/'
19835 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19837 gl_header_literal_regex
=`echo 'time.h' \
19838 | sed -e "$gl_make_literal_regex_sed"`
19839 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19845 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19846 sed -n "$gl_absolute_header_sed"`'"'
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19851 $as_echo "$gl_cv_next_time_h" >&6; }
19853 NEXT_TIME_H
=$gl_cv_next_time_h
19855 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19857 gl_next_as_first_directive
='<'time.h
'>'
19859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19860 gl_next_as_first_directive
=$gl_cv_next_time_h
19862 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19879 $as_echo_n "checking whether the utimes function works... " >&6; }
19880 if test "${gl_cv_func_working_utimes+set}" = set; then :
19881 $as_echo_n "(cached) " >&6
19884 if test "$cross_compiling" = yes; then :
19885 gl_cv_func_working_utimes
=no
19887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <sys/stat.h>
19893 #include <sys/time.h>
19895 #include <unistd.h>
19896 #include <stdlib.h>
19901 inorder (time_t a, time_t b, time_t c)
19903 return a <= b && b <= c;
19910 char const *file = "conftest.utimes";
19911 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19913 /* Test whether utimes() essentially works. */
19916 FILE *f = fopen (file, "w");
19919 else if (fclose (f) != 0)
19921 else if (utimes (file, timeval) != 0)
19923 else if (lstat (file, &sbuf) != 0)
19925 else if (!(sbuf.st_atime == timeval[0].tv_sec
19926 && sbuf.st_mtime == timeval[1].tv_sec))
19928 if (unlink (file) != 0)
19932 /* Test whether utimes() with a NULL argument sets the file's timestamp
19933 to the current time. Use 'fstat' as well as 'time' to
19934 determine the "current" time, to accommodate NFS file systems
19935 if there is a time skew between the host and the NFS server. */
19937 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19943 struct stat st0, st1, st2;
19944 if (time (&t0) == (time_t) -1)
19946 else if (fstat (fd, &st0) != 0)
19948 else if (utimes (file, timeval) != 0)
19950 else if (utimes (file, NULL) != 0)
19952 else if (fstat (fd, &st1) != 0)
19954 else if (write (fd, "\n", 1) != 1)
19956 else if (fstat (fd, &st2) != 0)
19958 else if (time (&t2) == (time_t) -1)
19962 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19963 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19964 if (! (st1.st_atime == st1.st_mtime))
19966 if (! (m_ok_POSIX || m_ok_NFS))
19969 if (close (fd) != 0)
19972 if (unlink (file) != 0)
19976 /* Test whether utimes() with a NULL argument works on read-only files. */
19978 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19981 else if (close (fd) != 0)
19983 else if (utimes (file, NULL) != 0)
19985 if (unlink (file) != 0)
19993 if ac_fn_c_try_run
"$LINENO"; then :
19994 gl_cv_func_working_utimes
=yes
19996 gl_cv_func_working_utimes
=no
19998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20004 $as_echo "$gl_cv_func_working_utimes" >&6; }
20006 if test $gl_cv_func_working_utimes = yes; then
20008 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20017 $as_echo_n "checking for struct utimbuf... " >&6; }
20018 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023 #if HAVE_SYS_TIME_H
20024 #include <sys/time.h>
20027 #ifdef HAVE_UTIME_H
20034 static struct utimbuf x; x.actime = x.modtime;
20039 if ac_fn_c_try_compile
"$LINENO"; then :
20040 gl_cv_sys_struct_utimbuf
=yes
20042 gl_cv_sys_struct_utimbuf
=no
20044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20047 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20049 if test $gl_cv_sys_struct_utimbuf = yes; then
20051 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20067 GL_COND_LIBTOOL_TRUE
=
20068 GL_COND_LIBTOOL_FALSE
='#'
20070 GL_COND_LIBTOOL_TRUE
='#'
20071 GL_COND_LIBTOOL_FALSE
=
20074 gl_cond_libtool
=false
20087 gl_source_base
='lib'
20090 if test $ac_cv_func_alloca_works = no
; then
20094 # Define an additional variable used in the Makefile substitution.
20095 if test $ac_cv_working_alloca_h = yes; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20097 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20098 if test "${gl_cv_rpl_alloca+set}" = set; then :
20099 $as_echo_n "(cached) " >&6
20102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20105 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20111 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20112 gl_cv_rpl_alloca
=yes
20114 gl_cv_rpl_alloca
=no
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20121 $as_echo "$gl_cv_rpl_alloca" >&6; }
20122 if test $gl_cv_rpl_alloca = yes; then
20124 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20134 if test -n "$ALLOCA_H"; then
20135 GL_GENERATE_ALLOCA_H_TRUE
=
20136 GL_GENERATE_ALLOCA_H_FALSE
='#'
20138 GL_GENERATE_ALLOCA_H_TRUE
='#'
20139 GL_GENERATE_ALLOCA_H_FALSE
=
20147 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20148 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20150 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20151 # programs in the package would end up linked with that potentially-shared
20152 # library, inducing unnecessary run-time overhead.
20155 gl_saved_libs
=$LIBS
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20157 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20158 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20159 $as_echo_n "(cached) " >&6
20161 ac_func_search_save_LIBS
=$LIBS
20162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char clock_gettime ();
20175 return clock_gettime ();
20180 for ac_lib
in '' rt posix4
; do
20181 if test -z "$ac_lib"; then
20182 ac_res
="none required"
20185 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20187 if ac_fn_c_try_link
"$LINENO"; then :
20188 ac_cv_search_clock_gettime
=$ac_res
20190 rm -f core conftest.err conftest.
$ac_objext \
20192 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20196 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20199 ac_cv_search_clock_gettime
=no
20201 rm conftest.
$ac_ext
20202 LIBS
=$ac_func_search_save_LIBS
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20205 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20206 ac_res
=$ac_cv_search_clock_gettime
20207 if test "$ac_res" != no
; then :
20208 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20209 test "$ac_cv_search_clock_gettime" = "none required" ||
20210 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20213 for ac_func
in clock_gettime clock_settime
20215 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20216 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20217 eval as_val
=\$
$as_ac_var
20218 if test "x$as_val" = x
""yes; then :
20219 cat >>confdefs.h
<<_ACEOF
20220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20226 LIBS
=$gl_saved_libs
20252 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20255 if test $HAVE_DUP2 = 1; then
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20257 $as_echo_n "checking whether dup2 works... " >&6; }
20258 if test "${gl_cv_func_dup2_works+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20261 if test "$cross_compiling" = yes; then :
20263 mingw
*) # on this platform, dup2 always returns 0 for success
20264 gl_cv_func_dup2_works
="guessing no" ;;
20265 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20266 gl_cv_func_dup2_works
="guessing no" ;;
20267 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20268 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20269 gl_cv_func_dup2_works
="guessing no" ;;
20270 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20271 gl_cv_func_dup2_works
="guessing no" ;;
20272 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20273 gl_cv_func_dup2_works
="guessing no" ;;
20274 *) gl_cv_func_dup2_works
="guessing yes" ;;
20277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20280 #include <unistd.h>
20288 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20291 if (dup2 (1, 1) == 0)
20294 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20298 if (dup2 (0, 0) != -1)
20300 /* Many gnulib modules require POSIX conformance of EBADF. */
20301 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20310 if ac_fn_c_try_run
"$LINENO"; then :
20311 gl_cv_func_dup2_works
=yes
20313 gl_cv_func_dup2_works
=no
20315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20322 $as_echo "$gl_cv_func_dup2_works" >&6; }
20323 case "$gl_cv_func_dup2_works" in
20332 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20341 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20372 EXECINFO_H
='execinfo.h'
20374 if test $ac_cv_header_execinfo_h = yes; then
20375 gl_saved_libs
=$LIBS
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20377 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20378 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20381 ac_func_search_save_LIBS
=$LIBS
20382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20385 /* Override any GCC internal prototype to avoid an error.
20386 Use char because int might match the return type of a GCC
20387 builtin and then its argument prototype would still apply. */
20391 char backtrace_symbols_fd ();
20395 return backtrace_symbols_fd ();
20400 for ac_lib
in '' execinfo
; do
20401 if test -z "$ac_lib"; then
20402 ac_res
="none required"
20405 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20407 if ac_fn_c_try_link
"$LINENO"; then :
20408 ac_cv_search_backtrace_symbols_fd
=$ac_res
20410 rm -f core conftest.err conftest.
$ac_objext \
20412 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20416 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20419 ac_cv_search_backtrace_symbols_fd
=no
20421 rm conftest.
$ac_ext
20422 LIBS
=$ac_func_search_save_LIBS
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20425 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20426 ac_res
=$ac_cv_search_backtrace_symbols_fd
20427 if test "$ac_res" != no
; then :
20428 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20429 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20430 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20433 LIBS
=$gl_saved_libs
20434 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20437 if test -n "$EXECINFO_H"; then
20446 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20452 if test -n "$EXECINFO_H"; then
20453 GL_GENERATE_EXECINFO_H_TRUE
=
20454 GL_GENERATE_EXECINFO_H_FALSE
='#'
20456 GL_GENERATE_EXECINFO_H_TRUE
='#'
20457 GL_GENERATE_EXECINFO_H_FALSE
=
20468 # Persuade glibc <stdlib.h> to declare getloadavg().
20473 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20474 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20476 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20477 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20480 gl_func_getloadavg_done
=no
20482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20484 # to get the right answer into the cache.
20485 # For kstat on solaris, we need to test for libelf and libkvm to force the
20486 # definition of SVR4 below.
20487 if test $gl_func_getloadavg_done = no
; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20489 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20490 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20491 $as_echo_n "(cached) " >&6
20493 ac_check_lib_save_LIBS
=$LIBS
20495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20508 return elf_begin ();
20513 if ac_fn_c_try_link
"$LINENO"; then :
20514 ac_cv_lib_elf_elf_begin
=yes
20516 ac_cv_lib_elf_elf_begin
=no
20518 rm -f core conftest.err conftest.
$ac_objext \
20519 conftest
$ac_exeext conftest.
$ac_ext
20520 LIBS
=$ac_check_lib_save_LIBS
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20523 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20524 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20529 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20530 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20531 $as_echo_n "(cached) " >&6
20533 ac_check_lib_save_LIBS
=$LIBS
20535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20538 /* Override any GCC internal prototype to avoid an error.
20539 Use char because int might match the return type of a GCC
20540 builtin and then its argument prototype would still apply. */
20548 return kvm_open ();
20553 if ac_fn_c_try_link
"$LINENO"; then :
20554 ac_cv_lib_kvm_kvm_open
=yes
20556 ac_cv_lib_kvm_kvm_open
=no
20558 rm -f core conftest.err conftest.
$ac_objext \
20559 conftest
$ac_exeext conftest.
$ac_ext
20560 LIBS
=$ac_check_lib_save_LIBS
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20563 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20564 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20568 # Check for the 4.4BSD definition of getloadavg.
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20570 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20571 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20572 $as_echo_n "(cached) " >&6
20574 ac_check_lib_save_LIBS
=$LIBS
20575 LIBS
="-lutil $LIBS"
20576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20579 /* Override any GCC internal prototype to avoid an error.
20580 Use char because int might match the return type of a GCC
20581 builtin and then its argument prototype would still apply. */
20585 char getloadavg ();
20589 return getloadavg ();
20594 if ac_fn_c_try_link
"$LINENO"; then :
20595 ac_cv_lib_util_getloadavg
=yes
20597 ac_cv_lib_util_getloadavg
=no
20599 rm -f core conftest.err conftest.
$ac_objext \
20600 conftest
$ac_exeext conftest.
$ac_ext
20601 LIBS
=$ac_check_lib_save_LIBS
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20604 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20605 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20606 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20611 if test $gl_func_getloadavg_done = no
; then
20612 # There is a commonly available library for RS/6000 AIX.
20613 # Since it is not a standard part of AIX, it might be installed locally.
20614 gl_getloadavg_LIBS
=$LIBS
20615 LIBS
="-L/usr/local/lib $LIBS"
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20617 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20618 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20619 $as_echo_n "(cached) " >&6
20621 ac_check_lib_save_LIBS
=$LIBS
20622 LIBS
="-lgetloadavg $LIBS"
20623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20626 /* Override any GCC internal prototype to avoid an error.
20627 Use char because int might match the return type of a GCC
20628 builtin and then its argument prototype would still apply. */
20632 char getloadavg ();
20636 return getloadavg ();
20641 if ac_fn_c_try_link
"$LINENO"; then :
20642 ac_cv_lib_getloadavg_getloadavg
=yes
20644 ac_cv_lib_getloadavg_getloadavg
=no
20646 rm -f core conftest.err conftest.
$ac_objext \
20647 conftest
$ac_exeext conftest.
$ac_ext
20648 LIBS
=$ac_check_lib_save_LIBS
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20651 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20652 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20653 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20655 LIBS
=$gl_getloadavg_LIBS
20660 # Set up the replacement function if necessary.
20661 if test $gl_func_getloadavg_done = no
; then
20664 # Solaris has libkstat which does not require root.
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20666 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20667 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20668 $as_echo_n "(cached) " >&6
20670 ac_check_lib_save_LIBS
=$LIBS
20671 LIBS
="-lkstat $LIBS"
20672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20675 /* Override any GCC internal prototype to avoid an error.
20676 Use char because int might match the return type of a GCC
20677 builtin and then its argument prototype would still apply. */
20681 char kstat_open ();
20685 return kstat_open ();
20690 if ac_fn_c_try_link
"$LINENO"; then :
20691 ac_cv_lib_kstat_kstat_open
=yes
20693 ac_cv_lib_kstat_kstat_open
=no
20695 rm -f core conftest.err conftest.
$ac_objext \
20696 conftest
$ac_exeext conftest.
$ac_ext
20697 LIBS
=$ac_check_lib_save_LIBS
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20700 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20701 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20702 cat >>confdefs.h
<<_ACEOF
20703 #define HAVE_LIBKSTAT 1
20706 LIBS
="-lkstat $LIBS"
20710 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20712 # AIX has libperfstat which does not require root
20713 if test $gl_func_getloadavg_done = no
; then
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20715 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20716 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20717 $as_echo_n "(cached) " >&6
20719 ac_check_lib_save_LIBS
=$LIBS
20720 LIBS
="-lperfstat $LIBS"
20721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20730 char perfstat_cpu_total ();
20734 return perfstat_cpu_total ();
20739 if ac_fn_c_try_link
"$LINENO"; then :
20740 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20742 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20744 rm -f core conftest.err conftest.
$ac_objext \
20745 conftest
$ac_exeext conftest.
$ac_ext
20746 LIBS
=$ac_check_lib_save_LIBS
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20749 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20750 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20751 cat >>confdefs.h
<<_ACEOF
20752 #define HAVE_LIBPERFSTAT 1
20755 LIBS
="-lperfstat $LIBS"
20759 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20762 if test $gl_func_getloadavg_done = no
; then
20763 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20764 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20765 gl_func_getloadavg_done
=yes
20767 $as_echo "#define DGUX 1" >>confdefs.h
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20770 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20771 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20772 $as_echo_n "(cached) " >&6
20774 ac_check_lib_save_LIBS
=$LIBS
20776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20785 char dg_sys_info ();
20789 return dg_sys_info ();
20794 if ac_fn_c_try_link
"$LINENO"; then :
20795 ac_cv_lib_dgc_dg_sys_info
=yes
20797 ac_cv_lib_dgc_dg_sys_info
=no
20799 rm -f core conftest.err conftest.
$ac_objext \
20800 conftest
$ac_exeext conftest.
$ac_ext
20801 LIBS
=$ac_check_lib_save_LIBS
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20804 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20805 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20806 cat >>confdefs.h
<<_ACEOF
20807 #define HAVE_LIBDGC 1
20822 if test "x$gl_save_LIBS" = x
; then
20823 GETLOADAVG_LIBS
=$LIBS
20825 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20830 # Test whether the system declares getloadavg. Solaris has the function
20831 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20832 for ac_header
in sys
/loadavg.h
20834 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20835 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20836 cat >>confdefs.h
<<_ACEOF
20837 #define HAVE_SYS_LOADAVG_H 1
20844 if test $ac_cv_header_sys_loadavg_h = yes; then
20845 HAVE_SYS_LOADAVG_H
=1
20847 HAVE_SYS_LOADAVG_H
=0
20849 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20850 # include <sys/loadavg.h>
20852 #include <stdlib.h>
20854 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20857 HAVE_DECL_GETLOADAVG
=0
20861 if test $HAVE_GETLOADAVG = 0; then
20870 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20873 # Figure out what our getloadavg.c needs.
20877 # On HPUX9, an unprivileged user can get load averages this way.
20878 if test $gl_func_getloadavg_done = no
; then
20879 for ac_func
in pstat_getdynamic
20881 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20882 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20883 cat >>confdefs.h
<<_ACEOF
20884 #define HAVE_PSTAT_GETDYNAMIC 1
20886 gl_func_getloadavg_done
=yes
20892 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20893 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20894 # Irix 4.0.5F has the header but not the library.
20895 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20896 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20897 gl_func_getloadavg_done
=yes
20899 $as_echo "#define SVR4 1" >>confdefs.h
20903 if test $gl_func_getloadavg_done = no
; then
20904 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20905 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20906 gl_func_getloadavg_done
=yes
20908 $as_echo "#define UMAX 1" >>confdefs.h
20911 $as_echo "#define UMAX4_3 1" >>confdefs.h
20918 if test $gl_func_getloadavg_done = no
; then
20919 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20921 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20928 if test $gl_func_getloadavg_done = no
; then
20929 for ac_header
in mach
/mach.h
20931 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20932 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20933 cat >>confdefs.h
<<_ACEOF
20934 #define HAVE_MACH_MACH_H 1
20943 for ac_header
in nlist.h
20945 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20946 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20947 cat >>confdefs.h
<<_ACEOF
20948 #define HAVE_NLIST_H 1
20950 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20952 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20954 cat >>confdefs.h
<<_ACEOF
20955 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20968 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20969 x.n_un.n_name = "";
20977 if ac_fn_c_try_link
"$LINENO"; then :
20979 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20982 rm -f core conftest.err conftest.
$ac_objext \
20983 conftest
$ac_exeext conftest.
$ac_ext
20995 GNULIB_GETLOADAVG
=1
21006 if test $REPLACE_GETOPT = 1; then
21015 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21025 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21030 GNULIB_GL_UNISTD_H_GETOPT
=1
21040 if test -n "$gl_replace_getopt"; then
21044 if test $REPLACE_GETOPT = 1; then
21048 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21054 if test $REPLACE_GETOPT = 1; then
21063 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21073 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21078 GNULIB_GL_UNISTD_H_GETOPT
=1
21092 gl_gettimeofday_timezone
=void
21093 if test $ac_cv_func_gettimeofday != yes; then
21094 HAVE_GETTIMEOFDAY
=0
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21100 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21101 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21102 $as_echo_n "(cached) " >&6
21104 if test "$cross_compiling" = yes; then :
21105 # When cross-compiling:
21107 # Guess all is fine on glibc systems.
21108 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21109 # If we don't know, assume the worst.
21110 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 #include <string.h>
21117 #include <sys/time.h>
21119 #include <stdlib.h>
21127 struct tm saved_lt;
21129 lt = localtime (&t);
21131 gettimeofday (&tv, NULL);
21132 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21138 if ac_fn_c_try_run
"$LINENO"; then :
21139 gl_cv_func_gettimeofday_clobber
=no
21141 gl_cv_func_gettimeofday_clobber
=yes
21143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21149 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21151 case "$gl_cv_func_gettimeofday_clobber" in
21153 REPLACE_GETTIMEOFDAY
=1
21156 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21159 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21163 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21169 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21170 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21171 $as_echo_n "(cached) " >&6
21173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21174 /* end confdefs.h. */
21175 #include <sys/time.h>
21177 int gettimeofday (struct timeval *restrict, void *restrict);
21182 /* glibc uses struct timezone * rather than the POSIX void *
21183 if _GNU_SOURCE is defined. However, since the only portable
21184 use of gettimeofday uses NULL as the second parameter, and
21185 since the glibc definition is actually more typesafe, it is
21186 not worth wrapping this to get a compliant signature. */
21187 int (*f) (struct timeval *restrict, void *restrict)
21190 return !(x | c.tv_sec | c.tv_usec);
21196 if ac_fn_c_try_compile
"$LINENO"; then :
21197 gl_cv_func_gettimeofday_posix_signature
=yes
21199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201 #include <sys/time.h>
21202 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21212 if ac_fn_c_try_compile
"$LINENO"; then :
21213 gl_cv_func_gettimeofday_posix_signature
=almost
21215 gl_cv_func_gettimeofday_posix_signature
=no
21217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21222 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21223 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21224 gl_gettimeofday_timezone
='struct timezone'
21225 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21226 REPLACE_GETTIMEOFDAY
=1
21228 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21229 REPLACE_GETTIMEOFDAY
=1
21234 cat >>confdefs.h
<<_ACEOF
21235 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21239 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21248 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21251 for ac_header
in sys
/timeb.h
21253 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21254 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21255 cat >>confdefs.h
<<_ACEOF
21256 #define HAVE_SYS_TIMEB_H 1
21263 for ac_func
in _ftime
21265 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21266 if test "x$ac_cv_func__ftime" = x
""yes; then :
21267 cat >>confdefs.h
<<_ACEOF
21268 #define HAVE__FTIME 1
21281 GNULIB_GETTIMEOFDAY
=1
21292 if test $ac_cv_func_lstat = yes; then
21294 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21303 if test $REPLACE_LSTAT = 1; then
21312 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21336 if test $APPLE_UNIVERSAL_BUILD = 1; then
21337 # A universal build on Apple Mac OS X platforms.
21338 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21339 # But we need a configuration result that is valid in both modes.
21340 gl_cv_func_working_mktime
=no
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21343 $as_echo_n "checking for working mktime... " >&6; }
21344 if test "${gl_cv_func_working_mktime+set}" = set; then :
21345 $as_echo_n "(cached) " >&6
21347 if test "$cross_compiling" = yes; then :
21348 gl_cv_func_working_mktime
=no
21350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21352 /* Test program from Paul Eggert and Tony Leneis. */
21353 #include <limits.h>
21354 #include <stdlib.h>
21357 #ifdef HAVE_UNISTD_H
21358 # include <unistd.h>
21362 # define alarm(X) /* empty */
21365 /* Work around redefinition to rpl_putenv by other config tests. */
21368 static time_t time_t_max;
21369 static time_t time_t_min;
21371 /* Values we'll use to set the TZ environment variable. */
21372 static char *tz_strings[] = {
21373 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21374 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21376 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21378 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21379 Based on a problem report from Andreas Jaeger. */
21381 spring_forward_gap ()
21383 /* glibc (up to about 1998-10-07) failed this test. */
21386 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21387 instead of "TZ=America/Vancouver" in order to detect the bug even
21388 on systems that don't support the Olson extension, or don't have the
21389 full zoneinfo tables installed. */
21390 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21399 return mktime (&tm) != (time_t) -1;
21403 mktime_test1 (time_t now)
21406 return ! (lt = localtime (&now)) || mktime (lt) == now;
21410 mktime_test (time_t now)
21412 return (mktime_test1 (now)
21413 && mktime_test1 ((time_t) (time_t_max - now))
21414 && mktime_test1 ((time_t) (time_t_min + now)));
21420 /* Based on code from Ariel Faigon. */
21430 return tm.tm_mon == 2 && tm.tm_mday == 31;
21434 bigtime_test (int j)
21438 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21439 now = mktime (&tm);
21440 if (now != (time_t) -1)
21442 struct tm *lt = localtime (&now);
21444 && lt->tm_year == tm.tm_year
21445 && lt->tm_mon == tm.tm_mon
21446 && lt->tm_mday == tm.tm_mday
21447 && lt->tm_hour == tm.tm_hour
21448 && lt->tm_min == tm.tm_min
21449 && lt->tm_sec == tm.tm_sec
21450 && lt->tm_yday == tm.tm_yday
21451 && lt->tm_wday == tm.tm_wday
21452 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21453 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21462 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21463 ignoring leap seconds. */
21464 unsigned long int answer = 2527315200UL;
21468 tm.tm_year = 2050 - 1900;
21471 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21474 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21475 instead of "TZ=America/Vancouver" in order to detect the bug even
21476 on systems that don't support the Olson extension, or don't have the
21477 full zoneinfo tables installed. */
21478 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21482 /* Check that the result is either a failure, or close enough
21483 to the correct answer that we can assume the discrepancy is
21484 due to leap seconds. */
21485 return (t == (time_t) -1
21486 || (0 < t && answer - 120 <= t && t <= answer + 120));
21495 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21496 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21498 /* This test makes some buggy mktime implementations loop.
21499 Give up after 60 seconds; a mktime slower than that
21500 isn't worth using anyway. */
21503 time_t_max = (! time_t_signed
21505 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21507 time_t_min = (! time_t_signed
21509 : time_t_signed_magnitude
21513 delta = time_t_max / 997; /* a suitable prime number */
21514 for (i = 0; i < N_STRINGS; i++)
21517 putenv (tz_strings[i]);
21519 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21520 if (! mktime_test (t))
21522 if ((result & 2) == 0
21523 && ! (mktime_test ((time_t) 1)
21524 && mktime_test ((time_t) (60 * 60))
21525 && mktime_test ((time_t) (60 * 60 * 24))))
21528 for (j = 1; (result & 4) == 0; j <<= 1)
21530 if (! bigtime_test (j))
21532 if (INT_MAX / 2 < j)
21535 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21538 if (! irix_6_4_bug ())
21540 if (! spring_forward_gap ())
21542 if (! year_2050_test ())
21547 if ac_fn_c_try_run
"$LINENO"; then :
21548 gl_cv_func_working_mktime
=yes
21550 gl_cv_func_working_mktime
=no
21552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21559 $as_echo "$gl_cv_func_working_mktime" >&6; }
21561 if test $gl_cv_func_working_mktime = no
; then
21567 if test $REPLACE_MKTIME = 1; then
21576 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21597 if test $ac_cv_func_pselect = yes; then
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21599 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21600 if test "${gl_cv_sig_pselect+set}" = set; then :
21601 $as_echo_n "(cached) " >&6
21603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21604 /* end confdefs.h. */
21605 #include <sys/select.h>
21610 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21611 struct timespec const *restrict,
21612 sigset_t const *restrict) = pselect;
21618 if ac_fn_c_try_link
"$LINENO"; then :
21619 gl_cv_sig_pselect
=yes
21621 gl_cv_sig_pselect
=no
21623 rm -f core conftest.err conftest.
$ac_objext \
21624 conftest
$ac_exeext conftest.
$ac_ext
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21627 $as_echo "$gl_cv_sig_pselect" >&6; }
21630 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21634 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21643 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21661 LIB_PTHREAD_SIGMASK
=
21666 if test "$gl_threads_api" = posix
; then
21667 if test $ac_cv_func_pthread_sigmask = yes; then
21670 if test -n "$LIBMULTITHREAD"; then
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21672 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21673 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21674 $as_echo_n "(cached) " >&6
21676 gl_save_LIBS
="$LIBS"
21677 LIBS
="$LIBS $LIBMULTITHREAD"
21678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21680 #include <pthread.h>
21681 #include <signal.h>
21686 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21692 if ac_fn_c_try_link
"$LINENO"; then :
21693 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
21695 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
21697 rm -f core conftest.err conftest.
$ac_objext \
21698 conftest
$ac_exeext conftest.
$ac_ext
21699 LIBS
="$gl_save_LIBS"
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21703 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21704 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21705 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
21707 HAVE_PTHREAD_SIGMASK
=0
21710 HAVE_PTHREAD_SIGMASK
=0
21714 if test $ac_cv_func_pthread_sigmask = yes; then
21715 REPLACE_PTHREAD_SIGMASK
=1
21717 HAVE_PTHREAD_SIGMASK
=0
21724 if test $HAVE_PTHREAD_SIGMASK = 1; then
21727 if test -z "$LIB_PTHREAD_SIGMASK"; then
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21729 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21730 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21731 $as_echo_n "(cached) " >&6
21734 if test "$cross_compiling" = yes; then :
21737 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21738 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21740 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 #include <pthread.h>
21748 #include <signal.h>
21749 #include <stddef.h>
21753 sigemptyset (&set);
21754 return pthread_sigmask (1729, &set, NULL) != 0;
21757 if ac_fn_c_try_run
"$LINENO"; then :
21758 gl_cv_func_pthread_sigmask_in_libc_works
=no
21760 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21769 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21770 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21772 REPLACE_PTHREAD_SIGMASK
=1
21774 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21781 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21782 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21786 gl_save_LIBS
="$LIBS"
21787 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21788 if test "$cross_compiling" = yes; then :
21791 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21793 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21800 #include <pthread.h>
21801 #include <signal.h>
21802 #include <stddef.h>
21806 sigemptyset (&set);
21807 if (pthread_sigmask (1729, &set, NULL) == -1)
21812 if ac_fn_c_try_run
"$LINENO"; then :
21813 gl_cv_func_pthread_sigmask_return_works
=yes
21815 gl_cv_func_pthread_sigmask_return_works
=no
21817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21821 LIBS
="$gl_save_LIBS"
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21825 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21826 case "$gl_cv_func_pthread_sigmask_return_works" in
21828 REPLACE_PTHREAD_SIGMASK
=1
21830 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21836 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21837 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21838 $as_echo_n "(cached) " >&6
21843 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21845 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21847 gl_save_LIBS
="$LIBS"
21848 LIBS
="$LIBS $LIBMULTITHREAD"
21849 if test "$cross_compiling" = yes; then :
21852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h. */
21855 #include <pthread.h>
21856 #include <signal.h>
21858 #include <stdlib.h>
21859 #include <unistd.h>
21860 static volatile int sigint_occurred;
21862 sigint_handler (int sig)
21869 int pid = getpid ();
21871 signal (SIGINT, sigint_handler);
21872 sigemptyset (&set);
21873 sigaddset (&set, SIGINT);
21874 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21876 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21877 if (!(system (command) == 0))
21880 if (!(sigint_occurred == 0))
21882 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21884 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21889 if ac_fn_c_try_run
"$LINENO"; then :
21892 gl_cv_func_pthread_sigmask_unblock_works
=no
21894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21898 LIBS
="$gl_save_LIBS"
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21902 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21903 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21905 REPLACE_PTHREAD_SIGMASK
=1
21907 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21913 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21922 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21925 if test $HAVE_PTHREAD_SIGMASK = 1; then
21927 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21937 GNULIB_PTHREAD_SIGMASK
=1
21946 if test $ac_cv_func_readlink = no
; then
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21950 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21951 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21956 #include <unistd.h>
21957 /* Cause compilation failure if original declaration has wrong type. */
21958 ssize_t readlink (const char *, char *, size_t);
21967 if ac_fn_c_try_compile
"$LINENO"; then :
21968 gl_cv_decl_readlink_works
=yes
21970 gl_cv_decl_readlink_works
=no
21972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21975 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21977 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21978 if test "${gl_cv_func_readlink_works+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21981 # We have readlink, so assume ln -s works.
21982 ln -s conftest.no-such conftest.link
21983 ln -s conftest.link conftest.lnk2
21984 if test "$cross_compiling" = yes; then :
21986 # Guess yes on glibc systems.
21987 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21988 # If we don't know, assume the worst.
21989 *) gl_cv_func_readlink_works
="guessing no" ;;
21993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h. */
21995 #include <unistd.h>
22001 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22006 if ac_fn_c_try_run
"$LINENO"; then :
22007 gl_cv_func_readlink_works
=yes
22009 gl_cv_func_readlink_works
=no
22011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22012 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22015 rm -f conftest.link conftest.lnk2
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22018 $as_echo "$gl_cv_func_readlink_works" >&6; }
22019 case "$gl_cv_func_readlink_works" in
22021 if test "$gl_cv_decl_readlink_works" != yes; then
22027 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22034 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22043 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22071 if test $gl_cv_have_include_next = yes; then
22072 gl_cv_next_signal_h
='<'signal.h
'>'
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22075 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22076 if test "${gl_cv_next_signal_h+set}" = set; then :
22077 $as_echo_n "(cached) " >&6
22080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22082 #include <signal.h>
22086 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22087 *) gl_absname_cpp
="$ac_cpp" ;;
22092 gl_dirsep_regex
='[/\\]'
22095 gl_dirsep_regex
='\/'
22098 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22100 gl_header_literal_regex
=`echo 'signal.h' \
22101 | sed -e "$gl_make_literal_regex_sed"`
22102 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22103 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22108 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22109 sed -n "$gl_absolute_header_sed"`'"'
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22114 $as_echo "$gl_cv_next_signal_h" >&6; }
22116 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22118 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22120 gl_next_as_first_directive
='<'signal.h
'>'
22122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22123 gl_next_as_first_directive
=$gl_cv_next_signal_h
22125 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22131 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22132 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22133 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22134 #include <signal.h>
22137 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22140 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22149 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22150 #include <signal.h>
22153 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22156 HAVE_SIGHANDLER_T
=0
22162 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22163 /* <sys/types.h> is not needed according to POSIX, but the
22164 <sys/socket.h> in i386-unknown-freebsd4.10 and
22165 powerpc-apple-darwin5.5 required it. */
22166 #include <sys/types.h>
22167 #if HAVE_SYS_SOCKET_H
22168 # include <sys/socket.h>
22169 #elif HAVE_WS2TCPIP_H
22170 # include <ws2tcpip.h>
22174 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22178 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22179 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22180 $as_echo_n "(cached) " >&6
22182 # Systems have either "struct sockaddr *" or
22183 # "void *" as the second argument to getpeername
22184 gl_cv_socklen_t_equiv
=
22185 for arg2
in "struct sockaddr" void
; do
22186 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189 #include <sys/types.h>
22190 #include <sys/socket.h>
22192 int getpeername (int, $arg2 *, $t *);
22197 getpeername (0, 0, &len);
22202 if ac_fn_c_try_compile
"$LINENO"; then :
22203 gl_cv_socklen_t_equiv
="$t"
22205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22206 test "$gl_cv_socklen_t_equiv" != "" && break
22208 test "$gl_cv_socklen_t_equiv" != "" && break
22213 if test "$gl_cv_socklen_t_equiv" = ""; then
22214 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22217 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22219 cat >>confdefs.h
<<_ACEOF
22220 #define socklen_t $gl_cv_socklen_t_equiv
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22227 $as_echo_n "checking for ssize_t... " >&6; }
22228 if test "${gt_cv_ssize_t+set}" = set; then :
22229 $as_echo_n "(cached) " >&6
22231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22233 #include <sys/types.h>
22237 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22243 if ac_fn_c_try_compile
"$LINENO"; then :
22248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22251 $as_echo "$gt_cv_ssize_t" >&6; }
22252 if test $gt_cv_ssize_t = no
; then
22254 $as_echo "#define ssize_t int" >>confdefs.h
22262 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>
22263 #include <sys/stat.h>
22265 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22267 cat >>confdefs.h
<<_ACEOF
22268 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22272 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22273 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22279 #include <sys/types.h>
22280 #include <sys/stat.h>
22281 #if HAVE_SYS_TIME_H
22282 # include <sys/time.h>
22285 struct timespec ts;
22298 if ac_fn_c_try_compile
"$LINENO"; then :
22299 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22301 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22306 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22307 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22309 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22313 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>
22314 #include <sys/stat.h>
22316 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22318 cat >>confdefs.h
<<_ACEOF
22319 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22324 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22325 #include <sys/stat.h>
22327 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22329 cat >>confdefs.h
<<_ACEOF
22330 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22335 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>
22336 #include <sys/stat.h>
22338 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22340 cat >>confdefs.h
<<_ACEOF
22341 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22357 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>
22358 #include <sys/stat.h>
22360 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22362 cat >>confdefs.h
<<_ACEOF
22363 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22368 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22369 #include <sys/stat.h>
22371 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22373 cat >>confdefs.h
<<_ACEOF
22374 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22379 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>
22380 #include <sys/stat.h>
22382 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22384 cat >>confdefs.h
<<_ACEOF
22385 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22398 $as_echo_n "checking for working stdalign.h... " >&6; }
22399 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22400 $as_echo_n "(cached) " >&6
22402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22404 #include <stdalign.h>
22405 #include <stddef.h>
22407 /* Test that alignof yields a result consistent with offsetof.
22408 This catches GCC bug 52023
22409 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22411 template <class t> struct alignof_helper { char a; t b; };
22412 # define ao(type) offsetof (alignof_helper<type>, b)
22414 # define ao(type) offsetof (struct { char a; type b; }, b)
22416 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22417 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22418 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22420 /* Test _Alignas only on platforms where gnulib can help. */
22422 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22423 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22424 int alignas (8) alignas_int = 1;
22425 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22436 if ac_fn_c_try_compile
"$LINENO"; then :
22437 gl_cv_header_working_stdalign_h
=yes
22439 gl_cv_header_working_stdalign_h
=no
22441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22444 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22446 if test $gl_cv_header_working_stdalign_h = yes; then
22449 STDALIGN_H
='stdalign.h'
22453 if test -n "$STDALIGN_H"; then
22454 GL_GENERATE_STDALIGN_H_TRUE
=
22455 GL_GENERATE_STDALIGN_H_FALSE
='#'
22457 GL_GENERATE_STDALIGN_H_TRUE
='#'
22458 GL_GENERATE_STDALIGN_H_FALSE
=
22464 NEXT_STDARG_H
='<stdarg.h>'
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22466 $as_echo_n "checking for va_copy... " >&6; }
22467 if test "${gl_cv_func_va_copy+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22472 /* end confdefs.h. */
22473 #include <stdarg.h>
22479 void (*func) (va_list, va_list) = va_copy;
22486 if ac_fn_c_try_compile
"$LINENO"; then :
22487 gl_cv_func_va_copy
=yes
22489 gl_cv_func_va_copy
=no
22491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22495 $as_echo "$gl_cv_func_va_copy" >&6; }
22496 if test $gl_cv_func_va_copy = no
; then
22497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22498 /* end confdefs.h. */
22499 #if defined _AIX && !defined __GNUC__
22504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22505 $EGREP "vaccine" >/dev
/null
2>&1; then :
22512 if test $gl_aixcc = yes; then
22522 if test $gl_cv_have_include_next = yes; then
22523 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22526 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22527 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22532 /* end confdefs.h. */
22533 #include <stdarg.h>
22537 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22538 *) gl_absname_cpp
="$ac_cpp" ;;
22543 gl_dirsep_regex
='[/\\]'
22546 gl_dirsep_regex
='\/'
22549 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22551 gl_header_literal_regex
=`echo 'stdarg.h' \
22552 | sed -e "$gl_make_literal_regex_sed"`
22553 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22554 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22559 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22560 sed -n "$gl_absolute_header_sed"`'"'
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22565 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22567 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22569 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22571 gl_next_as_first_directive
='<'stdarg.h
'>'
22573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22574 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22576 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22581 if test "$gl_cv_next_stdarg_h" = '""'; then
22582 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22583 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22587 saved_as_echo_n
="$as_echo_n"
22589 if test "${gl_cv_func___va_copy+set}" = set; then :
22590 $as_echo_n "(cached) " >&6
22593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22595 #include <stdarg.h>
22608 if ac_fn_c_try_compile
"$LINENO"; then :
22609 gl_cv_func___va_copy
=yes
22611 gl_cv_func___va_copy
=no
22613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22616 as_echo_n
="$saved_as_echo_n"
22618 if test $gl_cv_func___va_copy = yes; then
22620 $as_echo "#define va_copy __va_copy" >>confdefs.h
22625 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22631 if test -n "$STDARG_H"; then
22632 GL_GENERATE_STDARG_H_TRUE
=
22633 GL_GENERATE_STDARG_H_FALSE
='#'
22635 GL_GENERATE_STDARG_H_TRUE
='#'
22636 GL_GENERATE_STDARG_H_FALSE
=
22644 # Define two additional variables used in the Makefile substitution.
22646 if test "$ac_cv_header_stdbool_h" = yes; then
22649 STDBOOL_H
='stdbool.h'
22652 if test -n "$STDBOOL_H"; then
22653 GL_GENERATE_STDBOOL_H_TRUE
=
22654 GL_GENERATE_STDBOOL_H_FALSE
='#'
22656 GL_GENERATE_STDBOOL_H_TRUE
='#'
22657 GL_GENERATE_STDBOOL_H_FALSE
=
22661 if test "$ac_cv_type__Bool" = yes; then
22672 if test $gt_cv_c_wchar_t = no
; then
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22677 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22678 if test "${gl_cv_decl_null_works+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22683 #include <stddef.h>
22684 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22694 if ac_fn_c_try_compile
"$LINENO"; then :
22695 gl_cv_decl_null_works
=yes
22697 gl_cv_decl_null_works
=no
22699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22702 $as_echo "$gl_cv_decl_null_works" >&6; }
22703 if test $gl_cv_decl_null_works = no
; then
22708 if test -n "$STDDEF_H"; then
22709 GL_GENERATE_STDDEF_H_TRUE
=
22710 GL_GENERATE_STDDEF_H_FALSE
='#'
22712 GL_GENERATE_STDDEF_H_TRUE
='#'
22713 GL_GENERATE_STDDEF_H_FALSE
=
22716 if test -n "$STDDEF_H"; then
22725 if test $gl_cv_have_include_next = yes; then
22726 gl_cv_next_stddef_h
='<'stddef.h
'>'
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22729 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22730 if test "${gl_cv_next_stddef_h+set}" = set; then :
22731 $as_echo_n "(cached) " >&6
22734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22735 /* end confdefs.h. */
22736 #include <stddef.h>
22740 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22741 *) gl_absname_cpp
="$ac_cpp" ;;
22746 gl_dirsep_regex
='[/\\]'
22749 gl_dirsep_regex
='\/'
22752 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22754 gl_header_literal_regex
=`echo 'stddef.h' \
22755 | sed -e "$gl_make_literal_regex_sed"`
22756 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22757 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22762 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22763 sed -n "$gl_absolute_header_sed"`'"'
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22768 $as_echo "$gl_cv_next_stddef_h" >&6; }
22770 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22772 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22774 gl_next_as_first_directive
='<'stddef.h
'>'
22776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22777 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22798 if test $gl_cv_have_include_next = yes; then
22799 gl_cv_next_stdio_h
='<'stdio.h
'>'
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22802 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22803 if test "${gl_cv_next_stdio_h+set}" = set; then :
22804 $as_echo_n "(cached) " >&6
22807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22813 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22814 *) gl_absname_cpp
="$ac_cpp" ;;
22819 gl_dirsep_regex
='[/\\]'
22822 gl_dirsep_regex
='\/'
22825 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22827 gl_header_literal_regex
=`echo 'stdio.h' \
22828 | sed -e "$gl_make_literal_regex_sed"`
22829 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22830 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22835 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22836 sed -n "$gl_absolute_header_sed"`'"'
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22841 $as_echo "$gl_cv_next_stdio_h" >&6; }
22843 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22845 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22847 gl_next_as_first_directive
='<'stdio.h
'>'
22849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22850 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22852 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22861 cat >>confdefs.h
<<_ACEOF
22862 #define GNULIB_FSCANF 1
22869 cat >>confdefs.h
<<_ACEOF
22870 #define GNULIB_SCANF 1
22906 if test $gl_cv_have_include_next = yes; then
22907 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22910 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22911 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22912 $as_echo_n "(cached) " >&6
22915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22917 #include <stdlib.h>
22921 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22922 *) gl_absname_cpp
="$ac_cpp" ;;
22927 gl_dirsep_regex
='[/\\]'
22930 gl_dirsep_regex
='\/'
22933 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22935 gl_header_literal_regex
=`echo 'stdlib.h' \
22936 | sed -e "$gl_make_literal_regex_sed"`
22937 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22938 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22943 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22944 sed -n "$gl_absolute_header_sed"`'"'
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22949 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22951 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22953 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22955 gl_next_as_first_directive
='<'stdlib.h
'>'
22957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22958 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22960 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22970 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22978 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22987 if test "$ac_cv_have_decl_strtoimax" != yes; then
22988 HAVE_DECL_STRTOIMAX
=0
22991 if test $ac_cv_func_strtoimax = yes; then
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22994 $as_echo_n "checking whether strtoimax works... " >&6; }
22995 if test "${gl_cv_func_strtoimax+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22998 if test "$cross_compiling" = yes; then :
23000 # Guess no on AIX 5.
23001 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
23002 # Guess yes otherwise.
23003 *) gl_cv_func_strtoimax
="guessing yes" ;;
23007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23011 #include <string.h>
23012 #include <inttypes.h>
23015 if (sizeof (intmax_t) > sizeof (int))
23017 const char *s = "4294967295";
23021 res = strtoimax (s, &p, 10);
23022 if (p != s + strlen (s))
23026 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23031 const char *s = "2147483647";
23035 res = strtoimax (s, &p, 10);
23036 if (p != s + strlen (s))
23040 if (res != 2147483647)
23047 if ac_fn_c_try_run
"$LINENO"; then :
23048 gl_cv_func_strtoimax
=yes
23050 gl_cv_func_strtoimax
=no
23052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23059 $as_echo "$gl_cv_func_strtoimax" >&6; }
23060 case "$gl_cv_func_strtoimax" in
23061 *no
) REPLACE_STRTOIMAX
=1 ;;
23067 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23076 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23079 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23080 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23086 cat >>confdefs.h
<<_ACEOF
23087 #define HAVE_DECL_STRTOLL $ac_have_decl
23108 if test "$ac_cv_have_decl_strtoumax" != yes; then
23109 HAVE_DECL_STRTOUMAX
=0
23112 if test $ac_cv_func_strtoumax = no
; then
23121 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23124 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23125 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23131 cat >>confdefs.h
<<_ACEOF
23132 #define HAVE_DECL_STRTOULL $ac_have_decl
23151 if test $ac_cv_func_symlink = no
; then
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23155 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23156 if test "${gl_cv_func_symlink_works+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23159 if test "$cross_compiling" = yes; then :
23161 # Guess yes on glibc systems.
23162 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23163 # If we don't know, assume the worst.
23164 *) gl_cv_func_symlink_works
="guessing no" ;;
23168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23170 #include <unistd.h>
23176 if (!symlink ("a", "conftest.link/"))
23178 if (symlink ("conftest.f", "conftest.lnk2"))
23180 else if (!symlink ("a", "conftest.lnk2/"))
23188 if ac_fn_c_try_run
"$LINENO"; then :
23189 gl_cv_func_symlink_works
=yes
23191 gl_cv_func_symlink_works
=no
23193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23197 rm -f conftest.f conftest.link conftest.lnk2
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23200 $as_echo "$gl_cv_func_symlink_works" >&6; }
23201 case "$gl_cv_func_symlink_works" in
23209 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23218 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23236 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23237 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23242 /* end confdefs.h. */
23243 #include <sys/select.h>
23252 if ac_fn_c_try_compile
"$LINENO"; then :
23253 gl_cv_header_sys_select_h_selfcontained
=yes
23255 gl_cv_header_sys_select_h_selfcontained
=no
23257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23258 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h. */
23261 #include <sys/select.h>
23265 int memset; int bzero;
23271 if ac_fn_c_try_compile
"$LINENO"; then :
23272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23273 /* end confdefs.h. */
23274 #include <sys/select.h>
23280 #define memset nonexistent_memset
23285 void *memset (void *, int, unsigned long);
23287 #define bzero nonexistent_bzero
23292 void bzero (void *, unsigned long);
23301 if ac_fn_c_try_link
"$LINENO"; then :
23304 gl_cv_header_sys_select_h_selfcontained
=no
23306 rm -f core conftest.err conftest.
$ac_objext \
23307 conftest
$ac_exeext conftest.
$ac_ext
23310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23315 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23325 if test $gl_cv_have_include_next = yes; then
23326 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23329 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23330 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23334 if test $ac_cv_header_sys_select_h = yes; then
23337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23339 #include <sys/select.h>
23343 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23344 *) gl_absname_cpp
="$ac_cpp" ;;
23349 gl_dirsep_regex
='[/\\]'
23352 gl_dirsep_regex
='\/'
23355 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23357 gl_header_literal_regex
=`echo 'sys/select.h' \
23358 | sed -e "$gl_make_literal_regex_sed"`
23359 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23360 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23365 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23366 sed -n "$gl_absolute_header_sed"`'"'
23368 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23374 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23376 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23378 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23380 gl_next_as_first_directive
='<'sys
/select.h
'>'
23382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23383 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23385 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23390 if test $ac_cv_header_sys_select_h = yes; then
23391 HAVE_SYS_SELECT_H
=1
23393 HAVE_SYS_SELECT_H
=0
23400 if test $ac_cv_header_sys_socket_h != yes; then
23401 for ac_header
in winsock2.h
23403 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23404 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23405 cat >>confdefs.h
<<_ACEOF
23406 #define HAVE_WINSOCK2_H 1
23414 if test "$ac_cv_header_winsock2_h" = yes; then
23416 UNISTD_H_HAVE_WINSOCK2_H
=1
23417 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23441 if test $gl_cv_have_include_next = yes; then
23442 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23445 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23446 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23447 $as_echo_n "(cached) " >&6
23450 if test $ac_cv_header_sys_stat_h = yes; then
23453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23454 /* end confdefs.h. */
23455 #include <sys/stat.h>
23459 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23460 *) gl_absname_cpp
="$ac_cpp" ;;
23465 gl_dirsep_regex
='[/\\]'
23468 gl_dirsep_regex
='\/'
23471 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23473 gl_header_literal_regex
=`echo 'sys/stat.h' \
23474 | sed -e "$gl_make_literal_regex_sed"`
23475 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23481 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23482 sed -n "$gl_absolute_header_sed"`'"'
23484 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23490 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23492 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23494 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23496 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23499 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23501 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23513 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23515 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23519 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23520 #include <sys/stat.h>
23522 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23526 $as_echo "#define nlink_t int" >>confdefs.h
23547 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23549 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23555 cat >>confdefs.h
<<_ACEOF
23556 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23559 if test $ac_cv_have_decl_localtime_r = no
; then
23560 HAVE_DECL_LOCALTIME_R
=0
23564 if test $ac_cv_func_localtime_r = yes; then
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23567 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23568 if test "${gl_cv_time_r_posix+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23577 /* We don't need to append 'restrict's to the argument types,
23578 even though the POSIX signature has the 'restrict's,
23579 since C99 says they can't affect type compatibility. */
23580 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23582 /* Check the return type is a pointer.
23583 On HP-UX 10 it is 'int'. */
23584 *localtime_r (0, 0);
23590 if ac_fn_c_try_compile
"$LINENO"; then :
23591 gl_cv_time_r_posix
=yes
23593 gl_cv_time_r_posix
=no
23595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23599 $as_echo "$gl_cv_time_r_posix" >&6; }
23600 if test $gl_cv_time_r_posix = yes; then
23601 REPLACE_LOCALTIME_R
=0
23603 REPLACE_LOCALTIME_R
=1
23609 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23618 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23642 gl_saved_libs
=$LIBS
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23644 $as_echo_n "checking for library containing timer_settime... " >&6; }
23645 if test "${ac_cv_search_timer_settime+set}" = set; then :
23646 $as_echo_n "(cached) " >&6
23648 ac_func_search_save_LIBS
=$LIBS
23649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23658 char timer_settime ();
23662 return timer_settime ();
23667 for ac_lib
in '' rt posix4
; do
23668 if test -z "$ac_lib"; then
23669 ac_res
="none required"
23672 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23674 if ac_fn_c_try_link
"$LINENO"; then :
23675 ac_cv_search_timer_settime
=$ac_res
23677 rm -f core conftest.err conftest.
$ac_objext \
23679 if test "${ac_cv_search_timer_settime+set}" = set; then :
23683 if test "${ac_cv_search_timer_settime+set}" = set; then :
23686 ac_cv_search_timer_settime
=no
23688 rm conftest.
$ac_ext
23689 LIBS
=$ac_func_search_save_LIBS
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23692 $as_echo "$ac_cv_search_timer_settime" >&6; }
23693 ac_res
=$ac_cv_search_timer_settime
23694 if test "$ac_res" != no
; then :
23695 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23696 test "$ac_cv_search_timer_settime" = "none required" ||
23697 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
23700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23703 #include <features.h>
23704 #ifdef __GNU_LIBRARY__
23705 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23706 && !defined __UCLIBC__
23707 Thread emulation available
23712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23713 $EGREP "Thread" >/dev
/null
2>&1; then :
23714 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
23718 for ac_func
in timer_settime
23720 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
23721 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
23722 cat >>confdefs.h
<<_ACEOF
23723 #define HAVE_TIMER_SETTIME 1
23729 LIBS
=$gl_saved_libs
23745 if test $gl_cv_have_include_next = yes; then
23746 gl_cv_next_unistd_h
='<'unistd.h
'>'
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23749 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23750 if test "${gl_cv_next_unistd_h+set}" = set; then :
23751 $as_echo_n "(cached) " >&6
23754 if test $ac_cv_header_unistd_h = yes; then
23757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23759 #include <unistd.h>
23763 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23764 *) gl_absname_cpp
="$ac_cpp" ;;
23769 gl_dirsep_regex
='[/\\]'
23772 gl_dirsep_regex
='\/'
23775 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23777 gl_header_literal_regex
=`echo 'unistd.h' \
23778 | sed -e "$gl_make_literal_regex_sed"`
23779 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23785 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23786 sed -n "$gl_absolute_header_sed"`'"'
23788 gl_cv_next_unistd_h
='<'unistd.h
'>'
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23794 $as_echo "$gl_cv_next_unistd_h" >&6; }
23796 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23798 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23800 gl_next_as_first_directive
='<'unistd.h
'>'
23802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23803 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23805 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23810 if test $ac_cv_header_unistd_h = yes; then
23829 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23831 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23832 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23835 touch conftest.
file
23836 if test "$cross_compiling" = yes; then :
23838 # Guess yes on glibc systems.
23839 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23840 # If we don't know, assume the worst.
23841 *) gl_cv_func_futimesat_works
="guessing no" ;;
23845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23848 #include <stddef.h>
23849 #include <sys/times.h>
23855 int fd = open ("conftest.file", O_RDWR);
23856 if (fd < 0) return 1;
23857 if (futimesat (fd, NULL, NULL)) return 2;
23863 if ac_fn_c_try_run
"$LINENO"; then :
23864 gl_cv_func_futimesat_works
=yes
23866 gl_cv_func_futimesat_works
=no
23868 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23869 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23872 rm -f conftest.
file
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23875 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23876 case "$gl_cv_func_futimesat_works" in
23880 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23886 gl_gnulib_enabled_dosname
=false
23887 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23888 gl_gnulib_enabled_pathmax
=false
23889 gl_gnulib_enabled_stat
=false
23890 gl_gnulib_enabled_strtoll
=false
23891 gl_gnulib_enabled_strtoull
=false
23892 gl_gnulib_enabled_verify
=false
23893 func_gl_gnulib_m4code_dosname
()
23895 if ! $gl_gnulib_enabled_dosname; then
23896 gl_gnulib_enabled_dosname
=true
23899 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23901 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23904 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23907 func_gl_gnulib_m4code_pathmax
()
23909 if ! $gl_gnulib_enabled_pathmax; then
23913 gl_gnulib_enabled_pathmax
=true
23916 func_gl_gnulib_m4code_stat
()
23918 if ! $gl_gnulib_enabled_stat; then
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23923 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23924 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23925 $as_echo_n "(cached) " >&6
23927 if test "$cross_compiling" = yes; then :
23929 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23930 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23934 /* end confdefs.h. */
23935 #include <sys/stat.h>
23940 struct stat st; return stat (".", &st) != stat ("./", &st);
23945 if ac_fn_c_try_run
"$LINENO"; then :
23946 gl_cv_func_stat_dir_slash
=yes
23948 gl_cv_func_stat_dir_slash
=no
23950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23956 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23958 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23959 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23960 $as_echo_n "(cached) " >&6
23963 # Assume that if we have lstat, we can also check symlinks.
23964 if test $ac_cv_func_lstat = yes; then
23965 ln -s conftest.tmp conftest.lnk
23967 if test "$cross_compiling" = yes; then :
23969 # Guess yes on glibc systems.
23970 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23971 # If we don't know, assume the worst.
23972 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h. */
23978 #include <sys/stat.h>
23985 if (!stat ("conftest.tmp/", &st))
23988 if (!stat ("conftest.lnk/", &st))
23997 if ac_fn_c_try_run
"$LINENO"; then :
23998 gl_cv_func_stat_file_slash
=yes
24000 gl_cv_func_stat_file_slash
=no
24002 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24003 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24006 rm -f conftest.tmp conftest.lnk
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24009 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24010 case $gl_cv_func_stat_dir_slash in
24011 *no
) REPLACE_STAT
=1
24013 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24016 case $gl_cv_func_stat_file_slash in
24017 *no
) REPLACE_STAT
=1
24019 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24023 if test $REPLACE_STAT = 1; then
24032 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
24050 gl_gnulib_enabled_stat
=true
24051 if test $REPLACE_STAT = 1; then
24052 func_gl_gnulib_m4code_dosname
24054 if test $REPLACE_STAT = 1; then
24055 func_gl_gnulib_m4code_pathmax
24057 if test $REPLACE_STAT = 1; then
24058 func_gl_gnulib_m4code_verify
24062 func_gl_gnulib_m4code_strtoll
()
24064 if ! $gl_gnulib_enabled_strtoll; then
24068 if test "$ac_cv_type_long_long_int" = yes; then
24069 for ac_func
in strtoll
24071 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
24072 if test "x$ac_cv_func_strtoll" = x
""yes; then :
24073 cat >>confdefs.h
<<_ACEOF
24074 #define HAVE_STRTOLL 1
24080 if test $ac_cv_func_strtoll = no
; then
24085 if test $HAVE_STRTOLL = 0; then
24094 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
24111 gl_gnulib_enabled_strtoll
=true
24114 func_gl_gnulib_m4code_strtoull
()
24116 if ! $gl_gnulib_enabled_strtoull; then
24120 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24121 for ac_func
in strtoull
24123 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
24124 if test "x$ac_cv_func_strtoull" = x
""yes; then :
24125 cat >>confdefs.h
<<_ACEOF
24126 #define HAVE_STRTOULL 1
24132 if test $ac_cv_func_strtoull = no
; then
24137 if test $HAVE_STRTOULL = 0; then
24146 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
24163 gl_gnulib_enabled_strtoull
=true
24166 func_gl_gnulib_m4code_verify
()
24168 if ! $gl_gnulib_enabled_verify; then
24169 gl_gnulib_enabled_verify
=true
24172 if test $REPLACE_GETOPT = 1; then
24173 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24175 if test $REPLACE_LSTAT = 1; then
24176 func_gl_gnulib_m4code_dosname
24178 if test $REPLACE_LSTAT = 1; then
24179 func_gl_gnulib_m4code_stat
24181 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24182 func_gl_gnulib_m4code_stat
24184 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24185 func_gl_gnulib_m4code_strtoll
24187 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24188 func_gl_gnulib_m4code_verify
24190 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
24191 func_gl_gnulib_m4code_strtoull
24193 if test $ac_cv_func_strtoumax = no
; then
24194 func_gl_gnulib_m4code_verify
24197 if $gl_gnulib_enabled_dosname; then
24198 gl_GNULIB_ENABLED_dosname_TRUE
=
24199 gl_GNULIB_ENABLED_dosname_FALSE
='#'
24201 gl_GNULIB_ENABLED_dosname_TRUE
='#'
24202 gl_GNULIB_ENABLED_dosname_FALSE
=
24205 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24206 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
24207 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
24209 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
24210 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
24213 if $gl_gnulib_enabled_pathmax; then
24214 gl_GNULIB_ENABLED_pathmax_TRUE
=
24215 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
24217 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
24218 gl_GNULIB_ENABLED_pathmax_FALSE
=
24221 if $gl_gnulib_enabled_stat; then
24222 gl_GNULIB_ENABLED_stat_TRUE
=
24223 gl_GNULIB_ENABLED_stat_FALSE
='#'
24225 gl_GNULIB_ENABLED_stat_TRUE
='#'
24226 gl_GNULIB_ENABLED_stat_FALSE
=
24229 if $gl_gnulib_enabled_strtoll; then
24230 gl_GNULIB_ENABLED_strtoll_TRUE
=
24231 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
24233 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
24234 gl_GNULIB_ENABLED_strtoll_FALSE
=
24237 if $gl_gnulib_enabled_strtoull; then
24238 gl_GNULIB_ENABLED_strtoull_TRUE
=
24239 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
24241 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
24242 gl_GNULIB_ENABLED_strtoull_FALSE
=
24245 if $gl_gnulib_enabled_verify; then
24246 gl_GNULIB_ENABLED_verify_TRUE
=
24247 gl_GNULIB_ENABLED_verify_FALSE
='#'
24249 gl_GNULIB_ENABLED_verify_TRUE
='#'
24250 gl_GNULIB_ENABLED_verify_FALSE
=
24253 # End of code from modules
24274 gl_source_base
='tests'
24275 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
24277 gl_module_indicator_condition
=$gltests_WITNESS
24288 LIBGNU_LIBDEPS
="$gl_libdeps"
24290 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24293 CFLAGS
=$SAVE_CFLAGS
24297 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24300 ## The -headerpad option tells ld (see man page) to leave room at the
24301 ## end of the header for adding load commands. Needed for dumping.
24302 ## 0x690 is the total size of 30 segment load commands (at 56
24303 ## each); under Cocoa 31 commands are required.
24304 if test "$HAVE_NS" = "yes"; then
24305 libs_nsgui
="-framework AppKit"
24306 headerpad_extra
=6C8
24309 headerpad_extra
=690
24311 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24313 ## This is here because src/Makefile.in did some extra fiddling around
24314 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24315 ## #ifndef LD_SWITCH_SYSTEM
24316 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24317 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24318 ## not using gcc, darwin.
24319 ## Because this was done in src/Makefile.in, the resulting part of
24320 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24321 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24322 ## rather than LD_SWITCH_SYSTEM.
24323 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24324 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24327 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24328 ## find X at run-time.
24329 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24330 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24331 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24332 ## had different values in configure (in ac_link) and src/Makefile.in.
24333 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24334 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24336 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24339 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24340 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24349 ## gnu: GNU needs its own crt0.
24350 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24352 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24353 ## library search parth, i.e. it won't search /usr/lib for libc and
24354 ## friends. Using -nostartfiles instead avoids this problem, and
24355 ## will also work on earlier NetBSD releases.
24356 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24358 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24359 ## MkLinux/LinuxPPC needs this.
24360 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24362 case "$canonical" in
24363 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24369 if test "x$ORDINARY_LINK" = "xyes"; then
24373 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24376 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24377 ## freebsd, gnu-* not on powerpc*|s390x*.
24378 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24380 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24381 ## places that are difficult to figure out at make time. Fortunately,
24382 ## these same versions allow you to pass arbitrary flags on to the
24383 ## linker, so there is no reason not to use it as a linker.
24385 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24386 ## searching for libraries in its internal directories, so we have to
24387 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24388 LD_FIRSTFLAG
="-nostdlib"
24391 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24392 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24397 ## FIXME? The logic here is not precisely the same as that above.
24398 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24399 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24401 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24404 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24407 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24408 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24414 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24415 ## immediately undefine it again and redefine it to empty.
24416 ## Was the C_SWITCH_X_SITE part really necessary?
24417 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24423 ## Ask GCC where to find libgcc.a.
24424 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24428 ## Common for all window systems
24429 if test "$window_system" != "none"; then
24431 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24434 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24436 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24443 #### Report on what we decided to do.
24444 #### Report GTK as a toolkit, even if it doesn't use Xt.
24445 #### It makes printing result more understandable as using GTK sets
24446 #### toolkit_scroll_bars to yes by default.
24447 if test "${HAVE_GTK}" = "yes"; then
24448 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
24452 Configured for \`${canonical}'.
24454 Where should the build process find the source code? ${srcdir}
24455 What compiler should emacs be built with? ${CC} ${CFLAGS}
24456 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24457 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24458 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24459 What window system should Emacs use? ${window_system}
24460 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24462 if test -n "${x_includes}"; then
24463 echo " Where do we find X Windows header files? ${x_includes}"
24465 echo " Where do we find X Windows header files? Standard dirs"
24467 if test -n "${x_libraries}"; then
24468 echo " Where do we find X Windows libraries? ${x_libraries}"
24470 echo " Where do we find X Windows libraries? Standard dirs"
24473 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24474 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24475 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24476 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24477 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24478 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24479 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24480 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24482 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24483 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24484 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24485 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24486 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24487 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24488 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24490 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24491 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24492 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24493 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24495 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24498 if test -n "${EMACSDATA}"; then
24499 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24501 if test -n "${EMACSDOC}"; then
24502 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24507 if test "$HAVE_NS" = "yes"; then
24509 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24510 The installed application will go to nextstep/Emacs.app and can be
24511 run or moved from there."
24512 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24513 echo "The application will be fully self-contained."
24515 echo "The lisp resources for the application will be installed under ${prefix}.
24516 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24517 to run if these resources are not installed."
24522 if test "${opsys}" = "cygwin"; then
24524 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24525 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24531 # Remove any trailing slashes in these variables.
24532 test "${prefix}" != NONE
&&
24533 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24534 test "${exec_prefix}" != NONE
&&
24535 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24537 if test "$HAVE_NS" = "yes"; then
24538 if test "$NS_IMPL_GNUSTEP" = yes; then
24539 ac_config_files
="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
24542 ac_config_files
="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
24547 SUBDIR_MAKEFILES
="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
24549 ac_config_files
="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile"
24552 opt_makefile
=test
/automated
/Makefile
24554 if test -f $srcdir/${opt_makefile}.
in; then
24555 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24556 ac_config_files
="$ac_config_files test/automated/Makefile"
24561 opt_makefile
=admin
/unidata
/Makefile
24563 if test -f $srcdir/${opt_makefile}.
in; then
24564 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24565 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24570 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24574 ac_config_commands
="$ac_config_commands mkdirs"
24577 ac_config_commands
="$ac_config_commands epaths"
24580 ac_config_commands
="$ac_config_commands gdbinit"
24583 cat >confcache
<<\_ACEOF
24584 # This file is a shell script that caches the results of configure
24585 # tests run on this system so they can be shared between configure
24586 # scripts and configure runs, see configure's option --config-cache.
24587 # It is not useful on other systems. If it contains results you don't
24588 # want to keep, you may remove or edit it.
24590 # config.status only pays attention to the cache file if you give it
24591 # the --recheck option to rerun configure.
24593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24595 # following values.
24599 # The following way of writing the cache mishandles newlines in values,
24600 # but we know of no workaround that is simple, portable, and efficient.
24601 # So, we kill variables containing newlines.
24602 # Ultrix sh set writes to stderr and can't be redirected directly,
24603 # and sets the high bit in the cache file unless we assign to the vars.
24605 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24606 eval ac_val
=\$
$ac_var
24610 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24614 _ | IFS | as_nl
) ;; #(
24615 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24616 *) { eval $ac_var=; unset $ac_var;} ;;
24622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24623 *${as_nl}ac_space
=\
*)
24624 # `set' does not quote correctly, so add quotes: double-quote
24625 # substitution turns \\\\ into \\, and sed turns \\ into \.
24628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24631 # `set' quotes correctly as required by POSIX, so do not add quotes.
24632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24645 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24646 if test -w "$cache_file"; then
24647 test "x$cache_file" != "x/dev/null" &&
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24649 $as_echo "$as_me: updating cache $cache_file" >&6;}
24650 cat confcache
>$cache_file
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24658 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24659 # Let make expand exec_prefix.
24660 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24662 DEFS
=-DHAVE_CONFIG_H
24666 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24667 # 1. Remove the extension, and $U if already installed.
24668 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24669 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24671 # will be set to the directory where LIBOBJS objects are built.
24672 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24673 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24675 LIBOBJS
=$ac_libobjs
24677 LTLIBOBJS
=$ac_ltlibobjs
24680 if test -n "$EXEEXT"; then
24682 am__EXEEXT_FALSE
='#'
24684 am__EXEEXT_TRUE
='#'
24688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24689 as_fn_error
"conditional \"AMDEP\" was never defined.
24690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24693 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24696 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24697 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24700 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24701 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24705 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24706 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24709 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24710 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24713 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24714 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24717 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24718 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24721 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24722 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24725 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24726 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24729 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24730 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24733 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24734 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24737 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24738 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24741 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24742 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24745 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24746 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24749 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24750 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24753 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24754 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24760 if test -n "$gl_LIBOBJS"; then
24761 # Remove the extension.
24762 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24763 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24764 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24765 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24768 gl_LIBOBJS
=$gl_libobjs
24770 gl_LTLIBOBJS
=$gl_ltlibobjs
24776 if test -n "$gltests_LIBOBJS"; then
24777 # Remove the extension.
24778 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24779 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24780 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24781 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24784 gltests_LIBOBJS
=$gltests_libobjs
24786 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24790 : ${CONFIG_STATUS=./config.status}
24792 ac_clean_files_save
=$ac_clean_files
24793 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24799 # Generated by $as_me.
24800 # Run this file to recreate the current configuration.
24801 # Compiler output produced by configure, useful for debugging
24802 # configure, is in config.log if it exists.
24805 ac_cs_recheck=false
24808 SHELL=\${CONFIG_SHELL-$SHELL}
24811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24812 ## -------------------- ##
24813 ## M4sh Initialization. ##
24814 ## -------------------- ##
24816 # Be more Bourne compatible
24817 DUALCASE
=1; export DUALCASE
# for MKS sh
24818 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24822 # is contrary to our usage. Disable this feature.
24823 alias -g '${1+"$@"}'='"$@"'
24824 setopt NO_GLOB_SUBST
24826 case `(set -o) 2>/dev/null` in #(
24838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24839 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24842 # Prefer a ksh shell builtin over an external printf program on Solaris,
24843 # but without wasting forks for bash or zsh.
24844 if test -z "$BASH_VERSION$ZSH_VERSION" \
24845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24846 as_echo='print
-r --'
24847 as_echo_n='print
-rn --'
24848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24849 as_echo='printf %s
\n'
24850 as_echo_n='printf %s
'
24852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24853 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24854 as_echo_n='/usr
/ucb
/echo -n'
24856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24857 as_echo_n_body='eval
24861 expr "X$arg" : "X\\(.*\\)$as_nl";
24862 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24864 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24866 export as_echo_n_body
24867 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24869 export as_echo_body
24870 as_echo='sh
-c $as_echo_body as_echo
'
24873 # The user is always right.
24874 if test "${PATH_SEPARATOR+set}" != set; then
24876 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24877 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24884 # We need space, tab and new line, in precisely that order. Quoting is
24885 # there to prevent editors from complaining about space-tab.
24886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24887 # splitting by setting IFS to empty value.)
24890 # Find who we are. Look in the path if we contain no directory separator.
24892 *[\\/]* ) as_myself=$0 ;;
24893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24894 for as_dir in $PATH
24897 test -z "$as_dir" && as_dir=.
24898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24904 # We did not find ourselves, most probably we were run as `sh COMMAND'
24905 # in which case we are not to be found in the path.
24906 if test "x$as_myself" = x
; then
24909 if test ! -f "$as_myself"; then
24910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24914 # Unset variables that we do not need and which cause bugs (e.g. in
24915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24916 # suppresses any "Segmentation fault" message there. '((' could
24917 # trigger a bug in pdksh 5.2.14.
24918 for as_var
in BASH_ENV ENV MAIL MAILPATH
24919 do eval test x\
${$as_var+set} = xset \
24920 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24933 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24936 # as_fn_error ERROR [LINENO LOG_FD]
24937 # ---------------------------------
24938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24940 # script with status $?, using 1 if that was 0.
24943 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24945 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24948 $as_echo "$as_me: error: $1" >&2
24949 as_fn_exit
$as_status
24953 # as_fn_set_status STATUS
24954 # -----------------------
24955 # Set $? to STATUS, without forking.
24956 as_fn_set_status
()
24959 } # as_fn_set_status
24961 # as_fn_exit STATUS
24962 # -----------------
24963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24967 as_fn_set_status
$1
24973 # Portably unset VAR.
24976 { eval $1=; unset $1;}
24978 as_unset
=as_fn_unset
24979 # as_fn_append VAR VALUE
24980 # ----------------------
24981 # Append the text in VALUE to the end of the definition contained in VAR. Take
24982 # advantage of any shell optimizations that allow amortized linear growth over
24983 # repeated appends, instead of the typical quadratic growth present in naive
24985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24986 eval 'as_fn_append ()
24997 # as_fn_arith ARG...
24998 # ------------------
24999 # Perform arithmetic evaluation on the ARGs, and store the result in the
25000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25001 # must be portable across $(()) and expr.
25002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25003 eval 'as_fn_arith ()
25010 as_val
=`expr "$@" || test $? -eq 1`
25015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25022 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25023 as_basename
=basename
25028 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25034 as_me
=`$as_basename -- "$0" ||
25035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25036 X"$0" : 'X\(//\)$' \| \
25037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25039 sed '/^.*\/\([^/][^/]*\)\/*$/{
25053 # Avoid depending upon Character Ranges.
25054 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25055 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25056 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25057 as_cr_digits
='0123456789'
25058 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25060 ECHO_C
= ECHO_N
= ECHO_T
=
25061 case `echo -n x` in #(((((
25063 case `echo 'xy\c'` in
25064 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25066 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25073 rm -f conf$$ conf$$.exe conf$$.
file
25074 if test -d conf$$.dir
; then
25075 rm -f conf$$.dir
/conf$$.
file
25078 mkdir conf$$.dir
2>/dev
/null
25080 if (echo >conf$$.
file) 2>/dev
/null
; then
25081 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25083 # ... but there are two gotchas:
25084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25086 # In both cases, we have to default to `cp -p'.
25087 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25089 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25097 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25098 rmdir conf$$.dir
2>/dev
/null
25103 # Create "$as_dir" as a directory, including parents if necessary.
25108 -*) as_dir
=.
/$as_dir;;
25110 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25114 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25115 *) as_qdir
=$as_dir;;
25117 as_dirs
="'$as_qdir' $as_dirs"
25118 as_dir
=`$as_dirname -- "$as_dir" ||
25119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25123 $as_echo X"$as_dir" |
25124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25128 /^X\(\/\/\)[^/].*/{
25141 test -d "$as_dir" && break
25143 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25144 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25148 if mkdir
-p .
2>/dev
/null
; then
25149 as_mkdir_p
='mkdir -p "$as_dir"'
25151 test -d .
/-p && rmdir .
/-p
25155 if test -x / >/dev
/null
2>&1; then
25156 as_test_x
='test -x'
25158 if ls -dL / >/dev
/null
2>&1; then
25165 if test -d "$1"; then
25171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25172 ???[sx]*):;;*)false;;esac;fi
25176 as_executable_p
=$as_test_x
25178 # Sed expression to map a string onto a valid CPP name.
25179 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25181 # Sed expression to map a string onto a valid variable name.
25182 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25186 ## ----------------------------------- ##
25187 ## Main body of $CONFIG_STATUS script. ##
25188 ## ----------------------------------- ##
25190 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25193 # Save the log message, to keep $0 and so on meaningful, and to
25194 # report actual input values of CONFIG_FILES etc. instead of their
25195 # values after options handling.
25197 This file was extended by emacs $as_me 24.2.50, which was
25198 generated by GNU Autoconf 2.65. Invocation command line was
25200 CONFIG_FILES = $CONFIG_FILES
25201 CONFIG_HEADERS = $CONFIG_HEADERS
25202 CONFIG_LINKS = $CONFIG_LINKS
25203 CONFIG_COMMANDS = $CONFIG_COMMANDS
25206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25211 case $ac_config_files in *"
25212 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25215 case $ac_config_headers in *"
25216 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25221 # Files that config.status was made for.
25222 config_files="$ac_config_files"
25223 config_headers="$ac_config_headers"
25224 config_commands="$ac_config_commands"
25228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25230 \`$as_me' instantiates files and other configuration actions
25231 from templates according to the current configuration. Unless the files
25232 and actions are specified as TAGs, all are instantiated by default.
25234 Usage: $0 [OPTION]... [TAG]...
25236 -h, --help print this help, then exit
25237 -V, --version print version number and configuration settings, then exit
25238 --config print configuration, then exit
25239 -q, --quiet, --silent
25240 do not print progress messages
25241 -d, --debug don't remove temporary files
25242 --recheck update $as_me by reconfiguring in the same conditions
25243 --file=FILE[:TEMPLATE]
25244 instantiate the configuration file FILE
25245 --header=FILE[:TEMPLATE]
25246 instantiate the configuration header FILE
25248 Configuration files:
25251 Configuration headers:
25254 Configuration commands:
25257 Report bugs to the package provider."
25260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25261 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25263 emacs config.status 24.2.50
25264 configured by $0, generated by GNU Autoconf 2.65,
25265 with options \\"\$ac_cs_config\\"
25267 Copyright (C) 2009 Free Software Foundation, Inc.
25268 This config.status script is free software; the Free Software Foundation
25269 gives unlimited permission to copy, distribute and modify it."
25276 test -n "\$AWK" || AWK=awk
25279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25280 # The default lists apply if the user does not specify any file.
25286 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25287 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25298 # Handling of the options.
25299 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25301 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25302 $as_echo "$ac_cs_version"; exit ;;
25303 --config |
--confi |
--conf |
--con |
--co |
--c )
25304 $as_echo "$ac_cs_config"; exit ;;
25305 --debug |
--debu |
--deb |
--de |
--d |
-d )
25307 --file |
--fil |
--fi |
--f )
25310 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25312 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25313 ac_need_defaults
=false
;;
25314 --header |
--heade |
--head |
--hea )
25317 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25319 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25320 ac_need_defaults
=false
;;
25322 # Conflict between --help and --header
25323 as_fn_error
"ambiguous option: \`$1'
25324 Try \`$0 --help' for more information.";;
25325 --help |
--hel |
-h )
25326 $as_echo "$ac_cs_usage"; exit ;;
25327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25328 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25331 # This is an error.
25332 -*) as_fn_error
"unrecognized option: \`$1'
25333 Try \`$0 --help' for more information." ;;
25335 *) as_fn_append ac_config_targets
" $1"
25336 ac_need_defaults
=false
;;
25342 ac_configure_extra_args
=
25344 if $ac_cs_silent; then
25346 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25351 if \$ac_cs_recheck; then
25352 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25354 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25355 CONFIG_SHELL='$SHELL'
25356 export CONFIG_SHELL
25361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25366 ## Running $as_me. ##
25372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25376 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25377 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25383 # Handling of arguments.
25384 for ac_config_target
in $ac_config_targets
25386 case $ac_config_target in
25387 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25388 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25389 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
25390 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25391 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25392 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
25393 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25394 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25395 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25396 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25397 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25398 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25399 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25400 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25401 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25402 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25403 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25404 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25405 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
25406 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25407 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25408 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25409 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25410 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25412 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25417 # If the user did not use the arguments to specify the items to instantiate,
25418 # then the envvar interface is used. Set only those that are not.
25419 # We use the long form for the default assignment because of an extremely
25420 # bizarre bug on SunOS 4.1.3.
25421 if $ac_need_defaults; then
25422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25423 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25424 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25427 # Have a temporary directory for convenience. Make it in the build tree
25428 # simply because there is no reason against having it here, and in addition,
25429 # creating and moving files from /tmp can sometimes cause problems.
25430 # Hook for its removal unless debugging.
25431 # Note that there is a small window in which the directory will not be cleaned:
25432 # after its creation but before its name has been assigned to `$tmp'.
25436 trap 'exit_status=$?
25437 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25439 trap 'as_fn_exit 1' 1 2 13 15
25441 # Create a (secure) tmp directory for tmp files.
25444 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25445 test -n "$tmp" && test -d "$tmp"
25448 tmp
=.
/conf$$
-$RANDOM
25449 (umask 077 && mkdir
"$tmp")
25450 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25452 # Set up the scripts for CONFIG_FILES section.
25453 # No need to generate them if there are no CONFIG_FILES.
25454 # This happens for instance with `./config.status config.h'.
25455 if test -n "$CONFIG_FILES"; then
25457 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25458 ac_cs_awk_getline
=:
25459 ac_cs_awk_pipe_init
=
25460 ac_cs_awk_read_file
='
25461 while ((getline aline < (F[key])) > 0)
25464 ac_cs_awk_pipe_fini
=
25466 ac_cs_awk_getline
=false
25467 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25468 ac_cs_awk_read_file
='
25470 print "cat " F[key] " &&"
25471 '$ac_cs_awk_pipe_init
25472 # The final `:' finishes the AND list.
25473 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25475 ac_cr
=`echo X | tr X '\015'`
25476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25477 # But we know of no other shell where ac_cr would be empty at this
25478 # point, so we can use a bashism as a fallback.
25479 if test "x$ac_cr" = x
; then
25480 eval ac_cr
=\$
\'\\r
\'
25482 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25486 ac_cs_awk_cr
=$ac_cr
25489 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25492 # Create commands to substitute file output variables.
25494 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25495 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25496 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25499 } >conf$
$files.sh
&&
25500 . .
/conf$
$files.sh ||
25501 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25502 rm -f conf$
$files.sh
25505 echo "cat >conf$$subs.awk <<_ACEOF" &&
25506 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25508 } >conf$$subs.sh ||
25509 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25510 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25512 for ac_last_try in false false false false false :; do
25513 . ./conf$$subs.sh ||
25514 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25516 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25517 if test $ac_delim_n = $ac_delim_num; then
25519 elif $ac_last_try; then
25520 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25522 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25525 rm -f conf$$subs.sh
25527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25528 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25532 s/^/S["/; s
/!.
*/"]=/
25542 s/\(.\{148\}\)..*/\1/
25544 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25549 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25556 s/\(.\{148\}\)..*/\1/
25558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25562 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25567 ' <conf$$subs.awk | sed '
25572 ' >>$CONFIG_STATUS || ac_write_fail=1
25573 rm -f conf$$subs.awk
25574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25576 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25577 for (key in S) S_is_set[key] = 1
25579 \$ac_cs_awk_pipe_init
25583 nfields = split(line, field, "@
")
25585 len = length(field[1])
25586 for (i = 2; i < nfields; i++) {
25588 keylen = length(key)
25589 if (S_is_set[key]) {
25591 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25592 len += length(value) + length(field[++i])
25597 if (nfields == 3 && !substed) {
25599 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25600 \$ac_cs_awk_read_file
25606 \$ac_cs_awk_pipe_fini
25609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25610 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25611 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25614 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25615 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25620 # trailing colons and then remove the whole line if VPATH becomes empty
25621 # (actually we leave an empty line to preserve line numbers).
25622 if test "x
$srcdir" = x.; then
25623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25624 s/:*\$(srcdir):*/:/
25625 s/:*\${srcdir}:*/:/
25627 s/^\([^=]*=[ ]*\):*/\1/
25633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25634 fi # test -n "$CONFIG_FILES"
25636 # Set up the scripts for CONFIG_HEADERS section.
25637 # No need to generate them if there are no CONFIG_HEADERS.
25638 # This happens for instance with `./config.status Makefile'.
25639 if test -n "$CONFIG_HEADERS"; then
25640 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25644 # Transform confdefs.h into an awk script `defines.awk', embedded as
25645 # here-document in config.status, that substitutes the proper values into
25646 # config.h.in to produce config.h.
25648 # Create a delimiter string that does not exist in confdefs.h, to ease
25649 # handling of long lines.
25651 for ac_last_try in false false :; do
25652 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25653 if test -z "$ac_t"; then
25655 elif $ac_last_try; then
25656 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25658 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25662 # For the awk script, D is an array of macro values keyed by name,
25663 # likewise P contains macro parameters if any. Preserve backslash
25664 # newline sequences.
25666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25668 s/.\{148\}/&'"$ac_delim"'/g
25671 s/^[ ]*#[ ]*define[ ][ ]*/ /
25678 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25680 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25685 D["\
1"]=" \
3\\\\\\n
"\\/p
25687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25692 s/.\{148\}/&'"$ac_delim"'/g
25697 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25700 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25702 ' <confdefs.h | sed '
25703 s/'"$ac_delim"'/"\\\
25704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25707 for (key in D) D_is_set[key] = 1
25710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25712 split(line, arg, " ")
25713 if (arg[1] == "#") {
25717 defundef
= substr
(arg
[1], 2)
25720 split(mac1
, mac2
, "(") #)
25722 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25723 if (D_is_set
[macro
]) {
25724 # Preserve the white space surrounding the "#".
25725 print prefix
"define", macro P
[macro
] D
[macro
]
25728 # Replace #undef with comments. This is necessary, for example,
25729 # in the case of _POSIX_SOURCE, which is predefined and required
25730 # on some systems where configure will not decide to define it.
25731 if (defundef
== "undef") {
25732 print
"/*", prefix defundef
, macro
, "*/"
25740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25741 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25742 fi # test -n "$CONFIG_HEADERS"
25745 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25750 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25752 case $ac_mode$ac_tag in
25754 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25755 :[FH
]-) ac_tag
=-:-;;
25756 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25773 -) ac_f
="$tmp/stdin";;
25774 *) # Look for the file first in the build tree, then in the source tree
25775 # (if the path is not absolute). The absolute path cannot be DOS-style,
25776 # because $ac_f cannot contain `:'.
25780 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25782 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25784 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25785 as_fn_append ac_file_inputs
" '$ac_f'"
25788 # Let's still pretend it is `configure' which instantiates (i.e., don't
25789 # use $as_me), people would be surprised to read:
25790 # /* config.h. Generated by config.status. */
25791 configure_input
='Generated from '`
25792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25794 if test x
"$ac_file" != x-
; then
25795 configure_input
="$ac_file. $configure_input"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25797 $as_echo "$as_me: creating $ac_file" >&6;}
25799 # Neutralize special characters interpreted by sed in replacement strings.
25800 case $configure_input in #(
25801 *\
&* |
*\|
* |
*\\* )
25802 ac_sed_conf_input
=`$as_echo "$configure_input" |
25803 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25804 *) ac_sed_conf_input
=$configure_input;;
25808 *:-:* |
*:-) cat >"$tmp/stdin" \
25809 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25814 ac_dir
=`$as_dirname -- "$ac_file" ||
25815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25816 X"$ac_file" : 'X\(//\)[^/]' \| \
25817 X"$ac_file" : 'X\(//\)$' \| \
25818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25819 $as_echo X"$ac_file" |
25820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25824 /^X\(\/\/\)[^/].*/{
25837 as_dir
="$ac_dir"; as_fn_mkdir_p
25841 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25843 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25844 # A ".." for each directory in $ac_dir_suffix.
25845 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25846 case $ac_top_builddir_sub in
25847 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25848 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25851 ac_abs_top_builddir
=$ac_pwd
25852 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25853 # for backward compatibility:
25854 ac_top_builddir
=$ac_top_build_prefix
25857 .
) # We are building in place.
25859 ac_top_srcdir
=$ac_top_builddir_sub
25860 ac_abs_top_srcdir
=$ac_pwd ;;
25861 [\\/]* | ?
:[\\/]* ) # Absolute name.
25862 ac_srcdir
=$srcdir$ac_dir_suffix;
25863 ac_top_srcdir
=$srcdir
25864 ac_abs_top_srcdir
=$srcdir ;;
25865 *) # Relative name.
25866 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25867 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25868 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25870 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25880 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25881 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25883 ac_MKDIR_P
=$MKDIR_P
25885 [\\/$
]* | ?
:[\\/]* ) ;;
25886 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25891 # If the template does not know about datarootdir, expand it.
25892 # FIXME: This hack should be removed a few years after 2.60.
25893 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25905 *datarootdir
*) ac_datarootdir_seen
=yes;;
25906 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25911 ac_datarootdir_hack='
25912 s&@datadir@&$datadir&g
25913 s&@docdir@&$docdir&g
25914 s&@infodir@&$infodir&g
25915 s&@localedir@&$localedir&g
25916 s&@mandir@&$mandir&g
25917 s&\\\${datarootdir}&$datarootdir&g' ;;
25921 # Neutralize VPATH when `$srcdir' = `.'.
25922 # Shell code in configure.ac might set extrasub.
25923 # FIXME: do we really want to maintain this feature?
25924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25925 ac_sed_extra="$ac_vpsub
25928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25930 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25931 s|@configure_input@|
$ac_sed_conf_input|
;t t
25932 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25933 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25934 s
&@srcdir@
&$ac_srcdir&;t t
25935 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25936 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25937 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25938 s
&@builddir@
&$ac_builddir&;t t
25939 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25940 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25941 s
&@INSTALL@
&$ac_INSTALL&;t t
25942 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25943 $ac_datarootdir_hack
25945 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25946 if $ac_cs_awk_getline; then
25947 $AWK -f "$tmp/subs.
awk"
25949 $AWK -f "$tmp/subs.
awk" | $SHELL
25951 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25953 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25954 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25957 which seems to be undefined. Please make sure it is defined." >&5
25958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25959 which seems to be undefined. Please make sure it is defined." >&2;}
25963 -) cat "$tmp/out" && rm -f "$tmp/out";;
25964 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25966 || as_fn_error "could not create $ac_file" "$LINENO" 5
25972 if test x"$ac_file" != x-; then
25974 $as_echo "/* $configure_input */" \
25975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25976 } >"$tmp/config.h" \
25977 || as_fn_error "could not create $ac_file" "$LINENO" 5
25978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25983 mv "$tmp/config.h" "$ac_file" \
25984 || as_fn_error "could not create $ac_file" "$LINENO" 5
25987 $as_echo "/* $configure_input */" \
25988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25989 || as_fn_error "could not create -" "$LINENO" 5
25991 # Compute "$ac_file"'s index
in $config_headers.
25994 for _am_header
in $config_headers :; do
25995 case $_am_header in
25996 $_am_arg |
$_am_arg:* )
25999 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26004 X"$_am_arg" : 'X\(//\)[^/]' \| \
26005 X"$_am_arg" : 'X\(//\)$' \| \
26006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26007 $as_echo X"$_am_arg" |
26008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26012 /^X\(\/\/\)[^/].*/{
26024 s/.*/./; q'`/stamp-h
$_am_stamp_count
26027 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26028 $as_echo "$as_me: executing $ac_file commands" >&6;}
26033 case $ac_file$ac_mode in
26034 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
26035 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26036 # are listed without --file. Let's play safe and only enable the eval
26037 # if we detect the quoting.
26038 case $CONFIG_FILES in
26039 *\'*) eval set x
"$CONFIG_FILES" ;;
26040 *) set x
$CONFIG_FILES ;;
26045 # Strip MF so we end up with the name of the file.
26046 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26047 # Check whether this is an Automake generated Makefile or not.
26048 # We used to match only the files named `Makefile.in', but
26049 # some people rename them; so instead we look at the file content.
26050 # Grep'ing the first line is not enough: some people post-process
26051 # each Makefile.in and add a new line on top of each file to say so.
26052 # Grep'ing the whole file is not good either: AIX grep has a line
26053 # limit of 2048, but all sed's we know have understand at least 4000.
26054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
26055 dirpart
=`$as_dirname -- "$mf" ||
26056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26057 X"$mf" : 'X\(//\)[^/]' \| \
26058 X"$mf" : 'X\(//\)$' \| \
26059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26065 /^X\(\/\/\)[^/].*/{
26081 # Extract the definition of DEPDIR, am__include, and am__quote
26082 # from the Makefile without running `make'.
26083 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26084 test -z "$DEPDIR" && continue
26085 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26086 test -z "am__include" && continue
26087 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26088 # When using ansi2knr, U may be empty or an underscore; expand it
26089 U
=`sed -n 's/^U = //p' < "$mf"`
26090 # Find all dependency output files, they are included files with
26091 # $(DEPDIR) in their names. We invoke sed twice because it is the
26092 # simplest approach to changing $(DEPDIR) to its actual value in the
26094 for file in `sed -n "
26095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26097 # Make sure the directory exists.
26098 test -f "$dirpart/$file" && continue
26099 fdir
=`$as_dirname -- "$file" ||
26100 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26101 X"$file" : 'X\(//\)[^/]' \| \
26102 X"$file" : 'X\(//\)$' \| \
26103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26104 $as_echo X"$file" |
26105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26109 /^X\(\/\/\)[^/].*/{
26122 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
26123 # echo "creating $dirpart/$file"
26124 echo '# dummy' > "$dirpart/$file"
26130 for dir
in etc lisp
; do
26131 test -d ${dir} || mkdir
${dir}
26135 echo creating src
/epaths.h
26136 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
26139 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26140 echo creating src
/.gdbinit
26141 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26151 ac_clean_files
=$ac_clean_files_save
26153 test $ac_write_fail = 0 ||
26154 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
26157 # configure is writing to config.log, and then calls config.status.
26158 # config.status does its own redirection, appending to config.log.
26159 # Unfortunately, on DOS this fails, as config.log is still kept open
26160 # by configure, so config.status won't be able to write to it; its
26161 # output is simply discarded. So we exec the FD to /dev/null,
26162 # effectively closing config.log, so it can be properly (re)opened and
26163 # appended to by config.status. When coming back to configure, we
26164 # need to make the FD available again.
26165 if test "$no_create" != yes; then
26167 ac_config_status_args
=
26168 test "$silent" = yes &&
26169 ac_config_status_args
="$ac_config_status_args --quiet"
26171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26174 # would make configure fail if this is the last instruction.
26175 $ac_cs_success || as_fn_exit $?
26177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}