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
916 REPLACE_CANONICALIZE_FILE_NAME
921 HAVE_STRUCT_RANDOM_DATA
943 HAVE_CANONICALIZE_FILE_NAME
973 GNULIB_CANONICALIZE_FILE_NAME
977 GL_GENERATE_EXECINFO_H_FALSE
978 GL_GENERATE_EXECINFO_H_TRUE
981 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
982 UNISTD_H_HAVE_WINSOCK2_H
1003 REPLACE_GETDOMAINNAME
1014 HAVE_DECL_SETHOSTNAME
1015 HAVE_DECL_GETUSERSHELL
1016 HAVE_DECL_GETPAGESIZE
1017 HAVE_DECL_GETLOGIN_R
1018 HAVE_DECL_GETDOMAINNAME
1057 GNULIB_UNISTD_H_SIGPIPE
1058 GNULIB_UNISTD_H_NONBLOCKING
1084 GNULIB_GETDTABLESIZE
1085 GNULIB_GETDOMAINNAME
1102 GL_GENERATE_ALLOCA_H_FALSE
1103 GL_GENERATE_ALLOCA_H_TRUE
1106 GL_COND_LIBTOOL_FALSE
1107 GL_COND_LIBTOOL_TRUE
1138 x_default_search_path
1211 INSTALL_ARCH_INDEP_EXTRA
1213 LD_SWITCH_X_SITE_RPATH
1282 INSTALL_STRIP_PROGRAM
1324 program_transform_name
1335 ac_subst_files
='deps_frag
1338 enable_option_checking
1361 with_toolkit_scroll_bars
1373 with_pkg_config_prog
1377 enable_ns_self_contained
1378 enable_locallisppath
1380 enable_check_lisp_object_type
1383 enable_dependency_tracking
1386 enable_link_time_optimization
1389 ac_precious_vars
='build_alias
1401 # Initialize some variables set by options.
1403 ac_init_version
=false
1404 ac_unrecognized_opts
=
1405 ac_unrecognized_sep
=
1406 # The variables have the same names as the options, with
1407 # dashes changed to underlines.
1408 cache_file
=/dev
/null
1415 program_transform_name
=s
,x
,x
,
1423 # Installation directory options.
1424 # These are left unexpanded so users can "make install exec_prefix=/foo"
1425 # and all the variables that are supposed to be based on exec_prefix
1426 # by default will actually change.
1427 # Use braces instead of parens because sh, perl, etc. also accept them.
1428 # (The list follows the same order as the GNU Coding Standards.)
1429 bindir
='${exec_prefix}/bin'
1430 sbindir
='${exec_prefix}/sbin'
1431 libexecdir
='${exec_prefix}/libexec'
1432 datarootdir
='${prefix}/share'
1433 datadir
='${datarootdir}'
1434 sysconfdir
='${prefix}/etc'
1435 sharedstatedir
='${prefix}/com'
1436 localstatedir
='${prefix}/var'
1437 includedir
='${prefix}/include'
1438 oldincludedir
='/usr/include'
1439 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1440 infodir
='${datarootdir}/info'
1445 libdir
='${exec_prefix}/lib'
1446 localedir
='${datarootdir}/locale'
1447 mandir
='${datarootdir}/man'
1453 # If the previous option needs an argument, assign it.
1454 if test -n "$ac_prev"; then
1455 eval $ac_prev=\
$ac_option
1461 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1465 # Accept the important Cygnus configure options, so we can diagnose typos.
1467 case $ac_dashdash$ac_option in
1471 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1473 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1474 bindir
=$ac_optarg ;;
1476 -build |
--build |
--buil |
--bui |
--bu)
1477 ac_prev
=build_alias
;;
1478 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1479 build_alias
=$ac_optarg ;;
1481 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1482 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1483 ac_prev
=cache_file
;;
1484 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1485 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1486 cache_file
=$ac_optarg ;;
1488 --config-cache |
-C)
1489 cache_file
=config.cache
;;
1491 -datadir |
--datadir |
--datadi |
--datad)
1493 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1494 datadir
=$ac_optarg ;;
1496 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1497 |
--dataroo |
--dataro |
--datar)
1498 ac_prev
=datarootdir
;;
1499 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1500 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1501 datarootdir
=$ac_optarg ;;
1503 -disable-* |
--disable-*)
1504 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1507 as_fn_error
"invalid feature name: $ac_useropt"
1508 ac_useropt_orig
=$ac_useropt
1509 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1512 "enable_
$ac_useropt"
1514 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1515 ac_unrecognized_sep
=', ';;
1517 eval enable_
$ac_useropt=no
;;
1519 -docdir |
--docdir |
--docdi |
--doc |
--do)
1521 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1522 docdir
=$ac_optarg ;;
1524 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1526 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1527 dvidir
=$ac_optarg ;;
1529 -enable-* |
--enable-*)
1530 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1531 # Reject names that are not valid shell variable names.
1532 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1533 as_fn_error
"invalid feature name: $ac_useropt"
1534 ac_useropt_orig
=$ac_useropt
1535 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1536 case $ac_user_opts in
1538 "enable_
$ac_useropt"
1540 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1541 ac_unrecognized_sep
=', ';;
1543 eval enable_
$ac_useropt=\
$ac_optarg ;;
1545 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1546 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1547 |
--exec |
--exe |
--ex)
1548 ac_prev
=exec_prefix
;;
1549 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1550 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1551 |
--exec=* |
--exe=* |
--ex=*)
1552 exec_prefix
=$ac_optarg ;;
1554 -gas |
--gas |
--ga |
--g)
1555 # Obsolete; use --with-gas.
1558 -help |
--help |
--hel |
--he |
-h)
1559 ac_init_help
=long
;;
1560 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1561 ac_init_help
=recursive
;;
1562 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1563 ac_init_help
=short
;;
1565 -host |
--host |
--hos |
--ho)
1566 ac_prev
=host_alias
;;
1567 -host=* |
--host=* |
--hos=* |
--ho=*)
1568 host_alias
=$ac_optarg ;;
1570 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1572 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1574 htmldir
=$ac_optarg ;;
1576 -includedir |
--includedir |
--includedi |
--included |
--include \
1577 |
--includ |
--inclu |
--incl |
--inc)
1578 ac_prev
=includedir
;;
1579 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1580 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1581 includedir
=$ac_optarg ;;
1583 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1585 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1586 infodir
=$ac_optarg ;;
1588 -libdir |
--libdir |
--libdi |
--libd)
1590 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1591 libdir
=$ac_optarg ;;
1593 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1594 |
--libexe |
--libex |
--libe)
1595 ac_prev
=libexecdir
;;
1596 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1597 |
--libexe=* |
--libex=* |
--libe=*)
1598 libexecdir
=$ac_optarg ;;
1600 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1601 ac_prev
=localedir
;;
1602 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1603 localedir
=$ac_optarg ;;
1605 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1606 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1607 ac_prev
=localstatedir
;;
1608 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1609 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1610 localstatedir
=$ac_optarg ;;
1612 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1614 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1615 mandir
=$ac_optarg ;;
1617 -nfp |
--nfp |
--nf)
1618 # Obsolete; use --without-fp.
1621 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1622 |
--no-cr |
--no-c |
-n)
1625 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1626 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1629 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1630 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1631 |
--oldin |
--oldi |
--old |
--ol |
--o)
1632 ac_prev
=oldincludedir
;;
1633 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1634 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1635 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1636 oldincludedir
=$ac_optarg ;;
1638 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1640 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1641 prefix
=$ac_optarg ;;
1643 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1644 |
--program-pre |
--program-pr |
--program-p)
1645 ac_prev
=program_prefix
;;
1646 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1647 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1648 program_prefix
=$ac_optarg ;;
1650 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1651 |
--program-suf |
--program-su |
--program-s)
1652 ac_prev
=program_suffix
;;
1653 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1654 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1655 program_suffix
=$ac_optarg ;;
1657 -program-transform-name |
--program-transform-name \
1658 |
--program-transform-nam |
--program-transform-na \
1659 |
--program-transform-n |
--program-transform- \
1660 |
--program-transform |
--program-transfor \
1661 |
--program-transfo |
--program-transf \
1662 |
--program-trans |
--program-tran \
1663 |
--progr-tra |
--program-tr |
--program-t)
1664 ac_prev
=program_transform_name
;;
1665 -program-transform-name=* |
--program-transform-name=* \
1666 |
--program-transform-nam=* |
--program-transform-na=* \
1667 |
--program-transform-n=* |
--program-transform-=* \
1668 |
--program-transform=* |
--program-transfor=* \
1669 |
--program-transfo=* |
--program-transf=* \
1670 |
--program-trans=* |
--program-tran=* \
1671 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1672 program_transform_name
=$ac_optarg ;;
1674 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1676 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1677 pdfdir
=$ac_optarg ;;
1679 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1681 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1684 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1685 |
-silent |
--silent |
--silen |
--sile |
--sil)
1688 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1690 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1692 sbindir
=$ac_optarg ;;
1694 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1695 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1696 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1698 ac_prev
=sharedstatedir
;;
1699 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1700 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1701 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1703 sharedstatedir
=$ac_optarg ;;
1705 -site |
--site |
--sit)
1707 -site=* |
--site=* |
--sit=*)
1710 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1712 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1713 srcdir
=$ac_optarg ;;
1715 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1716 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1717 ac_prev
=sysconfdir
;;
1718 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1719 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1720 sysconfdir
=$ac_optarg ;;
1722 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1723 ac_prev
=target_alias
;;
1724 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1725 target_alias
=$ac_optarg ;;
1727 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1730 -version |
--version |
--versio |
--versi |
--vers |
-V)
1731 ac_init_version
=: ;;
1734 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1735 # Reject names that are not valid shell variable names.
1736 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1737 as_fn_error
"invalid package name: $ac_useropt"
1738 ac_useropt_orig
=$ac_useropt
1739 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1740 case $ac_user_opts in
1744 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1745 ac_unrecognized_sep
=', ';;
1747 eval with_
$ac_useropt=\
$ac_optarg ;;
1749 -without-* |
--without-*)
1750 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1751 # Reject names that are not valid shell variable names.
1752 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1753 as_fn_error
"invalid package name: $ac_useropt"
1754 ac_useropt_orig
=$ac_useropt
1755 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1756 case $ac_user_opts in
1760 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1761 ac_unrecognized_sep
=', ';;
1763 eval with_
$ac_useropt=no
;;
1766 # Obsolete; use --with-x.
1769 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1770 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1771 ac_prev
=x_includes
;;
1772 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1773 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1774 x_includes
=$ac_optarg ;;
1776 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1777 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1778 ac_prev
=x_libraries
;;
1779 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1780 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1781 x_libraries
=$ac_optarg ;;
1783 -*) as_fn_error
"unrecognized option: \`$ac_option'
1784 Try \`$0 --help' for more information."
1788 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1789 # Reject names that are not valid shell variable names.
1790 case $ac_envvar in #(
1791 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1792 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1794 eval $ac_envvar=\
$ac_optarg
1795 export $ac_envvar ;;
1798 # FIXME: should be removed in autoconf 3.0.
1799 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1801 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1808 if test -n "$ac_prev"; then
1809 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1810 as_fn_error
"missing argument to $ac_option"
1813 if test -n "$ac_unrecognized_opts"; then
1814 case $enable_option_checking in
1816 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1817 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1821 # Check all directory arguments for consistency.
1822 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1823 datadir sysconfdir sharedstatedir localstatedir includedir \
1824 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1825 libdir localedir mandir
1827 eval ac_val
=\$
$ac_var
1828 # Remove trailing slashes.
1831 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1832 eval $ac_var=\
$ac_val;;
1834 # Be sure to have absolute directory names.
1836 [\\/$
]* | ?
:[\\/]* ) continue;;
1837 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1839 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1842 # There might be people who depend on the old broken behavior: `$host'
1843 # used to hold the argument of --host etc.
1844 # FIXME: To remove some day.
1847 target
=$target_alias
1849 # FIXME: To remove some day.
1850 if test "x$host_alias" != x
; then
1851 if test "x$build_alias" = x
; then
1852 cross_compiling
=maybe
1853 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1854 If a cross compiler is detected then cross compile mode will be used." >&2
1855 elif test "x$build_alias" != "x$host_alias"; then
1861 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1863 test "$silent" = yes && exec 6>/dev
/null
1866 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1867 ac_ls_di
=`ls -di .` &&
1868 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1869 as_fn_error
"working directory cannot be determined"
1870 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1871 as_fn_error
"pwd does not report name of working directory"
1874 # Find the source files, if location was not specified.
1875 if test -z "$srcdir"; then
1876 ac_srcdir_defaulted
=yes
1877 # Try the directory containing this script, then the parent directory.
1878 ac_confdir
=`$as_dirname -- "$as_myself" ||
1879 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1880 X"$as_myself" : 'X\(//\)[^/]' \| \
1881 X"$as_myself" : 'X\(//\)$' \| \
1882 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1883 $as_echo X"$as_myself" |
1884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1902 if test ! -r "$srcdir/$ac_unique_file"; then
1906 ac_srcdir_defaulted
=no
1908 if test ! -r "$srcdir/$ac_unique_file"; then
1909 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1910 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1912 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1914 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1916 # When building in place, set srcdir=.
1917 if test "$ac_abs_confdir" = "$ac_pwd"; then
1920 # Remove unnecessary trailing slashes from srcdir.
1921 # Double slashes in file names in object file debugging info
1922 # mess up M-x gdb in Emacs.
1924 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1926 for ac_var
in $ac_precious_vars; do
1927 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1928 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1929 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1930 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1934 # Report the --help message.
1936 if test "$ac_init_help" = "long"; then
1937 # Omit some internal or obsolete options to make the list less imposing.
1938 # This message is too long to be a string in the A/UX 3.1 sh.
1940 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1942 Usage: $0 [OPTION]... [VAR=VALUE]...
1944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1945 VAR=VALUE. See below for descriptions of some of the useful variables.
1947 Defaults for the options are specified in brackets.
1950 -h, --help display this help and exit
1951 --help=short display options specific to this package
1952 --help=recursive display the short help of all the included packages
1953 -V, --version display version information and exit
1954 -q, --quiet, --silent do not print \`checking...' messages
1955 --cache-file=FILE cache test results in FILE [disabled]
1956 -C, --config-cache alias for \`--cache-file=config.cache'
1957 -n, --no-create do not create output files
1958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1960 Installation directories:
1961 --prefix=PREFIX install architecture-independent files in PREFIX
1962 [$ac_default_prefix]
1963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1966 By default, \`make install' will install all the files in
1967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1969 for instance \`--prefix=\$HOME'.
1971 For better control, use the options below.
1973 Fine tuning of the installation directories:
1974 --bindir=DIR user executables [EPREFIX/bin]
1975 --sbindir=DIR system admin executables [EPREFIX/sbin]
1976 --libexecdir=DIR program executables [EPREFIX/libexec]
1977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1980 --libdir=DIR object code libraries [EPREFIX/lib]
1981 --includedir=DIR C header files [PREFIX/include]
1982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1983 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1984 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1985 --infodir=DIR info documentation [DATAROOTDIR/info]
1986 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1987 --mandir=DIR man documentation [DATAROOTDIR/man]
1988 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1989 --htmldir=DIR html documentation [DOCDIR]
1990 --dvidir=DIR dvi documentation [DOCDIR]
1991 --pdfdir=DIR pdf documentation [DOCDIR]
1992 --psdir=DIR ps documentation [DOCDIR]
1998 --program-prefix=PREFIX prepend PREFIX to installed program names
1999 --program-suffix=SUFFIX append SUFFIX to installed program names
2000 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2003 --x-includes=DIR X include files are
in DIR
2004 --x-libraries=DIR X library files are
in DIR
2007 --build=BUILD configure
for building on BUILD
[guessed
]
2008 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2012 if test -n "$ac_init_help"; then
2013 case $ac_init_help in
2014 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2019 --disable-option-checking ignore unrecognized
--enable/--with options
2020 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2021 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2022 --disable-ns-self-contained
2023 disable self contained build under NeXTstep
2024 --enable-locallisppath=PATH
2025 directories Emacs should search
for lisp files
2026 specific to this site
2027 --enable-checking[=LIST
]
2028 enable expensive run-time checks. With LIST
, enable
2029 only specific categories of checks. Categories are
:
2030 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2031 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2032 --enable-check-lisp-object-type
2033 enable compile
time checks
for the Lisp_Object data
2034 type. This is useful
for development
for catching
2035 certain types of bugs.
2036 --enable-profiling build emacs with profiling support. This might not
2037 work on all platforms
2038 --enable-autodepend automatically generate dependencies to .h-files.
2039 Requires GNU Make and Gcc. Enabled
if GNU Make and
2041 --disable-dependency-tracking speeds up one-time build
2042 --enable-dependency-tracking do not reject slow dependency extractors
2043 --disable-largefile omit support
for large files
2044 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2045 developers
, and may generate false alarms when used
2046 with older or non-GNU development tools.
2047 --enable-link-time-optimization
2048 build emacs with link-time optimization. This is
2049 supported only
for GCC since
4.5.0.
2052 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2053 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2054 --without-all omit almost all features and build small executable
2055 with minimal dependencies
2056 --without-pop don
't support POP mail retrieval with movemail
2057 --with-kerberos support Kerberos-authenticated POP
2058 --with-kerberos5 support Kerberos version 5 authenticated POP
2059 --with-hesiod support Hesiod to get the POP server host
2060 --with-mmdf support MMDF mailboxes
2061 --with-mail-unlink unlink, rather than empty, mail spool after reading
2062 --with-mailhost=HOSTNAME
2063 string giving default POP mail host
2064 --without-sound don't compile with sound support
2065 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2066 gtk3
, lucid or athena
, motif
, no
)
2067 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2068 --without-xpm don
't compile with XPM image support
2069 --without-jpeg don't compile with JPEG image support
2070 --without-tiff don
't compile with TIFF image support
2071 --without-gif don't compile with GIF image support
2072 --without-png don
't compile with PNG image support
2073 --without-rsvg don't compile with SVG image support
2074 --without-xml2 don
't compile with XML parsing support
2075 --without-imagemagick don't compile with ImageMagick image support
2076 --without-xft don
't use XFT for anti aliased fonts
2077 --without-libotf don't use libotf
for OpenType font support
2078 --without-m17n-flt don
't use m17n-flt for text shaping
2079 --without-toolkit-scroll-bars
2080 don't use Motif or Xaw3d scroll bars
2081 --without-xaw3d don
't use Xaw3d
2082 --without-xim don't use X11 XIM
2083 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2084 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2086 --without-dbus don't compile with D-Bus support
2087 --without-gconf don
't compile with GConf support
2088 --without-gsettings don't compile with GSettings support
2089 --without-selinux don
't compile with SELinux support
2090 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2091 --without-makeinfo don
't require makeinfo for building manuals
2092 --without-compress-info don't
compress the installed Info pages
2093 --with-pkg-config-prog=PATH
2094 path to pkg-config
for finding GTK and librsvg
2095 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2096 /usr
/lib
, or
/usr
/lib64 on some platforms.
2097 --with-gameuser=USER user
for shared game score files
2098 --with-gnustep-conf=PATH
2099 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2100 or
/etc
/GNUstep
/GNUstep.conf
2101 --with-x use the X Window System
2103 Some influential environment variables
:
2104 CC C compiler
command
2105 CFLAGS C compiler flags
2106 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2107 nonstandard directory
<lib dir
>
2108 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2109 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2110 you have headers
in a nonstandard directory
<include dir
>
2112 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2114 Use these variables to override the choices made by
`configure' or to help
2115 it to find libraries and programs with nonstandard names/locations.
2117 Report bugs to the package provider.
2122 if test "$ac_init_help" = "recursive"; then
2123 # If there are subdirs, report their specific --help.
2124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2125 test -d "$ac_dir" ||
2126 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2133 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2134 # A ".." for each directory in $ac_dir_suffix.
2135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2136 case $ac_top_builddir_sub in
2137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2141 ac_abs_top_builddir=$ac_pwd
2142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2143 # for backward compatibility:
2144 ac_top_builddir=$ac_top_build_prefix
2147 .) # We are building in place.
2149 ac_top_srcdir=$ac_top_builddir_sub
2150 ac_abs_top_srcdir=$ac_pwd ;;
2151 [\\/]* | ?:[\\/]* ) # Absolute name.
2152 ac_srcdir=$srcdir$ac_dir_suffix;
2153 ac_top_srcdir=$srcdir
2154 ac_abs_top_srcdir=$srcdir ;;
2156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2157 ac_top_srcdir=$ac_top_build_prefix$srcdir
2158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2162 cd "$ac_dir" || { ac_status=$?; continue; }
2163 # Check for guested configure.
2164 if test -f "$ac_srcdir/configure.gnu"; then
2166 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2167 elif test -f "$ac_srcdir/configure"; then
2169 $SHELL "$ac_srcdir/configure" --help=recursive
2171 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2173 cd "$ac_pwd" || { ac_status=$?; break; }
2177 test -n "$ac_init_help" && exit $ac_status
2178 if $ac_init_version; then
2180 emacs configure 24.2.50
2181 generated by GNU Autoconf 2.65
2183 Copyright (C) 2009 Free Software Foundation, Inc.
2184 This configure script is free software; the Free Software Foundation
2185 gives unlimited permission to copy, distribute and modify it.
2190 ## ------------------------ ##
2191 ## Autoconf initialization. ##
2192 ## ------------------------ ##
2194 # ac_fn_c_try_compile LINENO
2195 # --------------------------
2196 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_compile ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext
2201 if { { ac_try="$ac_compile"
2203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2204 *) ac_try_echo
=$ac_try;;
2206 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_compile") 2>conftest.err
2210 if test -s conftest.err
; then
2211 grep -v '^ *+' conftest.err
>conftest.er1
2212 cat conftest.er1
>&5
2213 mv -f conftest.er1 conftest.err
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest.
$ac_objext; then :
2222 $as_echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.
$ac_ext >&5
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2228 as_fn_set_status
$ac_retval
2230 } # ac_fn_c_try_compile
2232 # ac_fn_c_try_cpp LINENO
2233 # ----------------------
2234 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2237 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2238 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } >/dev/null && {
2254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2259 $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2269 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2270 # -------------------------------------------------------
2271 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2272 # the include files in INCLUDES and setting the cache variable VAR
2274 ac_fn_c_check_header_mongrel ()
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2287 # Is the header compilable?
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2289 $as_echo_n "checking $2 usability... " >&6; }
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_header_compiler=yes
2298 ac_header_compiler=no
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2302 $as_echo "$ac_header_compiler" >&6; }
2304 # Is the header present?
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2306 $as_echo_n "checking $2 presence... " >&6; }
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2311 if ac_fn_c_try_cpp "$LINENO"; then :
2312 ac_header_preproc=yes
2314 ac_header_preproc=no
2316 rm -f conftest.err conftest.$ac_ext
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2318 $as_echo "$ac_header_preproc" >&6; }
2320 # So? What about this header?
2321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2324 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2330 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2332 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2334 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2336 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2338 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2346 eval "$3=\$ac_header_compiler"
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_c_check_header_mongrel
2356 # ac_fn_c_try_run LINENO
2357 # ----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2359 # that executables *can* be run.
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 if { { ac_try="$ac_link"
2365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2366 *) ac_try_echo
=$ac_try;;
2368 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>&5
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2374 { { case "(($ac_try" in
2375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_try") 2>&5
2382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2383 test $ac_status = 0; }; }; then :
2386 $as_echo "$as_me: program exited with status $ac_status" >&5
2387 $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 ac_retval=$ac_status
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2398 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2399 # -------------------------------------------------------
2400 # Tests whether HEADER exists and can be compiled using the include files in
2401 # INCLUDES, setting the cache variable VAR accordingly.
2402 ac_fn_c_check_header_compile ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2406 $as_echo_n "checking for $2... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424 $as_echo "$ac_res" >&6; }
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2427 } # ac_fn_c_check_header_compile
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2439 *) ac_try_echo
=$ac_try;;
2441 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2445 if test -s conftest.err
; then
2446 grep -v '^ *+' conftest.err
>conftest.er1
2447 cat conftest.er1
>&5
2448 mv -f conftest.er1 conftest.err
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest
$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 $as_test_x conftest
$ac_exeext
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.
$ac_ext >&5
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2471 as_fn_set_status
$ac_retval
2473 } # ac_fn_c_try_link
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR
2476 # ------------------------------------
2477 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2478 ac_fn_c_check_decl
()
2480 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2482 $as_echo_n "checking whether $2 is declared... " >&6; }
2483 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2500 if ac_fn_c_try_compile
"$LINENO"; then :
2505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_c_check_decl
2514 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2515 # ----------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_c_check_header_preproc
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2529 if ac_fn_c_try_cpp
"$LINENO"; then :
2534 rm -f conftest.err conftest.
$ac_ext
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2541 } # ac_fn_c_check_header_preproc
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2568 if ac_fn_c_try_compile
"$LINENO"; then :
2571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2578 if (sizeof ac_aggr.$3)
2584 if ac_fn_c_try_compile
"$LINENO"; then :
2589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2598 } # ac_fn_c_check_member
2600 # ac_fn_c_check_func LINENO FUNC VAR
2601 # ----------------------------------
2602 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2603 ac_fn_c_check_func
()
2605 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2613 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2615 #define $2 innocuous_$2
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char $2 (); below.
2619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2620 <limits.h> exists even on freestanding compilers. */
2623 # include <limits.h>
2625 # include <assert.h>
2630 /* Override any GCC internal prototype to avoid an error.
2631 Use char because int might match the return type of a GCC
2632 builtin and then its argument prototype would still apply. */
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined __stub_$2 || defined __stub___$2
2652 if ac_fn_c_try_link
"$LINENO"; then :
2657 rm -f core conftest.err conftest.
$ac_objext \
2658 conftest
$ac_exeext conftest.
$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2665 } # ac_fn_c_check_func
2667 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2668 # -------------------------------------------
2669 # Tests whether TYPE exists after having included INCLUDES, setting cache
2670 # variable VAR accordingly.
2671 ac_fn_c_check_type
()
2673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2675 $as_echo_n "checking for $2... " >&6; }
2676 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2692 if ac_fn_c_try_compile
"$LINENO"; then :
2693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2705 if ac_fn_c_try_compile
"$LINENO"; then :
2710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2719 } # ac_fn_c_check_type
2721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2722 # --------------------------------------------
2723 # Tries to find the compile-time value of EXPR in a program that includes
2724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2726 ac_fn_c_compute_int
()
2728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2729 if test "$cross_compiling" = yes; then
2730 # Depending upon the size, compute the lo and hi bounds.
2731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) >= 0)];
2744 if ac_fn_c_try_compile
"$LINENO"; then :
2747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760 if ac_fn_c_try_compile
"$LINENO"; then :
2761 ac_hi
=$ac_mid; break
2763 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2764 if test $ac_lo -le $ac_mid; then
2768 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 static int test_array [1 - 2 * !(($2) < 0)];
2786 if ac_fn_c_try_compile
"$LINENO"; then :
2789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2802 if ac_fn_c_try_compile
"$LINENO"; then :
2803 ac_lo
=$ac_mid; break
2805 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2806 if test $ac_mid -le $ac_hi; then
2810 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2820 # Binary search between lo and hi bounds.
2821 while test "x$ac_lo" != "x$ac_hi"; do
2822 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2836 if ac_fn_c_try_compile
"$LINENO"; then :
2839 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2844 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2851 static long int longval () { return $2; }
2852 static unsigned long int ulongval () { return $2; }
2859 FILE *f = fopen ("conftest.val", "w");
2864 long int i = longval ();
2867 fprintf (f, "%ld", i);
2871 unsigned long int i = ulongval ();
2874 fprintf (f, "%lu", i);
2876 /* Do not output a trailing newline, as this causes \r\n confusion
2877 on some platforms. */
2878 return ferror (f) || fclose (f) != 0;
2884 if ac_fn_c_try_run
"$LINENO"; then :
2885 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2894 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2895 as_fn_set_status
$ac_retval
2897 } # ac_fn_c_compute_int
2898 cat >config.log
<<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2902 It was created by emacs $as_me 24.2.50, which was
2903 generated by GNU Autoconf 2.65. Invocation command line was
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir
=.
2939 $as_echo "PATH: $as_dir"
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2963 ac_must_keep_next
=false
2969 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2970 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2971 |
-silent |
--silent |
--silen |
--sile |
--sil)
2974 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2979 as_fn_append ac_configure_args1
" '$ac_arg'"
2980 if test $ac_must_keep_next = true
; then
2981 ac_must_keep_next
=false
# Got value, back to normal.
2984 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2985 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2986 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2987 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992 -* ) ac_must_keep_next
=true
;;
2995 as_fn_append ac_configure_args
" '$ac_arg'"
3000 { ac_configure_args0
=; unset ac_configure_args0
;}
3001 { ac_configure_args1
=; unset ac_configure_args1
;}
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3014 ## ---------------- ##
3015 ## Cache variables. ##
3016 ## ---------------- ##
3019 # The following way of writing the cache mishandles newlines in values,
3021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022 eval ac_val=\$$ac_var
3026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3030 _ | IFS | as_nl) ;; #(
3031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032 *) { eval $ac_var=; unset $ac_var;} ;;
3037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038 *${as_nl}ac_space=\ *)
3040 "s/'\''/'\''\\\\'\'''\''/g;
3041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 ## ----------------- ##
3053 ## Output variables. ##
3054 ## ----------------- ##
3057 for ac_var in $ac_subst_vars
3059 eval ac_val=\$$ac_var
3061 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063 $as_echo "$ac_var='\''$ac_val'\''"
3067 if test -n "$ac_subst_files"; then
3069 ## ------------------- ##
3070 ## File substitutions. ##
3071 ## ------------------- ##
3074 for ac_var
in $ac_subst_files
3076 eval ac_val
=\$
$ac_var
3078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3080 $as_echo "$ac_var='\''$ac_val'\''"
3085 if test -s confdefs.h; then
3095 test "$ac_signal" != 0 &&
3096 $as_echo "$as_me: caught signal $ac_signal"
3097 $as_echo "$as_me: exit $exit_status"
3099 rm -f core *.core core.conftest.* &&
3100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3103 for ac_signal
in 1 2 13 15; do
3104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3109 rm -f -r conftest
* confdefs.h
3111 $as_echo "/* confdefs.h */" > confdefs.h
3113 # Predefined preprocessor variables.
3115 cat >>confdefs.h
<<_ACEOF
3116 #define PACKAGE_NAME "$PACKAGE_NAME"
3119 cat >>confdefs.h
<<_ACEOF
3120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3123 cat >>confdefs.h
<<_ACEOF
3124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3127 cat >>confdefs.h
<<_ACEOF
3128 #define PACKAGE_STRING "$PACKAGE_STRING"
3131 cat >>confdefs.h
<<_ACEOF
3132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3135 cat >>confdefs.h
<<_ACEOF
3136 #define PACKAGE_URL "$PACKAGE_URL"
3140 # Let the site file select an alternate cache file if it wants to.
3141 # Prefer an explicitly selected file to automatically selected ones.
3144 if test -n "$CONFIG_SITE"; then
3145 ac_site_file1
=$CONFIG_SITE
3146 elif test "x$prefix" != xNONE
; then
3147 ac_site_file1
=$prefix/share
/config.site
3148 ac_site_file2
=$prefix/etc
/config.site
3150 ac_site_file1
=$ac_default_prefix/share
/config.site
3151 ac_site_file2
=$ac_default_prefix/etc
/config.site
3153 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3155 test "x$ac_site_file" = xNONE
&& continue
3156 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3159 sed 's/^/| /' "$ac_site_file" >&5
3164 if test -r "$cache_file"; then
3165 # Some versions of bash will fail to source /dev/null (special files
3166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3167 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3169 $as_echo "$as_me: loading cache $cache_file" >&6;}
3171 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3172 *) .
"./$cache_file";;
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3177 $as_echo "$as_me: creating cache $cache_file" >&6;}
3181 as_fn_append ac_header_list
" linux/version.h"
3182 as_fn_append ac_header_list
" sys/systeminfo.h"
3183 as_fn_append ac_header_list
" stdio_ext.h"
3184 as_fn_append ac_header_list
" fcntl.h"
3185 as_fn_append ac_header_list
" coff.h"
3186 as_fn_append ac_header_list
" pty.h"
3187 as_fn_append ac_header_list
" sys/vlimit.h"
3188 as_fn_append ac_header_list
" sys/resource.h"
3189 as_fn_append ac_header_list
" sys/utsname.h"
3190 as_fn_append ac_header_list
" pwd.h"
3191 as_fn_append ac_header_list
" utmp.h"
3192 as_fn_append ac_header_list
" dirent.h"
3193 as_fn_append ac_header_list
" util.h"
3194 as_fn_append ac_header_list
" sys/socket.h"
3195 as_fn_append ac_header_list
" stdlib.h"
3196 as_fn_append ac_header_list
" unistd.h"
3197 as_fn_append ac_header_list
" sys/param.h"
3198 as_fn_append ac_header_list
" pthread.h"
3199 as_fn_append ac_header_list
" malloc/malloc.h"
3200 as_fn_append ac_header_list
" maillock.h"
3201 as_fn_append ac_header_list
" sys/un.h"
3202 as_fn_append ac_func_list
" tzset"
3203 as_fn_append ac_func_list
" readlinkat"
3204 as_fn_append ac_header_list
" execinfo.h"
3205 gl_getopt_required
=GNU
3206 as_fn_append ac_header_list
" getopt.h"
3207 as_fn_append ac_func_list
" gettimeofday"
3208 as_fn_append ac_func_list
" nanotime"
3209 as_fn_append ac_header_list
" sys/time.h"
3210 as_fn_append ac_header_list
" wchar.h"
3211 as_fn_append ac_header_list
" stdint.h"
3212 as_fn_append ac_header_list
" inttypes.h"
3213 as_fn_append ac_func_list
" lstat"
3214 as_fn_append ac_func_list
" alarm"
3215 as_fn_append ac_header_list
" sys/select.h"
3216 as_fn_append ac_func_list
" pselect"
3217 as_fn_append ac_func_list
" pthread_sigmask"
3218 as_fn_append ac_func_list
" readlink"
3219 as_fn_append ac_func_list
" strtoimax"
3220 as_fn_append ac_func_list
" strtoumax"
3221 as_fn_append ac_func_list
" symlink"
3222 as_fn_append ac_header_list
" sys/stat.h"
3223 as_fn_append ac_func_list
" localtime_r"
3224 as_fn_append ac_header_list
" utime.h"
3225 as_fn_append ac_func_list
" futimes"
3226 as_fn_append ac_func_list
" futimesat"
3227 as_fn_append ac_func_list
" futimens"
3228 as_fn_append ac_func_list
" utimensat"
3229 as_fn_append ac_func_list
" lutimes"
3230 # Check that the precious variables saved in the cache have kept the same
3232 ac_cache_corrupted
=false
3233 for ac_var
in $ac_precious_vars; do
3234 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3235 eval ac_new_set
=\
$ac_env_${ac_var}_set
3236 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3237 eval ac_new_val
=\
$ac_env_${ac_var}_value
3238 case $ac_old_set,$ac_new_set in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3242 ac_cache_corrupted
=: ;;
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3246 ac_cache_corrupted
=: ;;
3249 if test "x$ac_old_val" != "x$ac_new_val"; then
3250 # differences in whitespace do not lead to failure.
3251 ac_old_val_w
=`echo x $ac_old_val`
3252 ac_new_val_w
=`echo x $ac_new_val`
3253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3256 ac_cache_corrupted
=:
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3260 eval $ac_var=\
$ac_old_val
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3268 # Pass precious variables to config.status.
3269 if test "$ac_new_set" = set; then
3271 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3272 *) ac_arg
=$ac_var=$ac_new_val ;;
3274 case " $ac_configure_args " in
3275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3276 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3280 if $ac_cache_corrupted; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3285 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3287 ## -------------------- ##
3288 ## Main body of script. ##
3289 ## -------------------- ##
3292 ac_cpp
='$CPP $CPPFLAGS'
3293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3298 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3302 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3303 for ac_t
in install-sh
install.sh shtool
; do
3304 if test -f "$ac_dir/$ac_t"; then
3306 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3311 if test -z "$ac_aux_dir"; then
3312 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3315 # These three variables are undocumented and unsupported,
3316 # and are intended to be withdrawn in a future Autoconf release.
3317 # They can cause serious problems if a builder's source tree is in a directory
3318 # whose full name contains unusual characters.
3319 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3320 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3321 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3324 am__api_version
='1.11'
3326 # Find a good install program. We prefer a C program (faster),
3327 # so one script is as good as another. But avoid the broken or
3328 # incompatible versions:
3329 # SysV /etc/install, /usr/sbin/install
3330 # SunOS /usr/etc/install
3331 # IRIX /sbin/install
3333 # AmigaOS /C/install, which installs bootblocks on floppy discs
3334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3337 # OS/2's system install, which has a completely different semantic
3338 # ./install, which can be erroneously created by make from ./install.sh.
3339 # Reject install programs that cannot install multiple files.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3342 if test -z "$INSTALL"; then
3343 if test "${ac_cv_path_install+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir
=.
3351 # Account for people who put trailing slashes in PATH elements.
3352 case $as_dir/ in #((
3353 .
/ | .
// |
/[cC
]/* | \
3354 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3355 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3358 # OSF1 and SCO ODT 3.0 have their own names for install.
3359 # Don't use installbsd from OSF since it installs stuff as root
3361 for ac_prog
in ginstall scoinst
install; do
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3364 if test $ac_prog = install &&
3365 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3366 # AIX install. It has an incompatible calling convention.
3368 elif test $ac_prog = install &&
3369 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3370 # program-specific install script used by HP pwplus--don't use.
3373 rm -rf conftest.one conftest.two conftest.dir
3374 echo one
> conftest.one
3375 echo two
> conftest.two
3377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3378 test -s conftest.one
&& test -s conftest.two
&&
3379 test -s conftest.dir
/conftest.one
&&
3380 test -s conftest.dir
/conftest.two
3382 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3395 rm -rf conftest.one conftest.two conftest.dir
3398 if test "${ac_cv_path_install+set}" = set; then
3399 INSTALL
=$ac_cv_path_install
3401 # As a last resort, use the slow shell script. Don't cache a
3402 # value for INSTALL within a source directory, because that will
3403 # break other packages using the cache if that directory is
3404 # removed, or if the value is a relative name.
3405 INSTALL
=$ac_install_sh
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3409 $as_echo "$INSTALL" >&6; }
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3417 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3420 $as_echo_n "checking whether build environment is sane... " >&6; }
3423 echo timestamp
> conftest.
file
3424 # Reject unsafe characters in $srcdir or the absolute working directory
3425 # name. Accept space and tab only in the latter.
3429 *[\\\"\
#\$\&\'\`$am_lf]*)
3430 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3433 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3434 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3437 # Do `set' in a subshell so we don't clobber the current shell's
3438 # arguments. Must try -L first in case configure is actually a
3439 # symlink; some systems play weird games with the mod time of symlinks
3440 # (eg FreeBSD returns the mod time of the symlink's containing
3443 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3444 if test "$*" = "X"; then
3446 set X
`ls -t "$srcdir/configure" conftest.file`
3449 if test "$*" != "X $srcdir/configure conftest.file" \
3450 && test "$*" != "X conftest.file $srcdir/configure"; then
3452 # If neither matched, then we have a broken ls. This can happen
3453 # if, for instance, CONFIG_SHELL is bash and it inherits a
3454 # broken ls alias from the environment. This has actually
3455 # happened. Such a system could not be considered "sane".
3456 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3457 alias in your environment" "$LINENO" 5
3460 test "$2" = conftest.
file
3466 as_fn_error
"newly created file is older than distributed files!
3467 Check your system clock" "$LINENO" 5
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 $as_echo "yes" >&6; }
3471 test "$program_prefix" != NONE
&&
3472 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3473 # Use a double $ so make ignores it.
3474 test "$program_suffix" != NONE
&&
3475 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3476 # Double any \ or $.
3477 # By default was `s,x,x', remove it if useless.
3478 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3479 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3481 # expand $ac_aux_dir to an absolute path
3482 am_aux_dir
=`cd $ac_aux_dir && pwd`
3484 if test x
"${MISSING+set}" != xset
; then
3487 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3489 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3492 # Use eval to expand $SHELL
3493 if eval "$MISSING --run true"; then
3494 am_missing_run
="$MISSING --run "
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3498 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3501 if test x
"${install_sh}" != xset
; then
3504 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3506 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3510 # Installed binaries are usually stripped using `strip' when the user
3511 # run `make install-strip'. However `strip' might not be the right
3512 # tool to use in cross-compilation environments, therefore Automake
3513 # will honor the `STRIP' environment variable to overrule this program.
3514 if test "$cross_compiling" != no
; then
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3517 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if test "${ac_cv_prog_STRIP+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3523 if test -n "$STRIP"; then
3524 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3530 test -z "$as_dir" && as_dir
=.
3531 for ac_exec_ext
in '' $ac_executable_extensions; do
3532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 STRIP
=$ac_cv_prog_STRIP
3544 if test -n "$STRIP"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3546 $as_echo "$STRIP" >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3554 if test -z "$ac_cv_prog_STRIP"; then
3556 # Extract the first word of "strip", so it can be a program name with args.
3557 set dummy strip
; ac_word
=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$ac_ct_STRIP"; then
3564 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir
=.
3571 for ac_exec_ext
in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_ac_ct_STRIP
="strip"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3584 if test -n "$ac_ct_STRIP"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3586 $as_echo "$ac_ct_STRIP" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3592 if test "x$ac_ct_STRIP" = x
; then
3595 case $cross_compiling:$ac_tool_warned in
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned
=yes ;;
3604 STRIP
="$ac_cv_prog_STRIP"
3608 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3612 if test -z "$MKDIR_P"; then
3613 if test "${ac_cv_path_mkdir+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3620 test -z "$as_dir" && as_dir
=.
3621 for ac_prog
in mkdir gmkdir
; do
3622 for ac_exec_ext
in '' $ac_executable_extensions; do
3623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3625 'mkdir (GNU coreutils) '* | \
3626 'mkdir (coreutils) '* | \
3627 'mkdir (fileutils) '4.1*)
3628 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3638 test -d .
/--version && rmdir .
/--version
3639 if test "${ac_cv_path_mkdir+set}" = set; then
3640 MKDIR_P
="$ac_cv_path_mkdir -p"
3642 # As a last resort, use the slow shell script. Don't cache a
3643 # value for MKDIR_P within a source directory, because that will
3644 # break other packages using the cache if that directory is
3645 # removed, or if the value is a relative name.
3646 MKDIR_P
="$ac_install_sh -d"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3650 $as_echo "$MKDIR_P" >&6; }
3655 [\\/$
]* | ?
:[\\/]*) ;;
3656 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3659 for ac_prog
in gawk mawk nawk
awk
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662 set dummy
$ac_prog; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_AWK+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$AWK"; then
3669 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_AWK
="$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$AWK"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3691 $as_echo "$AWK" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$AWK" && break
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3702 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3704 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3705 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3706 $as_echo_n "(cached) " >&6
3708 cat >conftest.
make <<\_ACEOF
3711 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3714 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3716 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3718 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3722 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 SET_MAKE
="MAKE=${MAKE-make}"
3732 rm -rf .tst
2>/dev
/null
3733 mkdir .tst
2>/dev
/null
3734 if test -d .tst
; then
3739 rmdir .tst
2>/dev
/null
3741 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3743 # is not polluted with repeated "-I."
3744 am__isrc
=' -I$(srcdir)'
3745 # test to see if srcdir already configured
3746 if test -f $srcdir/config.status
; then
3747 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3751 # test whether we have cygpath
3752 if test -z "$CYGPATH_W"; then
3753 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3754 CYGPATH_W
='cygpath -w'
3761 # Define the identity of the package.
3766 cat >>confdefs.h
<<_ACEOF
3767 #define PACKAGE "$PACKAGE"
3771 cat >>confdefs.h
<<_ACEOF
3772 #define VERSION "$VERSION"
3775 # Some tools Automake needs.
3777 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3780 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3783 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3786 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3789 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3791 # We need awk for the "check" target. The system "awk" is bad on
3793 # Always define AMTAR for backward compatibility.
3795 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3797 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3806 lispdir
='${datadir}/emacs/${version}/lisp'
3807 leimdir
='${datadir}/emacs/${version}/leim'
3808 standardlisppath
='${lispdir}:${leimdir}'
3809 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3810 '${datadir}/emacs/site-lisp'
3811 lisppath
='${locallisppath}:${standardlisppath}'
3812 etcdir
='${datadir}/emacs/${version}/etc'
3813 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3814 docdir
='${datadir}/emacs/${version}/etc'
3815 gamedir
='${localstatedir}/games/emacs'
3818 # Check whether --with-all was given.
3819 if test "${with_all+set}" = set; then :
3820 withval
=$with_all; with_features
=$withval
3829 # Check whether --with-pop was given.
3830 if test "${with_pop+set}" = set; then :
3833 with_pop
=$with_features
3836 if test "$with_pop" = yes; then
3837 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3842 # Check whether --with-kerberos was given.
3843 if test "${with_kerberos+set}" = set; then :
3844 withval
=$with_kerberos;
3849 if test "$with_kerberos" != no
; then
3850 $as_echo "#define KERBEROS 1" >>confdefs.h
3855 # Check whether --with-kerberos5 was given.
3856 if test "${with_kerberos5+set}" = set; then :
3857 withval
=$with_kerberos5;
3862 if test "${with_kerberos5}" != no
; then
3863 if test "${with_kerberos}" = no
; then
3865 $as_echo "#define KERBEROS 1" >>confdefs.h
3869 $as_echo "#define KERBEROS5 1" >>confdefs.h
3874 # Check whether --with-hesiod was given.
3875 if test "${with_hesiod+set}" = set; then :
3876 withval
=$with_hesiod;
3881 if test "$with_hesiod" != no
; then
3883 $as_echo "#define HESIOD 1" >>confdefs.h
3888 # Check whether --with-mmdf was given.
3889 if test "${with_mmdf+set}" = set; then :
3895 if test "$with_mmdf" != no
; then
3897 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3902 # Check whether --with-mail-unlink was given.
3903 if test "${with_mail_unlink+set}" = set; then :
3904 withval
=$with_mail_unlink;
3909 if test "$with_mail_unlink" != no
; then
3911 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3916 # Check whether --with-mailhost was given.
3917 if test "${with_mailhost+set}" = set; then :
3918 withval
=$with_mailhost;
3919 cat >>confdefs.h
<<_ACEOF
3920 #define MAILHOST "$withval"
3927 # Check whether --with-sound was given.
3928 if test "${with_sound+set}" = set; then :
3929 withval
=$with_sound;
3931 with_sound
=$with_features
3936 # Check whether --with-x-toolkit was given.
3937 if test "${with_x_toolkit+set}" = set; then :
3938 withval
=$with_x_toolkit; case "${withval}" in
3939 y | ye |
yes ) val
=gtk
;;
3941 l | lu | luc | luci | lucid
) val
=lucid
;;
3942 a |
at | ath | athe | athen | athena
) val
=athena
;;
3943 m | mo | mot | moti | motif
) val
=motif
;;
3944 g | gt | gtk
) val
=gtk
;;
3948 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3949 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3950 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3951 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3960 # Check whether --with-wide-int was given.
3961 if test "${with_wide_int+set}" = set; then :
3962 withval
=$with_wide_int;
3967 if test "$with_wide_int" = yes; then
3969 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3974 # Check whether --with-xpm was given.
3975 if test "${with_xpm+set}" = set; then :
3978 with_xpm
=$with_features
3982 # Check whether --with-jpeg was given.
3983 if test "${with_jpeg+set}" = set; then :
3986 with_jpeg
=$with_features
3990 # Check whether --with-tiff was given.
3991 if test "${with_tiff+set}" = set; then :
3994 with_tiff
=$with_features
3998 # Check whether --with-gif was given.
3999 if test "${with_gif+set}" = set; then :
4002 with_gif
=$with_features
4006 # Check whether --with-png was given.
4007 if test "${with_png+set}" = set; then :
4010 with_png
=$with_features
4014 # Check whether --with-rsvg was given.
4015 if test "${with_rsvg+set}" = set; then :
4018 with_rsvg
=$with_features
4022 # Check whether --with-xml2 was given.
4023 if test "${with_xml2+set}" = set; then :
4026 with_xml2
=$with_features
4030 # Check whether --with-imagemagick was given.
4031 if test "${with_imagemagick+set}" = set; then :
4032 withval
=$with_imagemagick;
4034 with_imagemagick
=$with_features
4039 # Check whether --with-xft was given.
4040 if test "${with_xft+set}" = set; then :
4043 with_xft
=$with_features
4047 # Check whether --with-libotf was given.
4048 if test "${with_libotf+set}" = set; then :
4049 withval
=$with_libotf;
4051 with_libotf
=$with_features
4055 # Check whether --with-m17n-flt was given.
4056 if test "${with_m17n_flt+set}" = set; then :
4057 withval
=$with_m17n_flt;
4059 with_m17n_flt
=$with_features
4064 # Check whether --with-toolkit-scroll-bars was given.
4065 if test "${with_toolkit_scroll_bars+set}" = set; then :
4066 withval
=$with_toolkit_scroll_bars;
4068 with_toolkit_scroll_bars
=$with_features
4072 # Check whether --with-xaw3d was given.
4073 if test "${with_xaw3d+set}" = set; then :
4074 withval
=$with_xaw3d;
4076 with_xaw3d
=$with_features
4080 # Check whether --with-xim was given.
4081 if test "${with_xim+set}" = set; then :
4084 with_xim
=$with_features
4088 # Check whether --with-ns was given.
4089 if test "${with_ns+set}" = set; then :
4097 # Check whether --with-gpm was given.
4098 if test "${with_gpm+set}" = set; then :
4101 with_gpm
=$with_features
4105 # Check whether --with-dbus was given.
4106 if test "${with_dbus+set}" = set; then :
4109 with_dbus
=$with_features
4113 # Check whether --with-gconf was given.
4114 if test "${with_gconf+set}" = set; then :
4115 withval
=$with_gconf;
4117 with_gconf
=$with_features
4121 # Check whether --with-gsettings was given.
4122 if test "${with_gsettings+set}" = set; then :
4123 withval
=$with_gsettings;
4125 with_gsettings
=$with_features
4129 # Check whether --with-selinux was given.
4130 if test "${with_selinux+set}" = set; then :
4131 withval
=$with_selinux;
4133 with_selinux
=$with_features
4137 # Check whether --with-gnutls was given.
4138 if test "${with_gnutls+set}" = set; then :
4139 withval
=$with_gnutls;
4141 with_gnutls
=$with_features
4145 ## For the times when you want to build Emacs but don't have
4146 ## a suitable makeinfo, and can live without the manuals.
4148 # Check whether --with-makeinfo was given.
4149 if test "${with_makeinfo+set}" = set; then :
4150 withval
=$with_makeinfo;
4152 with_makeinfo
=$with_features
4156 ## Makefile.in needs the cache file name.
4159 ## This is an option because I do not know if all info/man support
4160 ## compressed files, nor how to test if they do so.
4162 # Check whether --with-compress-info was given.
4163 if test "${with_compress_info+set}" = set; then :
4164 withval
=$with_compress_info;
4166 with_compress_info
=$with_features
4169 if test $with_compress_info = yes; then
4177 # Check whether --with-pkg-config-prog was given.
4178 if test "${with_pkg_config_prog+set}" = set; then :
4179 withval
=$with_pkg_config_prog;
4182 if test "X${with_pkg_config_prog}" != X
; then
4183 if test "${with_pkg_config_prog}" != yes; then
4184 PKG_CONFIG
="${with_pkg_config_prog}"
4190 # Check whether --with-crt-dir was given.
4191 if test "${with_crt_dir+set}" = set; then :
4192 withval
=$with_crt_dir;
4195 CRT_DIR
="${with_crt_dir}"
4198 # Check whether --with-gameuser was given.
4199 if test "${with_gameuser+set}" = set; then :
4200 withval
=$with_gameuser;
4203 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4204 && gameuser
="${with_gameuser}"
4205 test "X$gameuser" = X
&& gameuser
=games
4208 # Check whether --with-gnustep-conf was given.
4209 if test "${with_gnustep_conf+set}" = set; then :
4210 withval
=$with_gnustep_conf;
4213 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4214 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4215 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4216 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4218 # Check whether --enable-ns-self-contained was given.
4219 if test "${enable_ns_self_contained+set}" = set; then :
4220 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4222 EN_NS_SELF_CONTAINED
=yes
4226 # Check whether --enable-locallisppath was given.
4227 if test "${enable_locallisppath+set}" = set; then :
4228 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4230 elif test "${enableval}" != "yes"; then
4231 locallisppath
=${enableval}
4236 # Check whether --enable-checking was given.
4237 if test "${enable_checking+set}" = set; then :
4238 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4241 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4242 for check
in $ac_checking_flags
4245 # these set all the flags to specific states
4246 yes) ac_enable_checking
=1 ;;
4247 no
) ac_enable_checking
= ;
4248 ac_gc_check_stringbytes
= ;
4249 ac_gc_check_string_overrun
= ;
4250 ac_gc_check_string_free_list
= ;
4251 ac_xmalloc_overrun
= ;
4252 ac_gc_check_cons_list
= ;
4254 all
) ac_enable_checking
=1 ;
4255 ac_gc_check_stringbytes
=1 ;
4256 ac_gc_check_string_overrun
=1 ;
4257 ac_gc_check_string_free_list
=1 ;
4258 ac_xmalloc_overrun
=1 ;
4259 ac_gc_check_cons_list
=1 ;
4260 ac_glyphs_debug
=1 ;;
4261 # these enable particular checks
4262 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4263 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4264 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4265 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4266 conslist
) ac_gc_check_cons_list
=1 ;;
4267 glyphs
) ac_glyphs_debug
=1 ;;
4268 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4273 if test x
$ac_enable_checking != x
; then
4275 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4278 if test x
$ac_gc_check_stringbytes != x
; then
4280 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4283 if test x
$ac_gc_check_string_overrun != x
; then
4285 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4288 if test x
$ac_gc_check_string_free_list != x
; then
4290 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4293 if test x
$ac_xmalloc_overrun != x
; then
4295 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4298 if test x
$ac_gc_check_cons_list != x
; then
4300 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4303 if test x
$ac_glyphs_debug != x
; then
4305 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4309 # Check whether --enable-check-lisp-object-type was given.
4310 if test "${enable_check_lisp_object_type+set}" = set; then :
4311 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4313 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4320 # Check whether --enable-profiling was given.
4321 if test "${enable_profiling+set}" = set; then :
4322 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4325 if test x
$ac_enable_profiling != x
; then
4326 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4332 # Check whether --enable-autodepend was given.
4333 if test "${enable_autodepend+set}" = set; then :
4334 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4336 ac_enable_autodepend
=yes
4340 #### Make srcdir absolute, if it isn't already. It's important to
4341 #### avoid running the path through pwd unnecessarily, since pwd can
4342 #### give you automounter prefixes, which can go away. We do all this
4343 #### so Emacs can find its files when run uninstalled.
4344 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4349 ## We may be able to use the $PWD environment variable to make this
4350 ## absolute. But sometimes PWD is inaccurate.
4351 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4352 ## but that tested only for a well-formed and valid PWD,
4353 ## it did not object when PWD was well-formed and valid but just wrong.
4354 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4358 srcdir
="`(cd ${srcdir}; pwd)`"
4361 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4364 ### Canonicalize the configuration name.
4366 # Make sure we can run config.sub.
4367 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4368 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4371 $as_echo_n "checking build system type... " >&6; }
4372 if test "${ac_cv_build+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4375 ac_build_alias
=$build_alias
4376 test "x$ac_build_alias" = x
&&
4377 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4378 test "x$ac_build_alias" = x
&&
4379 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4380 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4381 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4385 $as_echo "$ac_cv_build" >&6; }
4386 case $ac_cv_build in
4388 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4391 ac_save_IFS
=$IFS; IFS
='-'
4397 # Remember, the first character of IFS is used to create $*,
4398 # except with old shells:
4401 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4405 $as_echo_n "checking host system type... " >&6; }
4406 if test "${ac_cv_host+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test "x$host_alias" = x
; then
4410 ac_cv_host
=$ac_cv_build
4412 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4413 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4418 $as_echo "$ac_cv_host" >&6; }
4421 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4424 ac_save_IFS
=$IFS; IFS
='-'
4430 # Remember, the first character of IFS is used to create $*,
4431 # except with old shells:
4434 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4438 configuration
=${host_alias-${build_alias-$host}}
4442 ### If you add support for a new configuration, add code to this
4443 ### switch statement to recognize your configuration name and select
4444 ### the appropriate operating system file.
4446 ### You would hope that you could choose an s/*.h
4447 ### file based on the operating system portion. However, it turns out
4448 ### that each s/*.h file is pretty manufacturer-specific.
4449 ### So we basically have to have a special case for each
4450 ### configuration name.
4452 ### As far as handling version numbers on operating systems is
4453 ### concerned, make sure things will fail in a fixable way. If
4454 ### /etc/MACHINES doesn't say anything about version numbers, be
4455 ### prepared to handle anything reasonably. If version numbers
4456 ### matter, be sure /etc/MACHINES says something about it.
4458 opsys
='' unported
=no
4459 case "${canonical}" in
4461 ## GNU/Linux and similar ports
4471 ## FreeBSD kernel + glibc based userland
4486 ## Apple Darwin / Mac OS X
4488 case "${canonical}" in
4495 ## Use fink packages if available.
4496 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4497 ## if test -d /sw/include && test -d /sw/lib; then
4498 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4499 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4503 ## HP 9000 series 700 and 800, running HP/UX
4504 hppa
*-hp-hpux10.2
* )
4507 hppa
*-hp-hpux1[1-9]* )
4509 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4513 rs6000-ibm-aix4.
[23]* )
4516 powerpc-ibm-aix4.
[23]* )
4519 rs6000-ibm-aix
[56]* )
4522 powerpc-ibm-aix
[56]* )
4526 ## Silicon Graphics machines
4530 # Without defining _LANGUAGE_C, things get masked out in the headers
4531 # so that, for instance, grepping for `free' in stdlib.h fails and
4532 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4533 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4538 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4539 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4540 case "${canonical}" in
4542 amd64-
*-*|x86_64-
*-*) ;;
4546 case "${canonical}" in
4547 *-sunos5.6
* |
*-solaris2.6
* )
4551 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4553 emacs_check_sunpro_c
=yes
4555 *-sunos5* |
*-solaris* )
4557 emacs_check_sunpro_c
=yes
4560 ## Watch out for a compiler that we know will not work.
4561 case "${canonical}" in
4562 *-solaris* |
*-sunos5* )
4563 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4564 ## /usr/ucb/cc doesn't work;
4565 ## we should find some other compiler that does work.
4573 ## Intel 386 machines where we don't care about the manufacturer.
4575 case "${canonical}" in
4576 *-cygwin ) opsys
=cygwin
;;
4577 *-darwin* ) opsys
=darwin
;;
4578 *-sysv4.2uw
* ) opsys
=unixware
;;
4579 *-sysv5uw* ) opsys
=unixware
;;
4580 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4581 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4590 ### If the code above didn't choose an operating system, just choose
4591 ### an operating system based on the configuration name. You really
4592 ### only want to use this when you have no idea what the right
4593 ### operating system is; if you know what operating systems a machine
4594 ### runs, it's cleaner to make it explicit in the case statement
4596 if test x
"${opsys}" = x
; then
4597 case "${canonical}" in
4598 *-gnu* ) opsys
=gnu
;;
4607 if test $unported = yes; then
4608 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4609 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4613 #### Choose a compiler.
4616 ac_cpp
='$CPP $CPPFLAGS'
4617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4622 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if test "${ac_cv_prog_CC+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 if test -n "$CC"; then
4629 ac_cv_prog_CC
="$CC" # Let the user override the test.
4631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir
=.
4636 for ac_exec_ext
in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 if test -n "$CC"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651 $as_echo "$CC" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4659 if test -z "$ac_cv_prog_CC"; then
4661 # Extract the first word of "gcc", so it can be a program name with args.
4662 set dummy gcc
; ac_word
=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$ac_ct_CC"; then
4669 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir
=.
4676 for ac_exec_ext
in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_CC
="gcc"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4689 if test -n "$ac_ct_CC"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4691 $as_echo "$ac_ct_CC" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4697 if test "x$ac_ct_CC" = x
; then
4700 case $cross_compiling:$ac_tool_warned in
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704 ac_tool_warned
=yes ;;
4712 if test -z "$CC"; then
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4715 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_CC+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -n "$CC"; then
4722 ac_cv_prog_CC
="$CC" # Let the user override the test.
4724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir
=.
4729 for ac_exec_ext
in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 if test -n "$CC"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4744 $as_echo "$CC" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4753 if test -z "$CC"; then
4754 # Extract the first word of "cc", so it can be a program name with args.
4755 set dummy cc
; ac_word
=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_CC+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4761 if test -n "$CC"; then
4762 ac_cv_prog_CC
="$CC" # Let the user override the test.
4765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir
=.
4770 for ac_exec_ext
in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4773 ac_prog_rejected
=yes
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 if test $ac_prog_rejected = yes; then
4785 # We found a bogon in the path, so make sure we never use it.
4786 set dummy
$ac_cv_prog_CC
4788 if test $# != 0; then
4789 # We chose a different compiler from the bogus one.
4790 # However, it has the same basename, so the bogon will be chosen
4791 # first if we set CC to just the basename; use the full file name.
4793 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4799 if test -n "$CC"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4801 $as_echo "$CC" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4809 if test -z "$CC"; then
4810 if test -n "$ac_tool_prefix"; then
4811 for ac_prog
in cl.exe
4813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4814 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_CC+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$CC"; then
4821 ac_cv_prog_CC
="$CC" # Let the user override the test.
4823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir
=.
4828 for ac_exec_ext
in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 if test -n "$CC"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4843 $as_echo "$CC" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4850 test -n "$CC" && break
4853 if test -z "$CC"; then
4855 for ac_prog
in cl.exe
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy
$ac_prog; ac_word
=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$ac_ct_CC"; then
4865 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir
=.
4872 for ac_exec_ext
in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_CC
="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4885 if test -n "$ac_ct_CC"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4887 $as_echo "$ac_ct_CC" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$ac_ct_CC" && break
4897 if test "x$ac_ct_CC" = x
; then
4900 case $cross_compiling:$ac_tool_warned in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904 ac_tool_warned
=yes ;;
4913 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4915 as_fn_error
"no acceptable C compiler found in \$PATH
4916 See \`config.log' for more details." "$LINENO" 5; }
4918 # Provide some information about the compiler.
4919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4922 for ac_option
in --version -v -V -qversion; do
4923 { { ac_try
="$ac_compiler $ac_option >&5"
4925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4929 $as_echo "$ac_try_echo"; } >&5
4930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4932 if test -s conftest.err; then
4934 ... rest of stderr output deleted ...
4935 10q' conftest.err >conftest.er1
4936 cat conftest.er1 >&5
4938 rm -f conftest.er1 conftest.err
4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4940 test $ac_status = 0; }
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4954 ac_clean_files_save=$ac_clean_files
4955 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4956 # Try to create an executable without -o first, disregard a.out.
4957 # It will help us diagnose broken compilers, and finding out an intuition
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4960 $as_echo_n "checking whether the C compiler works... " >&6; }
4961 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4963 # The possible output files:
4964 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4967 for ac_file in $ac_files
4970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4971 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4976 if { { ac_try="$ac_link_default"
4978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4979 *) ac_try_echo
=$ac_try;;
4981 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4982 $as_echo "$ac_try_echo"; } >&5
4983 (eval "$ac_link_default") 2>&5
4985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }; then :
4987 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4988 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4989 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4990 # so that the user can short-circuit this test for compilers unknown to
4992 for ac_file
in $ac_files ''
4994 test -f "$ac_file" ||
continue
4996 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4999 # We found the default executable, but exeext='' is most
5003 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5005 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5007 # We set ac_cv_exeext here because the later test for it is not
5008 # safe: cross compilers may not add the suffix if given an `-o'
5009 # argument, so we may need to know it at that point already.
5010 # Even if this section looks crufty: it has the advantage of
5017 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5022 if test -z "$ac_file"; then :
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 $as_echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.
$ac_ext >&5
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 { as_fn_set_status
77
5031 as_fn_error
"C compiler cannot create executables
5032 See \`config.log' for more details." "$LINENO" 5; }; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5038 $as_echo_n "checking for C compiler default output file name... " >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5040 $as_echo "$ac_file" >&6; }
5041 ac_exeext
=$ac_cv_exeext
5043 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5044 ac_clean_files
=$ac_clean_files_save
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5046 $as_echo_n "checking for suffix of executables... " >&6; }
5047 if { { ac_try
="$ac_link"
5049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5053 $as_echo "$ac_try_echo"; } >&5
5054 (eval "$ac_link") 2>&5
5056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057 test $ac_status = 0; }; then :
5058 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5059 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5060 # work properly (i.e., refer to `conftest.exe'), while it won't with
5062 for ac_file
in conftest.exe conftest conftest.
*; do
5063 test -f "$ac_file" ||
continue
5065 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5066 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5074 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5075 See \`config.log' for more details." "$LINENO" 5; }
5077 rm -f conftest conftest
$ac_cv_exeext
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5079 $as_echo "$ac_cv_exeext" >&6; }
5081 rm -f conftest.
$ac_ext
5082 EXEEXT
=$ac_cv_exeext
5084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5090 FILE *f = fopen ("conftest.out", "w");
5091 return ferror (f) || fclose (f) != 0;
5097 ac_clean_files
="$ac_clean_files conftest.out"
5098 # Check that the compiler produces executables we can run. If not, either
5099 # the compiler is broken, or we cross compile.
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5101 $as_echo_n "checking whether we are cross compiling... " >&6; }
5102 if test "$cross_compiling" != yes; then
5103 { { ac_try
="$ac_link"
5105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5109 $as_echo "$ac_try_echo"; } >&5
5110 (eval "$ac_link") 2>&5
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }
5114 if { ac_try='./conftest$ac_cv_exeext'
5115 { { case "(($ac_try" in
5116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5117 *) ac_try_echo
=$ac_try;;
5119 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5120 $as_echo "$ac_try_echo"; } >&5
5121 (eval "$ac_try") 2>&5
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; }; then
5127 if test "$cross_compiling" = maybe
; then
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 as_fn_error
"cannot run C compiled programs.
5133 If you meant to cross compile, use \`--host'.
5134 See \`config.log' for more details." "$LINENO" 5; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5139 $as_echo "$cross_compiling" >&6; }
5141 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5142 ac_clean_files
=$ac_clean_files_save
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5144 $as_echo_n "checking for suffix of object files... " >&6; }
5145 if test "${ac_cv_objext+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5159 rm -f conftest.o conftest.obj
5160 if { { ac_try
="$ac_compile"
5162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5166 $as_echo "$ac_try_echo"; } >&5
5167 (eval "$ac_compile") 2>&5
5169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5170 test $ac_status = 0; }; then :
5171 for ac_file in conftest.o conftest.obj conftest.*; do
5172 test -f "$ac_file" || continue;
5174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5180 $as_echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5185 as_fn_error "cannot compute suffix of object files
: cannot compile
5186 See \
`config.log' for more details." "$LINENO" 5; }
5188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5191 $as_echo "$ac_cv_objext" >&6; }
5192 OBJEXT=$ac_cv_objext
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5196 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5197 $as_echo_n "(cached) " >&6
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5213 if ac_fn_c_try_compile "$LINENO"; then :
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5224 if test $ac_compiler_gnu = yes; then
5229 ac_test_CFLAGS=${CFLAGS+set}
5230 ac_save_CFLAGS=$CFLAGS
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5233 if test "${ac_cv_prog_cc_g+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 ac_save_c_werror_flag=$ac_c_werror_flag
5237 ac_c_werror_flag=yes
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5251 if ac_fn_c_try_compile "$LINENO"; then :
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5266 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_c_werror_flag=$ac_save_c_werror_flag
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5282 if ac_fn_c_try_compile "$LINENO"; then :
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_c_werror_flag=$ac_save_c_werror_flag
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5293 $as_echo "$ac_cv_prog_cc_g" >&6; }
5294 if test "$ac_test_CFLAGS" = set; then
5295 CFLAGS=$ac_save_CFLAGS
5296 elif test $ac_cv_prog_cc_g = yes; then
5297 if test "$GCC" = yes; then
5303 if test "$GCC" = yes; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5311 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 ac_cv_prog_cc_c89=no
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 #include <sys/types.h>
5321 #include <sys/stat.h>
5322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5323 struct buf { int x; };
5324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5325 static char *e (p, i)
5331 static char *f (char * (*g) (char **, int), char **p, ...)
5336 s = g (p, va_arg (v,int));
5341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5342 function prototypes and stuff, but not '\xHH' hex character constants.
5343 These don't provoke an error unfortunately, instead are silently treated
5344 as 'x'. The following induces an error, until -std is added to get
5345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5346 array size at least. It's necessary to write '\x00'==0 to get something
5347 that's true only with -std. */
5348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5351 inside strings and character constants. */
5353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5355 int test (int i, double x);
5356 struct s1 {int (*f) (int a);};
5357 struct s2 {int (*f) (double a);};
5358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5372 CC="$ac_save_CC $ac_arg"
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 ac_cv_prog_cc_c89=$ac_arg
5376 rm -f core conftest.err conftest.$ac_objext
5377 test "x$ac_cv_prog_cc_c89" != "xno" && break
5379 rm -f conftest.$ac_ext
5384 case "x$ac_cv_prog_cc_c89" in
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5387 $as_echo "none needed" >&6; } ;;
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5390 $as_echo "unsupported" >&6; } ;;
5392 CC="$CC $ac_cv_prog_cc_c89"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5396 if test "x$ac_cv_prog_cc_c89" != xno; then :
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 DEPDIR="${am__leading_dot}deps"
5407 ac_config_commands="$ac_config_commands depfiles"
5410 am_make=${MAKE-make}
5411 cat > confinc << 'END'
5413 @echo this is the am__doit target
5416 # If we don't find an include directive, just comment out the code.
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5418 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5422 # First try GNU make style include.
5423 echo "include confinc" > confmf
5424 # Ignore all kinds of additional output from `make'.
5425 case `$am_make -s -f confmf 2> /dev/null` in #(
5426 *the\ am__doit\ target*)
5432 # Now try BSD make style include.
5433 if test "$am__include" = "#"; then
5434 echo '.include
"confinc"' > confmf
5435 case `$am_make -s -f confmf 2> /dev/null` in #(
5436 *the\ am__doit\ target*)
5437 am__include=.include
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5446 $as_echo "$_am_result" >&6; }
5447 rm -f confinc confmf
5449 # Check whether --enable-dependency-tracking was given.
5450 if test "${enable_dependency_tracking+set}" = set; then :
5451 enableval=$enable_dependency_tracking;
5454 if test "x$enable_dependency_tracking" != xno; then
5455 am_depcomp="$ac_aux_dir/depcomp"
5458 if test "x$enable_dependency_tracking" != xno
; then
5468 depcc
="$CC" am_compiler_list
=
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5471 $as_echo_n "checking dependency style of $depcc... " >&6; }
5472 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5476 # We make a subdir and do the tests there. Otherwise we can end up
5477 # making bogus files that we don't know about and never remove. For
5478 # instance it was reported that on HP-UX the gcc test will end up
5479 # making a dummy file named `D' -- because `-MD' means `put the output
5482 # Copy depcomp to subdir because otherwise we won't find it if we're
5483 # using a relative directory.
5484 cp "$am_depcomp" conftest.dir
5486 # We will build objects and dependencies in a subdirectory because
5487 # it helps to detect inapplicable dependency modes. For instance
5488 # both Tru64's cc and ICC support -MD to output dependencies as a
5489 # side effect of compilation, but ICC will put the dependencies in
5490 # the current directory while Tru64 will put them in the object
5494 am_cv_CC_dependencies_compiler_type
=none
5495 if test "$am_compiler_list" = ""; then
5496 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5499 case " $depcc " in #(
5500 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5503 for depmode
in $am_compiler_list; do
5504 # Setup a source with many dependencies, because some compilers
5505 # like to wrap large dependency lists on column 80 (with \), and
5506 # we should not choose a depcomp mode which is confused by this.
5508 # We need to recreate these files for each test, as the compiler may
5509 # overwrite some of them when testing with obscure command lines.
5510 # This happens at least with the AIX C compiler.
5512 for i
in 1 2 3 4 5 6; do
5513 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5515 # Solaris 8's {/usr,}/bin/sh.
5516 touch sub
/conftst
$i.h
5518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5521 # mode. It turns out that the SunPro C++ compiler does not properly
5522 # handle `-M -o', and we need to detect this. Also, some Intel
5523 # versions had trouble with output in subdirs
5524 am__obj
=sub
/conftest.
${OBJEXT-o}
5525 am__minus_obj
="-o $am__obj"
5528 # This depmode causes a compiler race in universal mode.
5529 test "$am__universal" = false ||
continue
5532 # after this tag, mechanisms are not by side-effect, so they'll
5533 # only be used when explicitly requested
5534 if test "x$enable_dependency_tracking" = xyes
; then
5540 msvisualcpp | msvcmsys
)
5541 # This compiler won't grok `-c -o', but also, the minuso test has
5542 # not run yet. These depmodes are late enough in the game, and
5543 # so weak that their functioning should not be impacted.
5544 am__obj
=conftest.
${OBJEXT-o}
5549 if depmode
=$depmode \
5550 source=sub
/conftest.c object
=$am__obj \
5551 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5552 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5553 >/dev
/null
2>conftest.err
&&
5554 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5555 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5556 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5557 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5558 # icc doesn't choke on unknown options, it will just issue warnings
5559 # or remarks (even with -Werror). So we grep stderr for any message
5560 # that says an option was ignored or not supported.
5561 # When given -MP, icc 7.0 and 7.1 complain thusly:
5562 # icc: Command line warning: ignoring option '-M'; no argument required
5563 # The diagnosis changed in icc 8.0:
5564 # icc: Command line remark: option '-MP' not supported
5565 if (grep 'ignoring option' conftest.err ||
5566 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5567 am_cv_CC_dependencies_compiler_type
=$depmode
5576 am_cv_CC_dependencies_compiler_type
=none
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5582 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5585 test "x$enable_dependency_tracking" != xno \
5586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5588 am__fastdepCC_FALSE
='#'
5590 am__fastdepCC_TRUE
='#'
5591 am__fastdepCC_FALSE
=
5595 if test "x$CC" != xcc
; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5597 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5600 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5602 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5603 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5604 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5605 $as_echo_n "(cached) " >&6
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5618 # Make sure it works both with $CC and with simple cc.
5619 # We do the test twice because some compilers refuse to overwrite an
5620 # existing .o file with -o, though they will create one.
5621 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5623 if { { case "(($ac_try" in
5624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5628 $as_echo "$ac_try_echo"; } >&5
5629 (eval "$ac_try") 2>&5
5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632 test $ac_status = 0; } &&
5633 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5635 *) ac_try_echo
=$ac_try;;
5637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5638 $as_echo "$ac_try_echo"; } >&5
5639 (eval "$ac_try") 2>&5
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; };
5644 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5645 if test "x$CC" != xcc
; then
5646 # Test first that cc exists at all.
5647 if { ac_try
='cc -c conftest.$ac_ext >&5'
5648 { { case "(($ac_try" in
5649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5653 $as_echo "$ac_try_echo"; } >&5
5654 (eval "$ac_try") 2>&5
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }; }; then
5658 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5660 if { { case "(($ac_try" in
5661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5662 *) ac_try_echo
=$ac_try;;
5664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; } &&
5670 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5675 $as_echo "$ac_try_echo"; } >&5
5676 (eval "$ac_try") 2>&5
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; };
5684 # cc exists but doesn't like -o.
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5692 rm -f core conftest*
5695 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5702 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5706 # FIXME: we rely on the cache variable name because
5707 # there is no other way.
5709 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5710 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5711 if test "$am_t" != yes; then
5712 # Losing compiler, so override with the script.
5713 # FIXME: It is wrong to rewrite CC.
5714 # But if we don't then we get into trouble of one sort or another.
5715 # A longer-term fix would be to have automake use am__CC in this case,
5716 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5717 CC="$am_aux_dir/compile $CC"
5722 if test x$GCC = xyes; then
5723 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5725 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5728 # Avoid gnulib's threadlib module, as we do threads our own way.
5731 # Initialize gnulib right after choosing the compiler.
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5740 # On Suns, sometimes $CPP names a directory.
5741 if test -n "$CPP" && test -d "$CPP"; then
5744 if test -z "$CPP"; then
5745 if test "${ac_cv_prog_CPP+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5748 # Double quotes because CPP needs to be expanded
5749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5752 for ac_c_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5763 # include <limits.h>
5765 # include <assert.h>
5769 if ac_fn_c_try_cpp "$LINENO"; then :
5772 # Broken: fails on valid input.
5775 rm -f conftest.err conftest.$ac_ext
5777 # OK, works on sane cases. Now check whether nonexistent headers
5778 # can be detected and how.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5784 # Broken: success on invalid input.
5787 # Passes both tests.
5791 rm -f conftest.err conftest.$ac_ext
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.
$ac_ext
5796 if $ac_preproc_ok; then :
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5809 $as_echo "$CPP" >&6; }
5811 for ac_c_preproc_warn_flag
in '' yes
5813 # Use a header file that comes with gcc, so configuring glibc
5814 # with a fresh cross-compiler works.
5815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816 # <limits.h> exists even on freestanding compilers.
5817 # On the NeXT, cc -E runs the code through the compiler's parser,
5818 # not just through cpp. "Syntax error" is here to catch this case.
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5822 # include <limits.h>
5824 # include <assert.h>
5828 if ac_fn_c_try_cpp
"$LINENO"; then :
5831 # Broken: fails on valid input.
5834 rm -f conftest.err conftest.
$ac_ext
5836 # OK, works on sane cases. Now check whether nonexistent headers
5837 # can be detected and how.
5838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <ac_nonexistent.h>
5842 if ac_fn_c_try_cpp
"$LINENO"; then :
5843 # Broken: success on invalid input.
5846 # Passes both tests.
5850 rm -f conftest.err conftest.
$ac_ext
5853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5854 rm -f conftest.err conftest.
$ac_ext
5855 if $ac_preproc_ok; then :
5858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5860 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5861 See \`config.log' for more details." "$LINENO" 5; }
5865 ac_cpp
='$CPP $CPPFLAGS'
5866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5872 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5876 if test -z "$GREP"; then
5877 ac_path_GREP_found
=false
5878 # Loop through the user's path and test for each of PROGNAME-LIST
5879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5880 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5883 test -z "$as_dir" && as_dir
=.
5884 for ac_prog
in grep ggrep
; do
5885 for ac_exec_ext
in '' $ac_executable_extensions; do
5886 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5887 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5888 # Check for GNU ac_path_GREP and select it if it is found.
5889 # Check for GNU $ac_path_GREP
5890 case `"$ac_path_GREP" --version 2>&1` in
5892 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5895 $as_echo_n 0123456789 >"conftest.in"
5898 cat "conftest.in" "conftest.in" >"conftest.tmp"
5899 mv "conftest.tmp" "conftest.in"
5900 cp "conftest.in" "conftest.nl"
5901 $as_echo 'GREP' >> "conftest.nl"
5902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5903 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5904 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5906 # Best one so far, save it but keep looking for a better one
5907 ac_cv_path_GREP
="$ac_path_GREP"
5908 ac_path_GREP_max
=$ac_count
5910 # 10*(2^10) chars as input seems more than enough
5911 test $ac_count -gt 10 && break
5913 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5916 $ac_path_GREP_found && break 3
5921 if test -z "$ac_cv_path_GREP"; then
5922 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5925 ac_cv_path_GREP
=$GREP
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5930 $as_echo "$ac_cv_path_GREP" >&6; }
5931 GREP
="$ac_cv_path_GREP"
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5935 $as_echo_n "checking for egrep... " >&6; }
5936 if test "${ac_cv_path_EGREP+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5939 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5940 then ac_cv_path_EGREP
="$GREP -E"
5942 if test -z "$EGREP"; then
5943 ac_path_EGREP_found
=false
5944 # Loop through the user's path and test for each of PROGNAME-LIST
5945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5946 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5949 test -z "$as_dir" && as_dir
=.
5950 for ac_prog
in egrep; do
5951 for ac_exec_ext
in '' $ac_executable_extensions; do
5952 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5954 # Check for GNU ac_path_EGREP and select it if it is found.
5955 # Check for GNU $ac_path_EGREP
5956 case `"$ac_path_EGREP" --version 2>&1` in
5958 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5961 $as_echo_n 0123456789 >"conftest.in"
5964 cat "conftest.in" "conftest.in" >"conftest.tmp"
5965 mv "conftest.tmp" "conftest.in"
5966 cp "conftest.in" "conftest.nl"
5967 $as_echo 'EGREP' >> "conftest.nl"
5968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5969 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5970 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5972 # Best one so far, save it but keep looking for a better one
5973 ac_cv_path_EGREP
="$ac_path_EGREP"
5974 ac_path_EGREP_max
=$ac_count
5976 # 10*(2^10) chars as input seems more than enough
5977 test $ac_count -gt 10 && break
5979 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5982 $ac_path_EGREP_found && break 3
5987 if test -z "$ac_cv_path_EGREP"; then
5988 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5991 ac_cv_path_EGREP
=$EGREP
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5997 $as_echo "$ac_cv_path_EGREP" >&6; }
5998 EGREP
="$ac_cv_path_EGREP"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6004 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6005 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6018 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6019 gl_cv_c_amsterdam_compiler
=yes
6021 gl_cv_c_amsterdam_compiler
=no
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6028 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6029 if test -z "$AR"; then
6030 if test $gl_cv_c_amsterdam_compiler = yes; then
6032 if test -z "$ARFLAGS"; then
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR
="$AR" # Let the user override the test.
6047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir
=.
6052 for ac_exec_ext
in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 if test -n "$AR"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067 $as_echo "$AR" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6075 if test -z "$ac_cv_prog_AR"; then
6077 # Extract the first word of "ar", so it can be a program name with args.
6078 set dummy
ar; ac_word
=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir
=.
6092 for ac_exec_ext
in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_AR
="ar"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6113 if test "x$ac_ct_AR" = x
; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned
=yes ;;
6128 if test -z "$ARFLAGS"; then
6133 if test -z "$ARFLAGS"; then
6139 if test -z "$RANLIB"; then
6140 if test $gl_cv_c_amsterdam_compiler = yes; then
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6151 if test -n "$RANLIB"; then
6152 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir
=.
6159 for ac_exec_ext
in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 RANLIB
=$ac_cv_prog_RANLIB
6172 if test -n "$RANLIB"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6174 $as_echo "$RANLIB" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6182 if test -z "$ac_cv_prog_RANLIB"; then
6183 ac_ct_RANLIB
=$RANLIB
6184 # Extract the first word of "ranlib", so it can be a program name with args.
6185 set dummy ranlib
; ac_word
=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$ac_ct_RANLIB"; then
6192 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir
=.
6199 for ac_exec_ext
in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6212 if test -n "$ac_ct_RANLIB"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6214 $as_echo "$ac_ct_RANLIB" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6220 if test "x$ac_ct_RANLIB" = x
; then
6223 case $cross_compiling:$ac_tool_warned in
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned
=yes ;;
6229 RANLIB
=$ac_ct_RANLIB
6232 RANLIB
="$ac_cv_prog_RANLIB"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if test "${ac_cv_header_stdc+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6260 ac_cv_header_stdc
=yes
6262 ac_cv_header_stdc
=no
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev
/null
2>&1; then :
6277 ac_cv_header_stdc
=no
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev
/null
2>&1; then :
6294 ac_cv_header_stdc
=no
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6332 if ac_fn_c_try_run
"$LINENO"; then :
6335 ac_cv_header_stdc
=no
6337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6352 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6353 inttypes.h stdint.h unistd.h
6355 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6358 eval as_val
=\$
$as_ac_Header
6359 if test "x$as_val" = x
""yes; then :
6360 cat >>confdefs.h
<<_ACEOF
6361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6373 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6380 if test "$MINIX" = yes; then
6382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6388 $as_echo "#define _MINIX 1" >>confdefs.h
6395 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6402 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6403 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6409 # define __EXTENSIONS__ 1
6410 $ac_includes_default
6419 if ac_fn_c_try_compile
"$LINENO"; then :
6420 ac_cv_safe_to_define___extensions__
=yes
6422 ac_cv_safe_to_define___extensions__
=no
6424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6427 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6428 test $ac_cv_safe_to_define___extensions__ = yes &&
6429 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6431 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6433 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6448 # Check whether --enable-largefile was given.
6449 if test "${enable_largefile+set}" = set; then :
6450 enableval
=$enable_largefile;
6453 if test "$enable_largefile" != no
; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6456 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6457 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 ac_cv_sys_largefile_CC
=no
6461 if test "$GCC" != yes; then
6464 # IRIX 6.2 and later do not support large files by default,
6465 # so use the C compiler's -n32 option if that helps.
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <sys/types.h>
6469 /* Check that off_t can represent 2**63 - 1 correctly.
6470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6471 since some C++ compilers masquerading as C compilers
6472 incorrectly reject 9223372036854775807. */
6473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6475 && LARGE_OFF_T % 2147483647 == 1)
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6488 rm -f core conftest.err conftest.
$ac_objext
6490 if ac_fn_c_try_compile
"$LINENO"; then :
6491 ac_cv_sys_largefile_CC
=' -n32'; break
6493 rm -f core conftest.err conftest.
$ac_objext
6497 rm -f conftest.
$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6501 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6502 if test "$ac_cv_sys_largefile_CC" != no
; then
6503 CC
=$CC$ac_cv_sys_largefile_CC
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6507 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6508 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 #include <sys/types.h>
6515 /* Check that off_t can represent 2**63 - 1 correctly.
6516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6517 since some C++ compilers masquerading as C compilers
6518 incorrectly reject 9223372036854775807. */
6519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6521 && LARGE_OFF_T % 2147483647 == 1)
6531 if ac_fn_c_try_compile
"$LINENO"; then :
6532 ac_cv_sys_file_offset_bits
=no
; break
6534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 #define _FILE_OFFSET_BITS 64
6538 #include <sys/types.h>
6539 /* Check that off_t can represent 2**63 - 1 correctly.
6540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6541 since some C++ compilers masquerading as C compilers
6542 incorrectly reject 9223372036854775807. */
6543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6545 && LARGE_OFF_T % 2147483647 == 1)
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 ac_cv_sys_file_offset_bits
=64; break
6558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 ac_cv_sys_file_offset_bits
=unknown
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6564 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6565 case $ac_cv_sys_file_offset_bits in #(
6568 cat >>confdefs.h
<<_ACEOF
6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6574 if test $ac_cv_sys_file_offset_bits = unknown
; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6576 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6577 if test "${ac_cv_sys_large_files+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 #include <sys/types.h>
6584 /* Check that off_t can represent 2**63 - 1 correctly.
6585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6586 since some C++ compilers masquerading as C compilers
6587 incorrectly reject 9223372036854775807. */
6588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6590 && LARGE_OFF_T % 2147483647 == 1)
6600 if ac_fn_c_try_compile
"$LINENO"; then :
6601 ac_cv_sys_large_files
=no
; break
6603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 #define _LARGE_FILES 1
6607 #include <sys/types.h>
6608 /* Check that off_t can represent 2**63 - 1 correctly.
6609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6610 since some C++ compilers masquerading as C compilers
6611 incorrectly reject 9223372036854775807. */
6612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6614 && LARGE_OFF_T % 2147483647 == 1)
6624 if ac_fn_c_try_compile
"$LINENO"; then :
6625 ac_cv_sys_large_files
=1; break
6627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6628 ac_cv_sys_large_files
=unknown
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6633 $as_echo "$ac_cv_sys_large_files" >&6; }
6634 case $ac_cv_sys_large_files in #(
6637 cat >>confdefs.h
<<_ACEOF
6638 #define _LARGE_FILES $ac_cv_sys_large_files
6648 case $ac_cv_prog_cc_stdc in #(
6650 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6653 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6654 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6657 ac_cv_prog_cc_c99
=no
6659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6662 #include <stdbool.h>
6667 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6668 #define debug(...) fprintf (stderr, __VA_ARGS__)
6669 #define showlist(...) puts (#__VA_ARGS__)
6670 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6672 test_varargs_macros (void)
6677 debug ("X = %d\n", x);
6678 showlist (The first, second, and third items.);
6679 report (x>y, "x is %d but y is %d", x, y);
6682 // Check long long types.
6683 #define BIG64 18446744073709551615ull
6684 #define BIG32 4294967295ul
6685 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6687 your preprocessor is broken;
6691 your preprocessor is broken;
6693 static long long int bignum = -9223372036854775807LL;
6694 static unsigned long long int ubignum = BIG64;
6696 struct incomplete_array
6704 const wchar_t *name;
6708 typedef const char *ccp;
6711 test_restrict (ccp restrict text)
6713 // See if C++-style comments work.
6714 // Iterate through items via the restricted pointer.
6715 // Also check for declarations in for loops.
6716 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6721 // Check varargs and va_copy.
6723 test_varargs (const char *format, ...)
6726 va_start (args, format);
6728 va_copy (args_copy, args);
6739 str = va_arg (args_copy, const char *);
6742 number = va_arg (args_copy, int);
6745 fnumber = va_arg (args_copy, double);
6760 _Bool success = false;
6763 if (test_restrict ("String literal") == 0)
6765 char *restrict newvar = "Another string";
6768 test_varargs ("s, d' f .", "string", 65, 34.234);
6769 test_varargs_macros ();
6771 // Check flexible array members.
6772 struct incomplete_array *ia =
6773 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6775 for (int i = 0; i < ia->datasize; ++i)
6776 ia->data[i] = i * 1.234;
6778 // Check named initializers.
6779 struct named_init ni = {
6781 .name = L"Test wide string",
6782 .average = 543.34343,
6787 int dynamic_array[ni.number];
6788 dynamic_array[ni.number - 1] = 543;
6790 // work around unused variable warnings
6791 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6792 || dynamic_array[ni.number - 1] != 543);
6798 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6800 CC
="$ac_save_CC $ac_arg"
6801 if ac_fn_c_try_compile
"$LINENO"; then :
6802 ac_cv_prog_cc_c99
=$ac_arg
6804 rm -f core conftest.err conftest.
$ac_objext
6805 test "x$ac_cv_prog_cc_c99" != "xno" && break
6807 rm -f conftest.
$ac_ext
6812 case "x$ac_cv_prog_cc_c99" in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6815 $as_echo "none needed" >&6; } ;;
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6818 $as_echo "unsupported" >&6; } ;;
6820 CC
="$CC $ac_cv_prog_cc_c99"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6822 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6824 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6825 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6829 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6830 $as_echo_n "(cached) " >&6
6832 ac_cv_prog_cc_c89
=no
6834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6838 #include <sys/types.h>
6839 #include <sys/stat.h>
6840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6841 struct buf { int x; };
6842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6843 static char *e (p, i)
6849 static char *f (char * (*g) (char **, int), char **p, ...)
6854 s = g (p, va_arg (v,int));
6859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6860 function prototypes and stuff, but not '\xHH' hex character constants.
6861 These don't provoke an error unfortunately, instead are silently treated
6862 as 'x'. The following induces an error, until -std is added to get
6863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6864 array size at least. It's necessary to write '\x00'==0 to get something
6865 that's true only with -std. */
6866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6869 inside strings and character constants. */
6871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6873 int test (int i, double x);
6874 struct s1 {int (*f) (int a);};
6875 struct s2 {int (*f) (double a);};
6876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6887 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6890 CC
="$ac_save_CC $ac_arg"
6891 if ac_fn_c_try_compile
"$LINENO"; then :
6892 ac_cv_prog_cc_c89
=$ac_arg
6894 rm -f core conftest.err conftest.
$ac_objext
6895 test "x$ac_cv_prog_cc_c89" != "xno" && break
6897 rm -f conftest.
$ac_ext
6902 case "x$ac_cv_prog_cc_c89" in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6905 $as_echo "none needed" >&6; } ;;
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6908 $as_echo "unsupported" >&6; } ;;
6910 CC
="$CC $ac_cv_prog_cc_c89"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6914 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6915 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6917 ac_cv_prog_cc_stdc
=no
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6924 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6925 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6929 case $ac_cv_prog_cc_stdc in #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6932 $as_echo "unsupported" >&6; } ;; #(
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6935 $as_echo "none needed" >&6; } ;; #(
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6938 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6943 # Code from module alloca-opt:
6944 # Code from module allocator:
6945 # Code from module c-ctype:
6946 # Code from module c-strcase:
6947 # Code from module careadlinkat:
6948 # Code from module clock-time:
6949 # Code from module crypto/md5:
6950 # Code from module crypto/sha1:
6951 # Code from module crypto/sha256:
6952 # Code from module crypto/sha512:
6953 # Code from module dosname:
6954 # Code from module dtoastr:
6955 # Code from module dtotimespec:
6956 # Code from module dup2:
6957 # Code from module environ:
6958 # Code from module execinfo:
6959 # Code from module extensions:
6961 # Code from module extern-inline:
6962 # Code from module filemode:
6963 # Code from module getloadavg:
6964 # Code from module getopt-gnu:
6965 # Code from module getopt-posix:
6966 # Code from module gettext-h:
6967 # Code from module gettime:
6968 # Code from module gettimeofday:
6969 # Code from module ignore-value:
6970 # Code from module include_next:
6971 # Code from module intprops:
6972 # Code from module inttypes-incomplete:
6973 # Code from module largefile:
6975 # Code from module lstat:
6976 # Code from module manywarnings:
6977 # Code from module mktime:
6978 # Code from module multiarch:
6979 # Code from module nocrash:
6980 # Code from module pathmax:
6981 # Code from module pselect:
6982 # Code from module pthread_sigmask:
6983 # Code from module readlink:
6984 # Code from module signal-h:
6985 # Code from module snippet/_Noreturn:
6986 # Code from module snippet/arg-nonnull:
6987 # Code from module snippet/c++defs:
6988 # Code from module snippet/warn-on-use:
6989 # Code from module socklen:
6990 # Code from module ssize_t:
6991 # Code from module stat:
6992 # Code from module stat-time:
6993 # Code from module stdalign:
6994 # Code from module stdarg:
6998 # Code from module stdbool:
6999 # Code from module stddef:
7000 # Code from module stdint:
7001 # Code from module stdio:
7002 # Code from module stdlib:
7003 # Code from module strftime:
7004 # Code from module strtoimax:
7005 # Code from module strtoll:
7006 # Code from module strtoull:
7007 # Code from module strtoumax:
7008 # Code from module symlink:
7009 # Code from module sys_select:
7010 # Code from module sys_stat:
7011 # Code from module sys_time:
7012 # Code from module time:
7013 # Code from module time_r:
7014 # Code from module timer-time:
7015 # Code from module timespec:
7016 # Code from module timespec-add:
7017 # Code from module timespec-sub:
7018 # Code from module u64:
7019 # Code from module unistd:
7020 # Code from module utimens:
7021 # Code from module verify:
7022 # Code from module warnings:
7025 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7026 # if -g3 works and the user does not specify CFLAGS.
7027 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7028 if test "$ac_test_CFLAGS" != set; then
7031 emacs_g3_CFLAGS
='-g3';;
7033 emacs_g3_CFLAGS
='-g3 -O2';;
7035 emacs_g3_CFLAGS
='';;
7037 if test -n "$emacs_g3_CFLAGS"; then
7038 emacs_save_CFLAGS
=$CFLAGS
7039 CFLAGS
=$emacs_g3_CFLAGS
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7041 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7042 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7056 if ac_fn_c_try_link
"$LINENO"; then :
7057 emacs_cv_prog_cc_g3
=yes
7059 emacs_cv_prog_cc_g3
=no
7061 rm -f core conftest.err conftest.
$ac_objext \
7062 conftest
$ac_exeext conftest.
$ac_ext
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7065 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7066 if test $emacs_cv_prog_cc_g3 = yes; then
7067 CFLAGS
=$emacs_g3_CFLAGS
7069 CFLAGS
=$emacs_save_CFLAGS
7074 # Check whether --enable-gcc-warnings was given.
7075 if test "${enable_gcc_warnings+set}" = set; then :
7076 enableval
=$enable_gcc_warnings; case $enableval in
7078 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7080 gl_gcc_warnings
=$enableval
7087 # Check whether --enable-link-time-optimization was given.
7088 if test "${enable_link_time_optimization+set}" = set; then :
7089 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7091 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7093 if test x
$GCC = xyes
; then
7094 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7095 if test x
$CPUS != x
; then
7101 CFLAGS
="$CFLAGS $LTO"
7102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7113 if ac_fn_c_try_compile
"$LINENO"; then :
7114 ac_lto_supported
=yes
7118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 CFLAGS
="$old_CFLAGS"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7122 $as_echo "$ac_lto_supported" >&6; }
7123 if test "$ac_lto_supported" = "yes"; then
7124 CFLAGS
="$CFLAGS $LTO"
7130 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7131 # ------------------------------------------------
7132 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7133 # Otherwise, run RUN-IF-NOT-FOUND.
7136 # When compiling with GCC, prefer -isystem to -I when including system
7137 # include files, to avoid generating useless diagnostics for the files.
7138 if test "$gl_gcc_warnings" != yes; then
7143 # This, $nw, is the list of warnings we disable.
7146 case $with_x_toolkit in
7147 lucid | athena | motif
)
7148 # Old toolkits mishandle 'const'.
7149 nw
="$nw -Wwrite-strings"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7153 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7154 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7158 gl_save_compiler_FLAGS
="$CFLAGS"
7159 as_fn_append CFLAGS
" -Werror"
7160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7171 if ac_fn_c_try_compile
"$LINENO"; then :
7172 gl_cv_warn_c__Werror
=yes
7174 gl_cv_warn_c__Werror
=no
7176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7177 CFLAGS
="$gl_save_compiler_FLAGS"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7181 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7182 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7183 as_fn_append WERROR_CFLAGS
" -Werror"
7191 nw
="$nw -Waggregate-return" # anachronistic
7192 nw
="$nw -Wlong-long" # C90 is anachronistic
7193 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7194 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7195 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7196 nw
="$nw -Wcast-qual" # Too many warnings for now
7197 nw
="$nw -Wconversion" # Too many warnings for now
7198 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7199 nw
="$nw -Wsign-conversion" # Too many warnings for now
7200 nw
="$nw -Woverlength-strings" # Not a problem these days
7201 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7202 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7203 nw
="$nw -Wpadded" # Our structs are not padded
7204 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7205 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7206 nw
="$nw -Wformat-nonliteral" # we do this a lot
7207 nw
="$nw -Wvla" # warnings in gettext.h
7208 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7209 nw
="$nw -Wswitch-enum" # Too many warnings for now
7210 nw
="$nw -Wswitch-default" # Too many warnings for now
7211 nw
="$nw -Wfloat-equal" # warns about high-quality code
7212 nw
="$nw -Winline" # OK to ignore 'inline'
7213 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7214 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7215 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7217 # Emacs doesn't care about shadowing; see
7218 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7221 # The following lines should be removable at some point.
7222 nw
="$nw -Wstack-protector"
7223 nw
="$nw -Wstrict-overflow"
7224 nw
="$nw -Wsuggest-attribute=pure"
7228 if test -n "$GCC"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7231 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7232 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7236 gl_save_CFLAGS
="$CFLAGS"
7237 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7249 if ac_fn_c_try_compile
"$LINENO"; then :
7250 gl_cv_cc_nomfi_supported
=yes
7252 gl_cv_cc_nomfi_supported
=no
7254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7255 CFLAGS
="$gl_save_CFLAGS"
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7259 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7261 if test "$gl_cv_cc_nomfi_supported" = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7263 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7264 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7268 gl_save_CFLAGS
="$CFLAGS"
7269 CFLAGS
="$CFLAGS -W -Werror"
7270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7274 typedef struct { int a; int b; } s_t;
7286 if ac_fn_c_try_compile
"$LINENO"; then :
7287 gl_cv_cc_nomfi_needed
=no
7289 gl_cv_cc_nomfi_needed
=yes
7291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 CFLAGS
="$gl_save_CFLAGS"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7297 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7301 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7302 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7306 gl_save_CFLAGS
="$CFLAGS"
7307 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7319 if ac_fn_c_try_compile
"$LINENO"; then :
7320 gl_cv_cc_uninitialized_supported
=yes
7322 gl_cv_cc_uninitialized_supported
=no
7324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7325 CFLAGS
="$gl_save_CFLAGS"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7329 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7333 # List all gcc warning categories.
7335 for gl_manywarn_item
in \
7342 -Wbad-function-cast \
7343 -Wbuiltin-macro-redefined \
7349 -Wcoverage-mismatch \
7352 -Wdeprecated-declarations \
7353 -Wdisabled-optimization \
7355 -Wdouble-promotion \
7360 -Wformat-contains-nul \
7361 -Wformat-extra-args \
7362 -Wformat-nonliteral \
7365 -Wformat-zero-length \
7367 -Wfree-nonheap-object \
7368 -Wignored-qualifiers \
7370 -Wimplicit-function-declaration \
7374 -Wint-to-pointer-cast \
7375 -Winvalid-memory-model \
7377 -Wjump-misses-init \
7380 -Wmaybe-uninitialized \
7382 -Wmissing-declarations \
7383 -Wmissing-field-initializers \
7384 -Wmissing-format-attribute \
7385 -Wmissing-include-dirs \
7386 -Wmissing-noreturn \
7387 -Wmissing-parameter-type \
7388 -Wmissing-prototypes \
7395 -Wold-style-declaration \
7396 -Wold-style-definition \
7398 -Woverlength-strings \
7401 -Wpacked-bitfield-compat \
7405 -Wpointer-to-int-cast \
7410 -Wsizeof-pointer-memaccess \
7414 -Wstrict-prototypes \
7415 -Wsuggest-attribute=const \
7416 -Wsuggest-attribute=format \
7417 -Wsuggest-attribute=noreturn \
7418 -Wsuggest-attribute=pure \
7428 -Wunreachable-code \
7429 -Wunsafe-loop-optimizations \
7431 -Wunused-but-set-parameter \
7432 -Wunused-but-set-variable \
7435 -Wunused-local-typedefs \
7437 -Wunused-parameter \
7443 -Wvector-operation-performance \
7445 -Wvolatile-register-var \
7449 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7452 # Disable specific options as needed.
7453 if test "$gl_cv_cc_nomfi_needed" = yes; then
7454 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7457 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7458 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7469 *" $gl_warn_item "*)
7472 gl_warn_set
="$gl_warn_set $gl_warn_item"
7479 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7481 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7482 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7483 $as_echo_n "(cached) " >&6
7486 gl_save_compiler_FLAGS
="$CFLAGS"
7487 as_fn_append CFLAGS
" $w"
7488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7499 if ac_fn_c_try_compile
"$LINENO"; then :
7500 eval "$as_gl_Warn=yes"
7502 eval "$as_gl_Warn=no"
7504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 CFLAGS
="$gl_save_compiler_FLAGS"
7508 eval ac_res
=\$
$as_gl_Warn
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7510 $as_echo "$ac_res" >&6; }
7511 eval as_val
=\$
$as_gl_Warn
7512 if test "x$as_val" = x
""yes; then :
7513 as_fn_append WARN_CFLAGS
" $w"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7519 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7520 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7524 gl_save_compiler_FLAGS
="$CFLAGS"
7525 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7537 if ac_fn_c_try_compile
"$LINENO"; then :
7538 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7540 gl_cv_warn_c__Wno_missing_field_initializers
=no
7542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 CFLAGS
="$gl_save_compiler_FLAGS"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7547 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7548 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7549 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7554 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7555 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7559 gl_save_compiler_FLAGS
="$CFLAGS"
7560 as_fn_append CFLAGS
" -Wno-sign-compare"
7561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7572 if ac_fn_c_try_compile
"$LINENO"; then :
7573 gl_cv_warn_c__Wno_sign_compare
=yes
7575 gl_cv_warn_c__Wno_sign_compare
=no
7577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7578 CFLAGS
="$gl_save_compiler_FLAGS"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7582 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7583 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7584 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7587 # Too many warnings for now
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7589 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7590 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7594 gl_save_compiler_FLAGS
="$CFLAGS"
7595 as_fn_append CFLAGS
" -Wno-type-limits"
7596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7607 if ac_fn_c_try_compile
"$LINENO"; then :
7608 gl_cv_warn_c__Wno_type_limits
=yes
7610 gl_cv_warn_c__Wno_type_limits
=no
7612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7613 CFLAGS
="$gl_save_compiler_FLAGS"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7617 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7618 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7619 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7622 # Too many warnings for now
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7624 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7625 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7629 gl_save_compiler_FLAGS
="$CFLAGS"
7630 as_fn_append CFLAGS
" -Wno-switch"
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7642 if ac_fn_c_try_compile
"$LINENO"; then :
7643 gl_cv_warn_c__Wno_switch
=yes
7645 gl_cv_warn_c__Wno_switch
=no
7647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7648 CFLAGS
="$gl_save_compiler_FLAGS"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7652 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7653 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7654 as_fn_append WARN_CFLAGS
" -Wno-switch"
7657 # Too many warnings for now
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7659 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7660 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7664 gl_save_compiler_FLAGS
="$CFLAGS"
7665 as_fn_append CFLAGS
" -Wno-unused-parameter"
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7677 if ac_fn_c_try_compile
"$LINENO"; then :
7678 gl_cv_warn_c__Wno_unused_parameter
=yes
7680 gl_cv_warn_c__Wno_unused_parameter
=no
7682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 CFLAGS
="$gl_save_compiler_FLAGS"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7687 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7688 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7689 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7692 # Too many warnings for now
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7699 gl_save_compiler_FLAGS
="$CFLAGS"
7700 as_fn_append CFLAGS
" -Wno-format-nonliteral"
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_format_nonliteral
=yes
7715 gl_cv_warn_c__Wno_format_nonliteral
=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_format_nonliteral" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7724 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7729 # In spite of excluding -Wlogical-op above, it is enabled, as of
7730 # gcc 4.5.0 20090517.
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7732 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7733 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7737 gl_save_compiler_FLAGS
="$CFLAGS"
7738 as_fn_append CFLAGS
" -Wno-logical-op"
7739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7750 if ac_fn_c_try_compile
"$LINENO"; then :
7751 gl_cv_warn_c__Wno_logical_op
=yes
7753 gl_cv_warn_c__Wno_logical_op
=no
7755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7756 CFLAGS
="$gl_save_compiler_FLAGS"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7760 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7761 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7762 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7768 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7769 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7773 gl_save_compiler_FLAGS
="$CFLAGS"
7774 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7786 if ac_fn_c_try_compile
"$LINENO"; then :
7787 gl_cv_warn_c__fdiagnostics_show_option
=yes
7789 gl_cv_warn_c__fdiagnostics_show_option
=no
7791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7792 CFLAGS
="$gl_save_compiler_FLAGS"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7796 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7797 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7798 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7803 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7804 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7808 gl_save_compiler_FLAGS
="$CFLAGS"
7809 as_fn_append CFLAGS
" -funit-at-a-time"
7810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7821 if ac_fn_c_try_compile
"$LINENO"; then :
7822 gl_cv_warn_c__funit_at_a_time
=yes
7824 gl_cv_warn_c__funit_at_a_time
=no
7826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7827 CFLAGS
="$gl_save_compiler_FLAGS"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7831 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7832 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7833 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7839 $as_echo "#define lint 1" >>confdefs.h
7843 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7846 # We use a slightly smaller set of warning options for lib/.
7847 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7849 nw
="$nw -Wunused-macros"
7853 set x
$WARN_CFLAGS; shift
7857 *" $gl_warn_item "*)
7860 gl_warn_set
="$gl_warn_set $gl_warn_item"
7864 GNULIB_WARN_CFLAGS
=$gl_warn_set
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7872 $as_echo_n "checking whether ln -s works... " >&6; }
7874 if test "$LN_S" = "ln -s"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7876 $as_echo "yes" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7879 $as_echo "no, using $LN_S" >&6; }
7883 # Extract the first word of "install-info", so it can be a program name with args.
7884 set dummy install-info
; ac_word
=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7890 case $INSTALL_INFO in
7892 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7896 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7899 test -z "$as_dir" && as_dir
=.
7900 for ac_exec_ext
in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7914 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7915 if test -n "$INSTALL_INFO"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7917 $as_echo "$INSTALL_INFO" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7924 # Extract the first word of "gzip", so it can be a program name with args.
7925 set dummy
gzip; ac_word
=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7933 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir
=.
7941 for ac_exec_ext
in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7955 if test -n "$GZIP_PROG"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7957 $as_echo "$GZIP_PROG" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7965 if test $opsys = gnu-linux
; then
7966 # Extract the first word of "paxctl", so it can be a program name with args.
7967 set dummy paxctl
; ac_word
=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7975 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7979 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7982 test -z "$as_dir" && as_dir
=.
7983 for ac_exec_ext
in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 PAXCTL
=$ac_cv_path_PAXCTL
7997 if test -n "$PAXCTL"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7999 $as_echo "$PAXCTL" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 if test "X$PAXCTL" != X
; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8008 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8020 if ac_fn_c_try_link
"$LINENO"; then :
8021 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8022 $as_echo "yes" >&6; }
8023 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }; PAXCTL
=""; fi
8026 rm -f core conftest.err conftest.
$ac_objext \
8027 conftest
$ac_exeext conftest.
$ac_ext
8031 ## Need makeinfo >= 4.7 (?) to build the manuals.
8032 # Extract the first word of "makeinfo", so it can be a program name with args.
8033 set dummy makeinfo
; ac_word
=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8041 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir
=.
8049 for ac_exec_ext
in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8063 MAKEINFO
=$ac_cv_path_MAKEINFO
8064 if test -n "$MAKEINFO"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8066 $as_echo "$MAKEINFO" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8073 if test "$MAKEINFO" != "no" && \
8074 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
8078 ## Makeinfo is unusual. For a released Emacs, the manuals are
8079 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8080 ## therefore in the category of "special tools" not normally required, which
8081 ## configure does not have to check for (eg autoconf itself).
8082 ## In a Bazaar checkout on the other hand, the manuals are not included.
8083 ## So makeinfo is a requirement to build from Bazaar, and configure
8084 ## should test for it as it does for any other build requirement.
8085 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8086 ## with pre-built manuals, from a Bazaar checkout.
8089 if test "$MAKEINFO" = "no"; then
8091 if test "x${with_makeinfo}" = "xno"; then
8093 elif test ! -e $srcdir/info
/emacs
; then
8094 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8095 source tree does not seem to have pre-built manuals in the \`info' directory.
8096 Either install a suitable version of makeinfo, or re-run configure
8097 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8103 INFO_OPTS
=--no-split
8108 if test x
$GCC = xyes
; then
8109 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8110 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8112 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8113 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8117 late_LDFLAGS
=$LDFLAGS
8118 if test x
$GCC = xyes
; then
8119 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8121 LDFLAGS
="$LDFLAGS -znocombreloc"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8125 $as_echo_n "checking for -znocombreloc... " >&6; }
8126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8137 if ac_fn_c_try_link
"$LINENO"; then :
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139 $as_echo "yes" >&6; }
8141 LDFLAGS
=$late_LDFLAGS
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8145 rm -f core conftest.err conftest.
$ac_objext \
8146 conftest
$ac_exeext conftest.
$ac_ext
8149 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8151 your-opsys-here
) CANNOT_DUMP
=yes ;;
8154 test "$CANNOT_DUMP" = "yes" && \
8156 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8162 UNEXEC_OBJ
=unexelf.o
8164 # MSDOS uses unexcoff.o
8165 # MSWindows uses unexw32.o
8167 UNEXEC_OBJ
=unexaix.o
8173 UNEXEC_OBJ
=unexmacosx.o
8176 UNEXEC_OBJ
=unexhp9k800.o
8179 # Use the Solaris dldump() function, called from unexsol.c, to dump
8180 # emacs, instead of the generic ELF dump code found in unexelf.c.
8181 # The resulting binary has a complete symbol table, and is better
8182 # for debugging and other observability tools (debuggers, pstack, etc).
8184 # If you encounter a problem using dldump(), please consider sending
8185 # a message to the OpenSolaris tools-linking mailing list:
8186 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8188 # It is likely that dldump() works with older Solaris too, but this has
8189 # not been tested, so for now this change is for Solaris 10 or newer.
8190 UNEXEC_OBJ
=unexsol.o
8197 ## Let `ld' find image libs and similar things in /usr/local/lib.
8198 ## The system compiler, GCC, has apparently been modified to not
8199 ## look there, contrary to what a stock GCC would do.
8200 ### It's not our place to do this. See bug#10313#17.
8201 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8206 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8207 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8211 ### It's not our place to do this. See bug#10313#17.
8212 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8217 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8218 ## otherwise Emacs dumps core on elf systems.
8219 LD_SWITCH_SYSTEM
="-Z"
8224 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8226 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8227 ## which has not been defined yet. When this was handled with cpp,
8228 ## it was expanded to null when configure sourced the s/*.h file.
8229 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8230 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8231 ## (or somesuch), but because it is supposed to go at the _front_
8232 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8233 ## Compare with the gnu-linux case below, which added to the end
8234 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8235 ## LD_SWITCH_SYSTEM_TEMACS.
8238 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8245 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8246 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8250 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8251 ## With ELF, make sure that all common symbols get allocated to in the
8252 ## data section. Otherwise, the dump of temacs may miss variables in
8253 ## the shared library that have been initialized. For example, with
8254 ## GNU libc, __malloc_initialized would normally be resolved to the
8255 ## shared library's .bss section, which is fatal.
8256 if test "x$GCC" = "xyes"; then
8257 C_SWITCH_MACHINE
="-fno-common"
8259 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8262 UNEXEC_OBJ
=unexalpha.o
8271 ## Some programs in src produce warnings saying certain subprograms
8272 ## are too complex and need a MAXMEM value greater than 2000 for
8273 ## additional optimization. --nils@exp-math.uni-essen.de
8274 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8275 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8276 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8277 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8283 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8284 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8286 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8288 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8290 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8292 ## Motif needs -lgen.
8293 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8298 ### Make sure subsequent tests use flags consistent with the build flags.
8300 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8301 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8303 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8306 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8308 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8315 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8320 START_FILES
='pre-crt0.o'
8323 ## Adding -lm confuses the dynamic linker, so omit it.
8325 START_FILES
='pre-crt0.o'
8328 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8329 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8330 SYSTEM_TYPE
=berkeley-unix
8332 gnu-linux | gnu-kfreebsd
)
8333 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8334 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8336 hpux10-20 | hpux11
)
8338 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8341 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8342 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8343 SYSTEM_TYPE
=berkeley-unix
8347 SYSTEM_TYPE
=usg-unix-v
8355 cat >>confdefs.h
<<_ACEOF
8356 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8362 for file in x
$LIB_STANDARD $START_FILES; do
8364 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8368 if test "x$crt_files" != x
; then
8370 ## If user specified a crt-dir, use that unconditionally.
8373 if test "X$CRT_DIR" = "X"; then
8375 CRT_DIR
=/usr
/lib
# default
8377 case "$canonical" in
8378 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8379 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8380 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8381 ## For anything else (eg /usr/lib32), it is up the user to specify
8382 ## the location (bug#5655).
8383 ## Test for crtn.o, not just the directory, because sometimes the
8384 ## directory exists but does not have the relevant files (bug#1287).
8385 ## FIXME better to test for binary compatibility somehow.
8386 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8389 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8393 hpux10-20
) CRT_DIR
=/lib
;;
8396 test "x${GCC}" = xyes
&& crt_gcc
=yes
8402 for file in $crt_files; do
8404 ## If we're using gcc, try to determine it automatically by asking
8405 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8406 ## system-dependent default from above.]
8407 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8409 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8412 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8413 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$crt_file" : 'X\(//\)[^/]' \| \
8415 X"$crt_file" : 'X\(//\)$' \| \
8416 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8417 $as_echo X"$crt_file" |
8418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8441 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8444 test "x$crt_missing" = x || \
8445 as_fn_error
"Required file(s) not found:$crt_missing
8446 Try using the --with-crt-dir option." "$LINENO" 5
8448 fi # crt_files != ""
8454 if test -f $CRT_DIR/crti.o
; then
8456 test -f $CRT_DIR/crtn.o || \
8457 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8459 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8460 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8466 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8467 pre_PKG_CONFIG_LIBS
=$LIBS
8469 # Extract the first word of "pkg-config", so it can be a program name with args.
8470 set dummy pkg-config
; ac_word
=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8478 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8485 test -z "$as_dir" && as_dir
=.
8486 for ac_exec_ext
in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8500 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8501 if test -n "$PKG_CONFIG"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8503 $as_echo "$PKG_CONFIG" >&6; }
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8514 if test "${with_sound}" != "no"; then
8515 # Sound support for GNU/Linux and the free BSDs.
8516 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8518 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8519 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8520 eval as_val
=\$
$as_ac_Header
8521 if test "x$as_val" = x
""yes; then :
8522 cat >>confdefs.h
<<_ACEOF
8523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8525 have_sound_header
=yes
8530 # Emulation library used on NetBSD.
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8532 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8533 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8536 ac_check_lib_save_LIBS
=$LIBS
8537 LIBS
="-lossaudio $LIBS"
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8551 return _oss_ioctl ();
8556 if ac_fn_c_try_link
"$LINENO"; then :
8557 ac_cv_lib_ossaudio__oss_ioctl
=yes
8559 ac_cv_lib_ossaudio__oss_ioctl
=no
8561 rm -f core conftest.err conftest.
$ac_objext \
8562 conftest
$ac_exeext conftest.
$ac_ext
8563 LIBS
=$ac_check_lib_save_LIBS
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8566 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8567 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8576 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8580 if test "$PKG_CONFIG" = "no" ; then
8583 PKG_CONFIG_MIN_VERSION
=0.9.0
8584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8586 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8588 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8589 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8590 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8597 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8598 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8600 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8607 ## If we have a custom action on failure, don't print errors, but
8608 ## do set a variable so people can do so. Do it in a subshell
8609 ## to capture any diagnostics in invoking pkg-config.
8610 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8622 if test $succeeded = yes; then
8628 if test $HAVE_ALSA = yes; then
8629 SAVE_CFLAGS
="$CFLAGS"
8631 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8632 LIBS
="$ALSA_LIBS $LIBS"
8633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <asoundlib.h>
8639 snd_lib_error_set_handler (0);
8644 if ac_fn_c_try_compile
"$LINENO"; then :
8645 emacs_alsa_normal
=yes
8647 emacs_alsa_normal
=no
8649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8650 if test "$emacs_alsa_normal" != yes; then
8651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <alsa/asoundlib.h>
8657 snd_lib_error_set_handler (0);
8662 if ac_fn_c_try_compile
"$LINENO"; then :
8663 emacs_alsa_subdir
=yes
8665 emacs_alsa_subdir
=no
8667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8668 if test "$emacs_alsa_subdir" != yes; then
8669 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8671 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8674 CFLAGS
="$SAVE_CFLAGS"
8676 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8677 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8679 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8683 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8685 gnu-linux|freebsd|netbsd
)
8687 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8699 for ac_header
in $ac_header_list
8701 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8702 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8704 eval as_val
=\$
$as_ac_Header
8705 if test "x$as_val" = x
""yes; then :
8706 cat >>confdefs.h
<<_ACEOF
8707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8743 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 #include <sys/personality.h>
8750 personality (PER_LINUX32)
8755 if ac_fn_c_try_compile
"$LINENO"; then :
8756 emacs_cv_personality_linux32
=yes
8758 emacs_cv_personality_linux32
=no
8760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8762 $as_echo "$emacs_cv_personality_linux32" >&6; }
8764 if test $emacs_cv_personality_linux32 = yes; then
8766 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8770 for ac_header
in term.h
8772 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8773 if test "x$ac_cv_header_term_h" = x
""yes; then :
8774 cat >>confdefs.h
<<_ACEOF
8775 #define HAVE_TERM_H 1
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8783 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8784 if test "${ac_cv_header_time+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #include <sys/time.h>
8796 if ((struct tm *) 0)
8802 if ac_fn_c_try_compile
"$LINENO"; then :
8803 ac_cv_header_time
=yes
8805 ac_cv_header_time
=no
8807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8810 $as_echo "$ac_cv_header_time" >&6; }
8811 if test $ac_cv_header_time = yes; then
8813 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8817 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8818 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8824 cat >>confdefs.h
<<_ACEOF
8825 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8828 if test $ac_cv_have_decl_sys_siglist != yes; then
8829 # For Tru64, at least:
8830 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8831 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8837 cat >>confdefs.h
<<_ACEOF
8838 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8841 if test $ac_cv_have_decl___sys_siglist = yes; then
8843 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8848 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8849 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <sys/types.h>
8855 #include <sys/wait.h>
8857 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8860 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8873 if ac_fn_c_try_compile
"$LINENO"; then :
8874 ac_cv_header_sys_wait_h
=yes
8876 ac_cv_header_sys_wait_h
=no
8878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8881 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8882 if test $ac_cv_header_sys_wait_h = yes; then
8884 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8890 $as_echo_n "checking for speed_t... " >&6; }
8891 if test "${emacs_cv_speed_t+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <termios.h>
8905 if ac_fn_c_try_compile
"$LINENO"; then :
8906 emacs_cv_speed_t
=yes
8910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8913 $as_echo "$emacs_cv_speed_t" >&6; }
8914 if test $emacs_cv_speed_t = yes; then
8916 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8923 for ac_header
in net
/if.h
8925 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8926 #if HAVE_SYS_SOCKET_H
8927 #include <sys/socket.h>
8930 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8931 cat >>confdefs.h
<<_ACEOF
8932 #define HAVE_NET_IF_H 1
8939 for ac_header
in ifaddrs.h
8941 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8942 #if HAVE_SYS_SOCKET_H
8943 #include <sys/socket.h>
8946 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8947 cat >>confdefs.h
<<_ACEOF
8948 #define HAVE_IFADDRS_H 1
8955 for ac_header
in net
/if_dl.h
8957 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8958 #if HAVE_SYS_SOCKET_H
8959 #include <sys/socket.h>
8962 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8963 cat >>confdefs.h
<<_ACEOF
8964 #define HAVE_NET_IF_DL_H 1
8972 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8973 #if HAVE_SYS_SOCKET_H
8974 #include <sys/socket.h>
8980 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8982 cat >>confdefs.h
<<_ACEOF
8983 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8988 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8989 #if HAVE_SYS_SOCKET_H
8990 #include <sys/socket.h>
8996 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8998 cat >>confdefs.h
<<_ACEOF
8999 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9004 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9005 #if HAVE_SYS_SOCKET_H
9006 #include <sys/socket.h>
9012 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9014 cat >>confdefs.h
<<_ACEOF
9015 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9020 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9021 #if HAVE_SYS_SOCKET_H
9022 #include <sys/socket.h>
9028 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9030 cat >>confdefs.h
<<_ACEOF
9031 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9036 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9037 #if HAVE_SYS_SOCKET_H
9038 #include <sys/socket.h>
9044 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9046 cat >>confdefs.h
<<_ACEOF
9047 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9052 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9053 #if HAVE_SYS_SOCKET_H
9054 #include <sys/socket.h>
9060 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9062 cat >>confdefs.h
<<_ACEOF
9063 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9075 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9077 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9079 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9080 if test "x$testval" != x
; then
9083 ac_enable_autodepend
=no
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9086 $as_echo "$HAVE_GNU_MAKE" >&6; }
9087 if test $HAVE_GNU_MAKE = yes; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9089 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9090 SAVE_CFLAGS
="$CFLAGS"
9091 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9103 if ac_fn_c_try_compile
"$LINENO"; then :
9106 ac_enable_autodepend
=no
9108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9109 CFLAGS
="$SAVE_CFLAGS"
9110 test -f deps.d || ac_enable_autodepend
=no
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9113 $as_echo "$ac_enable_autodepend" >&6; }
9115 if test $ac_enable_autodepend = yes; then
9116 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9117 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9118 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9119 deps_frag
=autodeps.mk
9122 deps_frag
=$srcdir/src
/$deps_frag
9128 lisp_frag
=$srcdir/src
/lisp.mk
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9133 $as_echo_n "checking for long file names... " >&6; }
9134 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9137 ac_cv_sys_long_file_names
=yes
9138 # Test for long file names in all the places we know might matter:
9139 # . the current directory, where building will happen
9140 # $prefix/lib where we will be installing things
9141 # $exec_prefix/lib likewise
9142 # $TMPDIR if set, where it might want to write temporary files
9143 # /tmp where it might want to write temporary files
9146 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9147 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9148 # in the usual case where exec_prefix is '${prefix}'.
9150 . |
/* | ?
:[\\/]*) ;; #(
9153 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9154 ac_xdir
=$ac_dir/cf$$
9155 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9156 ac_tf1
=$ac_xdir/conftest9012345
9157 ac_tf2
=$ac_xdir/conftest9012346
9158 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9159 ac_cv_sys_long_file_names
=no
9160 rm -f -r "$ac_xdir" 2>/dev
/null
9161 test $ac_cv_sys_long_file_names = no
&& break
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9165 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9166 if test $ac_cv_sys_long_file_names = yes; then
9168 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9173 #### Choose a window system.
9175 ## We leave window_system equal to none if
9176 ## we end up building without one. Any new window system should
9177 ## set window_system to an appropriate value and add objects to
9178 ## window-system-specific substs.
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9182 $as_echo_n "checking for X... " >&6; }
9185 # Check whether --with-x was given.
9186 if test "${with_x+set}" = set; then :
9190 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9191 if test "x$with_x" = xno
; then
9192 # The user explicitly disabled X.
9195 case $x_includes,$x_libraries in #(
9196 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9197 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9200 # One or both of the vars are not set, and there is no cached value.
9201 ac_x_includes
=no ac_x_libraries
=no
9202 rm -f -r conftest.dir
9203 if mkdir conftest.dir
; then
9205 cat >Imakefile
<<'_ACEOF'
9207 @echo incroot='${INCROOT}'
9209 @echo usrlibdir='${USRLIBDIR}'
9211 @echo libdir='${LIBDIR}'
9213 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 for ac_var
in incroot usrlibdir libdir
; do
9216 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9219 for ac_extension
in a so sl dylib la dll
; do
9220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9222 ac_im_usrlibdir
=$ac_im_libdir; break
9225 # Screen out bogus values from the imake configuration. They are
9226 # bogus both because they are the default anyway, and because
9227 # using them would break gcc on systems where it needs fixed includes.
9228 case $ac_im_incroot in
9229 /usr
/include
) ac_x_includes
= ;;
9230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9232 case $ac_im_usrlibdir in
9233 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9238 rm -f -r conftest.dir
9241 # Standard set of common directories for X headers.
9242 # Check X11 before X11Rn because it is often a symlink to the current release.
9256 /usr/local/X11/include
9257 /usr/local/X11R7/include
9258 /usr/local/X11R6/include
9259 /usr/local/X11R5/include
9260 /usr/local/X11R4/include
9262 /usr/local/include/X11
9263 /usr/local/include/X11R7
9264 /usr/local/include/X11R6
9265 /usr/local/include/X11R5
9266 /usr/local/include/X11R4
9270 /usr/XFree86/include/X11
9274 /usr/unsupported/include
9276 /usr/local/x11r5/include
9277 /usr/lpp/Xamples/include
9279 /usr/openwin/include
9280 /usr/openwin/share/include'
9282 if test "$ac_x_includes" = no
; then
9283 # Guess where to find include files, by looking for Xlib.h.
9284 # First, try using that file with no special directory specified.
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 #include <X11/Xlib.h>
9289 if ac_fn_c_try_cpp
"$LINENO"; then :
9290 # We can compile using X headers with no special include directory.
9293 for ac_dir
in $ac_x_header_dirs; do
9294 if test -r "$ac_dir/X11/Xlib.h"; then
9295 ac_x_includes
=$ac_dir
9300 rm -f conftest.err conftest.
$ac_ext
9301 fi # $ac_x_includes = no
9303 if test "$ac_x_libraries" = no
; then
9304 # Check for the libraries.
9305 # See if we find them without any special options.
9306 # Don't add to $LIBS permanently.
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include <X11/Xlib.h>
9320 if ac_fn_c_try_link
"$LINENO"; then :
9322 # We can link X programs with no special library path.
9326 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9328 # Don't even attempt the hair of trying to link an X program!
9329 for ac_extension
in a so sl dylib la dll
; do
9330 if test -r "$ac_dir/libX11.$ac_extension"; then
9331 ac_x_libraries
=$ac_dir
9337 rm -f core conftest.err conftest.
$ac_objext \
9338 conftest
$ac_exeext conftest.
$ac_ext
9339 fi # $ac_x_libraries = no
9341 case $ac_x_includes,$ac_x_libraries in #(
9343 # Didn't find X, or a directory has "'" in its name.
9344 ac_cv_have_x
="have_x=no";; #(
9346 # Record where we found X for the cache.
9347 ac_cv_have_x
="have_x=yes\
9348 ac_x_includes='$ac_x_includes'\
9349 ac_x_libraries='$ac_x_libraries'"
9355 eval "$ac_cv_have_x"
9358 if test "$have_x" != yes; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9360 $as_echo "$have_x" >&6; }
9363 # If each of the values was on the command line, it overrides each guess.
9364 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9365 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9366 # Update the cache value to reflect the command line values.
9367 ac_cv_have_x
="have_x=yes\
9368 ac_x_includes='$x_includes'\
9369 ac_x_libraries='$x_libraries'"
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9371 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9374 if test "$no_x" != yes; then
9378 LD_SWITCH_X_SITE_RPATH
=
9379 if test "${x_libraries}" != NONE
; then
9380 if test -n "${x_libraries}"; then
9381 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9382 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9384 x_default_search_path
=""
9385 x_search_path
=${x_libraries}
9386 if test -z "${x_search_path}"; then
9387 x_search_path
=/usr
/lib
9389 for x_library
in `echo ${x_search_path}: | \
9390 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9392 ${x_library}/X11/%L/%T/%N%C%S:\
9393 ${x_library}/X11/%l/%T/%N%C%S:\
9394 ${x_library}/X11/%T/%N%C%S:\
9395 ${x_library}/X11/%L/%T/%N%S:\
9396 ${x_library}/X11/%l/%T/%N%S:\
9397 ${x_library}/X11/%T/%N%S"
9398 if test x
"${x_default_search_path}" = x
; then
9399 x_default_search_path
=${x_search_path}
9401 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9407 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9408 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9411 if test x
"${x_includes}" = x
; then
9412 bitmapdir
=/usr
/include
/X11
/bitmaps
9414 # accumulate include directories that have X11 bitmap subdirectories
9416 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9417 if test -d "${bmd}/X11/bitmaps"; then
9418 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9420 if test -d "${bmd}/bitmaps"; then
9421 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9424 if test ${bmd_acc} != "dummyval"; then
9425 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9432 tmp_CPPFLAGS
="$CPPFLAGS"
9433 tmp_CFLAGS
="$CFLAGS"
9434 CPPFLAGS
="$CPPFLAGS -x objective-c"
9435 CFLAGS
="$CFLAGS -x objective-c"
9436 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9438 if test "${with_ns}" != no
; then
9439 if test "${opsys}" = darwin
; then
9441 ns_appdir
=`pwd`/nextstep
/Emacs.app
9442 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9443 ns_appresdir
=${ns_appdir}/Contents
/Resources
9444 ns_appsrc
=Cocoa
/Emacs.base
9445 elif test -f $GNUSTEP_CONFIG_FILE; then
9447 ns_appdir
=`pwd`/nextstep
/Emacs.app
9448 ns_appbindir
=${ns_appdir}
9449 ns_appresdir
=${ns_appdir}/Resources
9450 ns_appsrc
=GNUstep
/Emacs.base
9451 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9452 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9453 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9454 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9455 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9456 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9457 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9458 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9459 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9460 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9461 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9466 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9467 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <GNUstepBase/GSConfig.h>
9476 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9485 if ac_fn_c_try_compile
"$LINENO"; then :
9486 emacs_cv_objc_exceptions
=yes
9488 emacs_cv_objc_exceptions
=no
9490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9493 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9494 if test $emacs_cv_objc_exceptions = yes; then
9496 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9498 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9502 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9504 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9505 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9508 as_fn_error
"\`--with-ns' was specified, but the include
9509 files are missing or cannot be compiled." "$LINENO" 5
9513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 #include <Foundation/NSObjCRuntime.h>
9524 if ac_fn_c_try_compile
"$LINENO"; then :
9525 ns_have_nsinteger
=yes
9527 ns_have_nsinteger
=no
9529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9530 if test $ns_have_nsinteger = yes; then
9532 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9538 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9539 ns_self_contained
=no
9542 if test "${HAVE_NS}" = yes; then
9543 if test "$with_toolkit_scroll_bars" = "no"; then
9544 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9547 window_system
=nextstep
9548 # set up packaging dirs
9549 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9550 ns_self_contained
=yes
9551 prefix
=${ns_appresdir}
9552 exec_prefix
=${ns_appbindir}
9553 libexecdir
="\${ns_appbindir}/libexec"
9554 archlibdir
="\${ns_appbindir}/libexec"
9555 docdir
="\${ns_appresdir}/etc"
9556 etcdir
="\${ns_appresdir}/etc"
9557 infodir
="\${ns_appresdir}/info"
9558 mandir
="\${ns_appresdir}/man"
9559 lispdir
="\${ns_appresdir}/lisp"
9560 leimdir
="\${ns_appresdir}/leim"
9561 INSTALL_ARCH_INDEP_EXTRA
=
9563 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9565 CFLAGS
="$tmp_CFLAGS"
9566 CPPFLAGS
="$tmp_CPPFLAGS"
9573 ## $window_system is now set to the window system we will
9581 case "${window_system}" in
9586 case "${with_x_toolkit}" in
9587 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9588 motif
) USE_X_TOOLKIT
=MOTIF
;;
9590 term_header
=gtkutil.h
9591 USE_X_TOOLKIT
=none
;;
9592 gtk2
) with_gtk2
=yes
9593 term_header
=gtkutil.h
9594 USE_X_TOOLKIT
=none
;;
9595 gtk3
) with_gtk3
=yes
9596 term_header
=gtkutil.h
9597 USE_X_TOOLKIT
=none
;;
9598 no
) USE_X_TOOLKIT
=none
;;
9599 * ) USE_X_TOOLKIT
=maybe
;;
9603 term_header
=nsterm.h
9607 if test -n "${term_header}"; then
9609 cat >>confdefs.h
<<_ACEOF
9610 #define TERM_HEADER "${term_header}"
9615 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9616 # Extract the first word of "X", so it can be a program name with args.
9617 set dummy X
; ac_word
=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9623 if test -n "$HAVE_XSERVER"; then
9624 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9630 test -z "$as_dir" && as_dir
=.
9631 for ac_exec_ext
in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_HAVE_XSERVER
="true"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9644 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9645 if test -n "$HAVE_XSERVER"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9647 $as_echo "$HAVE_XSERVER" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 if test "$HAVE_XSERVER" = true ||
9655 test -n "$DISPLAY" ||
9656 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9657 as_fn_error
"You seem to be running X, but no X development libraries
9658 were found. You should install the relevant development files for X
9659 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9660 sure you have development files for image handling, i.e.
9661 tiff, gif, jpeg, png and xpm.
9662 If you are sure you want Emacs compiled without X window support, pass
9664 to configure." "$LINENO" 5
9668 ### If we're using X11, we should use the X menu package.
9671 yes ) HAVE_MENUS
=yes ;;
9674 # Does the opsystem file prohibit the use of the GNU malloc?
9675 # Assume not, until told otherwise.
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9679 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9680 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9686 static void hook (void) {}
9690 malloc_set_state (malloc_get_state ());
9691 __after_morecore_hook = hook;
9692 __malloc_initialize_hook = hook;
9697 if ac_fn_c_try_link
"$LINENO"; then :
9698 emacs_cv_var_doug_lea_malloc
=yes
9700 emacs_cv_var_doug_lea_malloc
=no
9702 rm -f core conftest.err conftest.
$ac_objext \
9703 conftest
$ac_exeext conftest.
$ac_ext
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9706 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9707 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9712 ## darwin ld insists on the use of malloc routines in the System framework.
9713 darwin|sol2-10
) system_malloc
=yes ;;
9716 if test "${system_malloc}" = "yes"; then
9718 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9722 (The GNU allocators don't work with this system configuration.)"
9726 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9727 VMLIMIT_OBJ
=vm-limit.o
9732 if test "$doug_lea_malloc" = "yes" ; then
9733 if test "$GNU_MALLOC" = yes ; then
9735 (Using Doug Lea's new malloc from the GNU C Library.)"
9738 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9741 ## Use mmap directly for allocating larger buffers.
9742 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9743 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9744 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9746 gnu
*) REL_ALLOC
=no
;;
9750 if test x
"${REL_ALLOC}" = x
; then
9751 REL_ALLOC
=${GNU_MALLOC}
9754 use_mmap_for_buffers
=no
9756 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9766 for ac_func
in getpagesize
9768 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9769 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9770 cat >>confdefs.h
<<_ACEOF
9771 #define HAVE_GETPAGESIZE 1
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9778 $as_echo_n "checking for working mmap... " >&6; }
9779 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9782 if test "$cross_compiling" = yes; then :
9783 ac_cv_func_mmap_fixed_mapped
=no
9785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 /* malloc might have been renamed as rpl_malloc. */
9791 /* Thanks to Mike Haertel and Jim Avera for this test.
9792 Here is a matrix of mmap possibilities:
9793 mmap private not fixed
9794 mmap private fixed at somewhere currently unmapped
9795 mmap private fixed at somewhere already mapped
9796 mmap shared not fixed
9797 mmap shared fixed at somewhere currently unmapped
9798 mmap shared fixed at somewhere already mapped
9799 For private mappings, we should verify that changes cannot be read()
9800 back from the file, nor mmap's back from the file at a different
9801 address. (There have been systems where private was not correctly
9802 implemented like the infamous i386 svr4.0, and systems where the
9803 VM page cache was not coherent with the file system buffer cache
9804 like early versions of FreeBSD and possibly contemporary NetBSD.)
9805 For shared mappings, we should conversely verify that changes get
9806 propagated back to all the places they're supposed to be.
9808 Grep wants private fixed already mapped.
9809 The main things grep needs to know about mmap are:
9810 * does it exist and is it safe to write into the mmap'd area
9811 * how to use it (BSD variants) */
9814 #include <sys/mman.h>
9816 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9820 /* This mess was copied from the GNU getpagesize.h. */
9821 #ifndef HAVE_GETPAGESIZE
9822 # ifdef _SC_PAGESIZE
9823 # define getpagesize() sysconf(_SC_PAGESIZE)
9824 # else /* no _SC_PAGESIZE */
9825 # ifdef HAVE_SYS_PARAM_H
9826 # include <sys/param.h>
9827 # ifdef EXEC_PAGESIZE
9828 # define getpagesize() EXEC_PAGESIZE
9829 # else /* no EXEC_PAGESIZE */
9831 # define getpagesize() NBPG * CLSIZE
9834 # endif /* no CLSIZE */
9835 # else /* no NBPG */
9837 # define getpagesize() NBPC
9838 # else /* no NBPC */
9840 # define getpagesize() PAGESIZE
9841 # endif /* PAGESIZE */
9842 # endif /* no NBPC */
9843 # endif /* no NBPG */
9844 # endif /* no EXEC_PAGESIZE */
9845 # else /* no HAVE_SYS_PARAM_H */
9846 # define getpagesize() 8192 /* punt totally */
9847 # endif /* no HAVE_SYS_PARAM_H */
9848 # endif /* no _SC_PAGESIZE */
9850 #endif /* no HAVE_GETPAGESIZE */
9855 char *data, *data2, *data3;
9860 pagesize = getpagesize ();
9862 /* First, make a file with some known garbage in it. */
9863 data = (char *) malloc (pagesize);
9866 for (i = 0; i < pagesize; ++i)
9867 *(data + i) = rand ();
9869 fd = creat ("conftest.mmap", 0600);
9872 if (write (fd, data, pagesize) != pagesize)
9876 /* Next, check that the tail of a page is zero-filled. File must have
9877 non-zero length, otherwise we risk SIGBUS for entire page. */
9878 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9882 if (write (fd2, cdata2, 1) != 1)
9884 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9885 if (data2 == MAP_FAILED)
9887 for (i = 0; i < pagesize; ++i)
9891 if (munmap (data2, pagesize))
9894 /* Next, try to mmap the file at a fixed address which already has
9895 something else allocated at it. If we can, also make sure that
9896 we see the same garbage. */
9897 fd = open ("conftest.mmap", O_RDWR);
9900 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9901 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9903 for (i = 0; i < pagesize; ++i)
9904 if (*(data + i) != *(data2 + i))
9907 /* Finally, make sure that changes to the mapped area do not
9908 percolate back to the file as seen by read(). (This is a bug on
9909 some variants of i386 svr4.0.) */
9910 for (i = 0; i < pagesize; ++i)
9911 *(data2 + i) = *(data2 + i) + 1;
9912 data3 = (char *) malloc (pagesize);
9915 if (read (fd, data3, pagesize) != pagesize)
9917 for (i = 0; i < pagesize; ++i)
9918 if (*(data + i) != *(data3 + i))
9924 if ac_fn_c_try_run
"$LINENO"; then :
9925 ac_cv_func_mmap_fixed_mapped
=yes
9927 ac_cv_func_mmap_fixed_mapped
=no
9929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9935 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9938 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9941 rm -f conftest.mmap conftest.txt
9943 if test $use_mmap_for_buffers = yes; then
9945 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9950 LIBS
="$LIBS_SYSTEM $LIBS"
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9953 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9954 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9957 ac_check_lib_save_LIBS
=$LIBS
9959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9962 /* Override any GCC internal prototype to avoid an error.
9963 Use char because int might match the return type of a GCC
9964 builtin and then its argument prototype would still apply. */
9972 return dnet_ntoa ();
9977 if ac_fn_c_try_link
"$LINENO"; then :
9978 ac_cv_lib_dnet_dnet_ntoa
=yes
9980 ac_cv_lib_dnet_dnet_ntoa
=no
9982 rm -f core conftest.err conftest.
$ac_objext \
9983 conftest
$ac_exeext conftest.
$ac_ext
9984 LIBS
=$ac_check_lib_save_LIBS
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9987 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9988 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9989 cat >>confdefs.h
<<_ACEOF
9990 #define HAVE_LIBDNET 1
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9999 $as_echo_n "checking for main in -lXbsd... " >&6; }
10000 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10003 ac_check_lib_save_LIBS
=$LIBS
10004 LIBS
="-lXbsd $LIBS"
10005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10017 if ac_fn_c_try_link
"$LINENO"; then :
10018 ac_cv_lib_Xbsd_main
=yes
10020 ac_cv_lib_Xbsd_main
=no
10022 rm -f core conftest.err conftest.
$ac_objext \
10023 conftest
$ac_exeext conftest.
$ac_ext
10024 LIBS
=$ac_check_lib_save_LIBS
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10027 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10028 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10029 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10037 if test "$ac_cv_header_pthread_h"; then
10038 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10039 emacs_pthread_function
=pthread_atfork
10041 emacs_pthread_function
=pthread_self
10043 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10045 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10046 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10047 $as_echo_n "(cached) " >&6
10049 ac_check_lib_save_LIBS
=$LIBS
10050 LIBS
="-lpthread $LIBS"
10051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 /* Override any GCC internal prototype to avoid an error.
10055 Use char because int might match the return type of a GCC
10056 builtin and then its argument prototype would still apply. */
10060 char $emacs_pthread_function ();
10064 return $emacs_pthread_function ();
10069 if ac_fn_c_try_link
"$LINENO"; then :
10070 eval "$as_ac_Lib=yes"
10072 eval "$as_ac_Lib=no"
10074 rm -f core conftest.err conftest.
$ac_objext \
10075 conftest
$ac_exeext conftest.
$ac_ext
10076 LIBS
=$ac_check_lib_save_LIBS
10078 eval ac_res
=\$
$as_ac_Lib
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10080 $as_echo "$ac_res" >&6; }
10081 eval as_val
=\$
$as_ac_Lib
10082 if test "x$as_val" = x
""yes; then :
10087 if test "$HAVE_PTHREAD" = yes; then
10088 case "${canonical}" in
10090 *) LIB_PTHREAD
="-lpthread"
10091 LIBS
="$LIB_PTHREAD $LIBS" ;;
10094 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10100 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10101 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10104 ac_check_lib_save_LIBS
=$LIBS
10105 LIBS
="-lpthreads $LIBS"
10106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10109 /* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
10119 return cma_open ();
10124 if ac_fn_c_try_link
"$LINENO"; then :
10125 ac_cv_lib_pthreads_cma_open
=yes
10127 ac_cv_lib_pthreads_cma_open
=no
10129 rm -f core conftest.err conftest.
$ac_objext \
10130 conftest
$ac_exeext conftest.
$ac_ext
10131 LIBS
=$ac_check_lib_save_LIBS
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10134 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10135 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10136 cat >>confdefs.h
<<_ACEOF
10137 #define HAVE_LIBPTHREADS 1
10140 LIBS
="-lpthreads $LIBS"
10145 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10146 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10147 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10148 ## added to LIBS in configure would never contain the pthreads part,
10149 ## but the value used in Makefiles might. FIXME?
10151 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10152 ## be harmless on older versions of X where it happens to exist.
10153 test "$opsys" = "aix4-2" && \
10154 test $ac_cv_lib_pthreads_cma_open = yes && \
10155 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10161 $as_echo_n "checking for -bbigtoc option... " >&6; }
10162 if test "${gdb_cv_bigtoc+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10167 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10168 *) gdb_cv_bigtoc
=-bbigtoc ;;
10171 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10183 if ac_fn_c_try_link
"$LINENO"; then :
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10193 $as_echo "$gdb_cv_bigtoc" >&6; }
10197 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10198 # used for the tests that follow. We set them back to REAL_CFLAGS and
10199 # REAL_CPPFLAGS later on.
10201 REAL_CFLAGS
="$CFLAGS"
10202 REAL_CPPFLAGS
="$CPPFLAGS"
10204 if test "${HAVE_X11}" = "yes"; then
10205 DEFS
="$C_SWITCH_X_SITE $DEFS"
10206 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10208 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10209 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10211 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10212 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10213 # but it's more convenient here to set LD_RUN_PATH since this
10214 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10215 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10216 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10220 if test "${opsys}" = "gnu-linux"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10222 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10229 XOpenDisplay ("foo");
10234 if ac_fn_c_try_link
"$LINENO"; then :
10235 xgnu_linux_first_failure
=no
10237 xgnu_linux_first_failure
=yes
10239 rm -f core conftest.err conftest.
$ac_objext \
10240 conftest
$ac_exeext conftest.
$ac_ext
10241 if test "${xgnu_linux_first_failure}" = "yes"; then
10242 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10243 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10244 OLD_CPPFLAGS
="$CPPFLAGS"
10246 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10247 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10248 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10249 LIBS
="$LIBS -b i486-linuxaout"
10250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10256 XOpenDisplay ("foo");
10261 if ac_fn_c_try_link
"$LINENO"; then :
10262 xgnu_linux_second_failure
=no
10264 xgnu_linux_second_failure
=yes
10266 rm -f core conftest.err conftest.
$ac_objext \
10267 conftest
$ac_exeext conftest.
$ac_ext
10268 if test "${xgnu_linux_second_failure}" = "yes"; then
10269 # If we get the same failure with -b, there is no use adding -b.
10270 # So take it out. This plays safe.
10271 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10272 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10273 CPPFLAGS
="$OLD_CPPFLAGS"
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10279 $as_echo "yes" >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10287 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10288 # header files included from there.
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10290 $as_echo_n "checking for Xkb... " >&6; }
10291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <X11/Xlib.h>
10294 #include <X11/XKBlib.h>
10298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10303 if ac_fn_c_try_link
"$LINENO"; then :
10308 rm -f core conftest.err conftest.
$ac_objext \
10309 conftest
$ac_exeext conftest.
$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10311 $as_echo "$emacs_xkb" >&6; }
10312 if test $emacs_xkb = yes; then
10314 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10318 for ac_func
in XrmSetDatabase XScreenResourceString \
10319 XScreenNumberOfScreen
10321 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10322 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10323 eval as_val
=\$
$as_ac_var
10324 if test "x$as_val" = x
""yes; then :
10325 cat >>confdefs.h
<<_ACEOF
10326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10334 if test "${window_system}" = "x11"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10336 $as_echo_n "checking X11 version 6... " >&6; }
10337 if test "${emacs_cv_x11_version_6+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 #include <X11/Xlib.h>
10346 #if XlibSpecificationRelease < 6
10354 if ac_fn_c_try_link
"$LINENO"; then :
10355 emacs_cv_x11_version_6
=yes
10357 emacs_cv_x11_version_6
=no
10359 rm -f core conftest.err conftest.
$ac_objext \
10360 conftest
$ac_exeext conftest.
$ac_ext
10363 if test $emacs_cv_x11_version_6 = yes; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10365 $as_echo "6 or newer" >&6; }
10367 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10370 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10372 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10377 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10383 $as_echo "before 6" >&6; }
10388 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10390 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10391 if test "${with_rsvg}" != "no"; then
10392 RSVG_REQUIRED
=2.11.0
10393 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10398 if test "$PKG_CONFIG" = "no" ; then
10401 PKG_CONFIG_MIN_VERSION
=0.9.0
10402 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10404 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10406 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10407 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10408 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10415 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10416 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10418 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10425 ## If we have a custom action on failure, don't print errors, but
10426 ## do set a variable so people can do so. Do it in a subshell
10427 ## to capture any diagnostics in invoking pkg-config.
10428 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10440 if test $succeeded = yes; then
10449 if test $HAVE_RSVG = yes; then
10451 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10453 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10454 LIBS
="$RSVG_LIBS $LIBS"
10459 HAVE_IMAGEMAGICK
=no
10460 if test "${HAVE_X11}" = "yes"; then
10461 if test "${with_imagemagick}" != "no"; then
10462 ## 6.2.8 is the earliest version known to work, but earlier versions
10463 ## might work - let us know if you find one.
10464 ## 6.0.7 does not work. See bug#7955.
10465 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10469 if test "$PKG_CONFIG" = "no" ; then
10472 PKG_CONFIG_MIN_VERSION
=0.9.0
10473 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10475 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10477 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10478 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10479 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10486 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10487 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10489 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 IMAGEMAGICK_CFLAGS
=""
10495 IMAGEMAGICK_LIBS
=""
10496 ## If we have a custom action on failure, don't print errors, but
10497 ## do set a variable so people can do so. Do it in a subshell
10498 ## to capture any diagnostics in invoking pkg-config.
10499 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10511 if test $succeeded = yes; then
10512 HAVE_IMAGEMAGICK
=yes
10520 if test $HAVE_IMAGEMAGICK = yes; then
10522 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10524 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10525 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10526 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10528 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10529 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10530 eval as_val
=\$
$as_ac_var
10531 if test "x$as_val" = x
""yes; then :
10532 cat >>confdefs.h
<<_ACEOF
10533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10548 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10551 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10556 if test "$PKG_CONFIG" = "no" ; then
10559 PKG_CONFIG_MIN_VERSION
=0.9.0
10560 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10562 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10564 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10565 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10566 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10573 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10574 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10576 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10583 ## If we have a custom action on failure, don't print errors, but
10584 ## do set a variable so people can do so. Do it in a subshell
10585 ## to capture any diagnostics in invoking pkg-config.
10586 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10593 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10594 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10598 if test $succeeded = yes; then
10604 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10605 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10607 if test "$pkg_check_gtk" = "yes"; then
10609 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10611 GTK_OBJ
=emacsgtkfixed.o
10612 term_header
=gtkutil.h
10613 USE_GTK_TOOLKIT
="GTK3"
10616 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10620 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10623 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10628 if test "$PKG_CONFIG" = "no" ; then
10631 PKG_CONFIG_MIN_VERSION
=0.9.0
10632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10634 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10636 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10637 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10638 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10645 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10646 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10648 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10655 ## If we have a custom action on failure, don't print errors, but
10656 ## do set a variable so people can do so. Do it in a subshell
10657 ## to capture any diagnostics in invoking pkg-config.
10658 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10670 if test $succeeded = yes; then
10676 if test "$pkg_check_gtk" = "no" &&
10677 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10679 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10681 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10684 if test x
"$pkg_check_gtk" = xyes
; then
10688 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10689 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10690 LIBS
="$GTK_LIBS $LIBS"
10692 for ac_func
in gtk_main
10694 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10695 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10696 cat >>confdefs.h
<<_ACEOF
10697 #define HAVE_GTK_MAIN 1
10703 if test "${GTK_COMPILES}" != "yes"; then
10704 if test "$USE_X_TOOLKIT" != "maybe"; then
10705 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10710 $as_echo "#define USE_GTK 1" >>confdefs.h
10712 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10714 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10718 closing open displays. This is no problem if you just use
10719 one display, but if you use more than one and close one of them
10720 Emacs may crash." >&5
10721 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10722 closing open displays. This is no problem if you just use
10723 one display, but if you use more than one and close one of them
10724 Emacs may crash." >&2;}
10733 if test "${HAVE_GTK}" = "yes"; then
10735 if test "$with_toolkit_scroll_bars" != no
; then
10736 with_toolkit_scroll_bars
=yes
10739 HAVE_GTK_FILE_SELECTION
=no
10740 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10741 #include <gtk/gtk.h>
10743 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10744 HAVE_GTK_FILE_SELECTION
=yes
10746 HAVE_GTK_FILE_SELECTION
=no
10749 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10750 for ac_func
in gtk_file_selection_new
10752 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10753 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10754 cat >>confdefs.h
<<_ACEOF
10755 #define HAVE_GTK_FILE_SELECTION_NEW 1
10764 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10765 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10766 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10767 gtk_orientable_set_orientation \
10768 gtk_window_set_has_resize_grip
10770 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10771 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10772 eval as_val
=\$
$as_ac_var
10773 if test "x$as_val" = x
""yes; then :
10774 cat >>confdefs.h
<<_ACEOF
10775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10782 term_header
=gtkutil.h
10787 if test "${with_dbus}" = "yes"; then
10791 if test "$PKG_CONFIG" = "no" ; then
10794 PKG_CONFIG_MIN_VERSION
=0.9.0
10795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10797 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10799 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10800 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10801 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10808 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10809 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10811 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10818 ## If we have a custom action on failure, don't print errors, but
10819 ## do set a variable so people can do so. Do it in a subshell
10820 ## to capture any diagnostics in invoking pkg-config.
10821 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10833 if test $succeeded = yes; then
10839 if test "$HAVE_DBUS" = yes; then
10840 LIBS
="$LIBS $DBUS_LIBS"
10842 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10844 for ac_func
in dbus_watch_get_unix_fd \
10845 dbus_type_is_valid \
10846 dbus_validate_bus_name \
10847 dbus_validate_path \
10848 dbus_validate_interface \
10849 dbus_validate_member
10851 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10853 eval as_val
=\$
$as_ac_var
10854 if test "x$as_val" = x
""yes; then :
10855 cat >>confdefs.h
<<_ACEOF
10856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10862 DBUS_OBJ
=dbusbind.o
10868 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10872 if test "$PKG_CONFIG" = "no" ; then
10875 PKG_CONFIG_MIN_VERSION
=0.9.0
10876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10878 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10880 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10881 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10882 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10889 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10890 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10892 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10897 GSETTINGS_CFLAGS
=""
10899 ## If we have a custom action on failure, don't print errors, but
10900 ## do set a variable so people can do so. Do it in a subshell
10901 ## to capture any diagnostics in invoking pkg-config.
10902 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10909 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10910 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10914 if test $succeeded = yes; then
10920 if test "$HAVE_GSETTINGS" = "yes"; then
10922 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10924 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10925 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10930 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10934 if test "$PKG_CONFIG" = "no" ; then
10937 PKG_CONFIG_MIN_VERSION
=0.9.0
10938 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10940 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10942 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10943 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10944 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10951 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10952 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10954 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10961 ## If we have a custom action on failure, don't print errors, but
10962 ## do set a variable so people can do so. Do it in a subshell
10963 ## to capture any diagnostics in invoking pkg-config.
10964 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10976 if test $succeeded = yes; then
10982 if test "$HAVE_GCONF" = yes; then
10984 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10986 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10987 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10991 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10995 if test "$PKG_CONFIG" = "no" ; then
10998 PKG_CONFIG_MIN_VERSION
=0.9.0
10999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11001 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11003 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11004 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11005 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11012 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11013 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11015 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11022 ## If we have a custom action on failure, don't print errors, but
11023 ## do set a variable so people can do so. Do it in a subshell
11024 ## to capture any diagnostics in invoking pkg-config.
11025 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11032 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11033 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11037 if test $succeeded = yes; then
11043 if test "$HAVE_GOBJECT" = "yes"; then
11044 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11045 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11047 SAVE_CFLAGS
="$CFLAGS"
11049 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11050 LIBS
="$SETTINGS_LIBS $LIBS"
11051 for ac_func
in g_type_init
11053 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11054 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11055 cat >>confdefs.h
<<_ACEOF
11056 #define HAVE_G_TYPE_INIT 1
11062 CFLAGS
="$SAVE_CFLAGS"
11071 if test "${with_selinux}" = "yes"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11073 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11074 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11077 ac_check_lib_save_LIBS
=$LIBS
11078 LIBS
="-lselinux $LIBS"
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11088 char lgetfilecon ();
11092 return lgetfilecon ();
11097 if ac_fn_c_try_link
"$LINENO"; then :
11098 ac_cv_lib_selinux_lgetfilecon
=yes
11100 ac_cv_lib_selinux_lgetfilecon
=no
11102 rm -f core conftest.err conftest.
$ac_objext \
11103 conftest
$ac_exeext conftest.
$ac_ext
11104 LIBS
=$ac_check_lib_save_LIBS
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11107 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11108 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11109 HAVE_LIBSELINUX
=yes
11114 if test "$HAVE_LIBSELINUX" = yes; then
11116 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11118 LIBSELINUX_LIBS
=-lselinux
11124 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11125 if test "${with_gnutls}" = "yes" ; then
11129 if test "$PKG_CONFIG" = "no" ; then
11132 PKG_CONFIG_MIN_VERSION
=0.9.0
11133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11135 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11137 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11138 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11139 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11146 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11147 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11149 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11154 LIBGNUTLS_CFLAGS
=""
11156 ## If we have a custom action on failure, don't print errors, but
11157 ## do set a variable so people can do so. Do it in a subshell
11158 ## to capture any diagnostics in invoking pkg-config.
11159 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11166 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11167 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11171 if test $succeeded = yes; then
11177 if test "${HAVE_GNUTLS}" = "yes"; then
11179 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11183 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11184 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11185 for ac_func
in gnutls_certificate_set_verify_function
11187 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11188 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11189 cat >>confdefs.h
<<_ACEOF
11190 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11192 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11197 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11199 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11209 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11210 if test "$with_xaw3d" != no
; then
11211 if test "${emacs_cv_xaw3d+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 #include <X11/Intrinsic.h>
11218 #include <X11/Xaw3d/Simple.h>
11227 if ac_fn_c_try_link
"$LINENO"; then :
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11229 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11230 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11233 ac_check_lib_save_LIBS
=$LIBS
11234 LIBS
="-lXaw3d $LIBS"
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11244 char XawScrollbarSetThumb ();
11248 return XawScrollbarSetThumb ();
11253 if ac_fn_c_try_link
"$LINENO"; then :
11254 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11256 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11258 rm -f core conftest.err conftest.
$ac_objext \
11259 conftest
$ac_exeext conftest.
$ac_ext
11260 LIBS
=$ac_check_lib_save_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11263 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11264 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11273 rm -f core conftest.err conftest.
$ac_objext \
11274 conftest
$ac_exeext conftest.
$ac_ext
11280 if test $emacs_cv_xaw3d = yes; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11282 $as_echo_n "checking for xaw3d... " >&6; }
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11284 $as_echo "yes; using Lucid toolkit" >&6; }
11285 USE_X_TOOLKIT
=LUCID
11289 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11293 $as_echo_n "checking for xaw3d... " >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11297 $as_echo_n "checking for libXaw... " >&6; }
11298 if test "${emacs_cv_xaw+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11304 #include <X11/Intrinsic.h>
11305 #include <X11/Xaw/Simple.h>
11314 if ac_fn_c_try_link
"$LINENO"; then :
11319 rm -f core conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11323 if test $emacs_cv_xaw = yes; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11325 $as_echo "yes; using Lucid toolkit" >&6; }
11326 USE_X_TOOLKIT
=LUCID
11328 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11329 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11331 as_fn_error
"No X toolkit could be found.
11332 If you are sure you want Emacs compiled without an X toolkit, pass
11333 --with-x-toolkit=no
11334 to configure. Otherwise, install the development libraries for the toolkit
11335 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11340 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11343 if test "${USE_X_TOOLKIT}" != "none"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11345 $as_echo_n "checking X11 toolkit version... " >&6; }
11346 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 #include <X11/Intrinsic.h>
11355 #if XtSpecificationRelease < 6
11363 if ac_fn_c_try_link
"$LINENO"; then :
11364 emacs_cv_x11_toolkit_version_6
=yes
11366 emacs_cv_x11_toolkit_version_6
=no
11368 rm -f core conftest.err conftest.
$ac_objext \
11369 conftest
$ac_exeext conftest.
$ac_ext
11372 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11373 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11375 $as_echo "6 or newer" >&6; }
11377 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11379 LIBXTR6
="-lSM -lICE"
11381 ## Use libw.a along with X11R6 Xt.
11382 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11386 $as_echo "before 6" >&6; }
11390 if test x
$HAVE_X11XTR6 = xyes
; then
11391 LIBS
="-lXt -lSM -lICE $LIBS"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11396 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11397 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 ac_check_lib_save_LIBS
=$LIBS
11402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11405 /* Override any GCC internal prototype to avoid an error.
11406 Use char because int might match the return type of a GCC
11407 builtin and then its argument prototype would still apply. */
11411 char XmuConvertStandardSelection ();
11415 return XmuConvertStandardSelection ();
11420 if ac_fn_c_try_link
"$LINENO"; then :
11421 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11423 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11425 rm -f core conftest.err conftest.
$ac_objext \
11426 conftest
$ac_exeext conftest.
$ac_ext
11427 LIBS
=$ac_check_lib_save_LIBS
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11430 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11431 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11432 cat >>confdefs.h
<<_ACEOF
11433 #define HAVE_LIBXMU 1
11440 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11446 ## These systems don't supply Xmu.
11448 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11454 if test "${HAVE_X11}" = "yes"; then
11455 if test "${USE_X_TOOLKIT}" != "none"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11457 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11458 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11461 ac_check_lib_save_LIBS
=$LIBS
11462 LIBS
="-lXext $LIBS"
11463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11472 char XShapeQueryExtension ();
11476 return XShapeQueryExtension ();
11481 if ac_fn_c_try_link
"$LINENO"; then :
11482 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11484 ac_cv_lib_Xext_XShapeQueryExtension
=no
11486 rm -f core conftest.err conftest.
$ac_objext \
11487 conftest
$ac_exeext conftest.
$ac_ext
11488 LIBS
=$ac_check_lib_save_LIBS
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11491 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11492 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11493 cat >>confdefs.h
<<_ACEOF
11494 #define HAVE_LIBXEXT 1
11497 LIBS
="-lXext $LIBS"
11505 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11506 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11507 if test -d /usr
/include
/openmotif
; then
11508 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11509 emacs_cv_openmotif
=yes
11510 case "$canonical" in
11511 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11512 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11515 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11518 emacs_cv_openmotif
=no
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11521 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11522 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11531 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11534 Motif version prior to 2.1.
11540 if ac_fn_c_try_compile
"$LINENO"; then :
11541 emacs_cv_motif_version_2_1
=yes
11543 emacs_cv_motif_version_2_1
=no
11545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11548 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11549 if test $emacs_cv_motif_version_2_1 = yes; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11551 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11552 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 ac_check_lib_save_LIBS
=$LIBS
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11566 char XpCreateContext ();
11570 return XpCreateContext ();
11575 if ac_fn_c_try_link
"$LINENO"; then :
11576 ac_cv_lib_Xp_XpCreateContext
=yes
11578 ac_cv_lib_Xp_XpCreateContext
=no
11580 rm -f core conftest.err conftest.
$ac_objext \
11581 conftest
$ac_exeext conftest.
$ac_ext
11582 LIBS
=$ac_check_lib_save_LIBS
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11585 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11586 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11590 if test x
$emacs_cv_openmotif = xyes
; then
11591 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11595 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11596 if test "${emacs_cv_lesstif+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11599 # We put this in CFLAGS temporarily to precede other -I options
11600 # that might be in CFLAGS temporarily.
11601 # We put this in CPPFLAGS where it precedes the other -I options.
11602 OLD_CPPFLAGS
=$CPPFLAGS
11604 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11605 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11617 if ac_fn_c_try_compile
"$LINENO"; then :
11618 emacs_cv_lesstif
=yes
11620 emacs_cv_lesstif
=no
11622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11625 $as_echo "$emacs_cv_lesstif" >&6; }
11626 if test $emacs_cv_lesstif = yes; then
11627 # Make sure this -I option remains in CPPFLAGS after it is set
11628 # back to REAL_CPPFLAGS.
11629 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11630 # have those other -I options anyway. Ultimately, having this
11631 # directory ultimately in CPPFLAGS will be enough.
11632 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11633 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11636 CPPFLAGS
=$OLD_CPPFLAGS
11639 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11640 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11643 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11650 USE_TOOLKIT_SCROLL_BARS
=no
11651 if test "${with_toolkit_scroll_bars}" != "no"; then
11652 if test "${USE_X_TOOLKIT}" != "none"; then
11653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11654 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11657 USE_TOOLKIT_SCROLL_BARS
=yes
11658 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11659 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11661 USE_TOOLKIT_SCROLL_BARS
=yes
11663 elif test "${HAVE_GTK}" = "yes"; then
11664 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11666 USE_TOOLKIT_SCROLL_BARS
=yes
11667 elif test "${HAVE_NS}" = "yes"; then
11668 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11670 USE_TOOLKIT_SCROLL_BARS
=yes
11674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11677 #include <X11/Xlib.h>
11678 #include <X11/Xresource.h>
11687 if ac_fn_c_try_compile
"$LINENO"; then :
11690 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11698 if test "${with_xim}" != "no"; then
11700 $as_echo "#define USE_XIM 1" >>confdefs.h
11705 if test "${HAVE_XIM}" != "no"; then
11706 late_CFLAGS
=$CFLAGS
11707 if test "$GCC" = yes; then
11708 CFLAGS
="$CFLAGS --pedantic-errors"
11710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 #include <X11/Xlib.h>
11714 #include <X11/Xresource.h>
11723 XPointer *client_data;
11725 /* If we're not using GCC, it's probably not XFree86, and this is
11726 probably right, but we can't use something like --pedantic-errors. */
11727 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11728 char*, XIMProc, XPointer*);
11730 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11736 if ac_fn_c_try_compile
"$LINENO"; then :
11737 emacs_cv_arg6_star
=yes
11739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11740 if test "$emacs_cv_arg6_star" = yes; then
11741 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11744 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11747 CFLAGS
=$late_CFLAGS
11750 ### Start of font-backend (under any platform) section.
11751 # (nothing here yet -- this is a placeholder)
11752 ### End of font-backend (under any platform) section.
11754 ### Start of font-backend (under X11) section.
11755 if test "${HAVE_X11}" = "yes"; then
11759 if test "$PKG_CONFIG" = "no" ; then
11762 PKG_CONFIG_MIN_VERSION
=0.9.0
11763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11765 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11767 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11768 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11769 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11776 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11777 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11779 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11784 FONTCONFIG_CFLAGS
=""
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so. Do it in a subshell
11788 ## to capture any diagnostics in invoking pkg-config.
11789 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11796 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11797 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11801 if test $succeeded = yes; then
11808 ## Use -lXft if available, unless `--with-xft=no'.
11810 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11813 if test "x${with_xft}" != "xno"; then
11818 if test "$PKG_CONFIG" = "no" ; then
11821 PKG_CONFIG_MIN_VERSION
=0.9.0
11822 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11824 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11826 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11827 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11828 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11835 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11836 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11838 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11845 ## If we have a custom action on failure, don't print errors, but
11846 ## do set a variable so people can do so. Do it in a subshell
11847 ## to capture any diagnostics in invoking pkg-config.
11848 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11855 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11856 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11860 if test $succeeded = yes; then
11866 ## Because xftfont.c uses XRenderQueryExtension, we also
11867 ## need to link to -lXrender.
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11870 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11871 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11874 ac_check_lib_save_LIBS
=$LIBS
11875 LIBS
="-lXrender $LIBS"
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11885 char XRenderQueryExtension ();
11889 return XRenderQueryExtension ();
11894 if ac_fn_c_try_link
"$LINENO"; then :
11895 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11897 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11899 rm -f core conftest.err conftest.
$ac_objext \
11900 conftest
$ac_exeext conftest.
$ac_ext
11901 LIBS
=$ac_check_lib_save_LIBS
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11904 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11905 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11909 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11910 OLD_CPPFLAGS
="$CPPFLAGS"
11911 OLD_CFLAGS
="$CFLAGS"
11913 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11914 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11915 XFT_LIBS
="-lXrender $XFT_LIBS"
11916 LIBS
="$XFT_LIBS $LIBS"
11917 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11918 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11920 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11921 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11924 ac_check_lib_save_LIBS
=$LIBS
11925 LIBS
="-lXft $XFT_LIBS $LIBS"
11926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11935 char XftFontOpen ();
11939 return XftFontOpen ();
11944 if ac_fn_c_try_link
"$LINENO"; then :
11945 ac_cv_lib_Xft_XftFontOpen
=yes
11947 ac_cv_lib_Xft_XftFontOpen
=no
11949 rm -f core conftest.err conftest.
$ac_objext \
11950 conftest
$ac_exeext conftest.
$ac_ext
11951 LIBS
=$ac_check_lib_save_LIBS
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11954 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11955 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11963 if test "${HAVE_XFT}" = "yes"; then
11965 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11968 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11970 CPPFLAGS
="$OLD_CPPFLAGS"
11971 CFLAGS
="$OLD_CFLAGS"
11973 fi # "${HAVE_XFT}" = "yes"
11974 fi # "$HAVE_XFT" != no
11975 fi # "x${with_xft}" != "xno"
11977 ## We used to allow building with FreeType and without Xft.
11978 ## However, the ftx font backend driver is not in good shape.
11979 if test "$HAVE_XFT" != "yes"; then
11986 if test "$PKG_CONFIG" = "no" ; then
11989 PKG_CONFIG_MIN_VERSION
=0.9.0
11990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11992 $as_echo_n "checking for freetype2... " >&6; }
11994 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11995 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11996 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12003 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12004 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12006 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12013 ## If we have a custom action on failure, don't print errors, but
12014 ## do set a variable so people can do so. Do it in a subshell
12015 ## to capture any diagnostics in invoking pkg-config.
12016 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12023 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12024 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12028 if test $succeeded = yes; then
12035 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12039 if test "${HAVE_FREETYPE}" = "yes"; then
12041 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12043 if test "${with_libotf}" != "no"; then
12047 if test "$PKG_CONFIG" = "no" ; then
12050 PKG_CONFIG_MIN_VERSION
=0.9.0
12051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12053 $as_echo_n "checking for libotf... " >&6; }
12055 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12056 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12057 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12064 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12065 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12067 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12074 ## If we have a custom action on failure, don't print errors, but
12075 ## do set a variable so people can do so. Do it in a subshell
12076 ## to capture any diagnostics in invoking pkg-config.
12077 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12084 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12085 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12089 if test $succeeded = yes; then
12095 if test "$HAVE_LIBOTF" = "yes"; then
12097 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12100 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12101 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12102 $as_echo_n "(cached) " >&6
12104 ac_check_lib_save_LIBS
=$LIBS
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12115 char OTF_get_variation_glyphs ();
12119 return OTF_get_variation_glyphs ();
12124 if ac_fn_c_try_link
"$LINENO"; then :
12125 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12127 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12129 rm -f core conftest.err conftest.
$ac_objext \
12130 conftest
$ac_exeext conftest.
$ac_ext
12131 LIBS
=$ac_check_lib_save_LIBS
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12134 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12135 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12136 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12138 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12141 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12143 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12151 if test "${HAVE_LIBOTF}" = yes; then
12152 if test "${with_m17n_flt}" != "no"; then
12156 if test "$PKG_CONFIG" = "no" ; then
12159 PKG_CONFIG_MIN_VERSION
=0.9.0
12160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12162 $as_echo_n "checking for m17n-flt... " >&6; }
12164 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12165 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12166 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12173 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12174 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12176 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12183 ## If we have a custom action on failure, don't print errors, but
12184 ## do set a variable so people can do so. Do it in a subshell
12185 ## to capture any diagnostics in invoking pkg-config.
12186 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12198 if test $succeeded = yes; then
12204 if test "$HAVE_M17N_FLT" = "yes"; then
12206 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12218 ### End of font-backend (under X11) section.
12229 ### Use -lXpm if available, unless `--with-xpm=no'.
12232 if test "${HAVE_X11}" = "yes"; then
12233 if test "${with_xpm}" != "no"; then
12234 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12235 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12237 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12238 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12241 ac_check_lib_save_LIBS
=$LIBS
12242 LIBS
="-lXpm -lX11 $LIBS"
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12252 char XpmReadFileToPixmap ();
12256 return XpmReadFileToPixmap ();
12261 if ac_fn_c_try_link
"$LINENO"; then :
12262 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12264 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12266 rm -f core conftest.err conftest.
$ac_objext \
12267 conftest
$ac_exeext conftest.
$ac_ext
12268 LIBS
=$ac_check_lib_save_LIBS
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12271 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12272 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12279 if test "${HAVE_XPM}" = "yes"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12281 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284 #include "X11/xpm.h"
12285 #ifndef XpmReturnAllocPixels
12286 no_return_alloc_pixels
12290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12299 if test "${HAVE_XPM}" = "yes"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301 $as_echo "yes" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12309 if test "${HAVE_XPM}" = "yes"; then
12311 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12318 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12321 if test "${HAVE_X11}" = "yes"; then
12322 if test "${with_jpeg}" != "no"; then
12323 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12324 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12326 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12327 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 ac_check_lib_save_LIBS
=$LIBS
12331 LIBS
="-ljpeg $LIBS"
12332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12335 /* Override any GCC internal prototype to avoid an error.
12336 Use char because int might match the return type of a GCC
12337 builtin and then its argument prototype would still apply. */
12341 char jpeg_destroy_compress ();
12345 return jpeg_destroy_compress ();
12350 if ac_fn_c_try_link
"$LINENO"; then :
12351 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12353 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12355 rm -f core conftest.err conftest.
$ac_objext \
12356 conftest
$ac_exeext conftest.
$ac_ext
12357 LIBS
=$ac_check_lib_save_LIBS
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12360 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12361 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12370 if test "${HAVE_JPEG}" = "yes"; then
12371 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #include <jpeglib.h>
12376 version=JPEG_LIB_VERSION
12379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12380 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12381 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12385 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12391 if test "${HAVE_JPEG}" = "yes"; then
12397 ### Use -lpng if available, unless `--with-png=no'.
12400 if test "${HAVE_X11}" = "yes"; then
12401 if test "${with_png}" != "no"; then
12402 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12403 # in /usr/include/libpng.
12404 for ac_header
in png.h libpng
/png.h
12406 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12407 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12408 eval as_val
=\$
$as_ac_Header
12409 if test "x$as_val" = x
""yes; then :
12410 cat >>confdefs.h
<<_ACEOF
12411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12420 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12421 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 ac_check_lib_save_LIBS
=$LIBS
12425 LIBS
="-lpng -lz -lm $LIBS"
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12429 /* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
12435 char png_get_channels ();
12439 return png_get_channels ();
12444 if ac_fn_c_try_link
"$LINENO"; then :
12445 ac_cv_lib_png_png_get_channels
=yes
12447 ac_cv_lib_png_png_get_channels
=no
12449 rm -f core conftest.err conftest.
$ac_objext \
12450 conftest
$ac_exeext conftest.
$ac_ext
12451 LIBS
=$ac_check_lib_save_LIBS
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12454 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12455 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12462 if test "${HAVE_PNG}" = "yes"; then
12464 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12466 LIBPNG
="-lpng -lz -lm"
12468 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12469 # include <libpng/png.h>
12475 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12479 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12487 ### Use -ltiff if available, unless `--with-tiff=no'.
12490 if test "${HAVE_X11}" = "yes"; then
12491 if test "${with_tiff}" != "no"; then
12492 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12493 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12495 # At least one tiff package requires the jpeg library.
12496 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12498 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12499 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12502 ac_check_lib_save_LIBS
=$LIBS
12503 LIBS
="-ltiff $tifflibs $LIBS"
12504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12513 char TIFFGetVersion ();
12517 return TIFFGetVersion ();
12522 if ac_fn_c_try_link
"$LINENO"; then :
12523 ac_cv_lib_tiff_TIFFGetVersion
=yes
12525 ac_cv_lib_tiff_TIFFGetVersion
=no
12527 rm -f core conftest.err conftest.
$ac_objext \
12528 conftest
$ac_exeext conftest.
$ac_ext
12529 LIBS
=$ac_check_lib_save_LIBS
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12532 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12533 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12542 if test "${HAVE_TIFF}" = "yes"; then
12544 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12551 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12554 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12555 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12556 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12557 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12558 # Earlier versions can crash Emacs.
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12560 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12561 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12564 ac_check_lib_save_LIBS
=$LIBS
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 /* Override any GCC internal prototype to avoid an error.
12570 Use char because int might match the return type of a GCC
12571 builtin and then its argument prototype would still apply. */
12575 char EGifPutExtensionLast ();
12579 return EGifPutExtensionLast ();
12584 if ac_fn_c_try_link
"$LINENO"; then :
12585 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12587 ac_cv_lib_gif_EGifPutExtensionLast
=no
12589 rm -f core conftest.err conftest.
$ac_objext \
12590 conftest
$ac_exeext conftest.
$ac_ext
12591 LIBS
=$ac_check_lib_save_LIBS
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12594 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12595 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12605 if test "$HAVE_GIF" = yes; then
12607 elif test "$HAVE_GIF" = maybe
; then
12608 # If gif_lib.h but no libgif, try libungif.
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12610 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12611 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 ac_check_lib_save_LIBS
=$LIBS
12615 LIBS
="-lungif $LIBS"
12616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12625 char EGifPutExtensionLast ();
12629 return EGifPutExtensionLast ();
12634 if ac_fn_c_try_link
"$LINENO"; then :
12635 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12637 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12639 rm -f core conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12641 LIBS
=$ac_check_lib_save_LIBS
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12644 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12645 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12651 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12654 if test "${HAVE_GIF}" = "yes"; then
12656 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12662 if test "${HAVE_X11}" = "yes"; then
12665 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12666 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12667 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12668 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12669 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12670 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12671 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12672 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12673 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12674 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12676 if test "X${MISSING}" != X
; then
12677 as_fn_error
"The following required libraries were not found:
12679 Maybe some development libraries/packages are missing?
12680 If you don't want to link with them give
12682 as options to configure" "$LINENO" 5
12686 ### Use -lgpm if available, unless `--with-gpm=no'.
12689 if test "${with_gpm}" != "no"; then
12690 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12691 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12693 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12694 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12697 ac_check_lib_save_LIBS
=$LIBS
12699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12712 return Gpm_Open ();
12717 if ac_fn_c_try_link
"$LINENO"; then :
12718 ac_cv_lib_gpm_Gpm_Open
=yes
12720 ac_cv_lib_gpm_Gpm_Open
=no
12722 rm -f core conftest.err conftest.
$ac_objext \
12723 conftest
$ac_exeext conftest.
$ac_ext
12724 LIBS
=$ac_check_lib_save_LIBS
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12727 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12728 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12736 if test "${HAVE_GPM}" = "yes"; then
12738 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12750 ### Use NeXTstep API to implement GUI.
12751 if test "${HAVE_NS}" = "yes"; then
12753 $as_echo "#define HAVE_NS 1" >>confdefs.h
12755 if test "${NS_IMPL_COCOA}" = "yes"; then
12757 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12760 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12762 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12764 # See also .m.o rule in Makefile.in */
12765 # FIXME: are all these flags really needed? Document here why. */
12766 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12767 ## Extra CFLAGS applied to src/*.m files.
12768 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"
12770 # We also have mouse menus.
12776 ### Use session management (-lSM -lICE) if available
12779 if test "${HAVE_X11}" = "yes"; then
12780 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12781 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12783 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12784 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12787 ac_check_lib_save_LIBS
=$LIBS
12788 LIBS
="-lSM -lICE $LIBS"
12789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12798 char SmcOpenConnection ();
12802 return SmcOpenConnection ();
12807 if ac_fn_c_try_link
"$LINENO"; then :
12808 ac_cv_lib_SM_SmcOpenConnection
=yes
12810 ac_cv_lib_SM_SmcOpenConnection
=no
12812 rm -f core conftest.err conftest.
$ac_objext \
12813 conftest
$ac_exeext conftest.
$ac_ext
12814 LIBS
=$ac_check_lib_save_LIBS
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12817 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12818 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12826 if test "${HAVE_X_SM}" = "yes"; then
12828 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12830 LIBXSM
="-lSM -lICE"
12833 *) LIBS
="$LIBXSM $LIBS" ;;
12839 ### Use libxml (-lxml2) if available
12841 if test "${with_xml2}" != "no"; then
12842 ### I'm not sure what the version number should be, so I just guessed.
12846 if test "$PKG_CONFIG" = "no" ; then
12849 PKG_CONFIG_MIN_VERSION
=0.9.0
12850 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12852 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12854 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12855 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12856 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12863 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12864 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12866 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12873 ## If we have a custom action on failure, don't print errors, but
12874 ## do set a variable so people can do so. Do it in a subshell
12875 ## to capture any diagnostics in invoking pkg-config.
12876 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12888 if test $succeeded = yes; then
12894 if test "${HAVE_LIBXML2}" = "yes"; then
12895 LIBS
="$LIBXML2_LIBS $LIBS"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12897 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12898 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 ac_check_lib_save_LIBS
=$LIBS
12902 LIBS
="-lxml2 $LIBS"
12903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12912 char htmlReadMemory ();
12916 return htmlReadMemory ();
12921 if ac_fn_c_try_link
"$LINENO"; then :
12922 ac_cv_lib_xml2_htmlReadMemory
=yes
12924 ac_cv_lib_xml2_htmlReadMemory
=no
12926 rm -f core conftest.err conftest.
$ac_objext \
12927 conftest
$ac_exeext conftest.
$ac_ext
12928 LIBS
=$ac_check_lib_save_LIBS
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12931 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12932 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12938 if test "${HAVE_LIBXML2}" = "yes"; then
12940 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12951 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12953 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12954 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12968 if ac_fn_c_try_link
"$LINENO"; then :
12969 emacs_cv_netdb_declares_h_errno
=yes
12971 emacs_cv_netdb_declares_h_errno
=no
12973 rm -f core conftest.err conftest.
$ac_objext \
12974 conftest
$ac_exeext conftest.
$ac_ext
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12977 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12978 if test $emacs_cv_netdb_declares_h_errno = yes; then
12980 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12984 # sqrt and other floating-point functions such as fmod and frexp
12985 # are found in -lm on most systems.
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12987 $as_echo_n "checking for sqrt in -lm... " >&6; }
12988 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13011 if ac_fn_c_try_link
"$LINENO"; then :
13012 ac_cv_lib_m_sqrt
=yes
13014 ac_cv_lib_m_sqrt
=no
13016 rm -f core conftest.err conftest.
$ac_objext \
13017 conftest
$ac_exeext conftest.
$ac_ext
13018 LIBS
=$ac_check_lib_save_LIBS
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13021 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13022 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_LIBM 1
13032 # Check for mail-locking functions in a "mail" library. Probably this should
13033 # have the same check as for liblockfile below.
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13035 $as_echo_n "checking for maillock in -lmail... " >&6; }
13036 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13039 ac_check_lib_save_LIBS
=$LIBS
13040 LIBS
="-lmail $LIBS"
13041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13054 return maillock ();
13059 if ac_fn_c_try_link
"$LINENO"; then :
13060 ac_cv_lib_mail_maillock
=yes
13062 ac_cv_lib_mail_maillock
=no
13064 rm -f core conftest.err conftest.
$ac_objext \
13065 conftest
$ac_exeext conftest.
$ac_ext
13066 LIBS
=$ac_check_lib_save_LIBS
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13069 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13070 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13076 if test $have_mail = yes; then
13078 LIBS
="$LIBS_MAIL $LIBS"
13080 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13086 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13087 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13090 ac_check_lib_save_LIBS
=$LIBS
13091 LIBS
="-llockfile $LIBS"
13092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13105 return maillock ();
13110 if ac_fn_c_try_link
"$LINENO"; then :
13111 ac_cv_lib_lockfile_maillock
=yes
13113 ac_cv_lib_lockfile_maillock
=no
13115 rm -f core conftest.err conftest.
$ac_objext \
13116 conftest
$ac_exeext conftest.
$ac_ext
13117 LIBS
=$ac_check_lib_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13120 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13121 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13127 if test $have_lockfile = yes; then
13128 LIBS_MAIL
=-llockfile
13129 LIBS
="$LIBS_MAIL $LIBS"
13131 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13134 # If we have the shared liblockfile, assume we must use it for mail
13135 # locking (e.g. Debian). If we couldn't link against liblockfile
13136 # (no liblockfile.a installed), ensure that we don't need to.
13137 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13138 set dummy liblockfile.so
; ac_word
=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 if test -n "$liblockfile"; then
13145 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13148 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13149 for as_dir
in $as_dummy
13152 test -z "$as_dir" && as_dir
=.
13153 for ac_exec_ext
in '' $ac_executable_extensions; do
13154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13155 ac_cv_prog_liblockfile
="yes"
13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13166 liblockfile
=$ac_cv_prog_liblockfile
13167 if test -n "$liblockfile"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13169 $as_echo "$liblockfile" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13176 if test $ac_cv_prog_liblockfile = yes; then
13177 as_fn_error
"Shared liblockfile found but can't link against it.
13178 This probably means that movemail could lose mail.
13179 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13187 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13188 ## interlock access to the mail spool. The alternative is a lock file named
13189 ## /usr/spool/mail/$USER.lock.
13192 aix4-2
) mail_lock
="lockf" ;;
13194 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13196 ## On GNU/Linux systems, both methods are used by various mail programs.
13197 ## I assume most people are using newer mailers that have heard of flock.
13198 ## Change this if you need to.
13199 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13200 ## configure gets the right answers, and that means *NOT* using flock.
13201 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13202 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13203 ## Debian maintainer hasn't provided a clean fix for Emacs.
13204 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13205 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13206 ## correct logic. -- fx
13207 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13208 ## liblockfile is a Free Software replacement for libmail, used on
13209 ## Debian systems and elsewhere. -rfr.
13212 if test $have_mail = yes ||
test $have_lockfile = yes; then
13213 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13219 case "$mail_lock" in
13221 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13225 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13228 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13233 for ac_func
in gethostname \
13234 closedir getrusage get_current_dir_name \
13236 fpathconf
select euidaccess getpagesize setlocale \
13237 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13238 __fpending strsignal setitimer \
13239 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13240 gai_strerror mkstemp getline getdelim fsync sync \
13241 difftime posix_memalign \
13242 getpwent endpwent getgrent endgrent \
13244 cfmakeraw cfsetspeed copysign __executable_start
13246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13248 eval as_val
=\$
$as_ac_var
13249 if test "x$as_val" = x
""yes; then :
13250 cat >>confdefs.h
<<_ACEOF
13251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258 if test $opsys = unixware
; then
13260 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13263 for ac_func
in getwd
13265 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13266 if test "x$ac_cv_func_getwd" = x
""yes; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_GETWD 1
13276 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13277 ## has a broken `rint' in some library versions including math library
13278 ## version number A.09.05.
13279 ## You can fix the math library by installing patch number PHSS_4630.
13280 ## But we can fix it more reliably for Emacs by just not using rint.
13281 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13284 *) for ac_func
in random rint
13286 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13287 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13288 eval as_val
=\$
$as_ac_var
13289 if test "x$as_val" = x
""yes; then :
13290 cat >>confdefs.h
<<_ACEOF
13291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13300 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13301 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13310 __builtin_unwind_init ();
13315 if ac_fn_c_try_link
"$LINENO"; then :
13316 emacs_cv_func___builtin_unwind_init
=yes
13318 emacs_cv_func___builtin_unwind_init
=no
13320 rm -f core conftest.err conftest.
$ac_objext \
13321 conftest
$ac_exeext conftest.
$ac_ext
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13324 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13325 if test $emacs_cv_func___builtin_unwind_init = yes; then
13327 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13336 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13337 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 #include <sys/types.h> /* for off_t */
13348 int (*fp) (FILE *, off_t, int) = fseeko;
13349 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13354 if ac_fn_c_try_link
"$LINENO"; then :
13355 ac_cv_sys_largefile_source
=no
; break
13357 rm -f core conftest.err conftest.
$ac_objext \
13358 conftest
$ac_exeext conftest.
$ac_ext
13359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 #define _LARGEFILE_SOURCE 1
13362 #include <sys/types.h> /* for off_t */
13367 int (*fp) (FILE *, off_t, int) = fseeko;
13368 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13373 if ac_fn_c_try_link
"$LINENO"; then :
13374 ac_cv_sys_largefile_source
=1; break
13376 rm -f core conftest.err conftest.
$ac_objext \
13377 conftest
$ac_exeext conftest.
$ac_ext
13378 ac_cv_sys_largefile_source
=unknown
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13383 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13384 case $ac_cv_sys_largefile_source in #(
13387 cat >>confdefs.h
<<_ACEOF
13388 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13394 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13395 # in glibc 2.1.3, but that breaks too many other things.
13396 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13397 if test $ac_cv_sys_largefile_source != unknown
; then
13399 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13405 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13406 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
13409 # Use it with a single arg.
13410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 $ac_includes_default
13421 if ac_fn_c_try_compile
"$LINENO"; then :
13422 ac_cv_func_getpgrp_void
=no
13424 ac_cv_func_getpgrp_void
=yes
13426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13430 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13431 if test $ac_cv_func_getpgrp_void = yes; then
13433 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13439 for ac_func
in grantpt
13441 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13442 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13443 cat >>confdefs.h
<<_ACEOF
13444 #define HAVE_GRANTPT 1
13451 # PTY-related GNU extensions.
13452 for ac_func
in getpt posix_openpt
13454 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13455 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13456 eval as_val
=\$
$as_ac_var
13457 if test "x$as_val" = x
""yes; then :
13458 cat >>confdefs.h
<<_ACEOF
13459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13466 # Check this now, so that we will NOT find the above functions in ncurses.
13467 # That is because we have not set up to link ncurses in lib-src.
13468 # It's better to believe a function is not available
13469 # than to expect to find it in ncurses.
13470 # Also we need tputs and friends to be able to build at all.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13472 $as_echo_n "checking for library containing tputs... " >&6; }
13473 # Run a test program that contains a call to tputs, a call that is
13474 # never executed. This tests whether a pre-'main' dynamic linker
13475 # works with the library. It's too much trouble to actually call
13476 # tputs in the test program, due to portability hassles. When
13477 # cross-compiling, assume the test program will run if it links.
13479 # Maybe curses should be tried earlier?
13480 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13481 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13483 if test -z "$tputs_library"; then
13485 msg
='none required'
13487 LIBS_TERMCAP
=-l$tputs_library
13489 LIBS
="$LIBS_TERMCAP $LIBS"
13491 if test "$cross_compiling" = yes; then :
13492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13495 extern void tputs (const char *, int, int (*)(int));
13496 int main (int argc, char **argv)
13499 tputs (argv[0], 0, 0);
13504 if ac_fn_c_try_link
"$LINENO"; then :
13509 rm -f core conftest.err conftest.
$ac_objext \
13510 conftest
$ac_exeext conftest.
$ac_ext
13512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13515 extern void tputs (const char *, int, int (*)(int));
13516 int main (int argc, char **argv)
13519 tputs (argv[0], 0, 0);
13524 if ac_fn_c_try_run
"$LINENO"; then :
13529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13530 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13534 if test "X$msg" != Xno
; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13539 $as_echo "$msg" >&6; }
13540 if test "X$msg" = Xno
; then
13541 as_fn_error
"The required function \`tputs' was not found in any library.
13542 The following libraries were tried (in order):
13543 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13544 Please try installing whichever of these libraries is most appropriate
13545 for your system, together with its header files.
13546 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13549 ## Use termcap instead of terminfo?
13550 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13552 ## FIXME? In the cases below where we unconditionally set
13553 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13554 ## if that was found above to have tputs.
13555 ## Should we use the gnu* logic everywhere?
13557 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13558 ## The ncurses library has been moved out of the System framework in
13559 ## Mac OS X 10.2. So if configure detects it, set the command-line
13560 ## option to use it.
13561 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13563 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13567 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13568 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 #include <osreldate.h>
13577 #if __FreeBSD_version < 400000
13585 if ac_fn_c_try_link
"$LINENO"; then :
13586 emacs_cv_freebsd_terminfo
=yes
13588 emacs_cv_freebsd_terminfo
=no
13590 rm -f core conftest.err conftest.
$ac_objext \
13591 conftest
$ac_exeext conftest.
$ac_ext
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13596 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13598 if test $emacs_cv_freebsd_terminfo = yes; then
13599 LIBS_TERMCAP
="-lncurses"
13602 LIBS_TERMCAP
="-ltermcap"
13607 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13609 LIBS_TERMCAP
="-ltermcap"
13613 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13615 ## hpux: Make sure we get select from libc rather than from libcurses
13616 ## because libcurses on HPUX 10.10 has a broken version of select.
13617 ## We used to use -lc -lcurses, but this may be cleaner.
13618 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13619 # set that way, now it uses the default). Isn't this a contradiction?
13620 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13624 TERMCAP_OBJ
=tparam.o
13625 if test $TERMINFO = yes; then
13627 $as_echo "#define TERMINFO 1" >>confdefs.h
13629 TERMCAP_OBJ
=terminfo.o
13635 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13636 # On Darwin, res_init appears not to be useful: see bug#562 and
13637 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13640 if test $opsys != darwin
; then
13642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 #include <netinet/in.h>
13645 #include <arpa/nameser.h>
13646 #include <resolv.h>
13655 if ac_fn_c_try_link
"$LINENO"; then :
13660 rm -f core conftest.err conftest.
$ac_objext \
13661 conftest
$ac_exeext conftest.
$ac_ext
13662 if test "$have_res_init" = no
; then
13664 LIBS
="$LIBS -lresolv"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13666 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <netinet/in.h>
13670 #include <arpa/nameser.h>
13671 #include <resolv.h>
13680 if ac_fn_c_try_link
"$LINENO"; then :
13685 rm -f core conftest.err conftest.
$ac_objext \
13686 conftest
$ac_exeext conftest.
$ac_ext
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13688 $as_echo "$have_res_init" >&6; }
13689 if test "$have_res_init" = yes ; then
13695 if test "$have_res_init" = yes; then
13697 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13701 # Do we need the Hesiod library to provide the support routines?
13703 if test "$with_hesiod" != no
; then
13704 # Don't set $LIBS here -- see comments above. FIXME which comments?
13705 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13706 if test "x$ac_cv_func_res_send" = x
""yes; then :
13709 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13710 if test "x$ac_cv_func___res_send" = x
""yes; then :
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13714 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13715 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13718 ac_check_lib_save_LIBS
=$LIBS
13719 LIBS
="-lresolv $LIBS"
13720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13733 return res_send ();
13738 if ac_fn_c_try_link
"$LINENO"; then :
13739 ac_cv_lib_resolv_res_send
=yes
13741 ac_cv_lib_resolv_res_send
=no
13743 rm -f core conftest.err conftest.
$ac_objext \
13744 conftest
$ac_exeext conftest.
$ac_ext
13745 LIBS
=$ac_check_lib_save_LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13748 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13749 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13753 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13754 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13757 ac_check_lib_save_LIBS
=$LIBS
13758 LIBS
="-lresolv $LIBS"
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13768 char __res_send ();
13772 return __res_send ();
13777 if ac_fn_c_try_link
"$LINENO"; then :
13778 ac_cv_lib_resolv___res_send
=yes
13780 ac_cv_lib_resolv___res_send
=no
13782 rm -f core conftest.err conftest.
$ac_objext \
13783 conftest
$ac_exeext conftest.
$ac_ext
13784 LIBS
=$ac_check_lib_save_LIBS
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13787 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13788 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13798 if test "$resolv" = yes ; then
13803 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13804 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13808 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13809 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13812 ac_check_lib_save_LIBS
=$LIBS
13813 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13823 char hes_getmailhost ();
13827 return hes_getmailhost ();
13832 if ac_fn_c_try_link
"$LINENO"; then :
13833 ac_cv_lib_hesiod_hes_getmailhost
=yes
13835 ac_cv_lib_hesiod_hes_getmailhost
=no
13837 rm -f core conftest.err conftest.
$ac_objext \
13838 conftest
$ac_exeext conftest.
$ac_ext
13839 LIBS
=$ac_check_lib_save_LIBS
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13842 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13843 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13852 if test x
"$hesiod" = xyes
; then
13854 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13861 # Do we need libresolv (due to res_init or Hesiod)?
13862 if test "$resolv" = yes && test $opsys != darwin
; then
13864 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13872 # These tell us which Kerberos-related libraries to use.
13879 if test "${with_kerberos}" != no
; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13881 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13882 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13885 ac_check_lib_save_LIBS
=$LIBS
13886 LIBS
="-lcom_err $LIBS"
13887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13905 if ac_fn_c_try_link
"$LINENO"; then :
13906 ac_cv_lib_com_err_com_err
=yes
13908 ac_cv_lib_com_err_com_err
=no
13910 rm -f core conftest.err conftest.
$ac_objext \
13911 conftest
$ac_exeext conftest.
$ac_ext
13912 LIBS
=$ac_check_lib_save_LIBS
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13915 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13916 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13922 if test $have_com_err = yes; then
13923 COM_ERRLIB
=-lcom_err
13924 LIBS
="$COM_ERRLIB $LIBS"
13926 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13930 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13931 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13934 ac_check_lib_save_LIBS
=$LIBS
13935 LIBS
="-lcrypto $LIBS"
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13945 char mit_des_cbc_encrypt ();
13949 return mit_des_cbc_encrypt ();
13954 if ac_fn_c_try_link
"$LINENO"; then :
13955 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13957 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13959 rm -f core conftest.err conftest.
$ac_objext \
13960 conftest
$ac_exeext conftest.
$ac_ext
13961 LIBS
=$ac_check_lib_save_LIBS
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13964 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13965 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13971 if test $have_crypto = yes; then
13973 LIBS
="$CRYPTOLIB $LIBS"
13975 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13979 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13980 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 ac_check_lib_save_LIBS
=$LIBS
13984 LIBS
="-lk5crypto $LIBS"
13985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 /* Override any GCC internal prototype to avoid an error.
13989 Use char because int might match the return type of a GCC
13990 builtin and then its argument prototype would still apply. */
13994 char mit_des_cbc_encrypt ();
13998 return mit_des_cbc_encrypt ();
14003 if ac_fn_c_try_link
"$LINENO"; then :
14004 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14006 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14008 rm -f core conftest.err conftest.
$ac_objext \
14009 conftest
$ac_exeext conftest.
$ac_ext
14010 LIBS
=$ac_check_lib_save_LIBS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14013 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14014 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14020 if test $have_k5crypto = yes; then
14021 CRYPTOLIB
=-lk5crypto
14022 LIBS
="$CRYPTOLIB $LIBS"
14024 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14028 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14029 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14032 ac_check_lib_save_LIBS
=$LIBS
14033 LIBS
="-lkrb5 $LIBS"
14034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14043 char krb5_init_context ();
14047 return krb5_init_context ();
14052 if ac_fn_c_try_link
"$LINENO"; then :
14053 ac_cv_lib_krb5_krb5_init_context
=yes
14055 ac_cv_lib_krb5_krb5_init_context
=no
14057 rm -f core conftest.err conftest.
$ac_objext \
14058 conftest
$ac_exeext conftest.
$ac_ext
14059 LIBS
=$ac_check_lib_save_LIBS
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14062 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14063 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14069 if test $have_krb5=yes; then
14071 LIBS
="$KRB5LIB $LIBS"
14073 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14076 if test "${with_kerberos5}" = no
; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14078 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14079 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14082 ac_check_lib_save_LIBS
=$LIBS
14083 LIBS
="-ldes425 $LIBS"
14084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14087 /* Override any GCC internal prototype to avoid an error.
14088 Use char because int might match the return type of a GCC
14089 builtin and then its argument prototype would still apply. */
14093 char des_cbc_encrypt ();
14097 return des_cbc_encrypt ();
14102 if ac_fn_c_try_link
"$LINENO"; then :
14103 ac_cv_lib_des425_des_cbc_encrypt
=yes
14105 ac_cv_lib_des425_des_cbc_encrypt
=no
14107 rm -f core conftest.err conftest.
$ac_objext \
14108 conftest
$ac_exeext conftest.
$ac_ext
14109 LIBS
=$ac_check_lib_save_LIBS
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14112 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14113 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14119 if test $have_des425 = yes; then
14121 LIBS
="$DESLIB $LIBS"
14123 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14127 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14128 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14131 ac_check_lib_save_LIBS
=$LIBS
14133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14142 char des_cbc_encrypt ();
14146 return des_cbc_encrypt ();
14151 if ac_fn_c_try_link
"$LINENO"; then :
14152 ac_cv_lib_des_des_cbc_encrypt
=yes
14154 ac_cv_lib_des_des_cbc_encrypt
=no
14156 rm -f core conftest.err conftest.
$ac_objext \
14157 conftest
$ac_exeext conftest.
$ac_ext
14158 LIBS
=$ac_check_lib_save_LIBS
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14161 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14162 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14168 if test $have_des = yes; then
14170 LIBS
="$DESLIB $LIBS"
14172 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14177 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14178 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14181 ac_check_lib_save_LIBS
=$LIBS
14182 LIBS
="-lkrb4 $LIBS"
14183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14186 /* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14192 char krb_get_cred ();
14196 return krb_get_cred ();
14201 if ac_fn_c_try_link
"$LINENO"; then :
14202 ac_cv_lib_krb4_krb_get_cred
=yes
14204 ac_cv_lib_krb4_krb_get_cred
=no
14206 rm -f core conftest.err conftest.
$ac_objext \
14207 conftest
$ac_exeext conftest.
$ac_ext
14208 LIBS
=$ac_check_lib_save_LIBS
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14211 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14212 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14218 if test $have_krb4 = yes; then
14220 LIBS
="$KRB4LIB $LIBS"
14222 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14226 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14227 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14230 ac_check_lib_save_LIBS
=$LIBS
14232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14235 /* Override any GCC internal prototype to avoid an error.
14236 Use char because int might match the return type of a GCC
14237 builtin and then its argument prototype would still apply. */
14241 char krb_get_cred ();
14245 return krb_get_cred ();
14250 if ac_fn_c_try_link
"$LINENO"; then :
14251 ac_cv_lib_krb_krb_get_cred
=yes
14253 ac_cv_lib_krb_krb_get_cred
=no
14255 rm -f core conftest.err conftest.
$ac_objext \
14256 conftest
$ac_exeext conftest.
$ac_ext
14257 LIBS
=$ac_check_lib_save_LIBS
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14260 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14261 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14267 if test $have_krb = yes; then
14269 LIBS
="$KRB4LIB $LIBS"
14271 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14277 if test "${with_kerberos5}" != no
; then
14278 for ac_header
in krb5.h
14280 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14282 cat >>confdefs.h
<<_ACEOF
14283 #define HAVE_KRB5_H 1
14285 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14287 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14289 cat >>confdefs.h
<<_ACEOF
14290 #define HAVE_KRB5_ERROR_TEXT 1
14295 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14297 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14299 cat >>confdefs.h
<<_ACEOF
14300 #define HAVE_KRB5_ERROR_E_TEXT 1
14311 for ac_header
in des.h
14313 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_des_h" = x
""yes; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define HAVE_DES_H 1
14320 for ac_header
in kerberosIV
/des.h
14322 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14323 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14324 cat >>confdefs.h
<<_ACEOF
14325 #define HAVE_KERBEROSIV_DES_H 1
14329 for ac_header
in kerberos
/des.h
14331 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14332 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14333 cat >>confdefs.h
<<_ACEOF
14334 #define HAVE_KERBEROS_DES_H 1
14349 for ac_header
in krb.h
14351 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14352 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14353 cat >>confdefs.h
<<_ACEOF
14354 #define HAVE_KRB_H 1
14358 for ac_header
in kerberosIV
/krb.h
14360 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14361 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14362 cat >>confdefs.h
<<_ACEOF
14363 #define HAVE_KERBEROSIV_KRB_H 1
14367 for ac_header
in kerberos
/krb.h
14369 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14370 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14371 cat >>confdefs.h
<<_ACEOF
14372 #define HAVE_KERBEROS_KRB_H 1
14388 for ac_header
in com_err.h
14390 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14391 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14392 cat >>confdefs.h
<<_ACEOF
14393 #define HAVE_COM_ERR_H 1
14411 for ac_func
in $ac_func_list
14413 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14414 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14415 eval as_val
=\$
$as_ac_var
14416 if test "x$as_val" = x
""yes; then :
14417 cat >>confdefs.h
<<_ACEOF
14418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14428 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14429 if test "${emacs_cv_localtime_cache+set}" = set; then :
14430 $as_echo_n "(cached) " >&6
14432 if test x
$ac_cv_func_tzset = xyes
; then
14433 if test "$cross_compiling" = yes; then :
14434 # If we have tzset, assume the worst when cross-compiling.
14435 emacs_cv_localtime_cache
=yes
14437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14440 char TZ_GMT0[] = "TZ=GMT0";
14441 char TZ_PST8[] = "TZ=PST8";
14444 time_t now = time ((time_t *) 0);
14445 int hour_GMT0, hour_unset;
14446 if (putenv (TZ_GMT0) != 0)
14448 hour_GMT0 = localtime (&now)->tm_hour;
14450 hour_unset = localtime (&now)->tm_hour;
14451 if (putenv (TZ_PST8) != 0)
14453 if (localtime (&now)->tm_hour == hour_GMT0)
14456 if (localtime (&now)->tm_hour != hour_unset)
14461 if ac_fn_c_try_run
"$LINENO"; then :
14462 emacs_cv_localtime_cache
=no
14464 emacs_cv_localtime_cache
=yes
14466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14471 # If we lack tzset, report that localtime does not cache TZ,
14472 # since we can't invalidate the cache if we don't have tzset.
14473 emacs_cv_localtime_cache
=no
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14477 $as_echo "$emacs_cv_localtime_cache" >&6; }
14478 if test $emacs_cv_localtime_cache = yes; then
14480 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14485 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14486 if test "x$ac_cv_func_socket" = x
""yes; then :
14492 if test $ok_so_far = yes; then
14493 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14502 if test $ok_so_far = yes; then
14503 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14504 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14512 if test $ok_so_far = yes; then
14514 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14518 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14520 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14525 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14526 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14530 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534 $as_echo "no" >&6; }
14538 *-solaris2.4 |
*-solaris2.4.
*)
14539 : ${ac_cv_func_vfork_works=no};;
14542 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14543 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14547 cat >>confdefs.h
<<_ACEOF
14553 for ac_header
in vfork.h
14555 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14556 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14557 cat >>confdefs.h
<<_ACEOF
14558 #define HAVE_VFORK_H 1
14565 for ac_func
in fork vfork
14567 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14568 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14569 eval as_val
=\$
$as_ac_var
14570 if test "x$as_val" = x
""yes; then :
14571 cat >>confdefs.h
<<_ACEOF
14572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14578 if test "x$ac_cv_func_fork" = xyes
; then
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14580 $as_echo_n "checking for working fork... " >&6; }
14581 if test "${ac_cv_func_fork_works+set}" = set; then :
14582 $as_echo_n "(cached) " >&6
14584 if test "$cross_compiling" = yes; then :
14585 ac_cv_func_fork_works
=cross
14587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 $ac_includes_default
14594 /* By Ruediger Kuhlmann. */
14595 return fork () < 0;
14601 if ac_fn_c_try_run
"$LINENO"; then :
14602 ac_cv_func_fork_works
=yes
14604 ac_cv_func_fork_works
=no
14606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14612 $as_echo "$ac_cv_func_fork_works" >&6; }
14615 ac_cv_func_fork_works
=$ac_cv_func_fork
14617 if test "x$ac_cv_func_fork_works" = xcross
; then
14619 *-*-amigaos* |
*-*-msdosdjgpp*)
14620 # Override, as these systems have only a dummy fork() stub
14621 ac_cv_func_fork_works
=no
14624 ac_cv_func_fork_works
=yes
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14628 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14630 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14631 if test "x$ac_cv_func_vfork" = xyes
; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14633 $as_echo_n "checking for working vfork... " >&6; }
14634 if test "${ac_cv_func_vfork_works+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14637 if test "$cross_compiling" = yes; then :
14638 ac_cv_func_vfork_works
=cross
14640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 /* Thanks to Paul Eggert for this test. */
14643 $ac_includes_default
14644 #include <sys/wait.h>
14645 #ifdef HAVE_VFORK_H
14646 # include <vfork.h>
14648 /* On some sparc systems, changes by the child to local and incoming
14649 argument registers are propagated back to the parent. The compiler
14650 is told about this with #include <vfork.h>, but some compilers
14651 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14652 static variable whose address is put into a register that is
14653 clobbered by the vfork. */
14656 sparc_address_test (int arg)
14658 sparc_address_test (arg) int arg;
14661 static pid_t child;
14679 pid_t parent = getpid ();
14682 sparc_address_test (0);
14687 /* Here is another test for sparc vfork register problems. This
14688 test uses lots of local variables, at least as many local
14689 variables as main has allocated so far including compiler
14690 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14691 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14692 reuse the register of parent for one of the local variables,
14693 since it will think that parent can't possibly be used any more
14694 in this routine. Assigning to the local variable will thus
14695 munge parent in the parent process. */
14697 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14698 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14699 /* Convince the compiler that p..p7 are live; otherwise, it might
14700 use the same hardware register for all 8 local variables. */
14701 if (p != p1 || p != p2 || p != p3 || p != p4
14702 || p != p5 || p != p6 || p != p7)
14705 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14706 from child file descriptors. If the child closes a descriptor
14707 before it execs or exits, this munges the parent's descriptor
14708 as well. Test for this by closing stdout in the child. */
14709 _exit(close(fileno(stdout)) != 0);
14714 while (wait(&status) != child)
14717 /* Was there some problem with vforking? */
14720 /* Did the child fail? (This shouldn't happen.) */
14723 /* Did the vfork/compiler bug occur? */
14724 || parent != getpid()
14726 /* Did the file descriptor bug occur? */
14727 || fstat(fileno(stdout), &st) != 0
14732 if ac_fn_c_try_run
"$LINENO"; then :
14733 ac_cv_func_vfork_works
=yes
14735 ac_cv_func_vfork_works
=no
14737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14743 $as_echo "$ac_cv_func_vfork_works" >&6; }
14746 if test "x$ac_cv_func_fork_works" = xcross
; then
14747 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14749 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14752 if test "x$ac_cv_func_vfork_works" = xyes
; then
14754 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14758 $as_echo "#define vfork fork" >>confdefs.h
14761 if test "x$ac_cv_func_fork_works" = xyes
; then
14763 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14768 for ac_func
in snprintf
14770 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14771 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14772 cat >>confdefs.h
<<_ACEOF
14773 #define HAVE_SNPRINTF 1
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14781 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14782 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14783 $as_echo_n "(cached) " >&6
14785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 #include <langinfo.h>
14791 char* cs = nl_langinfo(CODESET);
14796 if ac_fn_c_try_link
"$LINENO"; then :
14797 emacs_cv_langinfo_codeset
=yes
14799 emacs_cv_langinfo_codeset
=no
14801 rm -f core conftest.err conftest.
$ac_objext \
14802 conftest
$ac_exeext conftest.
$ac_ext
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14806 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14807 if test $emacs_cv_langinfo_codeset = yes; then
14809 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14814 $as_echo_n "checking for mbstate_t... " >&6; }
14815 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 $ac_includes_default
14821 # include <wchar.h>
14825 mbstate_t x; return sizeof x;
14830 if ac_fn_c_try_compile
"$LINENO"; then :
14831 ac_cv_type_mbstate_t
=yes
14833 ac_cv_type_mbstate_t
=no
14835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14838 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14839 if test $ac_cv_type_mbstate_t = yes; then
14841 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14845 $as_echo "#define mbstate_t int" >>confdefs.h
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14850 $as_echo_n "checking for C restricted array declarations... " >&6; }
14851 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14852 $as_echo_n "(cached) " >&6
14854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856 void fred (int x[__restrict]);
14865 if ac_fn_c_try_compile
"$LINENO"; then :
14866 emacs_cv_c_restrict_arr
=yes
14868 emacs_cv_c_restrict_arr
=no
14870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14873 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14874 if test "$emacs_cv_c_restrict_arr" = yes; then
14876 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14882 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14886 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14889 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14891 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14895 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14901 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14905 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14909 $as_echo "#define subprocesses 1" >>confdefs.h
14913 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14918 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14924 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14928 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14932 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14940 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14941 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14947 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14954 irix6-5 | sol2
* | unixware
)
14956 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14961 emacs_broken_SIGIO
=no
14964 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14965 emacs_broken_SIGIO
=yes
14970 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14976 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14984 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14990 darwin | freebsd | netbsd | openbsd
)
14992 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14998 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14999 *) sound_device
="/dev/dsp" ;;
15003 cat >>confdefs.h
<<_ACEOF
15004 #define DEFAULT_SOUND_DEVICE "$sound_device"
15010 darwin | gnu-linux | gnu-kfreebsd
)
15012 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15019 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15021 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15035 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15037 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15039 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15044 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15046 $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
15048 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15050 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15055 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15057 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15059 $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
15061 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15063 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15068 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15072 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15073 if test "x$ac_cv_func_grantpt" = xyes
; then
15075 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15077 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15079 $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
15081 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15082 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15084 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15086 elif test "x$ac_cv_func_getpt" = xyes
; then
15087 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15089 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15092 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15096 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15102 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15104 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15106 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15111 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15113 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15115 $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
15117 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15119 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15124 $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
15129 $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
15137 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15139 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15142 $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
15151 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15152 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15156 gnu-linux | gnu-kfreebsd
)
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15159 $as_echo_n "checking for signals via characters... " >&6; }
15160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15163 #include <linux/version.h>
15164 #if LINUX_VERSION_CODE < 0x20400
15165 # error "Linux version too old"
15176 if ac_fn_c_try_cpp
"$LINENO"; then :
15177 emacs_signals_via_chars
=yes
15179 emacs_signals_via_chars
=no
15181 rm -f conftest.err conftest.
$ac_ext
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15184 $as_echo "$emacs_signals_via_chars" >&6; }
15185 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15194 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15198 #include <features.h>
15199 #ifndef __GNU_LIBRARY__
15200 # error "this is not the GNU C library"
15211 if ac_fn_c_try_cpp
"$LINENO"; then :
15216 rm -f conftest.err conftest.
$ac_ext
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15218 $as_echo "$emacs_glibc" >&6; }
15220 if test $emacs_glibc = yes; then
15222 emacs_pending_output
=unknown
15225 gnu | gnu-linux | gnu-kfreebsd
)
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15227 $as_echo_n "checking for style of pending output formalism... " >&6; }
15228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15232 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15233 # error "stdio definitions not found"
15244 if ac_fn_c_try_cpp
"$LINENO"; then :
15245 emacs_pending_output
=new
15247 rm -f conftest.err conftest.
$ac_ext
15249 if test $emacs_pending_output = unknown
; then
15251 gnu-linux | gnu-kfreebsd
)
15252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15257 # error "not using uclibc"
15268 if ac_fn_c_try_cpp
"$LINENO"; then :
15269 emacs_pending_output
=uclibc
15271 emacs_pending_output
=old
15273 rm -f conftest.err conftest.
$ac_ext
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15279 $as_echo "$emacs_pending_output" >&6; }
15281 case $emacs_pending_output in
15283 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15287 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15291 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15297 if test $emacs_pending_output = unknown
; then
15298 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15304 cygwin | darwin | freebsd | netbsd | openbsd
)
15305 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15310 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15315 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15316 test x
$ac_cv_func___fpending = xyes
; then
15317 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15320 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15323 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15335 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15340 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15342 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15346 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15348 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15358 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15361 gnu | freebsd | netbsd | openbsd
)
15363 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15365 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15369 gnu-linux | gnu-kfreebsd
)
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15385 if ac_fn_c_try_cpp
"$LINENO"; then :
15386 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15389 rm -f conftest.err conftest.
$ac_ext
15391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15406 if ac_fn_c_try_cpp
"$LINENO"; then :
15408 $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
15411 rm -f conftest.err conftest.
$ac_ext
15416 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15421 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15433 aix4-2 | hpux
* | unixware
)
15434 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15438 gnu-linux | gnu-kfreebsd
)
15439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15442 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15443 || defined __alpha__ || defined __mips__ || defined __s390__ \
15444 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15445 || defined __ia64__ || defined __sh__
15448 # error "setjmp not known to work on this arch"
15459 if ac_fn_c_try_cpp
"$LINENO"; then :
15460 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15463 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15466 rm -f conftest.err conftest.
$ac_ext
15471 if test x
$GCC = xyes
; then
15472 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15476 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15477 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15483 $as_echo_n "checking for _setjmp... " >&6; }
15484 if test "${emacs_cv_func__setjmp+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489 #include <setjmp.h>
15501 if ac_fn_c_try_link
"$LINENO"; then :
15502 emacs_cv_func__setjmp
=yes
15504 emacs_cv_func__setjmp
=no
15506 rm -f core conftest.err conftest.
$ac_objext \
15507 conftest
$ac_exeext conftest.
$ac_ext
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15510 $as_echo "$emacs_cv_func__setjmp" >&6; }
15511 if test $emacs_cv_func__setjmp = yes; then
15513 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15517 $as_echo_n "checking for sigsetjmp... " >&6; }
15518 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15519 $as_echo_n "(cached) " >&6
15521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 #include <setjmp.h>
15529 if (! sigsetjmp (j, 1))
15535 if ac_fn_c_try_link
"$LINENO"; then :
15536 emacs_cv_func_sigsetjmp
=yes
15538 emacs_cv_func_sigsetjmp
=no
15540 rm -f core conftest.err conftest.
$ac_objext \
15541 conftest
$ac_exeext conftest.
$ac_ext
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15544 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15545 if test $emacs_cv_func_sigsetjmp = yes; then
15547 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15555 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15564 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15580 $as_echo "#define USG /**/" >>confdefs.h
15582 $as_echo "#define USG5 /**/" >>confdefs.h
15584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15588 # error "_AIX not defined"
15599 if ac_fn_c_try_cpp
"$LINENO"; then :
15603 $as_echo "#define _AIX /**/" >>confdefs.h
15606 rm -f conftest.err conftest.
$ac_ext
15611 $as_echo "#define CYGWIN 1" >>confdefs.h
15616 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15618 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15621 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15626 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15629 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15633 gnu | netbsd | openbsd
)
15634 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15640 # error "BSD_SYSTEM not defined"
15651 if ac_fn_c_try_cpp
"$LINENO"; then :
15654 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15657 rm -f conftest.err conftest.
$ac_ext
15660 gnu-linux | gnu-kfreebsd
)
15661 $as_echo "#define USG /**/" >>confdefs.h
15664 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15669 $as_echo "#define USG /**/" >>confdefs.h
15671 $as_echo "#define USG5 /**/" >>confdefs.h
15674 $as_echo "#define HPUX /**/" >>confdefs.h
15679 $as_echo "#define USG /**/" >>confdefs.h
15681 $as_echo "#define USG5 /**/" >>confdefs.h
15683 $as_echo "#define USG5_4 /**/" >>confdefs.h
15686 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15691 $as_echo "#define USG /**/" >>confdefs.h
15693 $as_echo "#define USG5 /**/" >>confdefs.h
15695 $as_echo "#define USG5_4 /**/" >>confdefs.h
15698 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15703 $as_echo "#define USG /**/" >>confdefs.h
15705 $as_echo "#define USG5 /**/" >>confdefs.h
15707 $as_echo "#define USG5_4 /**/" >>confdefs.h
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15713 $as_echo_n "checking for usable FIONREAD... " >&6; }
15714 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15719 emacs_cv_usable_FIONREAD
=no
15723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <sys/types.h>
15726 #include <sys/ioctl.h>
15728 # include <sys/filio.h>
15734 int foo = ioctl (0, FIONREAD, &foo);
15739 if ac_fn_c_try_compile
"$LINENO"; then :
15740 emacs_cv_usable_FIONREAD
=yes
15742 emacs_cv_usable_FIONREAD
=no
15744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15749 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15750 if test $emacs_cv_usable_FIONREAD = yes; then
15752 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15755 if test $emacs_broken_SIGIO = no
; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15757 $as_echo_n "checking for usable SIGIO... " >&6; }
15758 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15759 $as_echo_n "(cached) " >&6
15761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 #include <signal.h>
15769 int foo = SIGIO | F_SETFL | FASYNC;
15774 if ac_fn_c_try_compile
"$LINENO"; then :
15775 emacs_cv_usable_SIGIO
=yes
15777 emacs_cv_usable_SIGIO
=no
15779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15782 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15783 if test $emacs_cv_usable_SIGIO = yes; then
15785 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15795 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15801 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15807 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15810 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15816 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15821 # Set up the CFLAGS for real compilation, so we can substitute it.
15822 CFLAGS
="$REAL_CFLAGS"
15823 CPPFLAGS
="$REAL_CPPFLAGS"
15825 ## Hack to detect a buggy GCC version.
15826 if test "x$GCC" = xyes \
15827 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15828 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15829 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15830 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15833 version
=$PACKAGE_VERSION
15835 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15837 cat >>confdefs.h
<<_ACEOF
15838 #define COPYRIGHT "$copyright"
15843 ### Specify what sort of things we'll be editing into Makefile and config.h.
15844 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15870 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15871 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15872 ## end of LIBX_BASE, but nothing ever set it.
15877 ## Used in lwlib/Makefile.in.
15886 if test -n "${term_header}"; then
15888 cat >>confdefs.h
<<_ACEOF
15889 #define TERM_HEADER "${term_header}"
15895 cat >>confdefs.h
<<_ACEOF
15896 #define EMACS_CONFIGURATION "${canonical}"
15900 cat >>confdefs.h
<<_ACEOF
15901 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15909 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15911 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15914 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15916 if test "$HAVE_XFT" = "yes"; then
15917 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15918 elif test "$HAVE_FREETYPE" = "yes"; then
15919 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15929 if test "${USE_X_TOOLKIT}" != "none" ; then
15930 WIDGET_OBJ
=widget.o
15932 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15934 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15936 $as_echo "#define USE_LUCID 1" >>confdefs.h
15938 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15940 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15945 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15946 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15950 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15951 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15952 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15956 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15957 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15960 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15966 case "$USE_X_TOOLKIT" in
15967 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15968 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15969 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15973 if test "$USE_X_TOOLKIT" = "none"; then
15974 LIBXT_OTHER
="\$(LIBXSM)"
15975 OLDXMENU_TARGET
="really-oldXMenu"
15977 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15978 OLDXMENU_TARGET
="really-lwlib"
15982 ## The X Menu stuff is present in the X10 distribution, but missing
15983 ## from X11. If we have X10, just use the installed library;
15984 ## otherwise, use our own copy.
15985 if test "${HAVE_X11}" = "yes" ; then
15987 $as_echo "#define HAVE_X11 1" >>confdefs.h
15990 if test "$USE_X_TOOLKIT" = "none"; then
15991 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15993 OLDXMENU
="\${lwlibdir}/liblw.a"
15995 LIBXMENU
="\$(OLDXMENU)"
15996 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15997 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15999 ## For a syntactically valid Makefile; not actually used for anything.
16000 ## See comments in src/Makefile.in.
16002 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16003 if test "${HAVE_X_WINDOWS}" = "yes"; then
16012 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16025 if test "${HAVE_MENUS}" = "yes" ; then
16027 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16031 if test "${GNU_MALLOC}" = "yes" ; then
16033 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16038 if test "${REL_ALLOC}" = "yes" ; then
16040 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16043 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16047 if test "$opsys" = "cygwin"; then
16048 CYGWIN_OBJ
="sheap.o"
16049 ## Cygwin differs because of its unexec().
16051 POST_ALLOC_OBJ
=lastfile.o
16054 PRE_ALLOC_OBJ
=lastfile.o
16061 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16062 # it temporarily reverts them to their pre-pkg-config values,
16063 # because gnulib needs to work with both src (which uses the
16064 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16065 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16066 # and it therefore needs to run in an environment where LIBS does not
16067 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16068 # for some package unrelated to lib-src.
16069 SAVE_CFLAGS
=$CFLAGS
16071 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16072 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16084 LIBC_FATAL_STDERR_
=1
16085 export LIBC_FATAL_STDERR_
16087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16088 # for constant arguments. Useless!
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16090 $as_echo_n "checking for working alloca.h... " >&6; }
16091 if test "${ac_cv_working_alloca_h+set}" = set; then :
16092 $as_echo_n "(cached) " >&6
16094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 #include <alloca.h>
16100 char *p = (char *) alloca (2 * sizeof (int));
16106 if ac_fn_c_try_link
"$LINENO"; then :
16107 ac_cv_working_alloca_h
=yes
16109 ac_cv_working_alloca_h
=no
16111 rm -f core conftest.err conftest.
$ac_objext \
16112 conftest
$ac_exeext conftest.
$ac_ext
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16115 $as_echo "$ac_cv_working_alloca_h" >&6; }
16116 if test $ac_cv_working_alloca_h = yes; then
16118 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16123 $as_echo_n "checking for alloca... " >&6; }
16124 if test "${ac_cv_func_alloca_works+set}" = set; then :
16125 $as_echo_n "(cached) " >&6
16127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16130 # define alloca __builtin_alloca
16133 # include <malloc.h>
16134 # define alloca _alloca
16136 # ifdef HAVE_ALLOCA_H
16137 # include <alloca.h>
16142 # ifndef alloca /* predefined by HP cc +Olibcalls */
16153 char *p = (char *) alloca (1);
16159 if ac_fn_c_try_link
"$LINENO"; then :
16160 ac_cv_func_alloca_works
=yes
16162 ac_cv_func_alloca_works
=no
16164 rm -f core conftest.err conftest.
$ac_objext \
16165 conftest
$ac_exeext conftest.
$ac_ext
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16168 $as_echo "$ac_cv_func_alloca_works" >&6; }
16170 if test $ac_cv_func_alloca_works = yes; then
16172 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16175 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16176 # that cause trouble. Some versions do not even contain alloca or
16177 # contain a buggy version. If you still want to use their alloca,
16178 # use ar to extract alloca.o from them instead of compiling alloca.c.
16184 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16186 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16190 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16191 if test "${ac_cv_os_cray+set}" = set; then :
16192 $as_echo_n "(cached) " >&6
16194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 #if defined CRAY && ! defined CRAY2
16203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16204 $EGREP "webecray" >/dev
/null
2>&1; then :
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16213 $as_echo "$ac_cv_os_cray" >&6; }
16214 if test $ac_cv_os_cray = yes; then
16215 for ac_func
in _getb67 GETB67 getb67
; do
16216 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16217 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16218 eval as_val
=\$
$as_ac_var
16219 if test "x$as_val" = x
""yes; then :
16221 cat >>confdefs.h
<<_ACEOF
16222 #define CRAY_STACKSEG_END $ac_func
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16232 $as_echo_n "checking stack direction for C alloca... " >&6; }
16233 if test "${ac_cv_c_stack_direction+set}" = set; then :
16234 $as_echo_n "(cached) " >&6
16236 if test "$cross_compiling" = yes; then :
16237 ac_cv_c_stack_direction
=0
16239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241 $ac_includes_default
16243 find_stack_direction (int *addr, int depth)
16245 int dir, dummy = 0;
16248 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16249 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16250 return dir + dummy;
16254 main (int argc, char **argv)
16256 return find_stack_direction (0, argc + !argv + 20) < 0;
16259 if ac_fn_c_try_run
"$LINENO"; then :
16260 ac_cv_c_stack_direction
=1
16262 ac_cv_c_stack_direction
=-1
16264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16270 $as_echo "$ac_cv_c_stack_direction" >&6; }
16271 cat >>confdefs.h
<<_ACEOF
16272 #define STACK_DIRECTION $ac_cv_c_stack_direction
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16282 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16283 if test "${ac_cv_c_bigendian+set}" = set; then :
16284 $as_echo_n "(cached) " >&6
16286 ac_cv_c_bigendian
=unknown
16287 # See if we're dealing with a universal compiler.
16288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290 #ifndef __APPLE_CC__
16291 not a universal capable compiler
16296 if ac_fn_c_try_compile
"$LINENO"; then :
16298 # Check for potential -arch flags. It is not universal unless
16299 # there are at least two -arch flags with different values.
16302 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16303 if test -n "$ac_prev"; then
16305 i?
86 | x86_64 | ppc | ppc64
)
16306 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16309 ac_cv_c_bigendian
=universal
16315 elif test "x$ac_word" = "x-arch"; then
16320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 if test $ac_cv_c_bigendian = unknown
; then
16322 # See if sys/param.h defines the BYTE_ORDER macro.
16323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 #include <sys/types.h>
16326 #include <sys/param.h>
16331 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16332 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16334 bogus endian macros
16341 if ac_fn_c_try_compile
"$LINENO"; then :
16342 # It does; now see whether it defined to BIG_ENDIAN or not.
16343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 #include <sys/types.h>
16346 #include <sys/param.h>
16351 #if BYTE_ORDER != BIG_ENDIAN
16359 if ac_fn_c_try_compile
"$LINENO"; then :
16360 ac_cv_c_bigendian
=yes
16362 ac_cv_c_bigendian
=no
16364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16368 if test $ac_cv_c_bigendian = unknown
; then
16369 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16372 #include <limits.h>
16377 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16378 bogus endian macros
16385 if ac_fn_c_try_compile
"$LINENO"; then :
16386 # It does; now see whether it defined to _BIG_ENDIAN or not.
16387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16389 #include <limits.h>
16394 #ifndef _BIG_ENDIAN
16402 if ac_fn_c_try_compile
"$LINENO"; then :
16403 ac_cv_c_bigendian
=yes
16405 ac_cv_c_bigendian
=no
16407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16411 if test $ac_cv_c_bigendian = unknown
; then
16412 # Compile a test program.
16413 if test "$cross_compiling" = yes; then :
16414 # Try to guess by grepping values from an object file.
16415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 short int ascii_mm[] =
16418 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16419 short int ascii_ii[] =
16420 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16421 int use_ascii (int i) {
16422 return ascii_mm[i] + ascii_ii[i];
16424 short int ebcdic_ii[] =
16425 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16426 short int ebcdic_mm[] =
16427 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16428 int use_ebcdic (int i) {
16429 return ebcdic_mm[i] + ebcdic_ii[i];
16436 return use_ascii (foo) == use_ebcdic (foo);
16441 if ac_fn_c_try_compile
"$LINENO"; then :
16442 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16443 ac_cv_c_bigendian
=yes
16445 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16446 if test "$ac_cv_c_bigendian" = unknown
; then
16447 ac_cv_c_bigendian
=no
16449 # finding both strings is unlikely to happen, but who knows?
16450 ac_cv_c_bigendian
=unknown
16454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 $ac_includes_default
16463 /* Are we little or big endian? From Harbison&Steele. */
16467 char c[sizeof (long int)];
16470 return u.c[sizeof (long int) - 1] == 1;
16476 if ac_fn_c_try_run
"$LINENO"; then :
16477 ac_cv_c_bigendian
=no
16479 ac_cv_c_bigendian
=yes
16481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16488 $as_echo "$ac_cv_c_bigendian" >&6; }
16489 case $ac_cv_c_bigendian in #(
16491 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16497 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16501 as_fn_error
"unknown endianness
16502 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16507 $as_echo_n "checking for inline... " >&6; }
16508 if test "${ac_cv_c_inline+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16512 for ac_kw
in inline __inline__ __inline
; do
16513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 #ifndef __cplusplus
16517 static $ac_kw foo_t static_foo () {return 0; }
16518 $ac_kw foo_t foo () {return 0; }
16522 if ac_fn_c_try_compile
"$LINENO"; then :
16523 ac_cv_c_inline
=$ac_kw
16525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16526 test "$ac_cv_c_inline" != no
&& break
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16531 $as_echo "$ac_cv_c_inline" >&6; }
16533 case $ac_cv_c_inline in
16536 case $ac_cv_c_inline in
16538 *) ac_val
=$ac_cv_c_inline;;
16540 cat >>confdefs.h
<<_ACEOF
16541 #ifndef __cplusplus
16542 #define inline $ac_val
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16550 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16551 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 /* On HP-UX before 11.23, strtold returns a struct instead of
16557 long double. Reject implementations like that, by requiring
16558 compatibility with the C99 prototype. */
16559 #include <stdlib.h>
16560 static long double (*p) (char const *, char **) = strtold;
16562 test (char const *nptr, char **endptr)
16565 r = strtold (nptr, endptr);
16571 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16576 if ac_fn_c_try_link
"$LINENO"; then :
16577 gl_cv_func_c99_strtold
=yes
16579 gl_cv_func_c99_strtold
=no
16581 rm -f core conftest.err conftest.
$ac_objext \
16582 conftest
$ac_exeext conftest.
$ac_ext
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16585 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16586 if test $gl_cv_func_c99_strtold = yes; then
16588 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16600 GNULIB_EUIDACCESS
=0;
16601 GNULIB_FACCESSAT
=0;
16604 GNULIB_FDATASYNC
=0;
16606 GNULIB_FTRUNCATE
=0;
16608 GNULIB_GETDOMAINNAME
=0;
16609 GNULIB_GETDTABLESIZE
=0;
16610 GNULIB_GETGROUPS
=0;
16611 GNULIB_GETHOSTNAME
=0;
16613 GNULIB_GETLOGIN_R
=0;
16614 GNULIB_GETPAGESIZE
=0;
16615 GNULIB_GETUSERSHELL
=0;
16616 GNULIB_GROUP_MEMBER
=0;
16628 GNULIB_READLINKAT
=0;
16630 GNULIB_SETHOSTNAME
=0;
16633 GNULIB_SYMLINKAT
=0;
16634 GNULIB_TTYNAME_R
=0;
16635 GNULIB_UNISTD_H_NONBLOCKING
=0;
16636 GNULIB_UNISTD_H_SIGPIPE
=0;
16651 HAVE_GETDTABLESIZE
=1;
16653 HAVE_GETHOSTNAME
=1;
16655 HAVE_GETPAGESIZE
=1;
16656 HAVE_GROUP_MEMBER
=1;
16666 HAVE_SETHOSTNAME
=1;
16672 HAVE_DECL_ENVIRON
=1;
16673 HAVE_DECL_FCHDIR
=1;
16674 HAVE_DECL_FDATASYNC
=1;
16675 HAVE_DECL_GETDOMAINNAME
=1;
16676 HAVE_DECL_GETLOGIN_R
=1;
16677 HAVE_DECL_GETPAGESIZE
=1;
16678 HAVE_DECL_GETUSERSHELL
=1;
16679 HAVE_DECL_SETHOSTNAME
=1;
16680 HAVE_DECL_TTYNAME_R
=1;
16682 HAVE_SYS_PARAM_H
=0;
16687 REPLACE_FCHOWNAT
=0;
16688 REPLACE_FTRUNCATE
=0;
16690 REPLACE_GETDOMAINNAME
=0;
16691 REPLACE_GETLOGIN_R
=0;
16692 REPLACE_GETGROUPS
=0;
16693 REPLACE_GETPAGESIZE
=0;
16702 REPLACE_READLINK
=0;
16706 REPLACE_TTYNAME_R
=0;
16708 REPLACE_UNLINKAT
=0;
16711 UNISTD_H_HAVE_WINSOCK2_H
=0;
16712 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16723 $as_echo_n "checking if environ is properly declared... " >&6; }
16724 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16725 $as_echo_n "(cached) " >&6
16728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16731 #include <unistd.h>
16733 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16734 #include <stdlib.h>
16736 extern struct { int foo; } environ;
16745 if ac_fn_c_try_compile
"$LINENO"; then :
16746 gt_cv_var_environ_declaration
=no
16748 gt_cv_var_environ_declaration
=yes
16750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16754 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16755 if test $gt_cv_var_environ_declaration = yes; then
16757 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16762 if test $gt_cv_var_environ_declaration != yes; then
16763 HAVE_DECL_ENVIRON
=0
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16773 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16774 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16775 $as_echo_n "(cached) " >&6
16777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16780 #include <sys/types.h>
16781 #include <sys/stat.h>
16785 struct stat s; s.st_dm_mode;
16790 if ac_fn_c_try_compile
"$LINENO"; then :
16791 ac_cv_struct_st_dm_mode
=yes
16793 ac_cv_struct_st_dm_mode
=no
16795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16798 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16800 if test $ac_cv_struct_st_dm_mode = yes; then
16802 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16807 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16808 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16814 cat >>confdefs.h
<<_ACEOF
16815 #define HAVE_DECL_STRMODE $ac_have_decl
16821 GNULIB_CALLOC_POSIX
=0;
16822 GNULIB_CANONICALIZE_FILE_NAME
=0;
16823 GNULIB_GETLOADAVG
=0;
16824 GNULIB_GETSUBOPT
=0;
16826 GNULIB_MALLOC_POSIX
=0;
16830 GNULIB_MKOSTEMPS
=0;
16833 GNULIB_POSIX_OPENPT
=0;
16835 GNULIB_PTSNAME_R
=0;
16839 GNULIB_REALLOC_POSIX
=0;
16846 GNULIB_SYSTEM_POSIX
=0;
16852 HAVE_CANONICALIZE_FILE_NAME
=1;
16853 HAVE_DECL_GETLOADAVG
=1;
16861 HAVE_POSIX_OPENPT
=1;
16870 HAVE_DECL_SETENV
=1;
16874 HAVE_STRUCT_RANDOM_DATA
=1;
16875 HAVE_SYS_LOADAVG_H
=0;
16877 HAVE_DECL_UNSETENV
=1;
16879 REPLACE_CANONICALIZE_FILE_NAME
=0;
16884 REPLACE_PTSNAME_R
=0;
16886 REPLACE_RANDOM_R
=0;
16888 REPLACE_REALPATH
=0;
16891 REPLACE_UNSETENV
=0;
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16897 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16898 if test "${gl_cv_have_include_next+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16901 rm -rf conftestd1a conftestd1b conftestd2
16902 mkdir conftestd1a conftestd1b conftestd2
16903 cat <<EOF > conftestd1a/conftest.h
16904 #define DEFINED_IN_CONFTESTD1
16905 #include_next <conftest.h>
16906 #ifdef DEFINED_IN_CONFTESTD2
16909 #error "include_next doesn't work"
16912 cat <<EOF > conftestd1b/conftest.h
16913 #define DEFINED_IN_CONFTESTD1
16915 #include_next <conftest.h>
16916 #ifdef DEFINED_IN_CONFTESTD2
16919 #error "include_next doesn't work"
16922 cat <<EOF > conftestd2/conftest.h
16923 #ifndef DEFINED_IN_CONFTESTD1
16924 #error "include_next test doesn't work"
16926 #define DEFINED_IN_CONFTESTD2
16928 gl_save_CPPFLAGS
="$CPPFLAGS"
16929 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16932 #include <conftest.h>
16934 if ac_fn_c_try_compile
"$LINENO"; then :
16935 gl_cv_have_include_next
=yes
16937 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <conftest.h>
16942 if ac_fn_c_try_compile
"$LINENO"; then :
16943 gl_cv_have_include_next
=buggy
16945 gl_cv_have_include_next
=no
16947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16951 CPPFLAGS
="$gl_save_CPPFLAGS"
16952 rm -rf conftestd1a conftestd1b conftestd2
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16956 $as_echo "$gl_cv_have_include_next" >&6; }
16957 PRAGMA_SYSTEM_HEADER
=
16958 if test $gl_cv_have_include_next = yes; then
16959 INCLUDE_NEXT
=include_next
16960 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16961 if test -n "$GCC"; then
16962 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16965 if test $gl_cv_have_include_next = buggy
; then
16966 INCLUDE_NEXT
=include
16967 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16969 INCLUDE_NEXT
=include
16970 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16977 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16978 if test "${gl_cv_pragma_columns+set}" = set; then :
16979 $as_echo_n "(cached) " >&6
16981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16990 $EGREP "choke me" >/dev
/null
2>&1; then :
16991 gl_cv_pragma_columns
=yes
16993 gl_cv_pragma_columns
=no
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17000 $as_echo "$gl_cv_pragma_columns" >&6; }
17001 if test $gl_cv_pragma_columns = yes; then
17002 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17023 if test $gl_cv_have_include_next = yes; then
17024 gl_cv_next_getopt_h
='<'getopt.h
'>'
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17027 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17028 if test "${gl_cv_next_getopt_h+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17032 if test $ac_cv_header_getopt_h = yes; then
17035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 #include <getopt.h>
17041 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17042 *) gl_absname_cpp
="$ac_cpp" ;;
17047 gl_dirsep_regex
='[/\\]'
17050 gl_dirsep_regex
='\/'
17053 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17055 gl_header_literal_regex
=`echo 'getopt.h' \
17056 | sed -e "$gl_make_literal_regex_sed"`
17057 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17063 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17064 sed -n "$gl_absolute_header_sed"`'"'
17066 gl_cv_next_getopt_h
='<'getopt.h
'>'
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17072 $as_echo "$gl_cv_next_getopt_h" >&6; }
17074 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17076 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17078 gl_next_as_first_directive
='<'getopt.h
'>'
17080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17081 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17083 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17088 if test $ac_cv_header_getopt_h = yes; then
17097 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17098 for ac_header
in getopt.h
17100 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17101 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17102 cat >>confdefs.h
<<_ACEOF
17103 #define HAVE_GETOPT_H 1
17107 gl_replace_getopt
=yes
17114 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17115 for ac_func
in getopt_long_only
17117 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17118 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17119 cat >>confdefs.h
<<_ACEOF
17120 #define HAVE_GETOPT_LONG_ONLY 1
17124 gl_replace_getopt
=yes
17130 if test -z "$gl_replace_getopt"; then
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17132 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17133 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17137 if test $cross_compiling = no
; then
17138 if test "$cross_compiling" = yes; then :
17139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17141 as_fn_error
"cannot run test program while cross compiling
17142 See \`config.log' for more details." "$LINENO" 5; }
17144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17147 #include <unistd.h>
17148 #include <stdlib.h>
17149 #include <string.h>
17154 static char program[] = "program";
17155 static char a[] = "-a";
17156 static char foo[] = "foo";
17157 static char bar[] = "bar";
17158 char *argv[] = { program, a, foo, bar, NULL };
17161 c = getopt (4, argv, "ab");
17164 c = getopt (4, argv, "ab");
17167 if (!(optind == 2))
17173 if ac_fn_c_try_run
"$LINENO"; then :
17174 gl_cv_func_getopt_posix
=maybe
17176 gl_cv_func_getopt_posix
=no
17178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17182 if test $gl_cv_func_getopt_posix = maybe
; then
17183 if test "$cross_compiling" = yes; then :
17184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17186 as_fn_error
"cannot run test program while cross compiling
17187 See \`config.log' for more details." "$LINENO" 5; }
17189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17192 #include <unistd.h>
17193 #include <stdlib.h>
17194 #include <string.h>
17199 static char program[] = "program";
17200 static char donald[] = "donald";
17201 static char p[] = "-p";
17202 static char billy[] = "billy";
17203 static char duck[] = "duck";
17204 static char a[] = "-a";
17205 static char bar[] = "bar";
17206 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17209 c = getopt (7, argv, "+abp:q:");
17212 if (!(strcmp (argv[0], "program") == 0))
17214 if (!(strcmp (argv[1], "donald") == 0))
17216 if (!(strcmp (argv[2], "-p") == 0))
17218 if (!(strcmp (argv[3], "billy") == 0))
17220 if (!(strcmp (argv[4], "duck") == 0))
17222 if (!(strcmp (argv[5], "-a") == 0))
17224 if (!(strcmp (argv[6], "bar") == 0))
17226 if (!(optind == 1))
17232 if ac_fn_c_try_run
"$LINENO"; then :
17233 gl_cv_func_getopt_posix
=maybe
17235 gl_cv_func_getopt_posix
=no
17237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17238 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17242 if test $gl_cv_func_getopt_posix = maybe
; then
17243 if test "$cross_compiling" = yes; then :
17244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17246 as_fn_error
"cannot run test program while cross compiling
17247 See \`config.log' for more details." "$LINENO" 5; }
17249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17252 #include <unistd.h>
17253 #include <stdlib.h>
17254 #include <string.h>
17259 static char program[] = "program";
17260 static char ab[] = "-ab";
17261 char *argv[3] = { program, ab, NULL };
17262 if (getopt (2, argv, "ab:") != 'a')
17264 if (getopt (2, argv, "ab:") != '?')
17274 if ac_fn_c_try_run
"$LINENO"; then :
17275 gl_cv_func_getopt_posix
=yes
17277 gl_cv_func_getopt_posix
=no
17279 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17280 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17286 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17287 *) gl_cv_func_getopt_posix
="guessing yes";;
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17293 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17294 case "$gl_cv_func_getopt_posix" in
17295 *no
) gl_replace_getopt
=yes ;;
17299 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17301 $as_echo_n "checking for working GNU getopt function... " >&6; }
17302 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17303 $as_echo_n "(cached) " >&6
17305 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17306 # optstring is necessary for programs like m4 that have POSIX-mandated
17307 # semantics for supporting options interspersed with files.
17308 # Also, since getopt_long is a GNU extension, we require optind=0.
17309 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17310 # so take care to revert to the correct (non-)export state.
17311 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17312 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17313 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17314 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17315 *) gl_had_POSIXLY_CORRECT
= ;;
17318 export POSIXLY_CORRECT
17319 if test "$cross_compiling" = yes; then :
17320 gl_cv_func_getopt_gnu
="guessing no"
17323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325 #include <getopt.h>
17326 #include <stddef.h>
17327 #include <string.h>
17329 #include <stdlib.h>
17330 #if defined __MACH__ && defined __APPLE__
17331 /* Avoid a crash on Mac OS X. */
17332 #include <mach/mach.h>
17333 #include <mach/mach_error.h>
17334 #include <mach/thread_status.h>
17335 #include <mach/exception.h>
17336 #include <mach/task.h>
17337 #include <pthread.h>
17338 /* The exception port on which our thread listens. */
17339 static mach_port_t our_exception_port;
17340 /* The main function of the thread listening for exceptions of type
17343 mach_exception_thread (void *arg)
17345 /* Buffer for a message to be received. */
17347 mach_msg_header_t head;
17348 mach_msg_body_t msgh_body;
17351 mach_msg_return_t retval;
17352 /* Wait for a message on the exception port. */
17353 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17354 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17355 if (retval != MACH_MSG_SUCCESS)
17360 nocrash_init (void)
17362 mach_port_t self = mach_task_self ();
17363 /* Allocate a port on which the thread shall listen for exceptions. */
17364 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17366 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17367 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17368 MACH_MSG_TYPE_MAKE_SEND)
17370 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17372 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17373 /* Create the thread listening on the exception port. */
17374 pthread_attr_t attr;
17376 if (pthread_attr_init (&attr) == 0
17377 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17378 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17379 pthread_attr_destroy (&attr);
17380 /* Replace the exception port info for these exceptions with our own.
17381 Note that we replace the exception port for the entire task, not only
17382 for a particular thread. This has the effect that when our exception
17383 port gets the message, the thread specific exception port has already
17384 been asked, and we don't need to bother about it.
17385 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17386 task_set_exception_ports (self, mask, our_exception_port,
17387 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17392 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17393 /* Avoid a crash on native Windows. */
17394 #define WIN32_LEAN_AND_MEAN
17395 #include <windows.h>
17396 #include <winerror.h>
17398 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17400 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17402 case EXCEPTION_ACCESS_VIOLATION:
17403 case EXCEPTION_IN_PAGE_ERROR:
17404 case EXCEPTION_STACK_OVERFLOW:
17405 case EXCEPTION_GUARD_PAGE:
17406 case EXCEPTION_PRIV_INSTRUCTION:
17407 case EXCEPTION_ILLEGAL_INSTRUCTION:
17408 case EXCEPTION_DATATYPE_MISALIGNMENT:
17409 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17410 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17413 return EXCEPTION_CONTINUE_SEARCH;
17416 nocrash_init (void)
17418 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17421 /* Avoid a crash on POSIX systems. */
17422 #include <signal.h>
17423 /* A POSIX signal handler. */
17425 exception_handler (int sig)
17430 nocrash_init (void)
17433 signal (SIGSEGV, exception_handler);
17436 signal (SIGBUS, exception_handler);
17450 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17451 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17452 OSF/1 5.1, Solaris 10. */
17454 static char conftest[] = "conftest";
17455 static char plus[] = "-+";
17456 char *argv[3] = { conftest, plus, NULL };
17458 if (getopt (2, argv, "+a") != '?')
17461 /* This code succeeds on glibc 2.8, mingw,
17462 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17463 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17465 static char program[] = "program";
17466 static char p[] = "-p";
17467 static char foo[] = "foo";
17468 static char bar[] = "bar";
17469 char *argv[] = { program, p, foo, bar, NULL };
17472 if (getopt (4, argv, "p::") != 'p')
17474 else if (optarg != NULL)
17476 else if (getopt (4, argv, "p::") != -1)
17478 else if (optind != 2)
17481 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17483 static char program[] = "program";
17484 static char foo[] = "foo";
17485 static char p[] = "-p";
17486 char *argv[] = { program, foo, p, NULL };
17488 if (getopt (3, argv, "-p") != 1)
17490 else if (getopt (3, argv, "-p") != 'p')
17493 /* This code fails on glibc 2.11. */
17495 static char program[] = "program";
17496 static char b[] = "-b";
17497 static char a[] = "-a";
17498 char *argv[] = { program, b, a, NULL };
17499 optind = opterr = 0;
17500 if (getopt (3, argv, "+:a:b") != 'b')
17502 else if (getopt (3, argv, "+:a:b") != ':')
17505 /* This code dumps core on glibc 2.14. */
17507 static char program[] = "program";
17508 static char w[] = "-W";
17509 static char dummy[] = "dummy";
17510 char *argv[] = { program, w, dummy, NULL };
17511 optind = opterr = 1;
17512 if (getopt (3, argv, "W;") != 'W')
17521 if ac_fn_c_try_run
"$LINENO"; then :
17522 gl_cv_func_getopt_gnu
=yes
17524 gl_cv_func_getopt_gnu
=no
17526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17530 case $gl_had_POSIXLY_CORRECT in
17532 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17533 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17538 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17539 if test "$gl_cv_func_getopt_gnu" != yes; then
17540 gl_replace_getopt
=yes
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17543 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17544 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17545 $as_echo_n "(cached) " >&6
17547 if test "$cross_compiling" = yes; then :
17549 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17550 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 #include <getopt.h>
17557 #include <stddef.h>
17558 #include <string.h>
17563 static const struct option long_options[] =
17565 { "xtremely-",no_argument, NULL, 1003 },
17566 { "xtra", no_argument, NULL, 1001 },
17567 { "xtreme", no_argument, NULL, 1002 },
17568 { "xtremely", no_argument, NULL, 1003 },
17569 { NULL, 0, NULL, 0 }
17571 /* This code fails on OpenBSD 5.0. */
17573 static char program[] = "program";
17574 static char xtremel[] = "--xtremel";
17575 char *argv[] = { program, xtremel, NULL };
17577 optind = 1; opterr = 0;
17578 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17587 if ac_fn_c_try_run
"$LINENO"; then :
17588 gl_cv_func_getopt_long_gnu
=yes
17590 gl_cv_func_getopt_long_gnu
=no
17592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17599 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17600 case "$gl_cv_func_getopt_long_gnu" in
17602 *) gl_replace_getopt
=yes ;;
17613 if test -n "$gl_replace_getopt"; then
17617 if test $REPLACE_GETOPT = 1; then
17621 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17627 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17628 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17634 cat >>confdefs.h
<<_ACEOF
17635 #define HAVE_DECL_GETENV $ac_have_decl
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17644 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17645 if test "${ac_cv_c_restrict+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17648 ac_cv_c_restrict
=no
17649 # The order here caters to the fact that C++ does not require restrict.
17650 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 typedef int * int_ptr;
17654 int foo (int_ptr $ac_kw ip) {
17661 int * $ac_kw t = s;
17668 if ac_fn_c_try_compile
"$LINENO"; then :
17669 ac_cv_c_restrict
=$ac_kw
17671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17672 test "$ac_cv_c_restrict" != no
&& break
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17677 $as_echo "$ac_cv_c_restrict" >&6; }
17679 case $ac_cv_c_restrict in
17681 no
) $as_echo "#define restrict /**/" >>confdefs.h
17683 *) cat >>confdefs.h
<<_ACEOF
17684 #define restrict $ac_cv_c_restrict
17690 GNULIB_GETTIMEOFDAY
=0;
17691 HAVE_GETTIMEOFDAY
=1;
17692 HAVE_STRUCT_TIMEVAL
=1;
17694 REPLACE_GETTIMEOFDAY
=0;
17695 REPLACE_STRUCT_TIMEVAL
=0;
17712 if test $gl_cv_have_include_next = yes; then
17713 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17716 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17717 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17721 if test $ac_cv_header_sys_time_h = yes; then
17724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17726 #include <sys/time.h>
17730 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17731 *) gl_absname_cpp
="$ac_cpp" ;;
17736 gl_dirsep_regex
='[/\\]'
17739 gl_dirsep_regex
='\/'
17742 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17744 gl_header_literal_regex
=`echo 'sys/time.h' \
17745 | sed -e "$gl_make_literal_regex_sed"`
17746 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17747 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17752 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17753 sed -n "$gl_absolute_header_sed"`'"'
17755 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17761 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17763 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17765 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17767 gl_next_as_first_directive
='<'sys
/time.h
'>'
17769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17770 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17772 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17778 if test $ac_cv_header_sys_time_h != yes; then
17786 if test $ac_cv_header_sys_socket_h != yes; then
17787 for ac_header
in winsock2.h
17789 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17790 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17791 cat >>confdefs.h
<<_ACEOF
17792 #define HAVE_WINSOCK2_H 1
17800 if test "$ac_cv_header_winsock2_h" = yes; then
17802 UNISTD_H_HAVE_WINSOCK2_H
=1
17803 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17810 $as_echo_n "checking for struct timeval... " >&6; }
17811 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17816 #if HAVE_SYS_TIME_H
17817 #include <sys/time.h>
17820 #if HAVE_WINSOCK2_H
17821 # include <winsock2.h>
17827 static struct timeval x; x.tv_sec = x.tv_usec;
17832 if ac_fn_c_try_compile
"$LINENO"; then :
17833 gl_cv_sys_struct_timeval
=yes
17835 gl_cv_sys_struct_timeval
=no
17837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17841 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17842 if test $gl_cv_sys_struct_timeval != yes; then
17843 HAVE_STRUCT_TIMEVAL
=0
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17846 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17847 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17848 $as_echo_n "(cached) " >&6
17850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17852 #if HAVE_SYS_TIME_H
17853 #include <sys/time.h>
17856 #if HAVE_WINSOCK2_H
17857 # include <winsock2.h>
17863 static struct timeval x;
17864 typedef int verify_tv_sec_type[
17865 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17872 if ac_fn_c_try_compile
"$LINENO"; then :
17873 gl_cv_sys_struct_timeval_tv_sec
=yes
17875 gl_cv_sys_struct_timeval_tv_sec
=no
17877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17881 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17882 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17883 REPLACE_STRUCT_TIMEVAL
=1
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17894 $as_echo_n "checking for unsigned long long int... " >&6; }
17895 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17896 $as_echo_n "(cached) " >&6
17898 ac_cv_type_unsigned_long_long_int
=yes
17899 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17903 /* For now, do not test the preprocessor; as of 2007 there are too many
17904 implementations with broken preprocessors. Perhaps this can
17905 be revisited in 2012. In the meantime, code should not expect
17906 #if to work with literals wider than 32 bits. */
17907 /* Test literals. */
17908 long long int ll = 9223372036854775807ll;
17909 long long int nll = -9223372036854775807LL;
17910 unsigned long long int ull = 18446744073709551615ULL;
17911 /* Test constant expressions. */
17912 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17914 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17920 /* Test availability of runtime routines for shift and division. */
17921 long long int llmax = 9223372036854775807ll;
17922 unsigned long long int ullmax = 18446744073709551615ull;
17923 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17924 | (llmax / ll) | (llmax % ll)
17925 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17926 | (ullmax / ull) | (ullmax % ull));
17932 if ac_fn_c_try_link
"$LINENO"; then :
17935 ac_cv_type_unsigned_long_long_int
=no
17937 rm -f core conftest.err conftest.
$ac_objext \
17938 conftest
$ac_exeext conftest.
$ac_ext
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17942 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17943 if test $ac_cv_type_unsigned_long_long_int = yes; then
17945 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17952 $as_echo_n "checking for long long int... " >&6; }
17953 if test "${ac_cv_type_long_long_int+set}" = set; then :
17954 $as_echo_n "(cached) " >&6
17956 ac_cv_type_long_long_int
=yes
17957 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17958 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17959 if test $ac_cv_type_long_long_int = yes; then
17960 if test "$cross_compiling" = yes; then :
17963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17964 /* end confdefs.h. */
17965 #include <limits.h>
17968 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17969 # define LLONG_MAX (HALF - 1 + HALF)
17974 long long int n = 1;
17978 long long int m = n << i;
17981 if (LLONG_MAX / 2 < m)
17989 if ac_fn_c_try_run
"$LINENO"; then :
17992 ac_cv_type_long_long_int
=no
17994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18002 $as_echo "$ac_cv_type_long_long_int" >&6; }
18003 if test $ac_cv_type_long_long_int = yes; then
18005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18014 gl_cv_c_multiarch
=no
18015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017 #ifndef __APPLE_CC__
18018 not a universal capable compiler
18023 if ac_fn_c_try_compile
"$LINENO"; then :
18027 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18028 if test -n "$prev"; then
18030 i?
86 | x86_64 | ppc | ppc64
)
18031 if test -z "$arch" ||
test "$arch" = "$word"; then
18034 gl_cv_c_multiarch
=yes
18040 if test "x$word" = "x-arch"; then
18047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18048 if test $gl_cv_c_multiarch = yes; then
18049 APPLE_UNIVERSAL_BUILD
=1
18051 APPLE_UNIVERSAL_BUILD
=0
18058 if test $ac_cv_type_long_long_int = yes; then
18059 HAVE_LONG_LONG_INT
=1
18061 HAVE_LONG_LONG_INT
=0
18065 if test $ac_cv_type_unsigned_long_long_int = yes; then
18066 HAVE_UNSIGNED_LONG_LONG_INT
=1
18068 HAVE_UNSIGNED_LONG_LONG_INT
=0
18073 if test $ac_cv_header_wchar_h = yes; then
18080 if test $ac_cv_header_inttypes_h = yes; then
18087 if test $ac_cv_header_sys_types_h = yes; then
18103 if test $gl_cv_have_include_next = yes; then
18104 gl_cv_next_stdint_h
='<'stdint.h
'>'
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18107 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18108 if test "${gl_cv_next_stdint_h+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18112 if test $ac_cv_header_stdint_h = yes; then
18115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18117 #include <stdint.h>
18121 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18122 *) gl_absname_cpp
="$ac_cpp" ;;
18127 gl_dirsep_regex
='[/\\]'
18130 gl_dirsep_regex
='\/'
18133 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18135 gl_header_literal_regex
=`echo 'stdint.h' \
18136 | sed -e "$gl_make_literal_regex_sed"`
18137 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18143 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18144 sed -n "$gl_absolute_header_sed"`'"'
18146 gl_cv_next_stdint_h
='<'stdint.h
'>'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18152 $as_echo "$gl_cv_next_stdint_h" >&6; }
18154 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18156 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18158 gl_next_as_first_directive
='<'stdint.h
'>'
18160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18161 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18163 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18168 if test $ac_cv_header_stdint_h = yes; then
18175 if test $ac_cv_header_stdint_h = yes; then
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18177 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18178 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18181 gl_cv_header_working_stdint_h
=no
18182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18186 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18187 #include <stdint.h>
18188 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18189 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18190 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18195 included before <wchar.h>. */
18196 #include <stddef.h>
18197 #include <signal.h>
18199 # include <stdio.h>
18201 # include <wchar.h>
18206 int8_t a1 = INT8_MAX;
18207 int8_t a1min = INT8_MIN;
18210 int16_t a2 = INT16_MAX;
18211 int16_t a2min = INT16_MIN;
18214 int32_t a3 = INT32_MAX;
18215 int32_t a3min = INT32_MIN;
18218 int64_t a4 = INT64_MAX;
18219 int64_t a4min = INT64_MIN;
18222 uint8_t b1 = UINT8_MAX;
18224 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18227 uint16_t b2 = UINT16_MAX;
18230 uint32_t b3 = UINT32_MAX;
18233 uint64_t b4 = UINT64_MAX;
18235 int_least8_t c1 = INT8_C (0x7f);
18236 int_least8_t c1max = INT_LEAST8_MAX;
18237 int_least8_t c1min = INT_LEAST8_MIN;
18238 int_least16_t c2 = INT16_C (0x7fff);
18239 int_least16_t c2max = INT_LEAST16_MAX;
18240 int_least16_t c2min = INT_LEAST16_MIN;
18241 int_least32_t c3 = INT32_C (0x7fffffff);
18242 int_least32_t c3max = INT_LEAST32_MAX;
18243 int_least32_t c3min = INT_LEAST32_MIN;
18244 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18245 int_least64_t c4max = INT_LEAST64_MAX;
18246 int_least64_t c4min = INT_LEAST64_MIN;
18247 uint_least8_t d1 = UINT8_C (0xff);
18248 uint_least8_t d1max = UINT_LEAST8_MAX;
18249 uint_least16_t d2 = UINT16_C (0xffff);
18250 uint_least16_t d2max = UINT_LEAST16_MAX;
18251 uint_least32_t d3 = UINT32_C (0xffffffff);
18252 uint_least32_t d3max = UINT_LEAST32_MAX;
18253 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18254 uint_least64_t d4max = UINT_LEAST64_MAX;
18255 int_fast8_t e1 = INT_FAST8_MAX;
18256 int_fast8_t e1min = INT_FAST8_MIN;
18257 int_fast16_t e2 = INT_FAST16_MAX;
18258 int_fast16_t e2min = INT_FAST16_MIN;
18259 int_fast32_t e3 = INT_FAST32_MAX;
18260 int_fast32_t e3min = INT_FAST32_MIN;
18261 int_fast64_t e4 = INT_FAST64_MAX;
18262 int_fast64_t e4min = INT_FAST64_MIN;
18263 uint_fast8_t f1 = UINT_FAST8_MAX;
18264 uint_fast16_t f2 = UINT_FAST16_MAX;
18265 uint_fast32_t f3 = UINT_FAST32_MAX;
18266 uint_fast64_t f4 = UINT_FAST64_MAX;
18268 intptr_t g = INTPTR_MAX;
18269 intptr_t gmin = INTPTR_MIN;
18272 uintptr_t h = UINTPTR_MAX;
18274 intmax_t i = INTMAX_MAX;
18275 uintmax_t j = UINTMAX_MAX;
18277 #include <limits.h> /* for CHAR_BIT */
18278 #define TYPE_MINIMUM(t) \
18279 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18280 #define TYPE_MAXIMUM(t) \
18281 ((t) ((t) 0 < (t) -1 \
18283 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18286 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18287 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18289 /* Detect bug in FreeBSD 6.0 / ia64. */
18290 int check_SIG_ATOMIC:
18291 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18292 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18294 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18296 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18297 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18299 /* Detect bug in mingw. */
18301 WINT_MIN == TYPE_MINIMUM (wint_t)
18302 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18305 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18307 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18308 int check_UINT16_C:
18309 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18311 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18313 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18316 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18319 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18322 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18324 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18325 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18326 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18327 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18328 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18329 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18330 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18331 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18332 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18333 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18334 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18345 if ac_fn_c_try_compile
"$LINENO"; then :
18346 if test "$cross_compiling" = yes; then :
18347 gl_cv_header_working_stdint_h
=yes
18350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18354 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18355 #include <stdint.h>
18358 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18359 included before <wchar.h>. */
18360 #include <stddef.h>
18361 #include <signal.h>
18363 # include <stdio.h>
18365 # include <wchar.h>
18370 #include <string.h>
18371 #define MVAL(macro) MVAL1(macro)
18372 #define MVAL1(expression) #expression
18373 static const char *macro_values[] =
18407 for (mv = macro_values; *mv != NULL; mv++)
18409 const char *value = *mv;
18410 /* Test whether it looks like a cast expression. */
18411 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18412 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18413 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18414 || strncmp (value, "((int)"/*)*/, 6) == 0
18415 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18416 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18417 return mv - macro_values + 1;
18425 if ac_fn_c_try_run
"$LINENO"; then :
18426 gl_cv_header_working_stdint_h
=yes
18428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18438 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18440 if test "$gl_cv_header_working_stdint_h" = yes; then
18443 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18445 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18446 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18447 eval as_val
=\$
$as_ac_Header
18448 if test "x$as_val" = x
""yes; then :
18449 cat >>confdefs.h
<<_ACEOF
18450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18457 if test $ac_cv_header_sys_inttypes_h = yes; then
18458 HAVE_SYS_INTTYPES_H
=1
18460 HAVE_SYS_INTTYPES_H
=0
18463 if test $ac_cv_header_sys_bitypes_h = yes; then
18464 HAVE_SYS_BITYPES_H
=1
18466 HAVE_SYS_BITYPES_H
=0
18472 if test $APPLE_UNIVERSAL_BUILD = 0; then
18475 for gltype
in ptrdiff_t size_t
; do
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18477 $as_echo_n "checking for bit size of $gltype... " >&6; }
18478 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18479 $as_echo_n "(cached) " >&6
18481 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18483 included before <wchar.h>. */
18484 #include <stddef.h>
18485 #include <signal.h>
18487 # include <stdio.h>
18489 # include <wchar.h>
18492 #include <limits.h>"; then :
18498 eval gl_cv_bitsizeof_
${gltype}=\
$result
18501 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18503 $as_echo "$ac_res" >&6; }
18504 eval result
=\
$gl_cv_bitsizeof_${gltype}
18505 if test $result = unknown
; then
18508 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18509 cat >>confdefs.h
<<_ACEOF
18510 #define BITSIZEOF_${GLTYPE} $result
18513 eval BITSIZEOF_
${GLTYPE}=\
$result
18520 for gltype
in sig_atomic_t wchar_t wint_t
; do
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18522 $as_echo_n "checking for bit size of $gltype... " >&6; }
18523 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18524 $as_echo_n "(cached) " >&6
18526 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18527 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18528 included before <wchar.h>. */
18529 #include <stddef.h>
18530 #include <signal.h>
18532 # include <stdio.h>
18534 # include <wchar.h>
18537 #include <limits.h>"; then :
18543 eval gl_cv_bitsizeof_
${gltype}=\
$result
18546 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18548 $as_echo "$ac_res" >&6; }
18549 eval result
=\
$gl_cv_bitsizeof_${gltype}
18550 if test $result = unknown
; then
18553 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18554 cat >>confdefs.h
<<_ACEOF
18555 #define BITSIZEOF_${GLTYPE} $result
18558 eval BITSIZEOF_
${GLTYPE}=\
$result
18564 for gltype
in sig_atomic_t wchar_t wint_t
; do
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18566 $as_echo_n "checking whether $gltype is signed... " >&6; }
18567 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18568 $as_echo_n "(cached) " >&6
18570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18573 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18574 included before <wchar.h>. */
18575 #include <stddef.h>
18576 #include <signal.h>
18578 # include <stdio.h>
18580 # include <wchar.h>
18583 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18592 if ac_fn_c_try_compile
"$LINENO"; then :
18597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18598 eval gl_cv_type_
${gltype}_signed
=\
$result
18601 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18603 $as_echo "$ac_res" >&6; }
18604 eval result
=\
$gl_cv_type_${gltype}_signed
18605 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18606 if test "$result" = yes; then
18607 cat >>confdefs.h
<<_ACEOF
18608 #define HAVE_SIGNED_${GLTYPE} 1
18611 eval HAVE_SIGNED_
${GLTYPE}=1
18613 eval HAVE_SIGNED_
${GLTYPE}=0
18618 gl_cv_type_ptrdiff_t_signed
=yes
18619 gl_cv_type_size_t_signed
=no
18620 if test $APPLE_UNIVERSAL_BUILD = 0; then
18623 for gltype
in ptrdiff_t size_t
; do
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18625 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18626 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18627 $as_echo_n "(cached) " >&6
18629 eval gl_cv_type_
${gltype}_suffix
=no
18630 eval result
=\
$gl_cv_type_${gltype}_signed
18631 if test "$result" = yes; then
18636 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18638 '') gltype1
='int';;
18639 l
) gltype1
='long int';;
18640 ll
) gltype1
='long long int';;
18641 i64
) gltype1
='__int64';;
18642 u
) gltype1
='unsigned int';;
18643 ul
) gltype1
='unsigned long int';;
18644 ull
) gltype1
='unsigned long long int';;
18645 ui64
)gltype1
='unsigned __int64';;
18647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18651 included before <wchar.h>. */
18652 #include <stddef.h>
18653 #include <signal.h>
18655 # include <stdio.h>
18657 # include <wchar.h>
18660 extern $gltype foo;
18661 extern $gltype1 foo;
18670 if ac_fn_c_try_compile
"$LINENO"; then :
18671 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18674 eval result
=\
$gl_cv_type_${gltype}_suffix
18675 test "$result" != no
&& break
18678 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18680 $as_echo "$ac_res" >&6; }
18681 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18682 eval result
=\
$gl_cv_type_${gltype}_suffix
18683 test "$result" = no
&& result
=
18684 eval ${GLTYPE}_SUFFIX
=\
$result
18685 cat >>confdefs.h
<<_ACEOF
18686 #define ${GLTYPE}_SUFFIX $result
18695 for gltype
in sig_atomic_t wchar_t wint_t
; do
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18697 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18698 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18699 $as_echo_n "(cached) " >&6
18701 eval gl_cv_type_
${gltype}_suffix
=no
18702 eval result
=\
$gl_cv_type_${gltype}_signed
18703 if test "$result" = yes; then
18708 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18710 '') gltype1
='int';;
18711 l
) gltype1
='long int';;
18712 ll
) gltype1
='long long int';;
18713 i64
) gltype1
='__int64';;
18714 u
) gltype1
='unsigned int';;
18715 ul
) gltype1
='unsigned long int';;
18716 ull
) gltype1
='unsigned long long int';;
18717 ui64
)gltype1
='unsigned __int64';;
18719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18722 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18723 included before <wchar.h>. */
18724 #include <stddef.h>
18725 #include <signal.h>
18727 # include <stdio.h>
18729 # include <wchar.h>
18732 extern $gltype foo;
18733 extern $gltype1 foo;
18742 if ac_fn_c_try_compile
"$LINENO"; then :
18743 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18746 eval result
=\
$gl_cv_type_${gltype}_suffix
18747 test "$result" != no
&& break
18750 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18752 $as_echo "$ac_res" >&6; }
18753 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18754 eval result
=\
$gl_cv_type_${gltype}_suffix
18755 test "$result" = no
&& result
=
18756 eval ${GLTYPE}_SUFFIX
=\
$result
18757 cat >>confdefs.h
<<_ACEOF
18758 #define ${GLTYPE}_SUFFIX $result
18765 if test $BITSIZEOF_WINT_T -lt 32; then
18766 BITSIZEOF_WINT_T
=32
18772 if test -n "$STDINT_H"; then
18773 GL_GENERATE_STDINT_H_TRUE
=
18774 GL_GENERATE_STDINT_H_FALSE
='#'
18776 GL_GENERATE_STDINT_H_TRUE
='#'
18777 GL_GENERATE_STDINT_H_FALSE
=
18786 GNULIB_STRTOIMAX
=0;
18787 GNULIB_STRTOUMAX
=0;
18788 HAVE_DECL_IMAXABS
=1;
18789 HAVE_DECL_IMAXDIV
=1;
18790 HAVE_DECL_STRTOIMAX
=1;
18791 HAVE_DECL_STRTOUMAX
=1;
18792 REPLACE_STRTOIMAX
=0;
18793 INT32_MAX_LT_INTMAX_MAX
=1;
18794 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18795 PRI_MACROS_BROKEN
=0;
18796 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18797 UINT32_MAX_LT_UINTMAX_MAX
=1;
18798 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18814 if test $gl_cv_have_include_next = yes; then
18815 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18818 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18819 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18820 $as_echo_n "(cached) " >&6
18823 if test $ac_cv_header_inttypes_h = yes; then
18826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18827 /* end confdefs.h. */
18828 #include <inttypes.h>
18832 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18833 *) gl_absname_cpp
="$ac_cpp" ;;
18838 gl_dirsep_regex
='[/\\]'
18841 gl_dirsep_regex
='\/'
18844 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18846 gl_header_literal_regex
=`echo 'inttypes.h' \
18847 | sed -e "$gl_make_literal_regex_sed"`
18848 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18854 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18855 sed -n "$gl_absolute_header_sed"`'"'
18857 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18863 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18865 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18867 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18869 gl_next_as_first_directive
='<'inttypes.h
'>'
18871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18872 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18874 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18889 $as_echo_n "checking for 64-bit off_t... " >&6; }
18890 if test "${gl_cv_type_off_t_64+set}" = set; then :
18891 $as_echo_n "(cached) " >&6
18893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18895 #include <sys/types.h>
18896 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18906 if ac_fn_c_try_compile
"$LINENO"; then :
18907 gl_cv_type_off_t_64
=yes
18909 gl_cv_type_off_t_64
=no
18911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18915 $as_echo "$gl_cv_type_off_t_64" >&6; }
18916 if test $gl_cv_type_off_t_64 = no
; then
18917 WINDOWS_64_BIT_OFF_T
=1
18919 WINDOWS_64_BIT_OFF_T
=0
18921 WINDOWS_64_BIT_ST_SIZE
=1
18924 WINDOWS_64_BIT_OFF_T
=0
18925 WINDOWS_64_BIT_ST_SIZE
=0
18942 GNULIB_UTIMENSAT
=0;
18956 REPLACE_FUTIMENS
=0;
18962 REPLACE_UTIMENSAT
=0;
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18968 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18969 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18970 $as_echo_n "(cached) " >&6
18972 rm -f conftest.sym conftest.
file
18973 echo >conftest.
file
18974 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18975 if test "$cross_compiling" = yes; then :
18977 # Guess yes on glibc systems.
18978 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18979 # If we don't know, assume the worst.
18980 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18986 $ac_includes_default
18991 /* Linux will dereference the symlink and fail, as required by
18992 POSIX. That is better in the sense that it means we will not
18993 have to compile and use the lstat wrapper. */
18994 return lstat ("conftest.sym/", &sbuf) == 0;
19000 if ac_fn_c_try_run
"$LINENO"; then :
19001 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
19003 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19010 # If the 'ln -s' command failed, then we probably don't even
19011 # have an lstat function.
19012 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
19014 rm -f conftest.sym conftest.
file
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19018 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19019 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19022 cat >>confdefs.h
<<_ACEOF
19023 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19031 GNULIB_NANOSLEEP
=0;
19035 HAVE_DECL_LOCALTIME_R
=1;
19039 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19040 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19041 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19042 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19059 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19060 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19066 #include <sys/select.h>
19075 if ac_fn_c_try_compile
"$LINENO"; then :
19076 gl_cv_header_sys_select_h_selfcontained
=yes
19078 gl_cv_header_sys_select_h_selfcontained
=no
19080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19081 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 #include <sys/select.h>
19088 int memset; int bzero;
19094 if ac_fn_c_try_compile
"$LINENO"; then :
19095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19097 #include <sys/select.h>
19103 #define memset nonexistent_memset
19108 void *memset (void *, int, unsigned long);
19110 #define bzero nonexistent_bzero
19115 void bzero (void *, unsigned long);
19124 if ac_fn_c_try_link
"$LINENO"; then :
19127 gl_cv_header_sys_select_h_selfcontained
=no
19129 rm -f core conftest.err conftest.
$ac_objext \
19130 conftest
$ac_exeext conftest.
$ac_ext
19133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19138 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19148 if test $gl_cv_have_include_next = yes; then
19149 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19152 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19153 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19157 if test $ac_cv_header_sys_select_h = yes; then
19160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <sys/select.h>
19166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19167 *) gl_absname_cpp
="$ac_cpp" ;;
19172 gl_dirsep_regex
='[/\\]'
19175 gl_dirsep_regex
='\/'
19178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19180 gl_header_literal_regex
=`echo 'sys/select.h' \
19181 | sed -e "$gl_make_literal_regex_sed"`
19182 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19188 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19189 sed -n "$gl_absolute_header_sed"`'"'
19191 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19197 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19199 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19203 gl_next_as_first_directive
='<'sys
/select.h
'>'
19205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19206 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19208 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19213 if test $ac_cv_header_sys_select_h = yes; then
19214 HAVE_SYS_SELECT_H
=1
19216 HAVE_SYS_SELECT_H
=0
19223 if test $ac_cv_header_sys_socket_h != yes; then
19224 for ac_header
in winsock2.h
19226 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19227 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19228 cat >>confdefs.h
<<_ACEOF
19229 #define HAVE_WINSOCK2_H 1
19237 if test "$ac_cv_header_winsock2_h" = yes; then
19239 UNISTD_H_HAVE_WINSOCK2_H
=1
19240 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19252 GNULIB_PTHREAD_SIGMASK
=0;
19254 GNULIB_SIGNAL_H_SIGPIPE
=0;
19255 GNULIB_SIGPROCMASK
=0;
19256 GNULIB_SIGACTION
=0;
19257 HAVE_POSIX_SIGNALBLOCKING
=1;
19258 HAVE_PTHREAD_SIGMASK
=1;
19263 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19265 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19267 HAVE_SIGHANDLER_T
=1;
19268 REPLACE_PTHREAD_SIGMASK
=0;
19277 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19278 #include <signal.h>
19279 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19280 #include <sys/types.h>
19283 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19285 cat >>confdefs.h
<<_ACEOF
19286 #define HAVE_SIGSET_T 1
19289 gl_cv_type_sigset_t
=yes
19291 gl_cv_type_sigset_t
=no
19294 if test $gl_cv_type_sigset_t != yes; then
19300 if test $ac_cv_header_sys_socket_h = no
; then
19301 for ac_header
in ws2tcpip.h
19303 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19304 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19305 cat >>confdefs.h
<<_ACEOF
19306 #define HAVE_WS2TCPIP_H 1
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19316 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19317 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19318 $as_echo_n "(cached) " >&6
19320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19323 #include <stdbool.h>
19325 "error: bool is not defined"
19328 "error: false is not defined"
19331 "error: false is not 0"
19334 "error: true is not defined"
19337 "error: true is not 1"
19339 #ifndef __bool_true_false_are_defined
19340 "error: __bool_true_false_are_defined is not defined"
19343 struct s { _Bool s: 1; _Bool t; } s;
19345 char a[true == 1 ? 1 : -1];
19346 char b[false == 0 ? 1 : -1];
19347 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19348 char d[(bool) 0.5 == true ? 1 : -1];
19349 /* See body of main program for 'e'. */
19350 char f[(_Bool) 0.0 == false ? 1 : -1];
19352 char h[sizeof (_Bool)];
19353 char i[sizeof s.t];
19354 enum { j = false, k = true, l = false * true, m = true * 256 };
19355 /* The following fails for
19356 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19358 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19359 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19360 /* Catch a bug in an HP-UX C compiler. See
19361 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19362 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19374 /* Refer to every declared value, to avoid compiler optimizations. */
19375 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19376 + !m + !n + !o + !p + !q + !pq);
19382 if ac_fn_c_try_compile
"$LINENO"; then :
19383 ac_cv_header_stdbool_h
=yes
19385 ac_cv_header_stdbool_h
=no
19387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19390 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19391 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19392 if test "x$ac_cv_type__Bool" = x
""yes; then :
19394 cat >>confdefs.h
<<_ACEOF
19395 #define HAVE__BOOL 1
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19408 $as_echo_n "checking for wchar_t... " >&6; }
19409 if test "${gt_cv_c_wchar_t+set}" = set; then :
19410 $as_echo_n "(cached) " >&6
19412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19413 /* end confdefs.h. */
19414 #include <stddef.h>
19415 wchar_t foo = (wchar_t)'\0';
19424 if ac_fn_c_try_compile
"$LINENO"; then :
19425 gt_cv_c_wchar_t
=yes
19429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19432 $as_echo "$gt_cv_c_wchar_t" >&6; }
19433 if test $gt_cv_c_wchar_t = yes; then
19435 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19448 GNULIB_FPRINTF_POSIX
=0;
19464 GNULIB_OBSTACK_PRINTF
=0;
19465 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19470 GNULIB_PRINTF_POSIX
=0;
19479 GNULIB_SPRINTF_POSIX
=0;
19480 GNULIB_STDIO_H_NONBLOCKING
=0;
19481 GNULIB_STDIO_H_SIGPIPE
=0;
19483 GNULIB_VASPRINTF
=0;
19488 GNULIB_VFPRINTF_POSIX
=0;
19490 GNULIB_VPRINTF_POSIX
=0;
19491 GNULIB_VSNPRINTF
=0;
19492 GNULIB_VSPRINTF_POSIX
=0;
19493 HAVE_DECL_FPURGE
=1;
19494 HAVE_DECL_FSEEKO
=1;
19495 HAVE_DECL_FTELLO
=1;
19496 HAVE_DECL_GETDELIM
=1;
19497 HAVE_DECL_GETLINE
=1;
19498 HAVE_DECL_OBSTACK_PRINTF
=1;
19499 HAVE_DECL_SNPRINTF
=1;
19500 HAVE_DECL_VSNPRINTF
=1;
19521 REPLACE_GETDELIM
=0;
19523 REPLACE_OBSTACK_PRINTF
=0;
19529 REPLACE_RENAMEAT
=0;
19530 REPLACE_SNPRINTF
=0;
19532 REPLACE_STDIO_READ_FUNCS
=0;
19533 REPLACE_STDIO_WRITE_FUNCS
=0;
19535 REPLACE_VASPRINTF
=0;
19536 REPLACE_VDPRINTF
=0;
19537 REPLACE_VFPRINTF
=0;
19539 REPLACE_VSNPRINTF
=0;
19540 REPLACE_VSPRINTF
=0;
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19543 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19544 if test "${ac_cv_struct_tm+set}" = set; then :
19545 $as_echo_n "(cached) " >&6
19547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19549 #include <sys/types.h>
19556 int *p = &tm.tm_sec;
19562 if ac_fn_c_try_compile
"$LINENO"; then :
19563 ac_cv_struct_tm
=time.h
19565 ac_cv_struct_tm
=sys
/time.h
19567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19570 $as_echo "$ac_cv_struct_tm" >&6; }
19571 if test $ac_cv_struct_tm = sys
/time.h
; then
19573 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19577 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19578 #include <$ac_cv_struct_tm>
19581 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19583 cat >>confdefs.h
<<_ACEOF
19584 #define HAVE_STRUCT_TM_TM_ZONE 1
19590 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19592 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19595 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19597 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19603 cat >>confdefs.h
<<_ACEOF
19604 #define HAVE_DECL_TZNAME $ac_have_decl
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19608 $as_echo_n "checking for tzname... " >&6; }
19609 if test "${ac_cv_var_tzname+set}" = set; then :
19610 $as_echo_n "(cached) " >&6
19612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19615 #if !HAVE_DECL_TZNAME
19616 extern char *tzname[];
19622 return tzname[0][0];
19627 if ac_fn_c_try_link
"$LINENO"; then :
19628 ac_cv_var_tzname
=yes
19630 ac_cv_var_tzname
=no
19632 rm -f core conftest.err conftest.
$ac_objext \
19633 conftest
$ac_exeext conftest.
$ac_ext
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19636 $as_echo "$ac_cv_var_tzname" >&6; }
19637 if test $ac_cv_var_tzname = yes; then
19639 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19645 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19647 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19649 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19656 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19657 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19663 cat >>confdefs.h
<<_ACEOF
19664 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19669 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19670 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19676 cat >>confdefs.h
<<_ACEOF
19677 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19683 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19684 if test "${ac_cv_header_stat_broken+set}" = set; then :
19685 $as_echo_n "(cached) " >&6
19687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19689 #include <sys/types.h>
19690 #include <sys/stat.h>
19692 #if defined S_ISBLK && defined S_IFDIR
19693 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19696 #if defined S_ISBLK && defined S_IFCHR
19697 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19700 #if defined S_ISLNK && defined S_IFREG
19701 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19704 #if defined S_ISSOCK && defined S_IFREG
19705 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19709 if ac_fn_c_try_compile
"$LINENO"; then :
19710 ac_cv_header_stat_broken
=no
19712 ac_cv_header_stat_broken
=yes
19714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19717 $as_echo "$ac_cv_header_stat_broken" >&6; }
19718 if test $ac_cv_header_stat_broken = yes; then
19720 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19726 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19727 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19731 cat >>confdefs.h
<<_ACEOF
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19740 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19741 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19742 $as_echo_n "(cached) " >&6
19744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19745 /* end confdefs.h. */
19751 static struct timespec x; x.tv_sec = x.tv_nsec;
19756 if ac_fn_c_try_compile
"$LINENO"; then :
19757 gl_cv_sys_struct_timespec_in_time_h
=yes
19759 gl_cv_sys_struct_timespec_in_time_h
=no
19761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19764 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19766 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19767 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19768 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19769 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19770 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19773 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19774 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19775 $as_echo_n "(cached) " >&6
19777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779 #include <sys/time.h>
19784 static struct timespec x; x.tv_sec = x.tv_nsec;
19789 if ac_fn_c_try_compile
"$LINENO"; then :
19790 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19792 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19797 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19798 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19799 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19802 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19803 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19804 $as_echo_n "(cached) " >&6
19806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #include <pthread.h>
19813 static struct timespec x; x.tv_sec = x.tv_nsec;
19818 if ac_fn_c_try_compile
"$LINENO"; then :
19819 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19821 gl_cv_sys_struct_timespec_in_pthread_h
=no
19823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19826 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19827 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19828 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19847 if test $gl_cv_have_include_next = yes; then
19848 gl_cv_next_time_h
='<'time.h
'>'
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19851 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19852 if test "${gl_cv_next_time_h+set}" = set; then :
19853 $as_echo_n "(cached) " >&6
19856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19857 /* end confdefs.h. */
19862 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19863 *) gl_absname_cpp
="$ac_cpp" ;;
19868 gl_dirsep_regex
='[/\\]'
19871 gl_dirsep_regex
='\/'
19874 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19876 gl_header_literal_regex
=`echo 'time.h' \
19877 | sed -e "$gl_make_literal_regex_sed"`
19878 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19884 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19885 sed -n "$gl_absolute_header_sed"`'"'
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19890 $as_echo "$gl_cv_next_time_h" >&6; }
19892 NEXT_TIME_H
=$gl_cv_next_time_h
19894 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19896 gl_next_as_first_directive
='<'time.h
'>'
19898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19899 gl_next_as_first_directive
=$gl_cv_next_time_h
19901 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19918 $as_echo_n "checking whether the utimes function works... " >&6; }
19919 if test "${gl_cv_func_working_utimes+set}" = set; then :
19920 $as_echo_n "(cached) " >&6
19923 if test "$cross_compiling" = yes; then :
19924 gl_cv_func_working_utimes
=no
19926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19929 #include <sys/types.h>
19930 #include <sys/stat.h>
19932 #include <sys/time.h>
19934 #include <unistd.h>
19935 #include <stdlib.h>
19940 inorder (time_t a, time_t b, time_t c)
19942 return a <= b && b <= c;
19949 char const *file = "conftest.utimes";
19950 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19952 /* Test whether utimes() essentially works. */
19955 FILE *f = fopen (file, "w");
19958 else if (fclose (f) != 0)
19960 else if (utimes (file, timeval) != 0)
19962 else if (lstat (file, &sbuf) != 0)
19964 else if (!(sbuf.st_atime == timeval[0].tv_sec
19965 && sbuf.st_mtime == timeval[1].tv_sec))
19967 if (unlink (file) != 0)
19971 /* Test whether utimes() with a NULL argument sets the file's timestamp
19972 to the current time. Use 'fstat' as well as 'time' to
19973 determine the "current" time, to accommodate NFS file systems
19974 if there is a time skew between the host and the NFS server. */
19976 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19982 struct stat st0, st1, st2;
19983 if (time (&t0) == (time_t) -1)
19985 else if (fstat (fd, &st0) != 0)
19987 else if (utimes (file, timeval) != 0)
19989 else if (utimes (file, NULL) != 0)
19991 else if (fstat (fd, &st1) != 0)
19993 else if (write (fd, "\n", 1) != 1)
19995 else if (fstat (fd, &st2) != 0)
19997 else if (time (&t2) == (time_t) -1)
20001 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20002 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20003 if (! (st1.st_atime == st1.st_mtime))
20005 if (! (m_ok_POSIX || m_ok_NFS))
20008 if (close (fd) != 0)
20011 if (unlink (file) != 0)
20015 /* Test whether utimes() with a NULL argument works on read-only files. */
20017 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20020 else if (close (fd) != 0)
20022 else if (utimes (file, NULL) != 0)
20024 if (unlink (file) != 0)
20032 if ac_fn_c_try_run
"$LINENO"; then :
20033 gl_cv_func_working_utimes
=yes
20035 gl_cv_func_working_utimes
=no
20037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20043 $as_echo "$gl_cv_func_working_utimes" >&6; }
20045 if test $gl_cv_func_working_utimes = yes; then
20047 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20056 $as_echo_n "checking for struct utimbuf... " >&6; }
20057 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20058 $as_echo_n "(cached) " >&6
20060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062 #if HAVE_SYS_TIME_H
20063 #include <sys/time.h>
20066 #ifdef HAVE_UTIME_H
20073 static struct utimbuf x; x.actime = x.modtime;
20078 if ac_fn_c_try_compile
"$LINENO"; then :
20079 gl_cv_sys_struct_utimbuf
=yes
20081 gl_cv_sys_struct_utimbuf
=no
20083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20086 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20088 if test $gl_cv_sys_struct_utimbuf = yes; then
20090 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20106 GL_COND_LIBTOOL_TRUE
=
20107 GL_COND_LIBTOOL_FALSE
='#'
20109 GL_COND_LIBTOOL_TRUE
='#'
20110 GL_COND_LIBTOOL_FALSE
=
20113 gl_cond_libtool
=false
20126 gl_source_base
='lib'
20129 if test $ac_cv_func_alloca_works = no
; then
20133 # Define an additional variable used in the Makefile substitution.
20134 if test $ac_cv_working_alloca_h = yes; then
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20136 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20137 if test "${gl_cv_rpl_alloca+set}" = set; then :
20138 $as_echo_n "(cached) " >&6
20141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20144 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20150 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20151 gl_cv_rpl_alloca
=yes
20153 gl_cv_rpl_alloca
=no
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20160 $as_echo "$gl_cv_rpl_alloca" >&6; }
20161 if test $gl_cv_rpl_alloca = yes; then
20163 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20173 if test -n "$ALLOCA_H"; then
20174 GL_GENERATE_ALLOCA_H_TRUE
=
20175 GL_GENERATE_ALLOCA_H_FALSE
='#'
20177 GL_GENERATE_ALLOCA_H_TRUE
='#'
20178 GL_GENERATE_ALLOCA_H_FALSE
=
20186 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20187 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20189 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20190 # programs in the package would end up linked with that potentially-shared
20191 # library, inducing unnecessary run-time overhead.
20194 gl_saved_libs
=$LIBS
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20196 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20197 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20198 $as_echo_n "(cached) " >&6
20200 ac_func_search_save_LIBS
=$LIBS
20201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20204 /* Override any GCC internal prototype to avoid an error.
20205 Use char because int might match the return type of a GCC
20206 builtin and then its argument prototype would still apply. */
20210 char clock_gettime ();
20214 return clock_gettime ();
20219 for ac_lib
in '' rt posix4
; do
20220 if test -z "$ac_lib"; then
20221 ac_res
="none required"
20224 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20226 if ac_fn_c_try_link
"$LINENO"; then :
20227 ac_cv_search_clock_gettime
=$ac_res
20229 rm -f core conftest.err conftest.
$ac_objext \
20231 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20235 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20238 ac_cv_search_clock_gettime
=no
20240 rm conftest.
$ac_ext
20241 LIBS
=$ac_func_search_save_LIBS
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20244 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20245 ac_res
=$ac_cv_search_clock_gettime
20246 if test "$ac_res" != no
; then :
20247 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20248 test "$ac_cv_search_clock_gettime" = "none required" ||
20249 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20252 for ac_func
in clock_gettime clock_settime
20254 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20255 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20256 eval as_val
=\$
$as_ac_var
20257 if test "x$as_val" = x
""yes; then :
20258 cat >>confdefs.h
<<_ACEOF
20259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20265 LIBS
=$gl_saved_libs
20291 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20294 if test $HAVE_DUP2 = 1; then
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20296 $as_echo_n "checking whether dup2 works... " >&6; }
20297 if test "${gl_cv_func_dup2_works+set}" = set; then :
20298 $as_echo_n "(cached) " >&6
20300 if test "$cross_compiling" = yes; then :
20302 mingw
*) # on this platform, dup2 always returns 0 for success
20303 gl_cv_func_dup2_works
="guessing no" ;;
20304 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20305 gl_cv_func_dup2_works
="guessing no" ;;
20306 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20307 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20308 gl_cv_func_dup2_works
="guessing no" ;;
20309 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20310 gl_cv_func_dup2_works
="guessing no" ;;
20311 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20312 gl_cv_func_dup2_works
="guessing no" ;;
20313 *) gl_cv_func_dup2_works
="guessing yes" ;;
20316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20319 #include <unistd.h>
20327 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20330 if (dup2 (1, 1) == 0)
20333 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20337 if (dup2 (0, 0) != -1)
20339 /* Many gnulib modules require POSIX conformance of EBADF. */
20340 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20349 if ac_fn_c_try_run
"$LINENO"; then :
20350 gl_cv_func_dup2_works
=yes
20352 gl_cv_func_dup2_works
=no
20354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20361 $as_echo "$gl_cv_func_dup2_works" >&6; }
20362 case "$gl_cv_func_dup2_works" in
20371 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20380 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20411 EXECINFO_H
='execinfo.h'
20413 if test $ac_cv_header_execinfo_h = yes; then
20414 gl_saved_libs
=$LIBS
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20416 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20417 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20418 $as_echo_n "(cached) " >&6
20420 ac_func_search_save_LIBS
=$LIBS
20421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20424 /* Override any GCC internal prototype to avoid an error.
20425 Use char because int might match the return type of a GCC
20426 builtin and then its argument prototype would still apply. */
20430 char backtrace_symbols_fd ();
20434 return backtrace_symbols_fd ();
20439 for ac_lib
in '' execinfo
; do
20440 if test -z "$ac_lib"; then
20441 ac_res
="none required"
20444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20446 if ac_fn_c_try_link
"$LINENO"; then :
20447 ac_cv_search_backtrace_symbols_fd
=$ac_res
20449 rm -f core conftest.err conftest.
$ac_objext \
20451 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20455 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20458 ac_cv_search_backtrace_symbols_fd
=no
20460 rm conftest.
$ac_ext
20461 LIBS
=$ac_func_search_save_LIBS
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20464 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20465 ac_res
=$ac_cv_search_backtrace_symbols_fd
20466 if test "$ac_res" != no
; then :
20467 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20468 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20469 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20472 LIBS
=$gl_saved_libs
20473 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20476 if test -n "$EXECINFO_H"; then
20485 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20491 if test -n "$EXECINFO_H"; then
20492 GL_GENERATE_EXECINFO_H_TRUE
=
20493 GL_GENERATE_EXECINFO_H_FALSE
='#'
20495 GL_GENERATE_EXECINFO_H_TRUE
='#'
20496 GL_GENERATE_EXECINFO_H_FALSE
=
20507 # Persuade glibc <stdlib.h> to declare getloadavg().
20512 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20513 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20515 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20516 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20519 gl_func_getloadavg_done
=no
20521 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20522 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20523 # to get the right answer into the cache.
20524 # For kstat on solaris, we need to test for libelf and libkvm to force the
20525 # definition of SVR4 below.
20526 if test $gl_func_getloadavg_done = no
; then
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20528 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20529 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20532 ac_check_lib_save_LIBS
=$LIBS
20534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20535 /* end confdefs.h. */
20537 /* Override any GCC internal prototype to avoid an error.
20538 Use char because int might match the return type of a GCC
20539 builtin and then its argument prototype would still apply. */
20547 return elf_begin ();
20552 if ac_fn_c_try_link
"$LINENO"; then :
20553 ac_cv_lib_elf_elf_begin
=yes
20555 ac_cv_lib_elf_elf_begin
=no
20557 rm -f core conftest.err conftest.
$ac_objext \
20558 conftest
$ac_exeext conftest.
$ac_ext
20559 LIBS
=$ac_check_lib_save_LIBS
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20562 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20563 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20568 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20569 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20572 ac_check_lib_save_LIBS
=$LIBS
20574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20577 /* Override any GCC internal prototype to avoid an error.
20578 Use char because int might match the return type of a GCC
20579 builtin and then its argument prototype would still apply. */
20587 return kvm_open ();
20592 if ac_fn_c_try_link
"$LINENO"; then :
20593 ac_cv_lib_kvm_kvm_open
=yes
20595 ac_cv_lib_kvm_kvm_open
=no
20597 rm -f core conftest.err conftest.
$ac_objext \
20598 conftest
$ac_exeext conftest.
$ac_ext
20599 LIBS
=$ac_check_lib_save_LIBS
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20602 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20603 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20607 # Check for the 4.4BSD definition of getloadavg.
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20609 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20610 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20613 ac_check_lib_save_LIBS
=$LIBS
20614 LIBS
="-lutil $LIBS"
20615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20618 /* Override any GCC internal prototype to avoid an error.
20619 Use char because int might match the return type of a GCC
20620 builtin and then its argument prototype would still apply. */
20624 char getloadavg ();
20628 return getloadavg ();
20633 if ac_fn_c_try_link
"$LINENO"; then :
20634 ac_cv_lib_util_getloadavg
=yes
20636 ac_cv_lib_util_getloadavg
=no
20638 rm -f core conftest.err conftest.
$ac_objext \
20639 conftest
$ac_exeext conftest.
$ac_ext
20640 LIBS
=$ac_check_lib_save_LIBS
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20643 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20644 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20645 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20650 if test $gl_func_getloadavg_done = no
; then
20651 # There is a commonly available library for RS/6000 AIX.
20652 # Since it is not a standard part of AIX, it might be installed locally.
20653 gl_getloadavg_LIBS
=$LIBS
20654 LIBS
="-L/usr/local/lib $LIBS"
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20656 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20657 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20660 ac_check_lib_save_LIBS
=$LIBS
20661 LIBS
="-lgetloadavg $LIBS"
20662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h. */
20665 /* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20671 char getloadavg ();
20675 return getloadavg ();
20680 if ac_fn_c_try_link
"$LINENO"; then :
20681 ac_cv_lib_getloadavg_getloadavg
=yes
20683 ac_cv_lib_getloadavg_getloadavg
=no
20685 rm -f core conftest.err conftest.
$ac_objext \
20686 conftest
$ac_exeext conftest.
$ac_ext
20687 LIBS
=$ac_check_lib_save_LIBS
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20690 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20691 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20692 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20694 LIBS
=$gl_getloadavg_LIBS
20699 # Set up the replacement function if necessary.
20700 if test $gl_func_getloadavg_done = no
; then
20703 # Solaris has libkstat which does not require root.
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20705 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20706 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20709 ac_check_lib_save_LIBS
=$LIBS
20710 LIBS
="-lkstat $LIBS"
20711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20720 char kstat_open ();
20724 return kstat_open ();
20729 if ac_fn_c_try_link
"$LINENO"; then :
20730 ac_cv_lib_kstat_kstat_open
=yes
20732 ac_cv_lib_kstat_kstat_open
=no
20734 rm -f core conftest.err conftest.
$ac_objext \
20735 conftest
$ac_exeext conftest.
$ac_ext
20736 LIBS
=$ac_check_lib_save_LIBS
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20739 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20740 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20741 cat >>confdefs.h
<<_ACEOF
20742 #define HAVE_LIBKSTAT 1
20745 LIBS
="-lkstat $LIBS"
20749 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20751 # AIX has libperfstat which does not require root
20752 if test $gl_func_getloadavg_done = no
; then
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20754 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20755 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20756 $as_echo_n "(cached) " >&6
20758 ac_check_lib_save_LIBS
=$LIBS
20759 LIBS
="-lperfstat $LIBS"
20760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h. */
20763 /* Override any GCC internal prototype to avoid an error.
20764 Use char because int might match the return type of a GCC
20765 builtin and then its argument prototype would still apply. */
20769 char perfstat_cpu_total ();
20773 return perfstat_cpu_total ();
20778 if ac_fn_c_try_link
"$LINENO"; then :
20779 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20781 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20783 rm -f core conftest.err conftest.
$ac_objext \
20784 conftest
$ac_exeext conftest.
$ac_ext
20785 LIBS
=$ac_check_lib_save_LIBS
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20788 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20789 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20790 cat >>confdefs.h
<<_ACEOF
20791 #define HAVE_LIBPERFSTAT 1
20794 LIBS
="-lperfstat $LIBS"
20798 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20801 if test $gl_func_getloadavg_done = no
; then
20802 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20803 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20804 gl_func_getloadavg_done
=yes
20806 $as_echo "#define DGUX 1" >>confdefs.h
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20809 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20810 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20813 ac_check_lib_save_LIBS
=$LIBS
20815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20818 /* Override any GCC internal prototype to avoid an error.
20819 Use char because int might match the return type of a GCC
20820 builtin and then its argument prototype would still apply. */
20824 char dg_sys_info ();
20828 return dg_sys_info ();
20833 if ac_fn_c_try_link
"$LINENO"; then :
20834 ac_cv_lib_dgc_dg_sys_info
=yes
20836 ac_cv_lib_dgc_dg_sys_info
=no
20838 rm -f core conftest.err conftest.
$ac_objext \
20839 conftest
$ac_exeext conftest.
$ac_ext
20840 LIBS
=$ac_check_lib_save_LIBS
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20843 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20844 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20845 cat >>confdefs.h
<<_ACEOF
20846 #define HAVE_LIBDGC 1
20861 if test "x$gl_save_LIBS" = x
; then
20862 GETLOADAVG_LIBS
=$LIBS
20864 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20869 # Test whether the system declares getloadavg. Solaris has the function
20870 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20871 for ac_header
in sys
/loadavg.h
20873 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20874 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20875 cat >>confdefs.h
<<_ACEOF
20876 #define HAVE_SYS_LOADAVG_H 1
20883 if test $ac_cv_header_sys_loadavg_h = yes; then
20884 HAVE_SYS_LOADAVG_H
=1
20886 HAVE_SYS_LOADAVG_H
=0
20888 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20889 # include <sys/loadavg.h>
20891 #include <stdlib.h>
20893 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20896 HAVE_DECL_GETLOADAVG
=0
20900 if test $HAVE_GETLOADAVG = 0; then
20909 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20912 # Figure out what our getloadavg.c needs.
20916 # On HPUX9, an unprivileged user can get load averages this way.
20917 if test $gl_func_getloadavg_done = no
; then
20918 for ac_func
in pstat_getdynamic
20920 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20921 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20922 cat >>confdefs.h
<<_ACEOF
20923 #define HAVE_PSTAT_GETDYNAMIC 1
20925 gl_func_getloadavg_done
=yes
20931 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20932 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20933 # Irix 4.0.5F has the header but not the library.
20934 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20935 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20936 gl_func_getloadavg_done
=yes
20938 $as_echo "#define SVR4 1" >>confdefs.h
20942 if test $gl_func_getloadavg_done = no
; then
20943 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20944 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20945 gl_func_getloadavg_done
=yes
20947 $as_echo "#define UMAX 1" >>confdefs.h
20950 $as_echo "#define UMAX4_3 1" >>confdefs.h
20957 if test $gl_func_getloadavg_done = no
; then
20958 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20959 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20960 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20967 if test $gl_func_getloadavg_done = no
; then
20968 for ac_header
in mach
/mach.h
20970 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20971 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20972 cat >>confdefs.h
<<_ACEOF
20973 #define HAVE_MACH_MACH_H 1
20982 for ac_header
in nlist.h
20984 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20985 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20986 cat >>confdefs.h
<<_ACEOF
20987 #define HAVE_NLIST_H 1
20989 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20991 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20993 cat >>confdefs.h
<<_ACEOF
20994 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21007 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21008 x.n_un.n_name = "";
21016 if ac_fn_c_try_link
"$LINENO"; then :
21018 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21021 rm -f core conftest.err conftest.
$ac_objext \
21022 conftest
$ac_exeext conftest.
$ac_ext
21034 GNULIB_GETLOADAVG
=1
21045 if test $REPLACE_GETOPT = 1; then
21054 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21064 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21069 GNULIB_GL_UNISTD_H_GETOPT
=1
21079 if test -n "$gl_replace_getopt"; then
21083 if test $REPLACE_GETOPT = 1; then
21087 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21093 if test $REPLACE_GETOPT = 1; then
21102 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21112 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21117 GNULIB_GL_UNISTD_H_GETOPT
=1
21131 gl_gettimeofday_timezone
=void
21132 if test $ac_cv_func_gettimeofday != yes; then
21133 HAVE_GETTIMEOFDAY
=0
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21139 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21140 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21141 $as_echo_n "(cached) " >&6
21143 if test "$cross_compiling" = yes; then :
21144 # When cross-compiling:
21146 # Guess all is fine on glibc systems.
21147 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21148 # If we don't know, assume the worst.
21149 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21154 /* end confdefs.h. */
21155 #include <string.h>
21156 #include <sys/time.h>
21158 #include <stdlib.h>
21166 struct tm saved_lt;
21168 lt = localtime (&t);
21170 gettimeofday (&tv, NULL);
21171 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21177 if ac_fn_c_try_run
"$LINENO"; then :
21178 gl_cv_func_gettimeofday_clobber
=no
21180 gl_cv_func_gettimeofday_clobber
=yes
21182 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21183 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21188 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21190 case "$gl_cv_func_gettimeofday_clobber" in
21192 REPLACE_GETTIMEOFDAY
=1
21195 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21198 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21202 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21208 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21209 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21210 $as_echo_n "(cached) " >&6
21212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21213 /* end confdefs.h. */
21214 #include <sys/time.h>
21216 int gettimeofday (struct timeval *restrict, void *restrict);
21221 /* glibc uses struct timezone * rather than the POSIX void *
21222 if _GNU_SOURCE is defined. However, since the only portable
21223 use of gettimeofday uses NULL as the second parameter, and
21224 since the glibc definition is actually more typesafe, it is
21225 not worth wrapping this to get a compliant signature. */
21226 int (*f) (struct timeval *restrict, void *restrict)
21229 return !(x | c.tv_sec | c.tv_usec);
21235 if ac_fn_c_try_compile
"$LINENO"; then :
21236 gl_cv_func_gettimeofday_posix_signature
=yes
21238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21240 #include <sys/time.h>
21241 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21251 if ac_fn_c_try_compile
"$LINENO"; then :
21252 gl_cv_func_gettimeofday_posix_signature
=almost
21254 gl_cv_func_gettimeofday_posix_signature
=no
21256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21261 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21262 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21263 gl_gettimeofday_timezone
='struct timezone'
21264 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21265 REPLACE_GETTIMEOFDAY
=1
21267 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21268 REPLACE_GETTIMEOFDAY
=1
21273 cat >>confdefs.h
<<_ACEOF
21274 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21278 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21287 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21290 for ac_header
in sys
/timeb.h
21292 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21293 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21294 cat >>confdefs.h
<<_ACEOF
21295 #define HAVE_SYS_TIMEB_H 1
21302 for ac_func
in _ftime
21304 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21305 if test "x$ac_cv_func__ftime" = x
""yes; then :
21306 cat >>confdefs.h
<<_ACEOF
21307 #define HAVE__FTIME 1
21320 GNULIB_GETTIMEOFDAY
=1
21331 if test $ac_cv_func_lstat = yes; then
21333 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21342 if test $REPLACE_LSTAT = 1; then
21351 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21375 if test $APPLE_UNIVERSAL_BUILD = 1; then
21376 # A universal build on Apple Mac OS X platforms.
21377 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21378 # But we need a configuration result that is valid in both modes.
21379 gl_cv_func_working_mktime
=no
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21382 $as_echo_n "checking for working mktime... " >&6; }
21383 if test "${gl_cv_func_working_mktime+set}" = set; then :
21384 $as_echo_n "(cached) " >&6
21386 if test "$cross_compiling" = yes; then :
21387 gl_cv_func_working_mktime
=no
21389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21391 /* Test program from Paul Eggert and Tony Leneis. */
21392 #include <limits.h>
21393 #include <stdlib.h>
21396 #ifdef HAVE_UNISTD_H
21397 # include <unistd.h>
21401 # define alarm(X) /* empty */
21404 /* Work around redefinition to rpl_putenv by other config tests. */
21407 static time_t time_t_max;
21408 static time_t time_t_min;
21410 /* Values we'll use to set the TZ environment variable. */
21411 static char *tz_strings[] = {
21412 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21413 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21417 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21418 Based on a problem report from Andreas Jaeger. */
21420 spring_forward_gap ()
21422 /* glibc (up to about 1998-10-07) failed this test. */
21425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21426 instead of "TZ=America/Vancouver" in order to detect the bug even
21427 on systems that don't support the Olson extension, or don't have the
21428 full zoneinfo tables installed. */
21429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21438 return mktime (&tm) != (time_t) -1;
21442 mktime_test1 (time_t now)
21445 return ! (lt = localtime (&now)) || mktime (lt) == now;
21449 mktime_test (time_t now)
21451 return (mktime_test1 (now)
21452 && mktime_test1 ((time_t) (time_t_max - now))
21453 && mktime_test1 ((time_t) (time_t_min + now)));
21459 /* Based on code from Ariel Faigon. */
21469 return tm.tm_mon == 2 && tm.tm_mday == 31;
21473 bigtime_test (int j)
21477 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21478 now = mktime (&tm);
21479 if (now != (time_t) -1)
21481 struct tm *lt = localtime (&now);
21483 && lt->tm_year == tm.tm_year
21484 && lt->tm_mon == tm.tm_mon
21485 && lt->tm_mday == tm.tm_mday
21486 && lt->tm_hour == tm.tm_hour
21487 && lt->tm_min == tm.tm_min
21488 && lt->tm_sec == tm.tm_sec
21489 && lt->tm_yday == tm.tm_yday
21490 && lt->tm_wday == tm.tm_wday
21491 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21492 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21501 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21502 ignoring leap seconds. */
21503 unsigned long int answer = 2527315200UL;
21507 tm.tm_year = 2050 - 1900;
21510 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21513 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21514 instead of "TZ=America/Vancouver" in order to detect the bug even
21515 on systems that don't support the Olson extension, or don't have the
21516 full zoneinfo tables installed. */
21517 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21521 /* Check that the result is either a failure, or close enough
21522 to the correct answer that we can assume the discrepancy is
21523 due to leap seconds. */
21524 return (t == (time_t) -1
21525 || (0 < t && answer - 120 <= t && t <= answer + 120));
21534 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21535 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21537 /* This test makes some buggy mktime implementations loop.
21538 Give up after 60 seconds; a mktime slower than that
21539 isn't worth using anyway. */
21542 time_t_max = (! time_t_signed
21544 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21546 time_t_min = (! time_t_signed
21548 : time_t_signed_magnitude
21552 delta = time_t_max / 997; /* a suitable prime number */
21553 for (i = 0; i < N_STRINGS; i++)
21556 putenv (tz_strings[i]);
21558 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21559 if (! mktime_test (t))
21561 if ((result & 2) == 0
21562 && ! (mktime_test ((time_t) 1)
21563 && mktime_test ((time_t) (60 * 60))
21564 && mktime_test ((time_t) (60 * 60 * 24))))
21567 for (j = 1; (result & 4) == 0; j <<= 1)
21569 if (! bigtime_test (j))
21571 if (INT_MAX / 2 < j)
21574 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21577 if (! irix_6_4_bug ())
21579 if (! spring_forward_gap ())
21581 if (! year_2050_test ())
21586 if ac_fn_c_try_run
"$LINENO"; then :
21587 gl_cv_func_working_mktime
=yes
21589 gl_cv_func_working_mktime
=no
21591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21598 $as_echo "$gl_cv_func_working_mktime" >&6; }
21600 if test $gl_cv_func_working_mktime = no
; then
21606 if test $REPLACE_MKTIME = 1; then
21615 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21636 if test $ac_cv_func_pselect = yes; then
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21638 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21639 if test "${gl_cv_sig_pselect+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21643 /* end confdefs.h. */
21644 #include <sys/select.h>
21649 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21650 struct timespec const *restrict,
21651 sigset_t const *restrict) = pselect;
21657 if ac_fn_c_try_link
"$LINENO"; then :
21658 gl_cv_sig_pselect
=yes
21660 gl_cv_sig_pselect
=no
21662 rm -f core conftest.err conftest.
$ac_objext \
21663 conftest
$ac_exeext conftest.
$ac_ext
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21666 $as_echo "$gl_cv_sig_pselect" >&6; }
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
21669 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
21670 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
21671 $as_echo_n "(cached) " >&6
21674 if test "$cross_compiling" = yes; then :
21677 # Guess yes on glibc systems.
21678 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
21679 # If we don't know, assume the worst.
21680 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
21684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21687 #include <sys/types.h>
21688 #include <sys/time.h>
21689 #if HAVE_SYS_SELECT_H
21690 # include <sys/select.h>
21692 #include <unistd.h>
21704 struct timespec timeout;
21705 timeout.tv_sec = 0;
21706 timeout.tv_nsec = 5000;
21707 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
21713 if ac_fn_c_try_run
"$LINENO"; then :
21714 gl_cv_func_pselect_detects_ebadf
=yes
21716 gl_cv_func_pselect_detects_ebadf
=no
21718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
21725 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
21726 case $gl_cv_func_pselect_detects_ebadf in
21728 *) REPLACE_PSELECT
=1 ;;
21732 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21736 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21745 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21763 LIB_PTHREAD_SIGMASK
=
21768 if test "$gl_threads_api" = posix
; then
21769 if test $ac_cv_func_pthread_sigmask = yes; then
21772 if test -n "$LIBMULTITHREAD"; then
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21774 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21775 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21776 $as_echo_n "(cached) " >&6
21778 gl_save_LIBS
="$LIBS"
21779 LIBS
="$LIBS $LIBMULTITHREAD"
21780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21781 /* end confdefs.h. */
21782 #include <pthread.h>
21783 #include <signal.h>
21788 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21794 if ac_fn_c_try_link
"$LINENO"; then :
21795 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
21797 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
21799 rm -f core conftest.err conftest.
$ac_objext \
21800 conftest
$ac_exeext conftest.
$ac_ext
21801 LIBS
="$gl_save_LIBS"
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21805 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21806 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21807 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
21809 HAVE_PTHREAD_SIGMASK
=0
21812 HAVE_PTHREAD_SIGMASK
=0
21816 if test $ac_cv_func_pthread_sigmask = yes; then
21817 REPLACE_PTHREAD_SIGMASK
=1
21819 HAVE_PTHREAD_SIGMASK
=0
21826 if test $HAVE_PTHREAD_SIGMASK = 1; then
21829 if test -z "$LIB_PTHREAD_SIGMASK"; then
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21831 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21832 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21836 if test "$cross_compiling" = yes; then :
21839 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21840 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21842 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21849 #include <pthread.h>
21850 #include <signal.h>
21851 #include <stddef.h>
21855 sigemptyset (&set);
21856 return pthread_sigmask (1729, &set, NULL) != 0;
21859 if ac_fn_c_try_run
"$LINENO"; then :
21860 gl_cv_func_pthread_sigmask_in_libc_works
=no
21862 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21871 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21872 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21874 REPLACE_PTHREAD_SIGMASK
=1
21876 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21883 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21884 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21885 $as_echo_n "(cached) " >&6
21888 gl_save_LIBS
="$LIBS"
21889 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21890 if test "$cross_compiling" = yes; then :
21893 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21895 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21900 /* end confdefs.h. */
21902 #include <pthread.h>
21903 #include <signal.h>
21904 #include <stddef.h>
21908 sigemptyset (&set);
21909 if (pthread_sigmask (1729, &set, NULL) == -1)
21914 if ac_fn_c_try_run
"$LINENO"; then :
21915 gl_cv_func_pthread_sigmask_return_works
=yes
21917 gl_cv_func_pthread_sigmask_return_works
=no
21919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21923 LIBS
="$gl_save_LIBS"
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21927 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21928 case "$gl_cv_func_pthread_sigmask_return_works" in
21930 REPLACE_PTHREAD_SIGMASK
=1
21932 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21938 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21939 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21940 $as_echo_n "(cached) " >&6
21945 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21947 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21949 gl_save_LIBS
="$LIBS"
21950 LIBS
="$LIBS $LIBMULTITHREAD"
21951 if test "$cross_compiling" = yes; then :
21954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 #include <pthread.h>
21958 #include <signal.h>
21960 #include <stdlib.h>
21961 #include <unistd.h>
21962 static volatile int sigint_occurred;
21964 sigint_handler (int sig)
21971 int pid = getpid ();
21973 signal (SIGINT, sigint_handler);
21974 sigemptyset (&set);
21975 sigaddset (&set, SIGINT);
21976 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21978 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21979 if (!(system (command) == 0))
21982 if (!(sigint_occurred == 0))
21984 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21986 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21991 if ac_fn_c_try_run
"$LINENO"; then :
21994 gl_cv_func_pthread_sigmask_unblock_works
=no
21996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22000 LIBS
="$gl_save_LIBS"
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22004 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22005 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22007 REPLACE_PTHREAD_SIGMASK
=1
22009 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22015 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22024 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22027 if test $HAVE_PTHREAD_SIGMASK = 1; then
22029 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22039 GNULIB_PTHREAD_SIGMASK
=1
22048 if test $ac_cv_func_readlink = no
; then
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22052 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22053 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22054 $as_echo_n "(cached) " >&6
22056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22057 /* end confdefs.h. */
22058 #include <unistd.h>
22059 /* Cause compilation failure if original declaration has wrong type. */
22060 ssize_t readlink (const char *, char *, size_t);
22069 if ac_fn_c_try_compile
"$LINENO"; then :
22070 gl_cv_decl_readlink_works
=yes
22072 gl_cv_decl_readlink_works
=no
22074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22077 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22079 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22080 if test "${gl_cv_func_readlink_works+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22083 # We have readlink, so assume ln -s works.
22084 ln -s conftest.no-such conftest.link
22085 ln -s conftest.link conftest.lnk2
22086 if test "$cross_compiling" = yes; then :
22088 # Guess yes on glibc systems.
22089 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22090 # If we don't know, assume the worst.
22091 *) gl_cv_func_readlink_works
="guessing no" ;;
22095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22097 #include <unistd.h>
22103 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22108 if ac_fn_c_try_run
"$LINENO"; then :
22109 gl_cv_func_readlink_works
=yes
22111 gl_cv_func_readlink_works
=no
22113 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22114 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22117 rm -f conftest.link conftest.lnk2
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22120 $as_echo "$gl_cv_func_readlink_works" >&6; }
22121 case "$gl_cv_func_readlink_works" in
22123 if test "$gl_cv_decl_readlink_works" != yes; then
22129 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22136 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22145 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22173 if test $gl_cv_have_include_next = yes; then
22174 gl_cv_next_signal_h
='<'signal.h
'>'
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22177 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22178 if test "${gl_cv_next_signal_h+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <signal.h>
22188 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22189 *) gl_absname_cpp
="$ac_cpp" ;;
22194 gl_dirsep_regex
='[/\\]'
22197 gl_dirsep_regex
='\/'
22200 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22202 gl_header_literal_regex
=`echo 'signal.h' \
22203 | sed -e "$gl_make_literal_regex_sed"`
22204 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22205 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22210 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22211 sed -n "$gl_absolute_header_sed"`'"'
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22216 $as_echo "$gl_cv_next_signal_h" >&6; }
22218 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22220 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22222 gl_next_as_first_directive
='<'signal.h
'>'
22224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22225 gl_next_as_first_directive
=$gl_cv_next_signal_h
22227 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22233 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22234 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22235 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22236 #include <signal.h>
22239 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22242 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22251 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22252 #include <signal.h>
22255 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22258 HAVE_SIGHANDLER_T
=0
22264 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22265 /* <sys/types.h> is not needed according to POSIX, but the
22266 <sys/socket.h> in i386-unknown-freebsd4.10 and
22267 powerpc-apple-darwin5.5 required it. */
22268 #include <sys/types.h>
22269 #if HAVE_SYS_SOCKET_H
22270 # include <sys/socket.h>
22271 #elif HAVE_WS2TCPIP_H
22272 # include <ws2tcpip.h>
22276 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22280 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22281 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22284 # Systems have either "struct sockaddr *" or
22285 # "void *" as the second argument to getpeername
22286 gl_cv_socklen_t_equiv
=
22287 for arg2
in "struct sockaddr" void
; do
22288 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22290 /* end confdefs.h. */
22291 #include <sys/types.h>
22292 #include <sys/socket.h>
22294 int getpeername (int, $arg2 *, $t *);
22299 getpeername (0, 0, &len);
22304 if ac_fn_c_try_compile
"$LINENO"; then :
22305 gl_cv_socklen_t_equiv
="$t"
22307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22308 test "$gl_cv_socklen_t_equiv" != "" && break
22310 test "$gl_cv_socklen_t_equiv" != "" && break
22315 if test "$gl_cv_socklen_t_equiv" = ""; then
22316 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22319 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22321 cat >>confdefs.h
<<_ACEOF
22322 #define socklen_t $gl_cv_socklen_t_equiv
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22329 $as_echo_n "checking for ssize_t... " >&6; }
22330 if test "${gt_cv_ssize_t+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22335 #include <sys/types.h>
22339 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22345 if ac_fn_c_try_compile
"$LINENO"; then :
22350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22353 $as_echo "$gt_cv_ssize_t" >&6; }
22354 if test $gt_cv_ssize_t = no
; then
22356 $as_echo "#define ssize_t int" >>confdefs.h
22364 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>
22365 #include <sys/stat.h>
22367 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22369 cat >>confdefs.h
<<_ACEOF
22370 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22374 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22375 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22376 $as_echo_n "(cached) " >&6
22378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22381 #include <sys/types.h>
22382 #include <sys/stat.h>
22383 #if HAVE_SYS_TIME_H
22384 # include <sys/time.h>
22387 struct timespec ts;
22400 if ac_fn_c_try_compile
"$LINENO"; then :
22401 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22403 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22408 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22409 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22411 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22415 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>
22416 #include <sys/stat.h>
22418 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22420 cat >>confdefs.h
<<_ACEOF
22421 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22426 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22427 #include <sys/stat.h>
22429 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22431 cat >>confdefs.h
<<_ACEOF
22432 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22437 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>
22438 #include <sys/stat.h>
22440 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22442 cat >>confdefs.h
<<_ACEOF
22443 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22459 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>
22460 #include <sys/stat.h>
22462 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22464 cat >>confdefs.h
<<_ACEOF
22465 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22470 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22471 #include <sys/stat.h>
22473 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22475 cat >>confdefs.h
<<_ACEOF
22476 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22481 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>
22482 #include <sys/stat.h>
22484 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22486 cat >>confdefs.h
<<_ACEOF
22487 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22500 $as_echo_n "checking for working stdalign.h... " >&6; }
22501 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506 #include <stdalign.h>
22507 #include <stddef.h>
22509 /* Test that alignof yields a result consistent with offsetof.
22510 This catches GCC bug 52023
22511 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22513 template <class t> struct alignof_helper { char a; t b; };
22514 # define ao(type) offsetof (alignof_helper<type>, b)
22516 # define ao(type) offsetof (struct { char a; type b; }, b)
22518 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22519 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22520 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22522 /* Test _Alignas only on platforms where gnulib can help. */
22524 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22525 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22526 int alignas (8) alignas_int = 1;
22527 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22538 if ac_fn_c_try_compile
"$LINENO"; then :
22539 gl_cv_header_working_stdalign_h
=yes
22541 gl_cv_header_working_stdalign_h
=no
22543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22546 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22548 if test $gl_cv_header_working_stdalign_h = yes; then
22551 STDALIGN_H
='stdalign.h'
22555 if test -n "$STDALIGN_H"; then
22556 GL_GENERATE_STDALIGN_H_TRUE
=
22557 GL_GENERATE_STDALIGN_H_FALSE
='#'
22559 GL_GENERATE_STDALIGN_H_TRUE
='#'
22560 GL_GENERATE_STDALIGN_H_FALSE
=
22566 NEXT_STDARG_H
='<stdarg.h>'
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22568 $as_echo_n "checking for va_copy... " >&6; }
22569 if test "${gl_cv_func_va_copy+set}" = set; then :
22570 $as_echo_n "(cached) " >&6
22573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22574 /* end confdefs.h. */
22575 #include <stdarg.h>
22581 void (*func) (va_list, va_list) = va_copy;
22588 if ac_fn_c_try_compile
"$LINENO"; then :
22589 gl_cv_func_va_copy
=yes
22591 gl_cv_func_va_copy
=no
22593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22597 $as_echo "$gl_cv_func_va_copy" >&6; }
22598 if test $gl_cv_func_va_copy = no
; then
22599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22601 #if defined _AIX && !defined __GNUC__
22606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22607 $EGREP "vaccine" >/dev
/null
2>&1; then :
22614 if test $gl_aixcc = yes; then
22624 if test $gl_cv_have_include_next = yes; then
22625 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22628 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22629 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635 #include <stdarg.h>
22639 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22640 *) gl_absname_cpp
="$ac_cpp" ;;
22645 gl_dirsep_regex
='[/\\]'
22648 gl_dirsep_regex
='\/'
22651 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22653 gl_header_literal_regex
=`echo 'stdarg.h' \
22654 | sed -e "$gl_make_literal_regex_sed"`
22655 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22656 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22661 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22662 sed -n "$gl_absolute_header_sed"`'"'
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22667 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22669 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22671 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22673 gl_next_as_first_directive
='<'stdarg.h
'>'
22675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22676 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22678 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22683 if test "$gl_cv_next_stdarg_h" = '""'; then
22684 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22685 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22689 saved_as_echo_n
="$as_echo_n"
22691 if test "${gl_cv_func___va_copy+set}" = set; then :
22692 $as_echo_n "(cached) " >&6
22695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22696 /* end confdefs.h. */
22697 #include <stdarg.h>
22710 if ac_fn_c_try_compile
"$LINENO"; then :
22711 gl_cv_func___va_copy
=yes
22713 gl_cv_func___va_copy
=no
22715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22718 as_echo_n
="$saved_as_echo_n"
22720 if test $gl_cv_func___va_copy = yes; then
22722 $as_echo "#define va_copy __va_copy" >>confdefs.h
22727 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22733 if test -n "$STDARG_H"; then
22734 GL_GENERATE_STDARG_H_TRUE
=
22735 GL_GENERATE_STDARG_H_FALSE
='#'
22737 GL_GENERATE_STDARG_H_TRUE
='#'
22738 GL_GENERATE_STDARG_H_FALSE
=
22746 # Define two additional variables used in the Makefile substitution.
22748 if test "$ac_cv_header_stdbool_h" = yes; then
22751 STDBOOL_H
='stdbool.h'
22754 if test -n "$STDBOOL_H"; then
22755 GL_GENERATE_STDBOOL_H_TRUE
=
22756 GL_GENERATE_STDBOOL_H_FALSE
='#'
22758 GL_GENERATE_STDBOOL_H_TRUE
='#'
22759 GL_GENERATE_STDBOOL_H_FALSE
=
22763 if test "$ac_cv_type__Bool" = yes; then
22774 if test $gt_cv_c_wchar_t = no
; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22779 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22780 if test "${gl_cv_decl_null_works+set}" = set; then :
22781 $as_echo_n "(cached) " >&6
22783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22785 #include <stddef.h>
22786 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22796 if ac_fn_c_try_compile
"$LINENO"; then :
22797 gl_cv_decl_null_works
=yes
22799 gl_cv_decl_null_works
=no
22801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22804 $as_echo "$gl_cv_decl_null_works" >&6; }
22805 if test $gl_cv_decl_null_works = no
; then
22810 if test -n "$STDDEF_H"; then
22811 GL_GENERATE_STDDEF_H_TRUE
=
22812 GL_GENERATE_STDDEF_H_FALSE
='#'
22814 GL_GENERATE_STDDEF_H_TRUE
='#'
22815 GL_GENERATE_STDDEF_H_FALSE
=
22818 if test -n "$STDDEF_H"; then
22827 if test $gl_cv_have_include_next = yes; then
22828 gl_cv_next_stddef_h
='<'stddef.h
'>'
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22831 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22832 if test "${gl_cv_next_stddef_h+set}" = set; then :
22833 $as_echo_n "(cached) " >&6
22836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22838 #include <stddef.h>
22842 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22843 *) gl_absname_cpp
="$ac_cpp" ;;
22848 gl_dirsep_regex
='[/\\]'
22851 gl_dirsep_regex
='\/'
22854 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22856 gl_header_literal_regex
=`echo 'stddef.h' \
22857 | sed -e "$gl_make_literal_regex_sed"`
22858 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22859 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22864 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22865 sed -n "$gl_absolute_header_sed"`'"'
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22870 $as_echo "$gl_cv_next_stddef_h" >&6; }
22872 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22874 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22876 gl_next_as_first_directive
='<'stddef.h
'>'
22878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22879 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22881 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22900 if test $gl_cv_have_include_next = yes; then
22901 gl_cv_next_stdio_h
='<'stdio.h
'>'
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22904 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22905 if test "${gl_cv_next_stdio_h+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h. */
22915 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22916 *) gl_absname_cpp
="$ac_cpp" ;;
22921 gl_dirsep_regex
='[/\\]'
22924 gl_dirsep_regex
='\/'
22927 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22929 gl_header_literal_regex
=`echo 'stdio.h' \
22930 | sed -e "$gl_make_literal_regex_sed"`
22931 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22932 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22937 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22938 sed -n "$gl_absolute_header_sed"`'"'
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22943 $as_echo "$gl_cv_next_stdio_h" >&6; }
22945 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22947 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22948 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22949 gl_next_as_first_directive
='<'stdio.h
'>'
22951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22952 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22954 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22963 cat >>confdefs.h
<<_ACEOF
22964 #define GNULIB_FSCANF 1
22971 cat >>confdefs.h
<<_ACEOF
22972 #define GNULIB_SCANF 1
23008 if test $gl_cv_have_include_next = yes; then
23009 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23012 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23013 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23014 $as_echo_n "(cached) " >&6
23017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h. */
23019 #include <stdlib.h>
23023 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23024 *) gl_absname_cpp
="$ac_cpp" ;;
23029 gl_dirsep_regex
='[/\\]'
23032 gl_dirsep_regex
='\/'
23035 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23037 gl_header_literal_regex
=`echo 'stdlib.h' \
23038 | sed -e "$gl_make_literal_regex_sed"`
23039 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23045 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23046 sed -n "$gl_absolute_header_sed"`'"'
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23051 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23053 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
23055 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23057 gl_next_as_first_directive
='<'stdlib.h
'>'
23059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23060 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
23062 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
23072 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23080 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23089 if test "$ac_cv_have_decl_strtoimax" != yes; then
23090 HAVE_DECL_STRTOIMAX
=0
23093 if test $ac_cv_func_strtoimax = yes; then
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23096 $as_echo_n "checking whether strtoimax works... " >&6; }
23097 if test "${gl_cv_func_strtoimax+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23100 if test "$cross_compiling" = yes; then :
23102 # Guess no on AIX 5.
23103 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
23104 # Guess yes otherwise.
23105 *) gl_cv_func_strtoimax
="guessing yes" ;;
23109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23113 #include <string.h>
23114 #include <inttypes.h>
23117 if (sizeof (intmax_t) > sizeof (int))
23119 const char *s = "4294967295";
23123 res = strtoimax (s, &p, 10);
23124 if (p != s + strlen (s))
23128 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23133 const char *s = "2147483647";
23137 res = strtoimax (s, &p, 10);
23138 if (p != s + strlen (s))
23142 if (res != 2147483647)
23149 if ac_fn_c_try_run
"$LINENO"; then :
23150 gl_cv_func_strtoimax
=yes
23152 gl_cv_func_strtoimax
=no
23154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23161 $as_echo "$gl_cv_func_strtoimax" >&6; }
23162 case "$gl_cv_func_strtoimax" in
23163 *no
) REPLACE_STRTOIMAX
=1 ;;
23169 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23178 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23181 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23182 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23188 cat >>confdefs.h
<<_ACEOF
23189 #define HAVE_DECL_STRTOLL $ac_have_decl
23210 if test "$ac_cv_have_decl_strtoumax" != yes; then
23211 HAVE_DECL_STRTOUMAX
=0
23214 if test $ac_cv_func_strtoumax = no
; then
23223 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23226 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23227 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23233 cat >>confdefs.h
<<_ACEOF
23234 #define HAVE_DECL_STRTOULL $ac_have_decl
23253 if test $ac_cv_func_symlink = no
; then
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23257 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23258 if test "${gl_cv_func_symlink_works+set}" = set; then :
23259 $as_echo_n "(cached) " >&6
23261 if test "$cross_compiling" = yes; then :
23263 # Guess yes on glibc systems.
23264 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23265 # If we don't know, assume the worst.
23266 *) gl_cv_func_symlink_works
="guessing no" ;;
23270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h. */
23272 #include <unistd.h>
23278 if (!symlink ("a", "conftest.link/"))
23280 if (symlink ("conftest.f", "conftest.lnk2"))
23282 else if (!symlink ("a", "conftest.lnk2/"))
23290 if ac_fn_c_try_run
"$LINENO"; then :
23291 gl_cv_func_symlink_works
=yes
23293 gl_cv_func_symlink_works
=no
23295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23299 rm -f conftest.f conftest.link conftest.lnk2
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23302 $as_echo "$gl_cv_func_symlink_works" >&6; }
23303 case "$gl_cv_func_symlink_works" in
23311 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23320 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23338 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23339 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h. */
23345 #include <sys/select.h>
23354 if ac_fn_c_try_compile
"$LINENO"; then :
23355 gl_cv_header_sys_select_h_selfcontained
=yes
23357 gl_cv_header_sys_select_h_selfcontained
=no
23359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23360 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23363 #include <sys/select.h>
23367 int memset; int bzero;
23373 if ac_fn_c_try_compile
"$LINENO"; then :
23374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23375 /* end confdefs.h. */
23376 #include <sys/select.h>
23382 #define memset nonexistent_memset
23387 void *memset (void *, int, unsigned long);
23389 #define bzero nonexistent_bzero
23394 void bzero (void *, unsigned long);
23403 if ac_fn_c_try_link
"$LINENO"; then :
23406 gl_cv_header_sys_select_h_selfcontained
=no
23408 rm -f core conftest.err conftest.
$ac_objext \
23409 conftest
$ac_exeext conftest.
$ac_ext
23412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23417 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23427 if test $gl_cv_have_include_next = yes; then
23428 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23431 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23432 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23433 $as_echo_n "(cached) " >&6
23436 if test $ac_cv_header_sys_select_h = yes; then
23439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23440 /* end confdefs.h. */
23441 #include <sys/select.h>
23445 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23446 *) gl_absname_cpp
="$ac_cpp" ;;
23451 gl_dirsep_regex
='[/\\]'
23454 gl_dirsep_regex
='\/'
23457 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23459 gl_header_literal_regex
=`echo 'sys/select.h' \
23460 | sed -e "$gl_make_literal_regex_sed"`
23461 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23462 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23467 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23468 sed -n "$gl_absolute_header_sed"`'"'
23470 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23476 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23478 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23480 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23482 gl_next_as_first_directive
='<'sys
/select.h
'>'
23484 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23485 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23487 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23492 if test $ac_cv_header_sys_select_h = yes; then
23493 HAVE_SYS_SELECT_H
=1
23495 HAVE_SYS_SELECT_H
=0
23502 if test $ac_cv_header_sys_socket_h != yes; then
23503 for ac_header
in winsock2.h
23505 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23506 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23507 cat >>confdefs.h
<<_ACEOF
23508 #define HAVE_WINSOCK2_H 1
23516 if test "$ac_cv_header_winsock2_h" = yes; then
23518 UNISTD_H_HAVE_WINSOCK2_H
=1
23519 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23545 if test $gl_cv_have_include_next = yes; then
23546 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23549 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23550 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23554 if test $ac_cv_header_sys_stat_h = yes; then
23557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23559 #include <sys/stat.h>
23563 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23564 *) gl_absname_cpp
="$ac_cpp" ;;
23569 gl_dirsep_regex
='[/\\]'
23572 gl_dirsep_regex
='\/'
23575 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23577 gl_header_literal_regex
=`echo 'sys/stat.h' \
23578 | sed -e "$gl_make_literal_regex_sed"`
23579 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23580 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23585 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23586 sed -n "$gl_absolute_header_sed"`'"'
23588 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23594 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23596 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23598 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23600 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23603 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23605 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23617 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23619 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23623 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23624 #include <sys/stat.h>
23626 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23630 $as_echo "#define nlink_t int" >>confdefs.h
23651 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23653 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23659 cat >>confdefs.h
<<_ACEOF
23660 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23663 if test $ac_cv_have_decl_localtime_r = no
; then
23664 HAVE_DECL_LOCALTIME_R
=0
23668 if test $ac_cv_func_localtime_r = yes; then
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23671 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23672 if test "${gl_cv_time_r_posix+set}" = set; then :
23673 $as_echo_n "(cached) " >&6
23675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23681 /* We don't need to append 'restrict's to the argument types,
23682 even though the POSIX signature has the 'restrict's,
23683 since C99 says they can't affect type compatibility. */
23684 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23686 /* Check the return type is a pointer.
23687 On HP-UX 10 it is 'int'. */
23688 *localtime_r (0, 0);
23694 if ac_fn_c_try_compile
"$LINENO"; then :
23695 gl_cv_time_r_posix
=yes
23697 gl_cv_time_r_posix
=no
23699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23703 $as_echo "$gl_cv_time_r_posix" >&6; }
23704 if test $gl_cv_time_r_posix = yes; then
23705 REPLACE_LOCALTIME_R
=0
23707 REPLACE_LOCALTIME_R
=1
23713 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23722 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23746 gl_saved_libs
=$LIBS
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23748 $as_echo_n "checking for library containing timer_settime... " >&6; }
23749 if test "${ac_cv_search_timer_settime+set}" = set; then :
23750 $as_echo_n "(cached) " >&6
23752 ac_func_search_save_LIBS
=$LIBS
23753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h. */
23756 /* Override any GCC internal prototype to avoid an error.
23757 Use char because int might match the return type of a GCC
23758 builtin and then its argument prototype would still apply. */
23762 char timer_settime ();
23766 return timer_settime ();
23771 for ac_lib
in '' rt posix4
; do
23772 if test -z "$ac_lib"; then
23773 ac_res
="none required"
23776 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23778 if ac_fn_c_try_link
"$LINENO"; then :
23779 ac_cv_search_timer_settime
=$ac_res
23781 rm -f core conftest.err conftest.
$ac_objext \
23783 if test "${ac_cv_search_timer_settime+set}" = set; then :
23787 if test "${ac_cv_search_timer_settime+set}" = set; then :
23790 ac_cv_search_timer_settime
=no
23792 rm conftest.
$ac_ext
23793 LIBS
=$ac_func_search_save_LIBS
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23796 $as_echo "$ac_cv_search_timer_settime" >&6; }
23797 ac_res
=$ac_cv_search_timer_settime
23798 if test "$ac_res" != no
; then :
23799 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23800 test "$ac_cv_search_timer_settime" = "none required" ||
23801 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
23804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 #include <features.h>
23808 #ifdef __GNU_LIBRARY__
23809 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23810 && !defined __UCLIBC__
23811 Thread emulation available
23816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23817 $EGREP "Thread" >/dev
/null
2>&1; then :
23818 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
23822 for ac_func
in timer_settime
23824 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
23825 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
23826 cat >>confdefs.h
<<_ACEOF
23827 #define HAVE_TIMER_SETTIME 1
23833 LIBS
=$gl_saved_libs
23849 if test $gl_cv_have_include_next = yes; then
23850 gl_cv_next_unistd_h
='<'unistd.h
'>'
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23853 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23854 if test "${gl_cv_next_unistd_h+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23858 if test $ac_cv_header_unistd_h = yes; then
23861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23862 /* end confdefs.h. */
23863 #include <unistd.h>
23867 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23868 *) gl_absname_cpp
="$ac_cpp" ;;
23873 gl_dirsep_regex
='[/\\]'
23876 gl_dirsep_regex
='\/'
23879 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23881 gl_header_literal_regex
=`echo 'unistd.h' \
23882 | sed -e "$gl_make_literal_regex_sed"`
23883 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23884 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23889 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23890 sed -n "$gl_absolute_header_sed"`'"'
23892 gl_cv_next_unistd_h
='<'unistd.h
'>'
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23898 $as_echo "$gl_cv_next_unistd_h" >&6; }
23900 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23902 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23904 gl_next_as_first_directive
='<'unistd.h
'>'
23906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23907 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23909 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23914 if test $ac_cv_header_unistd_h = yes; then
23933 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23935 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23936 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23939 touch conftest.
file
23940 if test "$cross_compiling" = yes; then :
23942 # Guess yes on glibc systems.
23943 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23944 # If we don't know, assume the worst.
23945 *) gl_cv_func_futimesat_works
="guessing no" ;;
23949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23950 /* end confdefs.h. */
23952 #include <stddef.h>
23953 #include <sys/times.h>
23959 int fd = open ("conftest.file", O_RDWR);
23960 if (fd < 0) return 1;
23961 if (futimesat (fd, NULL, NULL)) return 2;
23967 if ac_fn_c_try_run
"$LINENO"; then :
23968 gl_cv_func_futimesat_works
=yes
23970 gl_cv_func_futimesat_works
=no
23972 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23973 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23976 rm -f conftest.
file
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23979 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23980 case "$gl_cv_func_futimesat_works" in
23984 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23990 gl_gnulib_enabled_dosname
=false
23991 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23992 gl_gnulib_enabled_pathmax
=false
23993 gl_gnulib_enabled_stat
=false
23994 gl_gnulib_enabled_strtoll
=false
23995 gl_gnulib_enabled_strtoull
=false
23996 gl_gnulib_enabled_verify
=false
23997 func_gl_gnulib_m4code_dosname
()
23999 if ! $gl_gnulib_enabled_dosname; then
24000 gl_gnulib_enabled_dosname
=true
24003 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
24005 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24008 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
24011 func_gl_gnulib_m4code_pathmax
()
24013 if ! $gl_gnulib_enabled_pathmax; then
24017 gl_gnulib_enabled_pathmax
=true
24020 func_gl_gnulib_m4code_stat
()
24022 if ! $gl_gnulib_enabled_stat; then
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24027 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24028 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24031 if test "$cross_compiling" = yes; then :
24033 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
24034 *) gl_cv_func_stat_dir_slash
="guessing yes";;
24037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24039 #include <sys/stat.h>
24044 struct stat st; return stat (".", &st) != stat ("./", &st);
24049 if ac_fn_c_try_run
"$LINENO"; then :
24050 gl_cv_func_stat_dir_slash
=yes
24052 gl_cv_func_stat_dir_slash
=no
24054 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24055 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24060 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24062 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24063 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24064 $as_echo_n "(cached) " >&6
24067 # Assume that if we have lstat, we can also check symlinks.
24068 if test $ac_cv_func_lstat = yes; then
24069 ln -s conftest.tmp conftest.lnk
24071 if test "$cross_compiling" = yes; then :
24073 # Guess yes on glibc systems.
24074 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
24075 # If we don't know, assume the worst.
24076 *) gl_cv_func_stat_file_slash
="guessing no" ;;
24080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h. */
24082 #include <sys/stat.h>
24089 if (!stat ("conftest.tmp/", &st))
24092 if (!stat ("conftest.lnk/", &st))
24101 if ac_fn_c_try_run
"$LINENO"; then :
24102 gl_cv_func_stat_file_slash
=yes
24104 gl_cv_func_stat_file_slash
=no
24106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24110 rm -f conftest.tmp conftest.lnk
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24113 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24114 case $gl_cv_func_stat_dir_slash in
24115 *no
) REPLACE_STAT
=1
24117 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24120 case $gl_cv_func_stat_file_slash in
24121 *no
) REPLACE_STAT
=1
24123 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24127 if test $REPLACE_STAT = 1; then
24136 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
24154 gl_gnulib_enabled_stat
=true
24155 if test $REPLACE_STAT = 1; then
24156 func_gl_gnulib_m4code_dosname
24158 if test $REPLACE_STAT = 1; then
24159 func_gl_gnulib_m4code_pathmax
24161 if test $REPLACE_STAT = 1; then
24162 func_gl_gnulib_m4code_verify
24166 func_gl_gnulib_m4code_strtoll
()
24168 if ! $gl_gnulib_enabled_strtoll; then
24172 if test "$ac_cv_type_long_long_int" = yes; then
24173 for ac_func
in strtoll
24175 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
24176 if test "x$ac_cv_func_strtoll" = x
""yes; then :
24177 cat >>confdefs.h
<<_ACEOF
24178 #define HAVE_STRTOLL 1
24184 if test $ac_cv_func_strtoll = no
; then
24189 if test $HAVE_STRTOLL = 0; then
24198 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
24215 gl_gnulib_enabled_strtoll
=true
24218 func_gl_gnulib_m4code_strtoull
()
24220 if ! $gl_gnulib_enabled_strtoull; then
24224 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24225 for ac_func
in strtoull
24227 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
24228 if test "x$ac_cv_func_strtoull" = x
""yes; then :
24229 cat >>confdefs.h
<<_ACEOF
24230 #define HAVE_STRTOULL 1
24236 if test $ac_cv_func_strtoull = no
; then
24241 if test $HAVE_STRTOULL = 0; then
24250 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
24267 gl_gnulib_enabled_strtoull
=true
24270 func_gl_gnulib_m4code_verify
()
24272 if ! $gl_gnulib_enabled_verify; then
24273 gl_gnulib_enabled_verify
=true
24276 if test $REPLACE_GETOPT = 1; then
24277 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24279 if test $REPLACE_LSTAT = 1; then
24280 func_gl_gnulib_m4code_dosname
24282 if test $REPLACE_LSTAT = 1; then
24283 func_gl_gnulib_m4code_stat
24285 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24286 func_gl_gnulib_m4code_stat
24288 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24289 func_gl_gnulib_m4code_strtoll
24291 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24292 func_gl_gnulib_m4code_verify
24294 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
24295 func_gl_gnulib_m4code_strtoull
24297 if test $ac_cv_func_strtoumax = no
; then
24298 func_gl_gnulib_m4code_verify
24301 if $gl_gnulib_enabled_dosname; then
24302 gl_GNULIB_ENABLED_dosname_TRUE
=
24303 gl_GNULIB_ENABLED_dosname_FALSE
='#'
24305 gl_GNULIB_ENABLED_dosname_TRUE
='#'
24306 gl_GNULIB_ENABLED_dosname_FALSE
=
24309 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24310 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
24311 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
24313 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
24314 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
24317 if $gl_gnulib_enabled_pathmax; then
24318 gl_GNULIB_ENABLED_pathmax_TRUE
=
24319 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
24321 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
24322 gl_GNULIB_ENABLED_pathmax_FALSE
=
24325 if $gl_gnulib_enabled_stat; then
24326 gl_GNULIB_ENABLED_stat_TRUE
=
24327 gl_GNULIB_ENABLED_stat_FALSE
='#'
24329 gl_GNULIB_ENABLED_stat_TRUE
='#'
24330 gl_GNULIB_ENABLED_stat_FALSE
=
24333 if $gl_gnulib_enabled_strtoll; then
24334 gl_GNULIB_ENABLED_strtoll_TRUE
=
24335 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
24337 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
24338 gl_GNULIB_ENABLED_strtoll_FALSE
=
24341 if $gl_gnulib_enabled_strtoull; then
24342 gl_GNULIB_ENABLED_strtoull_TRUE
=
24343 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
24345 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
24346 gl_GNULIB_ENABLED_strtoull_FALSE
=
24349 if $gl_gnulib_enabled_verify; then
24350 gl_GNULIB_ENABLED_verify_TRUE
=
24351 gl_GNULIB_ENABLED_verify_FALSE
='#'
24353 gl_GNULIB_ENABLED_verify_TRUE
='#'
24354 gl_GNULIB_ENABLED_verify_FALSE
=
24357 # End of code from modules
24378 gl_source_base
='tests'
24379 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
24381 gl_module_indicator_condition
=$gltests_WITNESS
24392 LIBGNU_LIBDEPS
="$gl_libdeps"
24394 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24397 CFLAGS
=$SAVE_CFLAGS
24401 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24404 ## The -headerpad option tells ld (see man page) to leave room at the
24405 ## end of the header for adding load commands. Needed for dumping.
24406 ## 0x690 is the total size of 30 segment load commands (at 56
24407 ## each); under Cocoa 31 commands are required.
24408 if test "$HAVE_NS" = "yes"; then
24409 libs_nsgui
="-framework AppKit"
24410 headerpad_extra
=6C8
24413 headerpad_extra
=690
24415 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24417 ## This is here because src/Makefile.in did some extra fiddling around
24418 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24419 ## #ifndef LD_SWITCH_SYSTEM
24420 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24421 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24422 ## not using gcc, darwin.
24423 ## Because this was done in src/Makefile.in, the resulting part of
24424 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24425 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24426 ## rather than LD_SWITCH_SYSTEM.
24427 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24428 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24431 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24432 ## find X at run-time.
24433 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24434 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24435 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24436 ## had different values in configure (in ac_link) and src/Makefile.in.
24437 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24438 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24440 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24443 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24444 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24453 ## gnu: GNU needs its own crt0.
24454 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24456 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24457 ## library search parth, i.e. it won't search /usr/lib for libc and
24458 ## friends. Using -nostartfiles instead avoids this problem, and
24459 ## will also work on earlier NetBSD releases.
24460 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24462 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24463 ## MkLinux/LinuxPPC needs this.
24464 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24466 case "$canonical" in
24467 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24473 if test "x$ORDINARY_LINK" = "xyes"; then
24477 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24480 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24481 ## freebsd, gnu-* not on powerpc*|s390x*.
24482 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24484 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24485 ## places that are difficult to figure out at make time. Fortunately,
24486 ## these same versions allow you to pass arbitrary flags on to the
24487 ## linker, so there is no reason not to use it as a linker.
24489 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24490 ## searching for libraries in its internal directories, so we have to
24491 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24492 LD_FIRSTFLAG
="-nostdlib"
24495 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24496 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24501 ## FIXME? The logic here is not precisely the same as that above.
24502 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24503 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24505 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24508 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24511 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24512 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24518 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24519 ## immediately undefine it again and redefine it to empty.
24520 ## Was the C_SWITCH_X_SITE part really necessary?
24521 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24527 ## Ask GCC where to find libgcc.a.
24528 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24532 ## Common for all window systems
24533 if test "$window_system" != "none"; then
24535 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24538 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24540 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24547 #### Report on what we decided to do.
24548 #### Report GTK as a toolkit, even if it doesn't use Xt.
24549 #### It makes printing result more understandable as using GTK sets
24550 #### toolkit_scroll_bars to yes by default.
24551 if test "${HAVE_GTK}" = "yes"; then
24552 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
24556 Configured for \`${canonical}'.
24558 Where should the build process find the source code? ${srcdir}
24559 What compiler should emacs be built with? ${CC} ${CFLAGS}
24560 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24561 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24562 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24563 What window system should Emacs use? ${window_system}
24564 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24566 if test -n "${x_includes}"; then
24567 echo " Where do we find X Windows header files? ${x_includes}"
24569 echo " Where do we find X Windows header files? Standard dirs"
24571 if test -n "${x_libraries}"; then
24572 echo " Where do we find X Windows libraries? ${x_libraries}"
24574 echo " Where do we find X Windows libraries? Standard dirs"
24577 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24578 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24579 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24580 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24581 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24582 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24583 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24584 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24586 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24587 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24588 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24589 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24590 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24591 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24592 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24594 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24595 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24596 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24597 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24599 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24602 if test -n "${EMACSDATA}"; then
24603 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24605 if test -n "${EMACSDOC}"; then
24606 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24611 if test "$HAVE_NS" = "yes"; then
24613 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24614 The installed application will go to nextstep/Emacs.app and can be
24615 run or moved from there."
24616 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24617 echo "The application will be fully self-contained."
24619 echo "The lisp resources for the application will be installed under ${prefix}.
24620 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24621 to run if these resources are not installed."
24626 if test "${opsys}" = "cygwin"; then
24628 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24629 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24635 # Remove any trailing slashes in these variables.
24636 test "${prefix}" != NONE
&&
24637 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24638 test "${exec_prefix}" != NONE
&&
24639 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24641 if test "$HAVE_NS" = "yes"; then
24642 if test "$NS_IMPL_GNUSTEP" = yes; then
24643 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"
24646 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"
24651 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"
24653 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"
24656 opt_makefile
=test
/automated
/Makefile
24658 if test -f $srcdir/${opt_makefile}.
in; then
24659 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24660 ac_config_files
="$ac_config_files test/automated/Makefile"
24665 opt_makefile
=admin
/unidata
/Makefile
24667 if test -f $srcdir/${opt_makefile}.
in; then
24668 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24669 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24674 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24678 ac_config_commands
="$ac_config_commands mkdirs"
24681 ac_config_commands
="$ac_config_commands epaths"
24684 ac_config_commands
="$ac_config_commands gdbinit"
24687 cat >confcache
<<\_ACEOF
24688 # This file is a shell script that caches the results of configure
24689 # tests run on this system so they can be shared between configure
24690 # scripts and configure runs, see configure's option --config-cache.
24691 # It is not useful on other systems. If it contains results you don't
24692 # want to keep, you may remove or edit it.
24694 # config.status only pays attention to the cache file if you give it
24695 # the --recheck option to rerun configure.
24697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24699 # following values.
24703 # The following way of writing the cache mishandles newlines in values,
24704 # but we know of no workaround that is simple, portable, and efficient.
24705 # So, we kill variables containing newlines.
24706 # Ultrix sh set writes to stderr and can't be redirected directly,
24707 # and sets the high bit in the cache file unless we assign to the vars.
24709 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24710 eval ac_val
=\$
$ac_var
24714 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24718 _ | IFS | as_nl
) ;; #(
24719 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24720 *) { eval $ac_var=; unset $ac_var;} ;;
24726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24727 *${as_nl}ac_space
=\
*)
24728 # `set' does not quote correctly, so add quotes: double-quote
24729 # substitution turns \\\\ into \\, and sed turns \\ into \.
24732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24735 # `set' quotes correctly as required by POSIX, so do not add quotes.
24736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24749 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24750 if test -w "$cache_file"; then
24751 test "x$cache_file" != "x/dev/null" &&
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24753 $as_echo "$as_me: updating cache $cache_file" >&6;}
24754 cat confcache
>$cache_file
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24762 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24763 # Let make expand exec_prefix.
24764 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24766 DEFS
=-DHAVE_CONFIG_H
24770 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24771 # 1. Remove the extension, and $U if already installed.
24772 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24773 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24775 # will be set to the directory where LIBOBJS objects are built.
24776 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24777 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24779 LIBOBJS
=$ac_libobjs
24781 LTLIBOBJS
=$ac_ltlibobjs
24784 if test -n "$EXEEXT"; then
24786 am__EXEEXT_FALSE
='#'
24788 am__EXEEXT_TRUE
='#'
24792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24793 as_fn_error
"conditional \"AMDEP\" was never defined.
24794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24796 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24797 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24800 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24801 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24804 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24805 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24809 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24810 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24813 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24814 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24817 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24818 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24821 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24822 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24825 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24826 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24829 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24830 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24833 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24834 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24837 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24838 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24841 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24842 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24845 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24846 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24849 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24850 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24853 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24854 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24857 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24858 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24864 if test -n "$gl_LIBOBJS"; then
24865 # Remove the extension.
24866 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24867 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24868 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24869 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24872 gl_LIBOBJS
=$gl_libobjs
24874 gl_LTLIBOBJS
=$gl_ltlibobjs
24880 if test -n "$gltests_LIBOBJS"; then
24881 # Remove the extension.
24882 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24883 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24884 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24885 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24888 gltests_LIBOBJS
=$gltests_libobjs
24890 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24894 : ${CONFIG_STATUS=./config.status}
24896 ac_clean_files_save
=$ac_clean_files
24897 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24899 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24901 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24903 # Generated by $as_me.
24904 # Run this file to recreate the current configuration.
24905 # Compiler output produced by configure, useful for debugging
24906 # configure, is in config.log if it exists.
24909 ac_cs_recheck=false
24912 SHELL=\${CONFIG_SHELL-$SHELL}
24915 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24916 ## -------------------- ##
24917 ## M4sh Initialization. ##
24918 ## -------------------- ##
24920 # Be more Bourne compatible
24921 DUALCASE
=1; export DUALCASE
# for MKS sh
24922 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24925 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24926 # is contrary to our usage. Disable this feature.
24927 alias -g '${1+"$@"}'='"$@"'
24928 setopt NO_GLOB_SUBST
24930 case `(set -o) 2>/dev/null` in #(
24942 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24943 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24944 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24946 # Prefer a ksh shell builtin over an external printf program on Solaris,
24947 # but without wasting forks for bash or zsh.
24948 if test -z "$BASH_VERSION$ZSH_VERSION" \
24949 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24950 as_echo='print
-r --'
24951 as_echo_n='print
-rn --'
24952 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24953 as_echo='printf %s
\n'
24954 as_echo_n='printf %s
'
24956 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24957 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24958 as_echo_n='/usr
/ucb
/echo -n'
24960 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24961 as_echo_n_body='eval
24965 expr "X$arg" : "X\\(.*\\)$as_nl";
24966 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24968 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24970 export as_echo_n_body
24971 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24973 export as_echo_body
24974 as_echo='sh
-c $as_echo_body as_echo
'
24977 # The user is always right.
24978 if test "${PATH_SEPARATOR+set}" != set; then
24980 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24981 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24988 # We need space, tab and new line, in precisely that order. Quoting is
24989 # there to prevent editors from complaining about space-tab.
24990 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24991 # splitting by setting IFS to empty value.)
24994 # Find who we are. Look in the path if we contain no directory separator.
24996 *[\\/]* ) as_myself=$0 ;;
24997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998 for as_dir in $PATH
25001 test -z "$as_dir" && as_dir=.
25002 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25008 # We did not find ourselves, most probably we were run as `sh COMMAND'
25009 # in which case we are not to be found in the path.
25010 if test "x$as_myself" = x
; then
25013 if test ! -f "$as_myself"; then
25014 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25018 # Unset variables that we do not need and which cause bugs (e.g. in
25019 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25020 # suppresses any "Segmentation fault" message there. '((' could
25021 # trigger a bug in pdksh 5.2.14.
25022 for as_var
in BASH_ENV ENV MAIL MAILPATH
25023 do eval test x\
${$as_var+set} = xset \
25024 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25037 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25040 # as_fn_error ERROR [LINENO LOG_FD]
25041 # ---------------------------------
25042 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25043 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25044 # script with status $?, using 1 if that was 0.
25047 as_status
=$?
; test $as_status -eq 0 && as_status
=1
25049 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25050 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25052 $as_echo "$as_me: error: $1" >&2
25053 as_fn_exit
$as_status
25057 # as_fn_set_status STATUS
25058 # -----------------------
25059 # Set $? to STATUS, without forking.
25060 as_fn_set_status
()
25063 } # as_fn_set_status
25065 # as_fn_exit STATUS
25066 # -----------------
25067 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25071 as_fn_set_status
$1
25077 # Portably unset VAR.
25080 { eval $1=; unset $1;}
25082 as_unset
=as_fn_unset
25083 # as_fn_append VAR VALUE
25084 # ----------------------
25085 # Append the text in VALUE to the end of the definition contained in VAR. Take
25086 # advantage of any shell optimizations that allow amortized linear growth over
25087 # repeated appends, instead of the typical quadratic growth present in naive
25089 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25090 eval 'as_fn_append ()
25101 # as_fn_arith ARG...
25102 # ------------------
25103 # Perform arithmetic evaluation on the ARGs, and store the result in the
25104 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25105 # must be portable across $(()) and expr.
25106 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25107 eval 'as_fn_arith ()
25114 as_val
=`expr "$@" || test $? -eq 1`
25119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25127 as_basename
=basename
25132 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25138 as_me
=`$as_basename -- "$0" ||
25139 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25140 X"$0" : 'X\(//\)$' \| \
25141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25143 sed '/^.*\/\([^/][^/]*\)\/*$/{
25157 # Avoid depending upon Character Ranges.
25158 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25159 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25160 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25161 as_cr_digits
='0123456789'
25162 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25164 ECHO_C
= ECHO_N
= ECHO_T
=
25165 case `echo -n x` in #(((((
25167 case `echo 'xy\c'` in
25168 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25170 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25177 rm -f conf$$ conf$$.exe conf$$.
file
25178 if test -d conf$$.dir
; then
25179 rm -f conf$$.dir
/conf$$.
file
25182 mkdir conf$$.dir
2>/dev
/null
25184 if (echo >conf$$.
file) 2>/dev
/null
; then
25185 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25187 # ... but there are two gotchas:
25188 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25189 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25190 # In both cases, we have to default to `cp -p'.
25191 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25193 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25201 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25202 rmdir conf$$.dir
2>/dev
/null
25207 # Create "$as_dir" as a directory, including parents if necessary.
25212 -*) as_dir
=.
/$as_dir;;
25214 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25218 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25219 *) as_qdir
=$as_dir;;
25221 as_dirs
="'$as_qdir' $as_dirs"
25222 as_dir
=`$as_dirname -- "$as_dir" ||
25223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25224 X"$as_dir" : 'X\(//\)[^/]' \| \
25225 X"$as_dir" : 'X\(//\)$' \| \
25226 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25227 $as_echo X"$as_dir" |
25228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25232 /^X\(\/\/\)[^/].*/{
25245 test -d "$as_dir" && break
25247 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25248 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
25252 if mkdir
-p .
2>/dev
/null
; then
25253 as_mkdir_p
='mkdir -p "$as_dir"'
25255 test -d .
/-p && rmdir .
/-p
25259 if test -x / >/dev
/null
2>&1; then
25260 as_test_x
='test -x'
25262 if ls -dL / >/dev
/null
2>&1; then
25269 if test -d "$1"; then
25275 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25276 ???[sx]*):;;*)false;;esac;fi
25280 as_executable_p
=$as_test_x
25282 # Sed expression to map a string onto a valid CPP name.
25283 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25285 # Sed expression to map a string onto a valid variable name.
25286 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25290 ## ----------------------------------- ##
25291 ## Main body of $CONFIG_STATUS script. ##
25292 ## ----------------------------------- ##
25294 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25297 # Save the log message, to keep $0 and so on meaningful, and to
25298 # report actual input values of CONFIG_FILES etc. instead of their
25299 # values after options handling.
25301 This file was extended by emacs $as_me 24.2.50, which was
25302 generated by GNU Autoconf 2.65. Invocation command line was
25304 CONFIG_FILES = $CONFIG_FILES
25305 CONFIG_HEADERS = $CONFIG_HEADERS
25306 CONFIG_LINKS = $CONFIG_LINKS
25307 CONFIG_COMMANDS = $CONFIG_COMMANDS
25310 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25315 case $ac_config_files in *"
25316 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25319 case $ac_config_headers in *"
25320 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25325 # Files that config.status was made for.
25326 config_files="$ac_config_files"
25327 config_headers="$ac_config_headers"
25328 config_commands="$ac_config_commands"
25332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25334 \`$as_me' instantiates files and other configuration actions
25335 from templates according to the current configuration. Unless the files
25336 and actions are specified as TAGs, all are instantiated by default.
25338 Usage: $0 [OPTION]... [TAG]...
25340 -h, --help print this help, then exit
25341 -V, --version print version number and configuration settings, then exit
25342 --config print configuration, then exit
25343 -q, --quiet, --silent
25344 do not print progress messages
25345 -d, --debug don't remove temporary files
25346 --recheck update $as_me by reconfiguring in the same conditions
25347 --file=FILE[:TEMPLATE]
25348 instantiate the configuration file FILE
25349 --header=FILE[:TEMPLATE]
25350 instantiate the configuration header FILE
25352 Configuration files:
25355 Configuration headers:
25358 Configuration commands:
25361 Report bugs to the package provider."
25364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25365 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25367 emacs config.status 24.2.50
25368 configured by $0, generated by GNU Autoconf 2.65,
25369 with options \\"\$ac_cs_config\\"
25371 Copyright (C) 2009 Free Software Foundation, Inc.
25372 This config.status script is free software; the Free Software Foundation
25373 gives unlimited permission to copy, distribute and modify it."
25380 test -n "\$AWK" || AWK=awk
25383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25384 # The default lists apply if the user does not specify any file.
25390 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25391 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25402 # Handling of the options.
25403 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25405 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25406 $as_echo "$ac_cs_version"; exit ;;
25407 --config |
--confi |
--conf |
--con |
--co |
--c )
25408 $as_echo "$ac_cs_config"; exit ;;
25409 --debug |
--debu |
--deb |
--de |
--d |
-d )
25411 --file |
--fil |
--fi |
--f )
25414 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25416 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25417 ac_need_defaults
=false
;;
25418 --header |
--heade |
--head |
--hea )
25421 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25423 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25424 ac_need_defaults
=false
;;
25426 # Conflict between --help and --header
25427 as_fn_error
"ambiguous option: \`$1'
25428 Try \`$0 --help' for more information.";;
25429 --help |
--hel |
-h )
25430 $as_echo "$ac_cs_usage"; exit ;;
25431 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25432 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25435 # This is an error.
25436 -*) as_fn_error
"unrecognized option: \`$1'
25437 Try \`$0 --help' for more information." ;;
25439 *) as_fn_append ac_config_targets
" $1"
25440 ac_need_defaults
=false
;;
25446 ac_configure_extra_args
=
25448 if $ac_cs_silent; then
25450 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25455 if \$ac_cs_recheck; then
25456 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25459 CONFIG_SHELL='$SHELL'
25460 export CONFIG_SHELL
25465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25470 ## Running $as_me. ##
25476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25480 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25481 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25487 # Handling of arguments.
25488 for ac_config_target
in $ac_config_targets
25490 case $ac_config_target in
25491 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25492 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25493 "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" ;;
25494 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25495 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25496 "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" ;;
25497 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25498 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25499 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25500 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25501 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25502 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25503 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25504 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25505 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25506 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25507 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25508 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25509 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
25510 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25511 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25512 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25513 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25514 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25516 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25521 # If the user did not use the arguments to specify the items to instantiate,
25522 # then the envvar interface is used. Set only those that are not.
25523 # We use the long form for the default assignment because of an extremely
25524 # bizarre bug on SunOS 4.1.3.
25525 if $ac_need_defaults; then
25526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25528 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25531 # Have a temporary directory for convenience. Make it in the build tree
25532 # simply because there is no reason against having it here, and in addition,
25533 # creating and moving files from /tmp can sometimes cause problems.
25534 # Hook for its removal unless debugging.
25535 # Note that there is a small window in which the directory will not be cleaned:
25536 # after its creation but before its name has been assigned to `$tmp'.
25540 trap 'exit_status=$?
25541 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25543 trap 'as_fn_exit 1' 1 2 13 15
25545 # Create a (secure) tmp directory for tmp files.
25548 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25549 test -n "$tmp" && test -d "$tmp"
25552 tmp
=.
/conf$$
-$RANDOM
25553 (umask 077 && mkdir
"$tmp")
25554 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25556 # Set up the scripts for CONFIG_FILES section.
25557 # No need to generate them if there are no CONFIG_FILES.
25558 # This happens for instance with `./config.status config.h'.
25559 if test -n "$CONFIG_FILES"; then
25561 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25562 ac_cs_awk_getline
=:
25563 ac_cs_awk_pipe_init
=
25564 ac_cs_awk_read_file
='
25565 while ((getline aline < (F[key])) > 0)
25568 ac_cs_awk_pipe_fini
=
25570 ac_cs_awk_getline
=false
25571 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25572 ac_cs_awk_read_file
='
25574 print "cat " F[key] " &&"
25575 '$ac_cs_awk_pipe_init
25576 # The final `:' finishes the AND list.
25577 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25579 ac_cr
=`echo X | tr X '\015'`
25580 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25581 # But we know of no other shell where ac_cr would be empty at this
25582 # point, so we can use a bashism as a fallback.
25583 if test "x$ac_cr" = x
; then
25584 eval ac_cr
=\$
\'\\r
\'
25586 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25590 ac_cs_awk_cr
=$ac_cr
25593 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25596 # Create commands to substitute file output variables.
25598 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25599 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25600 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25603 } >conf$
$files.sh
&&
25604 . .
/conf$
$files.sh ||
25605 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25606 rm -f conf$
$files.sh
25609 echo "cat >conf$$subs.awk <<_ACEOF" &&
25610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25612 } >conf$$subs.sh ||
25613 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25614 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25616 for ac_last_try in false false false false false :; do
25617 . ./conf$$subs.sh ||
25618 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25620 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25621 if test $ac_delim_n = $ac_delim_num; then
25623 elif $ac_last_try; then
25624 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25626 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25629 rm -f conf$$subs.sh
25631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25632 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25636 s/^/S["/; s
/!.
*/"]=/
25646 s/\(.\{148\}\)..*/\1/
25648 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25653 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25660 s/\(.\{148\}\)..*/\1/
25662 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25666 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25671 ' <conf$$subs.awk | sed '
25676 ' >>$CONFIG_STATUS || ac_write_fail=1
25677 rm -f conf$$subs.awk
25678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25680 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25681 for (key in S) S_is_set[key] = 1
25683 \$ac_cs_awk_pipe_init
25687 nfields = split(line, field, "@
")
25689 len = length(field[1])
25690 for (i = 2; i < nfields; i++) {
25692 keylen = length(key)
25693 if (S_is_set[key]) {
25695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25696 len += length(value) + length(field[++i])
25701 if (nfields == 3 && !substed) {
25703 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25704 \$ac_cs_awk_read_file
25710 \$ac_cs_awk_pipe_fini
25713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25714 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25715 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25718 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25719 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25724 # trailing colons and then remove the whole line if VPATH becomes empty
25725 # (actually we leave an empty line to preserve line numbers).
25726 if test "x
$srcdir" = x.; then
25727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25728 s/:*\$(srcdir):*/:/
25729 s/:*\${srcdir}:*/:/
25731 s/^\([^=]*=[ ]*\):*/\1/
25737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25738 fi # test -n "$CONFIG_FILES"
25740 # Set up the scripts for CONFIG_HEADERS section.
25741 # No need to generate them if there are no CONFIG_HEADERS.
25742 # This happens for instance with `./config.status Makefile'.
25743 if test -n "$CONFIG_HEADERS"; then
25744 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25748 # Transform confdefs.h into an awk script `defines.awk', embedded as
25749 # here-document in config.status, that substitutes the proper values into
25750 # config.h.in to produce config.h.
25752 # Create a delimiter string that does not exist in confdefs.h, to ease
25753 # handling of long lines.
25755 for ac_last_try in false false :; do
25756 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25757 if test -z "$ac_t"; then
25759 elif $ac_last_try; then
25760 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25762 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25766 # For the awk script, D is an array of macro values keyed by name,
25767 # likewise P contains macro parameters if any. Preserve backslash
25768 # newline sequences.
25770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25772 s/.\{148\}/&'"$ac_delim"'/g
25775 s/^[ ]*#[ ]*define[ ][ ]*/ /
25782 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25784 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25789 D["\
1"]=" \
3\\\\\\n
"\\/p
25791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25796 s/.\{148\}/&'"$ac_delim"'/g
25801 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25804 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25806 ' <confdefs.h | sed '
25807 s/'"$ac_delim"'/"\\\
25808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25811 for (key in D) D_is_set[key] = 1
25814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25816 split(line, arg, " ")
25817 if (arg[1] == "#") {
25821 defundef
= substr
(arg
[1], 2)
25824 split(mac1
, mac2
, "(") #)
25826 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25827 if (D_is_set
[macro
]) {
25828 # Preserve the white space surrounding the "#".
25829 print prefix
"define", macro P
[macro
] D
[macro
]
25832 # Replace #undef with comments. This is necessary, for example,
25833 # in the case of _POSIX_SOURCE, which is predefined and required
25834 # on some systems where configure will not decide to define it.
25835 if (defundef
== "undef") {
25836 print
"/*", prefix defundef
, macro
, "*/"
25844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25845 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25846 fi # test -n "$CONFIG_HEADERS"
25849 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25854 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25856 case $ac_mode$ac_tag in
25858 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25859 :[FH
]-) ac_tag
=-:-;;
25860 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25877 -) ac_f
="$tmp/stdin";;
25878 *) # Look for the file first in the build tree, then in the source tree
25879 # (if the path is not absolute). The absolute path cannot be DOS-style,
25880 # because $ac_f cannot contain `:'.
25884 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25886 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25888 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25889 as_fn_append ac_file_inputs
" '$ac_f'"
25892 # Let's still pretend it is `configure' which instantiates (i.e., don't
25893 # use $as_me), people would be surprised to read:
25894 # /* config.h. Generated by config.status. */
25895 configure_input
='Generated from '`
25896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25898 if test x
"$ac_file" != x-
; then
25899 configure_input
="$ac_file. $configure_input"
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25901 $as_echo "$as_me: creating $ac_file" >&6;}
25903 # Neutralize special characters interpreted by sed in replacement strings.
25904 case $configure_input in #(
25905 *\
&* |
*\|
* |
*\\* )
25906 ac_sed_conf_input
=`$as_echo "$configure_input" |
25907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25908 *) ac_sed_conf_input
=$configure_input;;
25912 *:-:* |
*:-) cat >"$tmp/stdin" \
25913 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25918 ac_dir
=`$as_dirname -- "$ac_file" ||
25919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25920 X"$ac_file" : 'X\(//\)[^/]' \| \
25921 X"$ac_file" : 'X\(//\)$' \| \
25922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25923 $as_echo X"$ac_file" |
25924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25928 /^X\(\/\/\)[^/].*/{
25941 as_dir
="$ac_dir"; as_fn_mkdir_p
25945 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25947 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25948 # A ".." for each directory in $ac_dir_suffix.
25949 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25950 case $ac_top_builddir_sub in
25951 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25952 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25955 ac_abs_top_builddir
=$ac_pwd
25956 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25957 # for backward compatibility:
25958 ac_top_builddir
=$ac_top_build_prefix
25961 .
) # We are building in place.
25963 ac_top_srcdir
=$ac_top_builddir_sub
25964 ac_abs_top_srcdir
=$ac_pwd ;;
25965 [\\/]* | ?
:[\\/]* ) # Absolute name.
25966 ac_srcdir
=$srcdir$ac_dir_suffix;
25967 ac_top_srcdir
=$srcdir
25968 ac_abs_top_srcdir
=$srcdir ;;
25969 *) # Relative name.
25970 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25971 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25972 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25974 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25984 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25985 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25987 ac_MKDIR_P
=$MKDIR_P
25989 [\\/$
]* | ?
:[\\/]* ) ;;
25990 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25995 # If the template does not know about datarootdir, expand it.
25996 # FIXME: This hack should be removed a few years after 2.60.
25997 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26009 *datarootdir
*) ac_datarootdir_seen
=yes;;
26010 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26015 ac_datarootdir_hack='
26016 s&@datadir@&$datadir&g
26017 s&@docdir@&$docdir&g
26018 s&@infodir@&$infodir&g
26019 s&@localedir@&$localedir&g
26020 s&@mandir@&$mandir&g
26021 s&\\\${datarootdir}&$datarootdir&g' ;;
26025 # Neutralize VPATH when `$srcdir' = `.'.
26026 # Shell code in configure.ac might set extrasub.
26027 # FIXME: do we really want to maintain this feature?
26028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26029 ac_sed_extra="$ac_vpsub
26032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26034 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26035 s|@configure_input@|
$ac_sed_conf_input|
;t t
26036 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26037 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26038 s
&@srcdir@
&$ac_srcdir&;t t
26039 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26040 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26041 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26042 s
&@builddir@
&$ac_builddir&;t t
26043 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26044 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26045 s
&@INSTALL@
&$ac_INSTALL&;t t
26046 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26047 $ac_datarootdir_hack
26049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26050 if $ac_cs_awk_getline; then
26051 $AWK -f "$tmp/subs.
awk"
26053 $AWK -f "$tmp/subs.
awk" | $SHELL
26055 || as_fn_error "could not create
$ac_file" "$LINENO" 5
26057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26061 which seems to be undefined. Please make sure it is defined." >&5
26062 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26063 which seems to be undefined. Please make sure it is defined." >&2;}
26067 -) cat "$tmp/out" && rm -f "$tmp/out";;
26068 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26070 || as_fn_error "could not create $ac_file" "$LINENO" 5
26076 if test x"$ac_file" != x-; then
26078 $as_echo "/* $configure_input */" \
26079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26080 } >"$tmp/config.h" \
26081 || as_fn_error "could not create $ac_file" "$LINENO" 5
26082 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26084 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26087 mv "$tmp/config.h" "$ac_file" \
26088 || as_fn_error "could not create $ac_file" "$LINENO" 5
26091 $as_echo "/* $configure_input */" \
26092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26093 || as_fn_error "could not create -" "$LINENO" 5
26095 # Compute "$ac_file"'s index
in $config_headers.
26098 for _am_header
in $config_headers :; do
26099 case $_am_header in
26100 $_am_arg |
$_am_arg:* )
26103 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26106 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26107 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26108 X"$_am_arg" : 'X\(//\)[^/]' \| \
26109 X"$_am_arg" : 'X\(//\)$' \| \
26110 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26111 $as_echo X"$_am_arg" |
26112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26116 /^X\(\/\/\)[^/].*/{
26128 s/.*/./; q'`/stamp-h
$_am_stamp_count
26131 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26132 $as_echo "$as_me: executing $ac_file commands" >&6;}
26137 case $ac_file$ac_mode in
26138 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
26139 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26140 # are listed without --file. Let's play safe and only enable the eval
26141 # if we detect the quoting.
26142 case $CONFIG_FILES in
26143 *\'*) eval set x
"$CONFIG_FILES" ;;
26144 *) set x
$CONFIG_FILES ;;
26149 # Strip MF so we end up with the name of the file.
26150 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26151 # Check whether this is an Automake generated Makefile or not.
26152 # We used to match only the files named `Makefile.in', but
26153 # some people rename them; so instead we look at the file content.
26154 # Grep'ing the first line is not enough: some people post-process
26155 # each Makefile.in and add a new line on top of each file to say so.
26156 # Grep'ing the whole file is not good either: AIX grep has a line
26157 # limit of 2048, but all sed's we know have understand at least 4000.
26158 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
26159 dirpart
=`$as_dirname -- "$mf" ||
26160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26161 X"$mf" : 'X\(//\)[^/]' \| \
26162 X"$mf" : 'X\(//\)$' \| \
26163 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26169 /^X\(\/\/\)[^/].*/{
26185 # Extract the definition of DEPDIR, am__include, and am__quote
26186 # from the Makefile without running `make'.
26187 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26188 test -z "$DEPDIR" && continue
26189 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26190 test -z "am__include" && continue
26191 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26192 # When using ansi2knr, U may be empty or an underscore; expand it
26193 U
=`sed -n 's/^U = //p' < "$mf"`
26194 # Find all dependency output files, they are included files with
26195 # $(DEPDIR) in their names. We invoke sed twice because it is the
26196 # simplest approach to changing $(DEPDIR) to its actual value in the
26198 for file in `sed -n "
26199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26201 # Make sure the directory exists.
26202 test -f "$dirpart/$file" && continue
26203 fdir
=`$as_dirname -- "$file" ||
26204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26205 X"$file" : 'X\(//\)[^/]' \| \
26206 X"$file" : 'X\(//\)$' \| \
26207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26208 $as_echo X"$file" |
26209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26213 /^X\(\/\/\)[^/].*/{
26226 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
26227 # echo "creating $dirpart/$file"
26228 echo '# dummy' > "$dirpart/$file"
26234 for dir
in etc lisp
; do
26235 test -d ${dir} || mkdir
${dir}
26239 echo creating src
/epaths.h
26240 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
26243 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26244 echo creating src
/.gdbinit
26245 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26255 ac_clean_files
=$ac_clean_files_save
26257 test $ac_write_fail = 0 ||
26258 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
26261 # configure is writing to config.log, and then calls config.status.
26262 # config.status does its own redirection, appending to config.log.
26263 # Unfortunately, on DOS this fails, as config.log is still kept open
26264 # by configure, so config.status won't be able to write to it; its
26265 # output is simply discarded. So we exec the FD to /dev/null,
26266 # effectively closing config.log, so it can be properly (re)opened and
26267 # appended to by config.status. When coming back to configure, we
26268 # need to make the FD available again.
26269 if test "$no_create" != yes; then
26271 ac_config_status_args
=
26272 test "$silent" = yes &&
26273 ac_config_status_args
="$ac_config_status_args --quiet"
26275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26278 # would make configure fail if this is the last instruction.
26279 $ac_cs_success || as_fn_exit $?
26281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26283 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}