2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.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.3.50'
553 PACKAGE_STRING
='emacs 24.3.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
608 LD_SWITCH_SYSTEM_TEMACS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
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_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
679 REPLACE_OBSTACK_PRINTF
704 HAVE_DECL_OBSTACK_PRINTF
710 GNULIB_VSPRINTF_POSIX
714 GNULIB_VFPRINTF_POSIX
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
786 REPLACE_PTHREAD_SIGMASK
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
795 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGNAL_H_SIGPIPE
800 GNULIB_PTHREAD_SIGMASK
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
816 HAVE_DECL_LOCALTIME_R
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
922 HAVE_SIGNED_SIG_ATOMIC_T
925 BITSIZEOF_SIG_ATOMIC_T
928 APPLE_UNIVERSAL_BUILD
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
937 HAVE_UNSIGNED_LONG_LONG_INT
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
948 GNULIB_GL_UNISTD_H_GETOPT
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
967 REPLACE_CANONICALIZE_FILE_NAME
972 HAVE_STRUCT_RANDOM_DATA
995 HAVE_CANONICALIZE_FILE_NAME
1006 GNULIB_SECURE_GETENV
1009 GNULIB_REALLOC_POSIX
1026 GNULIB_CANONICALIZE_FILE_NAME
1064 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 GL_GENERATE_EXECINFO_H_FALSE
1076 GL_GENERATE_EXECINFO_H_TRUE
1080 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1083 PRAGMA_SYSTEM_HEADER
1084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1108 UNISTD_H_HAVE_WINSOCK2_H
1129 REPLACE_GETDOMAINNAME
1140 HAVE_DECL_SETHOSTNAME
1141 HAVE_DECL_GETUSERSHELL
1142 HAVE_DECL_GETPAGESIZE
1143 HAVE_DECL_GETLOGIN_R
1144 HAVE_DECL_GETDOMAINNAME
1183 GNULIB_UNISTD_H_SIGPIPE
1184 GNULIB_UNISTD_H_NONBLOCKING
1210 GNULIB_GETDTABLESIZE
1211 GNULIB_GETDOMAINNAME
1228 GL_GENERATE_ALLOCA_H_FALSE
1229 GL_GENERATE_ALLOCA_H_TRUE
1232 GL_COND_LIBTOOL_FALSE
1233 GL_COND_LIBTOOL_TRUE
1264 x_default_search_path
1346 INSTALL_ARCH_INDEP_EXTRA
1348 LD_SWITCH_X_SITE_RPATH
1415 INSTALL_STRIP_PROGRAM
1457 program_transform_name
1468 ac_subst_files
='deps_frag
1471 enable_option_checking
1494 with_toolkit_scroll_bars
1509 with_pkg_config_prog
1512 enable_ns_self_contained
1513 enable_locallisppath
1515 enable_check_lisp_object_type
1518 enable_gtk_deprecation_warnings
1519 enable_dependency_tracking
1522 enable_link_time_optimization
1525 ac_precious_vars
='build_alias
1537 # Initialize some variables set by options.
1539 ac_init_version
=false
1540 ac_unrecognized_opts
=
1541 ac_unrecognized_sep
=
1542 # The variables have the same names as the options, with
1543 # dashes changed to underlines.
1544 cache_file
=/dev
/null
1551 program_transform_name
=s
,x
,x
,
1559 # Installation directory options.
1560 # These are left unexpanded so users can "make install exec_prefix=/foo"
1561 # and all the variables that are supposed to be based on exec_prefix
1562 # by default will actually change.
1563 # Use braces instead of parens because sh, perl, etc. also accept them.
1564 # (The list follows the same order as the GNU Coding Standards.)
1565 bindir
='${exec_prefix}/bin'
1566 sbindir
='${exec_prefix}/sbin'
1567 libexecdir
='${exec_prefix}/libexec'
1568 datarootdir
='${prefix}/share'
1569 datadir
='${datarootdir}'
1570 sysconfdir
='${prefix}/etc'
1571 sharedstatedir
='${prefix}/com'
1572 localstatedir
='${prefix}/var'
1573 includedir
='${prefix}/include'
1574 oldincludedir
='/usr/include'
1575 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1576 infodir
='${datarootdir}/info'
1581 libdir
='${exec_prefix}/lib'
1582 localedir
='${datarootdir}/locale'
1583 mandir
='${datarootdir}/man'
1589 # If the previous option needs an argument, assign it.
1590 if test -n "$ac_prev"; then
1591 eval $ac_prev=\
$ac_option
1597 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1601 # Accept the important Cygnus configure options, so we can diagnose typos.
1603 case $ac_dashdash$ac_option in
1607 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1609 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1610 bindir
=$ac_optarg ;;
1612 -build |
--build |
--buil |
--bui |
--bu)
1613 ac_prev
=build_alias
;;
1614 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1615 build_alias
=$ac_optarg ;;
1617 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1618 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1619 ac_prev
=cache_file
;;
1620 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1621 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1622 cache_file
=$ac_optarg ;;
1624 --config-cache |
-C)
1625 cache_file
=config.cache
;;
1627 -datadir |
--datadir |
--datadi |
--datad)
1629 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1630 datadir
=$ac_optarg ;;
1632 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1633 |
--dataroo |
--dataro |
--datar)
1634 ac_prev
=datarootdir
;;
1635 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1636 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1637 datarootdir
=$ac_optarg ;;
1639 -disable-* |
--disable-*)
1640 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1643 as_fn_error
"invalid feature name: $ac_useropt"
1644 ac_useropt_orig
=$ac_useropt
1645 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1648 "enable_
$ac_useropt"
1650 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1651 ac_unrecognized_sep
=', ';;
1653 eval enable_
$ac_useropt=no
;;
1655 -docdir |
--docdir |
--docdi |
--doc |
--do)
1657 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1658 docdir
=$ac_optarg ;;
1660 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1662 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1663 dvidir
=$ac_optarg ;;
1665 -enable-* |
--enable-*)
1666 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1667 # Reject names that are not valid shell variable names.
1668 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1669 as_fn_error
"invalid feature name: $ac_useropt"
1670 ac_useropt_orig
=$ac_useropt
1671 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1672 case $ac_user_opts in
1674 "enable_
$ac_useropt"
1676 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1677 ac_unrecognized_sep
=', ';;
1679 eval enable_
$ac_useropt=\
$ac_optarg ;;
1681 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1682 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1683 |
--exec |
--exe |
--ex)
1684 ac_prev
=exec_prefix
;;
1685 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1686 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1687 |
--exec=* |
--exe=* |
--ex=*)
1688 exec_prefix
=$ac_optarg ;;
1690 -gas |
--gas |
--ga |
--g)
1691 # Obsolete; use --with-gas.
1694 -help |
--help |
--hel |
--he |
-h)
1695 ac_init_help
=long
;;
1696 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1697 ac_init_help
=recursive
;;
1698 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1699 ac_init_help
=short
;;
1701 -host |
--host |
--hos |
--ho)
1702 ac_prev
=host_alias
;;
1703 -host=* |
--host=* |
--hos=* |
--ho=*)
1704 host_alias
=$ac_optarg ;;
1706 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1708 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1710 htmldir
=$ac_optarg ;;
1712 -includedir |
--includedir |
--includedi |
--included |
--include \
1713 |
--includ |
--inclu |
--incl |
--inc)
1714 ac_prev
=includedir
;;
1715 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1716 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1717 includedir
=$ac_optarg ;;
1719 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1721 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1722 infodir
=$ac_optarg ;;
1724 -libdir |
--libdir |
--libdi |
--libd)
1726 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1727 libdir
=$ac_optarg ;;
1729 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1730 |
--libexe |
--libex |
--libe)
1731 ac_prev
=libexecdir
;;
1732 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1733 |
--libexe=* |
--libex=* |
--libe=*)
1734 libexecdir
=$ac_optarg ;;
1736 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1737 ac_prev
=localedir
;;
1738 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1739 localedir
=$ac_optarg ;;
1741 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1742 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1743 ac_prev
=localstatedir
;;
1744 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1745 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1746 localstatedir
=$ac_optarg ;;
1748 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1750 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1751 mandir
=$ac_optarg ;;
1753 -nfp |
--nfp |
--nf)
1754 # Obsolete; use --without-fp.
1757 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1758 |
--no-cr |
--no-c |
-n)
1761 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1762 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1765 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1766 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1767 |
--oldin |
--oldi |
--old |
--ol |
--o)
1768 ac_prev
=oldincludedir
;;
1769 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1770 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1771 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1772 oldincludedir
=$ac_optarg ;;
1774 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1776 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1777 prefix
=$ac_optarg ;;
1779 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1780 |
--program-pre |
--program-pr |
--program-p)
1781 ac_prev
=program_prefix
;;
1782 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1783 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1784 program_prefix
=$ac_optarg ;;
1786 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1787 |
--program-suf |
--program-su |
--program-s)
1788 ac_prev
=program_suffix
;;
1789 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1790 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1791 program_suffix
=$ac_optarg ;;
1793 -program-transform-name |
--program-transform-name \
1794 |
--program-transform-nam |
--program-transform-na \
1795 |
--program-transform-n |
--program-transform- \
1796 |
--program-transform |
--program-transfor \
1797 |
--program-transfo |
--program-transf \
1798 |
--program-trans |
--program-tran \
1799 |
--progr-tra |
--program-tr |
--program-t)
1800 ac_prev
=program_transform_name
;;
1801 -program-transform-name=* |
--program-transform-name=* \
1802 |
--program-transform-nam=* |
--program-transform-na=* \
1803 |
--program-transform-n=* |
--program-transform-=* \
1804 |
--program-transform=* |
--program-transfor=* \
1805 |
--program-transfo=* |
--program-transf=* \
1806 |
--program-trans=* |
--program-tran=* \
1807 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1808 program_transform_name
=$ac_optarg ;;
1810 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1812 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1813 pdfdir
=$ac_optarg ;;
1815 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1817 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1820 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1821 |
-silent |
--silent |
--silen |
--sile |
--sil)
1824 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1826 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1828 sbindir
=$ac_optarg ;;
1830 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1831 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1832 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1834 ac_prev
=sharedstatedir
;;
1835 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1836 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1837 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1839 sharedstatedir
=$ac_optarg ;;
1841 -site |
--site |
--sit)
1843 -site=* |
--site=* |
--sit=*)
1846 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1848 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1849 srcdir
=$ac_optarg ;;
1851 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1852 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1853 ac_prev
=sysconfdir
;;
1854 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1855 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1856 sysconfdir
=$ac_optarg ;;
1858 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1859 ac_prev
=target_alias
;;
1860 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1861 target_alias
=$ac_optarg ;;
1863 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1866 -version |
--version |
--versio |
--versi |
--vers |
-V)
1867 ac_init_version
=: ;;
1870 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1871 # Reject names that are not valid shell variable names.
1872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1873 as_fn_error
"invalid package name: $ac_useropt"
1874 ac_useropt_orig
=$ac_useropt
1875 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1876 case $ac_user_opts in
1880 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1881 ac_unrecognized_sep
=', ';;
1883 eval with_
$ac_useropt=\
$ac_optarg ;;
1885 -without-* |
--without-*)
1886 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1887 # Reject names that are not valid shell variable names.
1888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1889 as_fn_error
"invalid package name: $ac_useropt"
1890 ac_useropt_orig
=$ac_useropt
1891 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1892 case $ac_user_opts in
1896 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1897 ac_unrecognized_sep
=', ';;
1899 eval with_
$ac_useropt=no
;;
1902 # Obsolete; use --with-x.
1905 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1906 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1907 ac_prev
=x_includes
;;
1908 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1909 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1910 x_includes
=$ac_optarg ;;
1912 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1913 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1914 ac_prev
=x_libraries
;;
1915 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1916 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1917 x_libraries
=$ac_optarg ;;
1919 -*) as_fn_error
"unrecognized option: \`$ac_option'
1920 Try \`$0 --help' for more information."
1924 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1925 # Reject names that are not valid shell variable names.
1926 case $ac_envvar in #(
1927 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1928 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1930 eval $ac_envvar=\
$ac_optarg
1931 export $ac_envvar ;;
1934 # FIXME: should be removed in autoconf 3.0.
1935 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1936 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1937 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1938 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1944 if test -n "$ac_prev"; then
1945 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1946 as_fn_error
"missing argument to $ac_option"
1949 if test -n "$ac_unrecognized_opts"; then
1950 case $enable_option_checking in
1952 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1953 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1957 # Check all directory arguments for consistency.
1958 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1959 datadir sysconfdir sharedstatedir localstatedir includedir \
1960 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1961 libdir localedir mandir
1963 eval ac_val
=\$
$ac_var
1964 # Remove trailing slashes.
1967 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1968 eval $ac_var=\
$ac_val;;
1970 # Be sure to have absolute directory names.
1972 [\\/$
]* | ?
:[\\/]* ) continue;;
1973 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1975 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1978 # There might be people who depend on the old broken behavior: `$host'
1979 # used to hold the argument of --host etc.
1980 # FIXME: To remove some day.
1983 target
=$target_alias
1985 # FIXME: To remove some day.
1986 if test "x$host_alias" != x
; then
1987 if test "x$build_alias" = x
; then
1988 cross_compiling
=maybe
1989 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1990 If a cross compiler is detected then cross compile mode will be used." >&2
1991 elif test "x$build_alias" != "x$host_alias"; then
1997 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1999 test "$silent" = yes && exec 6>/dev
/null
2002 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2003 ac_ls_di
=`ls -di .` &&
2004 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2005 as_fn_error
"working directory cannot be determined"
2006 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2007 as_fn_error
"pwd does not report name of working directory"
2010 # Find the source files, if location was not specified.
2011 if test -z "$srcdir"; then
2012 ac_srcdir_defaulted
=yes
2013 # Try the directory containing this script, then the parent directory.
2014 ac_confdir
=`$as_dirname -- "$as_myself" ||
2015 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2016 X"$as_myself" : 'X\(//\)[^/]' \| \
2017 X"$as_myself" : 'X\(//\)$' \| \
2018 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2019 $as_echo X"$as_myself" |
2020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2038 if test ! -r "$srcdir/$ac_unique_file"; then
2042 ac_srcdir_defaulted
=no
2044 if test ! -r "$srcdir/$ac_unique_file"; then
2045 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2046 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2048 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2050 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2052 # When building in place, set srcdir=.
2053 if test "$ac_abs_confdir" = "$ac_pwd"; then
2056 # Remove unnecessary trailing slashes from srcdir.
2057 # Double slashes in file names in object file debugging info
2058 # mess up M-x gdb in Emacs.
2060 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2062 for ac_var
in $ac_precious_vars; do
2063 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2064 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2065 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2066 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2070 # Report the --help message.
2072 if test "$ac_init_help" = "long"; then
2073 # Omit some internal or obsolete options to make the list less imposing.
2074 # This message is too long to be a string in the A/UX 3.1 sh.
2076 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2078 Usage: $0 [OPTION]... [VAR=VALUE]...
2080 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2081 VAR=VALUE. See below for descriptions of some of the useful variables.
2083 Defaults for the options are specified in brackets.
2086 -h, --help display this help and exit
2087 --help=short display options specific to this package
2088 --help=recursive display the short help of all the included packages
2089 -V, --version display version information and exit
2090 -q, --quiet, --silent do not print \`checking...' messages
2091 --cache-file=FILE cache test results in FILE [disabled]
2092 -C, --config-cache alias for \`--cache-file=config.cache'
2093 -n, --no-create do not create output files
2094 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2096 Installation directories:
2097 --prefix=PREFIX install architecture-independent files in PREFIX
2098 [$ac_default_prefix]
2099 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2102 By default, \`make install' will install all the files in
2103 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2104 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2105 for instance \`--prefix=\$HOME'.
2107 For better control, use the options below.
2109 Fine tuning of the installation directories:
2110 --bindir=DIR user executables [EPREFIX/bin]
2111 --sbindir=DIR system admin executables [EPREFIX/sbin]
2112 --libexecdir=DIR program executables [EPREFIX/libexec]
2113 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2114 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2115 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2116 --libdir=DIR object code libraries [EPREFIX/lib]
2117 --includedir=DIR C header files [PREFIX/include]
2118 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2119 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2120 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2121 --infodir=DIR info documentation [DATAROOTDIR/info]
2122 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2123 --mandir=DIR man documentation [DATAROOTDIR/man]
2124 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2125 --htmldir=DIR html documentation [DOCDIR]
2126 --dvidir=DIR dvi documentation [DOCDIR]
2127 --pdfdir=DIR pdf documentation [DOCDIR]
2128 --psdir=DIR ps documentation [DOCDIR]
2134 --program-prefix=PREFIX prepend PREFIX to installed program names
2135 --program-suffix=SUFFIX append SUFFIX to installed program names
2136 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2139 --x-includes=DIR X include files are
in DIR
2140 --x-libraries=DIR X library files are
in DIR
2143 --build=BUILD configure
for building on BUILD
[guessed
]
2144 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2148 if test -n "$ac_init_help"; then
2149 case $ac_init_help in
2150 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2155 --disable-option-checking ignore unrecognized
--enable/--with options
2156 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2157 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2158 --disable-ns-self-contained
2159 disable self contained build under NeXTstep
2160 --enable-locallisppath=PATH
2161 directories Emacs should search
for lisp files
2162 specific to this site
2163 --enable-checking[=LIST
]
2164 enable expensive run-time checks. With LIST
, enable
2165 only specific categories of checks. Categories are
:
2166 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2167 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2168 --enable-check-lisp-object-type
2169 enable compile
time checks
for the Lisp_Object data
2170 type. This is useful
for development
for catching
2171 certain types of bugs.
2172 --enable-profiling build emacs with low-level
, gprof profiling support.
2173 Mainly useful
for debugging Emacs itself. May not
2174 work on all platforms. Stops profiler.el working.
2175 --enable-autodepend automatically generate dependencies to .h-files.
2176 Requires GNU Make and Gcc. Enabled
if GNU Make and
2178 --enable-gtk-deprecation-warnings
2179 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2180 --disable-dependency-tracking speeds up one-time build
2181 --enable-dependency-tracking do not reject slow dependency extractors
2182 --disable-largefile omit support
for large files
2183 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2184 intended
for developers
, and may generate false
2185 alarms when used with older or non-GNU development
2187 --enable-link-time-optimization
2188 build emacs with link-time optimization. This is
2189 supported only
for GCC since
4.5.0.
2192 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2193 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2194 --without-all omit almost all features and build small executable
2195 with minimal dependencies
2196 --without-pop don
't support POP mail retrieval with movemail
2197 --with-kerberos support Kerberos-authenticated POP
2198 --with-kerberos5 support Kerberos version 5 authenticated POP
2199 --with-hesiod support Hesiod to get the POP server host
2200 --with-mmdf support MMDF mailboxes
2201 --with-mail-unlink unlink, rather than empty, mail spool after reading
2202 --with-mailhost=HOSTNAME
2203 string giving default POP mail host
2204 --without-sound don't compile with sound support
2205 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2206 gtk3
, lucid or athena
, motif
, no
)
2207 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2208 --without-xpm don
't compile with XPM image support
2209 --without-jpeg don't compile with JPEG image support
2210 --without-tiff don
't compile with TIFF image support
2211 --without-gif don't compile with GIF image support
2212 --without-png don
't compile with PNG image support
2213 --without-rsvg don't compile with SVG image support
2214 --without-xml2 don
't compile with XML parsing support
2215 --without-imagemagick don't compile with ImageMagick image support
2216 --without-xft don
't use XFT for anti aliased fonts
2217 --without-libotf don't use libotf
for OpenType font support
2218 --without-m17n-flt don
't use m17n-flt for text shaping
2219 --without-toolkit-scroll-bars
2220 don't use Motif or Xaw3d scroll bars
2221 --without-xaw3d don
't use Xaw3d
2222 --without-xim don't use X11 XIM
2223 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2224 --with-w32 use native MS Windows GUI
2225 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2227 --without-dbus don't compile with D-Bus support
2228 --without-gconf don
't compile with GConf support
2229 --without-gsettings don't compile with GSettings support
2230 --without-selinux don
't compile with SELinux support
2231 --without-acl don't compile with ACL support
2232 --without-gnutls don
't use -lgnutls for SSL/TLS support
2233 --without-inotify don't compile with inotify
(file-watch
) support
2234 --without-makeinfo don
't require makeinfo for building manuals
2235 --without-compress-info don't
compress the installed Info pages
2236 --with-pkg-config-prog=FILENAME
2237 file name of pkg-config
for finding GTK and librsvg
2238 --with-gameuser=USER user
for shared game score files
2239 --with-gnustep-conf=FILENAME
2240 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2241 or
/etc
/GNUstep
/GNUstep.conf
2242 --with-x use the X Window System
2244 Some influential environment variables
:
2245 CC C compiler
command
2246 CFLAGS C compiler flags
2247 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2248 nonstandard directory
<lib dir
>
2249 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2250 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2251 you have headers
in a nonstandard directory
<include dir
>
2253 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2255 Use these variables to override the choices made by
`configure' or to help
2256 it to find libraries and programs with nonstandard names/locations.
2258 Report bugs to the package provider.
2263 if test "$ac_init_help" = "recursive"; then
2264 # If there are subdirs, report their specific --help.
2265 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2266 test -d "$ac_dir" ||
2267 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2274 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2275 # A ".." for each directory in $ac_dir_suffix.
2276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2277 case $ac_top_builddir_sub in
2278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2282 ac_abs_top_builddir=$ac_pwd
2283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2284 # for backward compatibility:
2285 ac_top_builddir=$ac_top_build_prefix
2288 .) # We are building in place.
2290 ac_top_srcdir=$ac_top_builddir_sub
2291 ac_abs_top_srcdir=$ac_pwd ;;
2292 [\\/]* | ?:[\\/]* ) # Absolute name.
2293 ac_srcdir=$srcdir$ac_dir_suffix;
2294 ac_top_srcdir=$srcdir
2295 ac_abs_top_srcdir=$srcdir ;;
2297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2298 ac_top_srcdir=$ac_top_build_prefix$srcdir
2299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2303 cd "$ac_dir" || { ac_status=$?; continue; }
2304 # Check for guested configure.
2305 if test -f "$ac_srcdir/configure.gnu"; then
2307 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2308 elif test -f "$ac_srcdir/configure"; then
2310 $SHELL "$ac_srcdir/configure" --help=recursive
2312 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2314 cd "$ac_pwd" || { ac_status=$?; break; }
2318 test -n "$ac_init_help" && exit $ac_status
2319 if $ac_init_version; then
2321 emacs configure 24.3.50
2322 generated by GNU Autoconf 2.65
2324 Copyright (C) 2009 Free Software Foundation, Inc.
2325 This configure script is free software; the Free Software Foundation
2326 gives unlimited permission to copy, distribute and modify it.
2331 ## ------------------------ ##
2332 ## Autoconf initialization. ##
2333 ## ------------------------ ##
2335 # ac_fn_c_try_compile LINENO
2336 # --------------------------
2337 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2338 ac_fn_c_try_compile ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 rm -f conftest.$ac_objext
2342 if { { ac_try="$ac_compile"
2344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2345 *) ac_try_echo
=$ac_try;;
2347 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348 $as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_compile") 2>conftest.err
2351 if test -s conftest.err
; then
2352 grep -v '^ *+' conftest.err
>conftest.er1
2353 cat conftest.er1
>&5
2354 mv -f conftest.er1 conftest.err
2356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357 test $ac_status = 0; } && {
2358 test -z "$ac_c_werror_flag" ||
2359 test ! -s conftest.err
2360 } && test -s conftest.
$ac_objext; then :
2363 $as_echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.
$ac_ext >&5
2368 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2369 as_fn_set_status
$ac_retval
2371 } # ac_fn_c_try_compile
2373 # ac_fn_c_try_cpp LINENO
2374 # ----------------------
2375 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2378 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2379 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 $as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2388 if test -s conftest.err; then
2389 grep -v '^ *+' conftest.err >conftest.er1
2390 cat conftest.er1 >&5
2391 mv -f conftest.er1 conftest.err
2393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; } >/dev/null && {
2395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2396 test ! -s conftest.err
2400 $as_echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 as_fn_set_status $ac_retval
2410 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2411 # -------------------------------------------------------
2412 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2413 # the include files in INCLUDES and setting the cache variable VAR
2415 ac_fn_c_check_header_mongrel ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2428 # Is the header compilable?
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2430 $as_echo_n "checking $2 usability... " >&6; }
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2436 if ac_fn_c_try_compile "$LINENO"; then :
2437 ac_header_compiler=yes
2439 ac_header_compiler=no
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2443 $as_echo "$ac_header_compiler" >&6; }
2445 # Is the header present?
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2447 $as_echo_n "checking $2 presence... " >&6; }
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2452 if ac_fn_c_try_cpp "$LINENO"; then :
2453 ac_header_preproc=yes
2455 ac_header_preproc=no
2457 rm -f conftest.err conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2459 $as_echo "$ac_header_preproc" >&6; }
2461 # So? What about this header?
2462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2465 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2471 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2473 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2475 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2477 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2479 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2487 eval "$3=\$ac_header_compiler"
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 } # ac_fn_c_check_header_mongrel
2497 # ac_fn_c_try_run LINENO
2498 # ----------------------
2499 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2500 # that executables *can* be run.
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 if { { ac_try="$ac_link"
2506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2507 *) ac_try_echo
=$ac_try;;
2509 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_link") 2>&5
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2515 { { case "(($ac_try" in
2516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_try") 2>&5
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; }; }; then :
2527 $as_echo "$as_me: program exited with status $ac_status" >&5
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2531 ac_retval=$ac_status
2533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 as_fn_set_status $ac_retval
2539 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2540 # -------------------------------------------------------
2541 # Tests whether HEADER exists and can be compiled using the include files in
2542 # INCLUDES, setting the cache variable VAR accordingly.
2543 ac_fn_c_check_header_compile ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2556 if ac_fn_c_try_compile "$LINENO"; then :
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568 } # ac_fn_c_check_header_compile
2570 # ac_fn_c_try_link LINENO
2571 # -----------------------
2572 # Try to link conftest.$ac_ext, and return whether this succeeded.
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 rm -f conftest.$ac_objext conftest$ac_exeext
2577 if { { ac_try="$ac_link"
2579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2580 *) ac_try_echo
=$ac_try;;
2582 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link") 2>conftest.err
2586 if test -s conftest.err
; then
2587 grep -v '^ *+' conftest.err
>conftest.er1
2588 cat conftest.er1
>&5
2589 mv -f conftest.er1 conftest.err
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && {
2593 test -z "$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest
$ac_exeext && {
2596 test "$cross_compiling" = yes ||
2597 $as_test_x conftest
$ac_exeext
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.
$ac_ext >&5
2606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2608 # interfere with the next link command; also delete a directory that is
2609 # left behind by Apple's compiler. We do this before executing the actions.
2610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2612 as_fn_set_status
$ac_retval
2614 } # ac_fn_c_try_link
2616 # ac_fn_c_check_decl LINENO SYMBOL VAR
2617 # ------------------------------------
2618 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2619 ac_fn_c_check_decl
()
2621 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2623 $as_echo_n "checking whether $2 is declared... " >&6; }
2624 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2625 $as_echo_n "(cached) " >&6
2627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2641 if ac_fn_c_try_compile
"$LINENO"; then :
2646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2653 } # ac_fn_c_check_decl
2655 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2656 # ----------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_c_check_header_preproc
()
2660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2670 if ac_fn_c_try_cpp
"$LINENO"; then :
2675 rm -f conftest.err conftest.
$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2682 } # ac_fn_c_check_header_preproc
2684 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2685 # ----------------------------------------------------
2686 # Tries to find if the field MEMBER exists in type AGGR, after including
2687 # INCLUDES, setting cache variable VAR accordingly.
2688 ac_fn_c_check_member
()
2690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2692 $as_echo_n "checking for $2.$3... " >&6; }
2693 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2694 $as_echo_n "(cached) " >&6
2696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2709 if ac_fn_c_try_compile
"$LINENO"; then :
2712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2719 if (sizeof ac_aggr.$3)
2725 if ac_fn_c_try_compile
"$LINENO"; then :
2730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736 $as_echo "$ac_res" >&6; }
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2739 } # ac_fn_c_check_member
2741 # ac_fn_c_check_func LINENO FUNC VAR
2742 # ----------------------------------
2743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2744 ac_fn_c_check_func
()
2746 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2756 #define $2 innocuous_$2
2758 /* System header to define __stub macros and hopefully few prototypes,
2759 which can conflict with char $2 (); below.
2760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 <limits.h> exists even on freestanding compilers. */
2764 # include <limits.h>
2766 # include <assert.h>
2771 /* Override any GCC internal prototype to avoid an error.
2772 Use char because int might match the return type of a GCC
2773 builtin and then its argument prototype would still apply. */
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined __stub_$2 || defined __stub___$2
2793 if ac_fn_c_try_link
"$LINENO"; then :
2798 rm -f core conftest.err conftest.
$ac_objext \
2799 conftest
$ac_exeext conftest.
$ac_ext
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2806 } # ac_fn_c_check_func
2808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2809 # -------------------------------------------
2810 # Tests whether TYPE exists after having included INCLUDES, setting cache
2811 # variable VAR accordingly.
2812 ac_fn_c_check_type
()
2814 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2816 $as_echo_n "checking for $2... " >&6; }
2817 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2818 $as_echo_n "(cached) " >&6
2821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2833 if ac_fn_c_try_compile
"$LINENO"; then :
2834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2846 if ac_fn_c_try_compile
"$LINENO"; then :
2851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857 $as_echo "$ac_res" >&6; }
2858 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2860 } # ac_fn_c_check_type
2862 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2863 # --------------------------------------------
2864 # Tries to find the compile-time value of EXPR in a program that includes
2865 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2867 ac_fn_c_compute_int
()
2869 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2870 if test "$cross_compiling" = yes; then
2871 # Depending upon the size, compute the lo and hi bounds.
2872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2878 static int test_array [1 - 2 * !(($2) >= 0)];
2885 if ac_fn_c_try_compile
"$LINENO"; then :
2888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2901 if ac_fn_c_try_compile
"$LINENO"; then :
2902 ac_hi
=$ac_mid; break
2904 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2905 if test $ac_lo -le $ac_mid; then
2909 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2920 static int test_array [1 - 2 * !(($2) < 0)];
2927 if ac_fn_c_try_compile
"$LINENO"; then :
2930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2936 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2943 if ac_fn_c_try_compile
"$LINENO"; then :
2944 ac_lo
=$ac_mid; break
2946 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2947 if test $ac_mid -le $ac_hi; then
2951 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2961 # Binary search between lo and hi bounds.
2962 while test "x$ac_lo" != "x$ac_hi"; do
2963 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2977 if ac_fn_c_try_compile
"$LINENO"; then :
2980 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2985 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
2992 static long int longval () { return $2; }
2993 static unsigned long int ulongval () { return $2; }
3000 FILE *f = fopen ("conftest.val", "w");
3005 long int i = longval ();
3008 fprintf (f, "%ld", i);
3012 unsigned long int i = ulongval ();
3015 fprintf (f, "%lu", i);
3017 /* Do not output a trailing newline, as this causes \r\n confusion
3018 on some platforms. */
3019 return ferror (f) || fclose (f) != 0;
3025 if ac_fn_c_try_run
"$LINENO"; then :
3026 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3030 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3031 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3035 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3036 as_fn_set_status
$ac_retval
3038 } # ac_fn_c_compute_int
3039 cat >config.log
<<_ACEOF
3040 This file contains any messages produced by compilers while
3041 running configure, to aid debugging if configure makes a mistake.
3043 It was created by emacs $as_me 24.3.50, which was
3044 generated by GNU Autoconf 2.65. Invocation command line was
3056 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3057 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3058 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3059 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3060 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3062 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3063 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3065 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3066 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3067 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3068 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3069 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3070 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3071 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 $as_echo "PATH: $as_dir"
3096 # Keep a trace of the command line.
3097 # Strip out --no-create and --no-recursion so they do not pile up.
3098 # Strip out --silent because we don't want to record it for future runs.
3099 # Also quote any args containing shell meta-characters.
3100 # Make two passes to allow for proper duplicate-argument suppression.
3104 ac_must_keep_next
=false
3110 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3111 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3112 |
-silent |
--silent |
--silen |
--sile |
--sil)
3115 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3118 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3120 as_fn_append ac_configure_args1
" '$ac_arg'"
3121 if test $ac_must_keep_next = true
; then
3122 ac_must_keep_next
=false
# Got value, back to normal.
3125 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3126 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3127 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3128 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3129 case "$ac_configure_args0 " in
3130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3133 -* ) ac_must_keep_next
=true
;;
3136 as_fn_append ac_configure_args
" '$ac_arg'"
3141 { ac_configure_args0
=; unset ac_configure_args0
;}
3142 { ac_configure_args1
=; unset ac_configure_args1
;}
3144 # When interrupted or exit'd, cleanup temporary files, and complete
3145 # config.log. We remove comments because anyway the quotes in there
3146 # would cause problems or look ugly.
3147 # WARNING: Use '\'' to represent an apostrophe within the trap.
3148 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3149 trap 'exit_status=$?
3150 # Save into config.log some information that might help in debugging.
3155 ## ---------------- ##
3156 ## Cache variables. ##
3157 ## ---------------- ##
3160 # The following way of writing the cache mishandles newlines in values,
3162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3163 eval ac_val=\$$ac_var
3167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3168 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171 _ | IFS | as_nl) ;; #(
3172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3173 *) { eval $ac_var=; unset $ac_var;} ;;
3178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3179 *${as_nl}ac_space=\ *)
3181 "s/'\''/'\''\\\\'\'''\''/g;
3182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3193 ## ----------------- ##
3194 ## Output variables. ##
3195 ## ----------------- ##
3198 for ac_var in $ac_subst_vars
3200 eval ac_val=\$$ac_var
3202 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 $as_echo "$ac_var='\''$ac_val'\''"
3208 if test -n "$ac_subst_files"; then
3210 ## ------------------- ##
3211 ## File substitutions. ##
3212 ## ------------------- ##
3215 for ac_var
in $ac_subst_files
3217 eval ac_val
=\$
$ac_var
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3221 $as_echo "$ac_var='\''$ac_val'\''"
3226 if test -s confdefs.h; then
3236 test "$ac_signal" != 0 &&
3237 $as_echo "$as_me: caught signal $ac_signal"
3238 $as_echo "$as_me: exit $exit_status"
3240 rm -f core *.core core.conftest.* &&
3241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3244 for ac_signal
in 1 2 13 15; do
3245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3250 rm -f -r conftest
* confdefs.h
3252 $as_echo "/* confdefs.h */" > confdefs.h
3254 # Predefined preprocessor variables.
3256 cat >>confdefs.h
<<_ACEOF
3257 #define PACKAGE_NAME "$PACKAGE_NAME"
3260 cat >>confdefs.h
<<_ACEOF
3261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3264 cat >>confdefs.h
<<_ACEOF
3265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3268 cat >>confdefs.h
<<_ACEOF
3269 #define PACKAGE_STRING "$PACKAGE_STRING"
3272 cat >>confdefs.h
<<_ACEOF
3273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3276 cat >>confdefs.h
<<_ACEOF
3277 #define PACKAGE_URL "$PACKAGE_URL"
3281 # Let the site file select an alternate cache file if it wants to.
3282 # Prefer an explicitly selected file to automatically selected ones.
3285 if test -n "$CONFIG_SITE"; then
3286 ac_site_file1
=$CONFIG_SITE
3287 elif test "x$prefix" != xNONE
; then
3288 ac_site_file1
=$prefix/share
/config.site
3289 ac_site_file2
=$prefix/etc
/config.site
3291 ac_site_file1
=$ac_default_prefix/share
/config.site
3292 ac_site_file2
=$ac_default_prefix/etc
/config.site
3294 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3296 test "x$ac_site_file" = xNONE
&& continue
3297 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
3305 if test -r "$cache_file"; then
3306 # Some versions of bash will fail to source /dev/null (special files
3307 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3308 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3310 $as_echo "$as_me: loading cache $cache_file" >&6;}
3312 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3313 *) .
"./$cache_file";;
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3318 $as_echo "$as_me: creating cache $cache_file" >&6;}
3322 as_fn_append ac_header_list
" linux/version.h"
3323 as_fn_append ac_header_list
" sys/systeminfo.h"
3324 as_fn_append ac_header_list
" coff.h"
3325 as_fn_append ac_header_list
" pty.h"
3326 as_fn_append ac_header_list
" sys/resource.h"
3327 as_fn_append ac_header_list
" sys/utsname.h"
3328 as_fn_append ac_header_list
" pwd.h"
3329 as_fn_append ac_header_list
" utmp.h"
3330 as_fn_append ac_header_list
" util.h"
3331 as_fn_append ac_header_list
" sys/socket.h"
3332 as_fn_append ac_header_list
" stdlib.h"
3333 as_fn_append ac_header_list
" unistd.h"
3334 as_fn_append ac_header_list
" sys/param.h"
3335 as_fn_append ac_header_list
" pthread.h"
3336 as_fn_append ac_header_list
" malloc/malloc.h"
3337 as_fn_append ac_header_list
" maillock.h"
3338 as_fn_append ac_header_list
" sys/un.h"
3339 as_fn_append ac_func_list
" tzset"
3340 as_fn_append ac_func_list
" readlinkat"
3341 as_fn_append ac_header_list
" dirent.h"
3342 as_fn_append ac_header_list
" execinfo.h"
3343 as_fn_append ac_func_list
" faccessat"
3344 as_fn_append ac_func_list
" fdopendir"
3345 as_fn_append ac_header_list
" stdio_ext.h"
3346 as_fn_append ac_func_list
" __fpending"
3347 as_fn_append ac_func_list
" fstatat"
3348 as_fn_append ac_func_list
" fsync"
3349 gl_getopt_required
=GNU
3350 as_fn_append ac_header_list
" getopt.h"
3351 as_fn_append ac_func_list
" gettimeofday"
3352 as_fn_append ac_func_list
" nanotime"
3353 as_fn_append ac_header_list
" sys/time.h"
3354 as_fn_append ac_header_list
" wchar.h"
3355 as_fn_append ac_header_list
" stdint.h"
3356 as_fn_append ac_header_list
" inttypes.h"
3357 as_fn_append ac_func_list
" lstat"
3358 as_fn_append ac_header_list
" sys/select.h"
3359 as_fn_append ac_func_list
" pselect"
3360 as_fn_append ac_func_list
" pthread_sigmask"
3361 as_fn_append ac_func_list
" readlink"
3362 as_fn_append ac_func_list
" strtoimax"
3363 as_fn_append ac_func_list
" strtoumax"
3364 as_fn_append ac_func_list
" symlink"
3365 as_fn_append ac_header_list
" sys/stat.h"
3366 as_fn_append ac_func_list
" localtime_r"
3367 as_fn_append ac_header_list
" utime.h"
3368 as_fn_append ac_func_list
" futimes"
3369 as_fn_append ac_func_list
" futimesat"
3370 as_fn_append ac_func_list
" futimens"
3371 as_fn_append ac_func_list
" utimensat"
3372 as_fn_append ac_func_list
" lutimes"
3373 # Check that the precious variables saved in the cache have kept the same
3375 ac_cache_corrupted
=false
3376 for ac_var
in $ac_precious_vars; do
3377 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3378 eval ac_new_set
=\
$ac_env_${ac_var}_set
3379 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3380 eval ac_new_val
=\
$ac_env_${ac_var}_value
3381 case $ac_old_set,$ac_new_set in
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3385 ac_cache_corrupted
=: ;;
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3389 ac_cache_corrupted
=: ;;
3392 if test "x$ac_old_val" != "x$ac_new_val"; then
3393 # differences in whitespace do not lead to failure.
3394 ac_old_val_w
=`echo x $ac_old_val`
3395 ac_new_val_w
=`echo x $ac_new_val`
3396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3399 ac_cache_corrupted
=:
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3403 eval $ac_var=\
$ac_old_val
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3411 # Pass precious variables to config.status.
3412 if test "$ac_new_set" = set; then
3414 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3415 *) ac_arg
=$ac_var=$ac_new_val ;;
3417 case " $ac_configure_args " in
3418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3419 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3423 if $ac_cache_corrupted; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3428 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3430 ## -------------------- ##
3431 ## Main body of script. ##
3432 ## -------------------- ##
3435 ac_cpp
='$CPP $CPPFLAGS'
3436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3442 emacs_config_options
="$@"
3443 ## Add some environment variables, if they were passed via the environment
3444 ## rather than on the command-line.
3445 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3446 case "$emacs_config_options" in
3447 *$var=*) continue ;;
3450 test x
"$val" = x
&& continue
3451 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3454 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3458 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3459 for ac_t
in install-sh
install.sh shtool
; do
3460 if test -f "$ac_dir/$ac_t"; then
3462 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3467 if test -z "$ac_aux_dir"; then
3468 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3471 # These three variables are undocumented and unsupported,
3472 # and are intended to be withdrawn in a future Autoconf release.
3473 # They can cause serious problems if a builder's source tree is in a directory
3474 # whose full name contains unusual characters.
3475 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3476 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3477 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3480 am__api_version
='1.11'
3482 # Find a good install program. We prefer a C program (faster),
3483 # so one script is as good as another. But avoid the broken or
3484 # incompatible versions:
3485 # SysV /etc/install, /usr/sbin/install
3486 # SunOS /usr/etc/install
3487 # IRIX /sbin/install
3489 # AmigaOS /C/install, which installs bootblocks on floppy discs
3490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3493 # OS/2's system install, which has a completely different semantic
3494 # ./install, which can be erroneously created by make from ./install.sh.
3495 # Reject install programs that cannot install multiple files.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3497 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3498 if test -z "$INSTALL"; then
3499 if test "${ac_cv_path_install+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir
=.
3507 # Account for people who put trailing slashes in PATH elements.
3508 case $as_dir/ in #((
3509 .
/ | .
// |
/[cC
]/* | \
3510 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3511 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3514 # OSF1 and SCO ODT 3.0 have their own names for install.
3515 # Don't use installbsd from OSF since it installs stuff as root
3517 for ac_prog
in ginstall scoinst
install; do
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3520 if test $ac_prog = install &&
3521 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3522 # AIX install. It has an incompatible calling convention.
3524 elif test $ac_prog = install &&
3525 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3526 # program-specific install script used by HP pwplus--don't use.
3529 rm -rf conftest.one conftest.two conftest.dir
3530 echo one
> conftest.one
3531 echo two
> conftest.two
3533 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3534 test -s conftest.one
&& test -s conftest.two
&&
3535 test -s conftest.dir
/conftest.one
&&
3536 test -s conftest.dir
/conftest.two
3538 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3551 rm -rf conftest.one conftest.two conftest.dir
3554 if test "${ac_cv_path_install+set}" = set; then
3555 INSTALL
=$ac_cv_path_install
3557 # As a last resort, use the slow shell script. Don't cache a
3558 # value for INSTALL within a source directory, because that will
3559 # break other packages using the cache if that directory is
3560 # removed, or if the value is a relative name.
3561 INSTALL
=$ac_install_sh
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3565 $as_echo "$INSTALL" >&6; }
3567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3568 # It thinks the first close brace ends the variable substitution.
3569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3573 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3576 $as_echo_n "checking whether build environment is sane... " >&6; }
3579 echo timestamp
> conftest.
file
3580 # Reject unsafe characters in $srcdir or the absolute working directory
3581 # name. Accept space and tab only in the latter.
3585 *[\\\"\
#\$\&\'\`$am_lf]*)
3586 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3589 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3590 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3593 # Do `set' in a subshell so we don't clobber the current shell's
3594 # arguments. Must try -L first in case configure is actually a
3595 # symlink; some systems play weird games with the mod time of symlinks
3596 # (eg FreeBSD returns the mod time of the symlink's containing
3599 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3600 if test "$*" = "X"; then
3602 set X
`ls -t "$srcdir/configure" conftest.file`
3605 if test "$*" != "X $srcdir/configure conftest.file" \
3606 && test "$*" != "X conftest.file $srcdir/configure"; then
3608 # If neither matched, then we have a broken ls. This can happen
3609 # if, for instance, CONFIG_SHELL is bash and it inherits a
3610 # broken ls alias from the environment. This has actually
3611 # happened. Such a system could not be considered "sane".
3612 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3613 alias in your environment" "$LINENO" 5
3616 test "$2" = conftest.
file
3622 as_fn_error
"newly created file is older than distributed files!
3623 Check your system clock" "$LINENO" 5
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627 test "$program_prefix" != NONE
&&
3628 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3629 # Use a double $ so make ignores it.
3630 test "$program_suffix" != NONE
&&
3631 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3632 # Double any \ or $.
3633 # By default was `s,x,x', remove it if useless.
3634 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3635 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3637 # expand $ac_aux_dir to an absolute path
3638 am_aux_dir
=`cd $ac_aux_dir && pwd`
3640 if test x
"${MISSING+set}" != xset
; then
3643 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3645 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3648 # Use eval to expand $SHELL
3649 if eval "$MISSING --run true"; then
3650 am_missing_run
="$MISSING --run "
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3654 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3657 if test x
"${install_sh}" != xset
; then
3660 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3662 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3666 # Installed binaries are usually stripped using `strip' when the user
3667 # run `make install-strip'. However `strip' might not be the right
3668 # tool to use in cross-compilation environments, therefore Automake
3669 # will honor the `STRIP' environment variable to overrule this program.
3670 if test "$cross_compiling" != no
; then
3671 if test -n "$ac_tool_prefix"; then
3672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if test "${ac_cv_prog_STRIP+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3679 if test -n "$STRIP"; then
3680 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir
=.
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 STRIP
=$ac_cv_prog_STRIP
3700 if test -n "$STRIP"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3702 $as_echo "$STRIP" >&6; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3710 if test -z "$ac_cv_prog_STRIP"; then
3712 # Extract the first word of "strip", so it can be a program name with args.
3713 set dummy strip
; ac_word
=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3719 if test -n "$ac_ct_STRIP"; then
3720 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir
=.
3727 for ac_exec_ext
in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_ac_ct_STRIP
="strip"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3740 if test -n "$ac_ct_STRIP"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3742 $as_echo "$ac_ct_STRIP" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3748 if test "x$ac_ct_STRIP" = x
; then
3751 case $cross_compiling:$ac_tool_warned in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3755 ac_tool_warned
=yes ;;
3760 STRIP
="$ac_cv_prog_STRIP"
3764 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3767 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3768 if test -z "$MKDIR_P"; then
3769 if test "${ac_cv_path_mkdir+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3773 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3776 test -z "$as_dir" && as_dir
=.
3777 for ac_prog
in mkdir gmkdir
; do
3778 for ac_exec_ext
in '' $ac_executable_extensions; do
3779 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3780 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3781 'mkdir (GNU coreutils) '* | \
3782 'mkdir (coreutils) '* | \
3783 'mkdir (fileutils) '4.1*)
3784 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3794 test -d .
/--version && rmdir .
/--version
3795 if test "${ac_cv_path_mkdir+set}" = set; then
3796 MKDIR_P
="$ac_cv_path_mkdir -p"
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for MKDIR_P within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 MKDIR_P
="$ac_install_sh -d"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3806 $as_echo "$MKDIR_P" >&6; }
3810 [\\/$
]* | ?
:[\\/]*) ;;
3811 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3814 for ac_prog
in gawk mawk nawk
awk
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817 set dummy
$ac_prog; ac_word
=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if test "${ac_cv_prog_AWK+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$AWK"; then
3824 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir
=.
3831 for ac_exec_ext
in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_AWK
="$ac_prog"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 if test -n "$AWK"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3846 $as_echo "$AWK" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3853 test -n "$AWK" && break
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3859 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3860 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3861 $as_echo_n "(cached) " >&6
3863 cat >conftest.
make <<\_ACEOF
3866 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3871 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3873 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3877 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3884 SET_MAKE
="MAKE=${MAKE-make}"
3887 rm -rf .tst
2>/dev
/null
3888 mkdir .tst
2>/dev
/null
3889 if test -d .tst
; then
3894 rmdir .tst
2>/dev
/null
3896 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3898 # is not polluted with repeated "-I."
3899 am__isrc
=' -I$(srcdir)'
3900 # test to see if srcdir already configured
3901 if test -f $srcdir/config.status
; then
3902 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3906 # test whether we have cygpath
3907 if test -z "$CYGPATH_W"; then
3908 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3909 CYGPATH_W
='cygpath -w'
3916 # Define the identity of the package.
3921 cat >>confdefs.h
<<_ACEOF
3922 #define PACKAGE "$PACKAGE"
3926 cat >>confdefs.h
<<_ACEOF
3927 #define VERSION "$VERSION"
3930 # Some tools Automake needs.
3932 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3935 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3938 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3941 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3944 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3946 # We need awk for the "check" target. The system "awk" is bad on
3948 # Always define AMTAR for backward compatibility.
3950 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3952 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3961 lispdir
='${datadir}/emacs/${version}/lisp'
3962 leimdir
='${datadir}/emacs/${version}/leim'
3963 standardlisppath
='${lispdir}:${leimdir}'
3964 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3965 '${datadir}/emacs/site-lisp'
3966 lisppath
='${locallisppath}:${standardlisppath}'
3967 etcdir
='${datadir}/emacs/${version}/etc'
3968 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3969 docdir
='${datadir}/emacs/${version}/etc'
3970 gamedir
='${localstatedir}/games/emacs'
3973 # Check whether --with-all was given.
3974 if test "${with_all+set}" = set; then :
3975 withval
=$with_all; with_features
=$withval
3984 # Check whether --with-pop was given.
3985 if test "${with_pop+set}" = set; then :
3988 with_pop
=$with_features
3991 if test "$with_pop" = yes; then
3992 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3997 # Check whether --with-kerberos was given.
3998 if test "${with_kerberos+set}" = set; then :
3999 withval
=$with_kerberos;
4004 if test "$with_kerberos" != no
; then
4005 $as_echo "#define KERBEROS 1" >>confdefs.h
4010 # Check whether --with-kerberos5 was given.
4011 if test "${with_kerberos5+set}" = set; then :
4012 withval
=$with_kerberos5;
4017 if test "${with_kerberos5}" != no
; then
4018 if test "${with_kerberos}" = no
; then
4020 $as_echo "#define KERBEROS 1" >>confdefs.h
4024 $as_echo "#define KERBEROS5 1" >>confdefs.h
4029 # Check whether --with-hesiod was given.
4030 if test "${with_hesiod+set}" = set; then :
4031 withval
=$with_hesiod;
4036 if test "$with_hesiod" != no
; then
4038 $as_echo "#define HESIOD 1" >>confdefs.h
4043 # Check whether --with-mmdf was given.
4044 if test "${with_mmdf+set}" = set; then :
4050 if test "$with_mmdf" != no
; then
4052 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4057 # Check whether --with-mail-unlink was given.
4058 if test "${with_mail_unlink+set}" = set; then :
4059 withval
=$with_mail_unlink;
4064 if test "$with_mail_unlink" != no
; then
4066 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4071 # Check whether --with-mailhost was given.
4072 if test "${with_mailhost+set}" = set; then :
4073 withval
=$with_mailhost;
4074 cat >>confdefs.h
<<_ACEOF
4075 #define MAILHOST "$withval"
4082 # Check whether --with-sound was given.
4083 if test "${with_sound+set}" = set; then :
4084 withval
=$with_sound;
4086 with_sound
=$with_features
4091 # Check whether --with-x-toolkit was given.
4092 if test "${with_x_toolkit+set}" = set; then :
4093 withval
=$with_x_toolkit; case "${withval}" in
4094 y | ye |
yes ) val
=gtk
;;
4096 l | lu | luc | luci | lucid
) val
=lucid
;;
4097 a |
at | ath | athe | athen | athena
) val
=athena
;;
4098 m | mo | mot | moti | motif
) val
=motif
;;
4099 g | gt | gtk
) val
=gtk
;;
4103 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4105 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4106 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4115 # Check whether --with-wide-int was given.
4116 if test "${with_wide_int+set}" = set; then :
4117 withval
=$with_wide_int;
4122 if test "$with_wide_int" = yes; then
4124 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4129 # Check whether --with-xpm was given.
4130 if test "${with_xpm+set}" = set; then :
4133 with_xpm
=$with_features
4137 # Check whether --with-jpeg was given.
4138 if test "${with_jpeg+set}" = set; then :
4141 with_jpeg
=$with_features
4145 # Check whether --with-tiff was given.
4146 if test "${with_tiff+set}" = set; then :
4149 with_tiff
=$with_features
4153 # Check whether --with-gif was given.
4154 if test "${with_gif+set}" = set; then :
4157 with_gif
=$with_features
4161 # Check whether --with-png was given.
4162 if test "${with_png+set}" = set; then :
4165 with_png
=$with_features
4169 # Check whether --with-rsvg was given.
4170 if test "${with_rsvg+set}" = set; then :
4173 with_rsvg
=$with_features
4177 # Check whether --with-xml2 was given.
4178 if test "${with_xml2+set}" = set; then :
4181 with_xml2
=$with_features
4185 # Check whether --with-imagemagick was given.
4186 if test "${with_imagemagick+set}" = set; then :
4187 withval
=$with_imagemagick;
4189 with_imagemagick
=$with_features
4194 # Check whether --with-xft was given.
4195 if test "${with_xft+set}" = set; then :
4198 with_xft
=$with_features
4202 # Check whether --with-libotf was given.
4203 if test "${with_libotf+set}" = set; then :
4204 withval
=$with_libotf;
4206 with_libotf
=$with_features
4210 # Check whether --with-m17n-flt was given.
4211 if test "${with_m17n_flt+set}" = set; then :
4212 withval
=$with_m17n_flt;
4214 with_m17n_flt
=$with_features
4219 # Check whether --with-toolkit-scroll-bars was given.
4220 if test "${with_toolkit_scroll_bars+set}" = set; then :
4221 withval
=$with_toolkit_scroll_bars;
4223 with_toolkit_scroll_bars
=$with_features
4227 # Check whether --with-xaw3d was given.
4228 if test "${with_xaw3d+set}" = set; then :
4229 withval
=$with_xaw3d;
4231 with_xaw3d
=$with_features
4235 # Check whether --with-xim was given.
4236 if test "${with_xim+set}" = set; then :
4239 with_xim
=$with_features
4243 # Check whether --with-ns was given.
4244 if test "${with_ns+set}" = set; then :
4251 # Check whether --with-w32 was given.
4252 if test "${with_w32+set}" = set; then :
4260 # Check whether --with-gpm was given.
4261 if test "${with_gpm+set}" = set; then :
4264 with_gpm
=$with_features
4268 # Check whether --with-dbus was given.
4269 if test "${with_dbus+set}" = set; then :
4272 with_dbus
=$with_features
4276 # Check whether --with-gconf was given.
4277 if test "${with_gconf+set}" = set; then :
4278 withval
=$with_gconf;
4280 with_gconf
=$with_features
4284 # Check whether --with-gsettings was given.
4285 if test "${with_gsettings+set}" = set; then :
4286 withval
=$with_gsettings;
4288 with_gsettings
=$with_features
4292 # Check whether --with-selinux was given.
4293 if test "${with_selinux+set}" = set; then :
4294 withval
=$with_selinux;
4296 with_selinux
=$with_features
4300 # Check whether --with-acl was given.
4301 if test "${with_acl+set}" = set; then :
4304 with_acl
=$with_features
4308 # Check whether --with-gnutls was given.
4309 if test "${with_gnutls+set}" = set; then :
4310 withval
=$with_gnutls;
4312 with_gnutls
=$with_features
4316 # Check whether --with-inotify was given.
4317 if test "${with_inotify+set}" = set; then :
4318 withval
=$with_inotify;
4320 with_inotify
=$with_features
4324 ## For the times when you want to build Emacs but don't have
4325 ## a suitable makeinfo, and can live without the manuals.
4327 # Check whether --with-makeinfo was given.
4328 if test "${with_makeinfo+set}" = set; then :
4329 withval
=$with_makeinfo;
4331 with_makeinfo
=$with_features
4335 ## Makefile.in needs the cache file name.
4338 ## This is an option because I do not know if all info/man support
4339 ## compressed files, nor how to test if they do so.
4341 # Check whether --with-compress-info was given.
4342 if test "${with_compress_info+set}" = set; then :
4343 withval
=$with_compress_info;
4345 with_compress_info
=$with_features
4348 if test $with_compress_info = yes; then
4356 # Check whether --with-pkg-config-prog was given.
4357 if test "${with_pkg_config_prog+set}" = set; then :
4358 withval
=$with_pkg_config_prog;
4361 if test "X${with_pkg_config_prog}" != X
; then
4362 if test "${with_pkg_config_prog}" != yes; then
4363 PKG_CONFIG
="${with_pkg_config_prog}"
4368 # Check whether --with-gameuser was given.
4369 if test "${with_gameuser+set}" = set; then :
4370 withval
=$with_gameuser;
4373 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4374 && gameuser
="${with_gameuser}"
4375 test "X$gameuser" = X
&& gameuser
=games
4378 # Check whether --with-gnustep-conf was given.
4379 if test "${with_gnustep_conf+set}" = set; then :
4380 withval
=$with_gnustep_conf;
4383 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4384 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4385 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4386 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4388 # Check whether --enable-ns-self-contained was given.
4389 if test "${enable_ns_self_contained+set}" = set; then :
4390 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4392 EN_NS_SELF_CONTAINED
=yes
4396 # Check whether --enable-locallisppath was given.
4397 if test "${enable_locallisppath+set}" = set; then :
4398 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4400 elif test "${enableval}" != "yes"; then
4401 locallisppath
=${enableval}
4406 # Check whether --enable-checking was given.
4407 if test "${enable_checking+set}" = set; then :
4408 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4411 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4412 for check
in $ac_checking_flags
4415 # these set all the flags to specific states
4416 yes) ac_enable_checking
=1 ;;
4417 no
) ac_enable_checking
= ;
4418 ac_gc_check_stringbytes
= ;
4419 ac_gc_check_string_overrun
= ;
4420 ac_gc_check_string_free_list
= ;
4421 ac_xmalloc_overrun
= ;
4422 ac_gc_check_cons_list
= ;
4424 all
) ac_enable_checking
=1 ;
4425 ac_gc_check_stringbytes
=1 ;
4426 ac_gc_check_string_overrun
=1 ;
4427 ac_gc_check_string_free_list
=1 ;
4428 ac_xmalloc_overrun
=1 ;
4429 ac_gc_check_cons_list
=1 ;
4430 ac_glyphs_debug
=1 ;;
4431 # these enable particular checks
4432 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4433 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4434 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4435 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4436 conslist
) ac_gc_check_cons_list
=1 ;;
4437 glyphs
) ac_glyphs_debug
=1 ;;
4438 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4443 if test x
$ac_enable_checking != x
; then
4445 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4448 if test x
$ac_gc_check_stringbytes != x
; then
4450 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4453 if test x
$ac_gc_check_string_overrun != x
; then
4455 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4458 if test x
$ac_gc_check_string_free_list != x
; then
4460 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4463 if test x
$ac_xmalloc_overrun != x
; then
4465 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4468 if test x
$ac_gc_check_cons_list != x
; then
4470 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4473 if test x
$ac_glyphs_debug != x
; then
4475 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4479 # Check whether --enable-check-lisp-object-type was given.
4480 if test "${enable_check_lisp_object_type+set}" = set; then :
4481 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4483 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4490 # Check whether --enable-profiling was given.
4491 if test "${enable_profiling+set}" = set; then :
4492 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4495 if test x
$ac_enable_profiling != x
; then
4496 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4502 # Check whether --enable-autodepend was given.
4503 if test "${enable_autodepend+set}" = set; then :
4504 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4506 ac_enable_autodepend
=yes
4510 # Check whether --enable-gtk-deprecation-warnings was given.
4511 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4512 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4516 #### Make srcdir absolute, if it isn't already. It's important to
4517 #### avoid running the file name through pwd unnecessarily, since pwd can
4518 #### give you automounter prefixes, which can go away. We do all this
4519 #### so Emacs can find its files when run uninstalled.
4520 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4525 ## We may be able to use the $PWD environment variable to make this
4526 ## absolute. But sometimes PWD is inaccurate.
4527 ## Note: we used to use $PWD at the end instead of `pwd`,
4528 ## but that tested only for a well-formed and valid PWD,
4529 ## it did not object when PWD was well-formed and valid but just wrong.
4530 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4534 srcdir
=`(cd "$srcdir"; pwd)`
4537 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4540 ### Canonicalize the configuration name.
4542 # Make sure we can run config.sub.
4543 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4544 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4547 $as_echo_n "checking build system type... " >&6; }
4548 if test "${ac_cv_build+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4551 ac_build_alias
=$build_alias
4552 test "x$ac_build_alias" = x
&&
4553 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4554 test "x$ac_build_alias" = x
&&
4555 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4556 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4557 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4561 $as_echo "$ac_cv_build" >&6; }
4562 case $ac_cv_build in
4564 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4567 ac_save_IFS
=$IFS; IFS
='-'
4573 # Remember, the first character of IFS is used to create $*,
4574 # except with old shells:
4577 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4581 $as_echo_n "checking host system type... " >&6; }
4582 if test "${ac_cv_host+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 if test "x$host_alias" = x
; then
4586 ac_cv_host
=$ac_cv_build
4588 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4589 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4594 $as_echo "$ac_cv_host" >&6; }
4597 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4600 ac_save_IFS
=$IFS; IFS
='-'
4606 # Remember, the first character of IFS is used to create $*,
4607 # except with old shells:
4610 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4614 configuration
=${host_alias-${build_alias-$host}}
4618 ### If you add support for a new configuration, add code to this
4619 ### switch statement to recognize your configuration name and select
4620 ### the appropriate operating system file.
4622 ### You would hope that you could choose an s/*.h
4623 ### file based on the operating system portion. However, it turns out
4624 ### that each s/*.h file is pretty manufacturer-specific.
4625 ### So we basically have to have a special case for each
4626 ### configuration name.
4628 ### As far as handling version numbers on operating systems is
4629 ### concerned, make sure things will fail in a fixable way. If
4630 ### /etc/MACHINES doesn't say anything about version numbers, be
4631 ### prepared to handle anything reasonably. If version numbers
4632 ### matter, be sure /etc/MACHINES says something about it.
4634 opsys
='' unported
=no
4635 case "${canonical}" in
4637 ## GNU/Linux and similar ports
4652 ## FreeBSD kernel + glibc based userland
4667 ## Apple Darwin / Mac OS X
4669 case "${canonical}" in
4676 ## Use fink packages if available.
4677 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4678 ## if test -d /sw/include && test -d /sw/lib; then
4679 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4680 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4689 ## HP 9000 series 700 and 800, running HP/UX
4690 hppa
*-hp-hpux10.2
* )
4693 hppa
*-hp-hpux1[1-9]* )
4695 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4699 rs6000-ibm-aix4.
[23]* )
4702 powerpc-ibm-aix4.
[23]* )
4705 rs6000-ibm-aix
[56]* )
4708 powerpc-ibm-aix
[56]* )
4712 ## Silicon Graphics machines
4716 # Without defining _LANGUAGE_C, things get masked out in the headers
4717 # so that, for instance, grepping for `free' in stdlib.h fails and
4718 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4719 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4724 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4725 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4726 case "${canonical}" in
4728 amd64-
*-*|x86_64-
*-*) ;;
4732 case "${canonical}" in
4733 *-sunos5.6
* |
*-solaris2.6
* )
4737 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4739 emacs_check_sunpro_c
=yes
4741 *-sunos5* |
*-solaris* )
4743 emacs_check_sunpro_c
=yes
4746 ## Watch out for a compiler that we know will not work.
4747 case "${canonical}" in
4748 *-solaris* |
*-sunos5* )
4749 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4750 ## /usr/ucb/cc doesn't work;
4751 ## we should find some other compiler that does work.
4759 ## Intel 386 machines where we don't care about the manufacturer.
4761 case "${canonical}" in
4762 *-darwin* ) opsys
=darwin
;;
4763 *-sysv4.2uw
* ) opsys
=unixware
;;
4764 *-sysv5uw* ) opsys
=unixware
;;
4765 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4766 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4775 ### If the code above didn't choose an operating system, just choose
4776 ### an operating system based on the configuration name. You really
4777 ### only want to use this when you have no idea what the right
4778 ### operating system is; if you know what operating systems a machine
4779 ### runs, it's cleaner to make it explicit in the case statement
4781 if test x
"${opsys}" = x
; then
4782 case "${canonical}" in
4783 *-gnu* ) opsys
=gnu
;;
4792 if test $unported = yes; then
4793 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4794 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4798 #### Choose a compiler.
4801 ac_cpp
='$CPP $CPPFLAGS'
4802 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4805 if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4807 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if test "${ac_cv_prog_CC+set}" = set; then :
4811 $as_echo_n "(cached) " >&6
4813 if test -n "$CC"; then
4814 ac_cv_prog_CC
="$CC" # Let the user override the test.
4816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir
=.
4821 for ac_exec_ext
in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4844 if test -z "$ac_cv_prog_CC"; then
4846 # Extract the first word of "gcc", so it can be a program name with args.
4847 set dummy gcc
; ac_word
=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$ac_ct_CC"; then
4854 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir
=.
4861 for ac_exec_ext
in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_CC
="gcc"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4874 if test -n "$ac_ct_CC"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4876 $as_echo "$ac_ct_CC" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4882 if test "x$ac_ct_CC" = x
; then
4885 case $cross_compiling:$ac_tool_warned in
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned
=yes ;;
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4900 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_CC+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4906 if test -n "$CC"; then
4907 ac_cv_prog_CC
="$CC" # Let the user override the test.
4909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir
=.
4914 for ac_exec_ext
in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 if test -n "$CC"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4929 $as_echo "$CC" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4938 if test -z "$CC"; then
4939 # Extract the first word of "cc", so it can be a program name with args.
4940 set dummy cc
; ac_word
=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_CC+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -n "$CC"; then
4947 ac_cv_prog_CC
="$CC" # Let the user override the test.
4950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4954 test -z "$as_dir" && as_dir
=.
4955 for ac_exec_ext
in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4958 ac_prog_rejected
=yes
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy
$ac_cv_prog_CC
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set CC to just the basename; use the full file name.
4978 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4984 if test -n "$CC"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4986 $as_echo "$CC" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4994 if test -z "$CC"; then
4995 if test -n "$ac_tool_prefix"; then
4996 for ac_prog
in cl.exe
4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if test "${ac_cv_prog_CC+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5005 if test -n "$CC"; then
5006 ac_cv_prog_CC
="$CC" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 if test -n "$CC"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5028 $as_echo "$CC" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 test -n "$CC" && break
5038 if test -z "$CC"; then
5040 for ac_prog
in cl.exe
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy
$ac_prog; ac_word
=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$ac_ct_CC"; then
5050 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_CC
="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5070 if test -n "$ac_ct_CC"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5072 $as_echo "$ac_ct_CC" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$ac_ct_CC" && break
5082 if test "x$ac_ct_CC" = x
; then
5085 case $cross_compiling:$ac_tool_warned in
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned
=yes ;;
5098 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error
"no acceptable C compiler found in \$PATH
5101 See \`config.log' for more details." "$LINENO" 5; }
5103 # Provide some information about the compiler.
5104 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5107 for ac_option
in --version -v -V -qversion; do
5108 { { ac_try
="$ac_compiler $ac_option >&5"
5110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114 $as_echo "$ac_try_echo"; } >&5
5115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5117 if test -s conftest.err; then
5119 ... rest of stderr output deleted ...
5120 10q' conftest.err >conftest.er1
5121 cat conftest.er1 >&5
5123 rm -f conftest.er1 conftest.err
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5139 ac_clean_files_save=$ac_clean_files
5140 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5141 # Try to create an executable without -o first, disregard a.out.
5142 # It will help us diagnose broken compilers, and finding out an intuition
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5145 $as_echo_n "checking whether the C compiler works... " >&6; }
5146 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5148 # The possible output files:
5149 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5152 for ac_file in $ac_files
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5161 if { { ac_try="$ac_link_default"
5163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5164 *) ac_try_echo
=$ac_try;;
5166 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_link_default") 2>&5
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
5172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5174 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5175 # so that the user can short-circuit this test for compilers unknown to
5177 for ac_file
in $ac_files ''
5179 test -f "$ac_file" ||
continue
5181 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5184 # We found the default executable, but exeext='' is most
5188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5190 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5192 # We set ac_cv_exeext here because the later test for it is not
5193 # safe: cross compilers may not add the suffix if given an `-o'
5194 # argument, so we may need to know it at that point already.
5195 # Even if this section looks crufty: it has the advantage of
5202 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5207 if test -z "$ac_file"; then :
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 $as_echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 { as_fn_set_status
77
5216 as_fn_error
"C compiler cannot create executables
5217 See \`config.log' for more details." "$LINENO" 5; }; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5223 $as_echo_n "checking for C compiler default output file name... " >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5225 $as_echo "$ac_file" >&6; }
5226 ac_exeext
=$ac_cv_exeext
5228 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5229 ac_clean_files
=$ac_clean_files_save
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5231 $as_echo_n "checking for suffix of executables... " >&6; }
5232 if { { ac_try
="$ac_link"
5234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238 $as_echo "$ac_try_echo"; } >&5
5239 (eval "$ac_link") 2>&5
5241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5242 test $ac_status = 0; }; then :
5243 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5244 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5245 # work properly (i.e., refer to `conftest.exe'), while it won't with
5247 for ac_file
in conftest.exe conftest conftest.
*; do
5248 test -f "$ac_file" ||
continue
5250 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5251 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5259 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5260 See \`config.log' for more details." "$LINENO" 5; }
5262 rm -f conftest conftest
$ac_cv_exeext
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5264 $as_echo "$ac_cv_exeext" >&6; }
5266 rm -f conftest.
$ac_ext
5267 EXEEXT
=$ac_cv_exeext
5269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5275 FILE *f = fopen ("conftest.out", "w");
5276 return ferror (f) || fclose (f) != 0;
5282 ac_clean_files
="$ac_clean_files conftest.out"
5283 # Check that the compiler produces executables we can run. If not, either
5284 # the compiler is broken, or we cross compile.
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5286 $as_echo_n "checking whether we are cross compiling... " >&6; }
5287 if test "$cross_compiling" != yes; then
5288 { { ac_try
="$ac_link"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5294 $as_echo "$ac_try_echo"; } >&5
5295 (eval "$ac_link") 2>&5
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 if { ac_try='./conftest$ac_cv_exeext'
5300 { { case "(($ac_try" in
5301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5302 *) ac_try_echo
=$ac_try;;
5304 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5305 $as_echo "$ac_try_echo"; } >&5
5306 (eval "$ac_try") 2>&5
5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5309 test $ac_status = 0; }; }; then
5312 if test "$cross_compiling" = maybe
; then
5315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5317 as_fn_error
"cannot run C compiled programs.
5318 If you meant to cross compile, use \`--host'.
5319 See \`config.log' for more details." "$LINENO" 5; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5324 $as_echo "$cross_compiling" >&6; }
5326 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5327 ac_clean_files
=$ac_clean_files_save
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5329 $as_echo_n "checking for suffix of object files... " >&6; }
5330 if test "${ac_cv_objext+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5344 rm -f conftest.o conftest.obj
5345 if { { ac_try
="$ac_compile"
5347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5351 $as_echo "$ac_try_echo"; } >&5
5352 (eval "$ac_compile") 2>&5
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }; then :
5356 for ac_file in conftest.o conftest.obj conftest.*; do
5357 test -f "$ac_file" || continue;
5359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5360 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5365 $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5370 as_fn_error "cannot compute suffix of object files
: cannot compile
5371 See \
`config.log' for more details." "$LINENO" 5; }
5373 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5376 $as_echo "$ac_cv_objext" >&6; }
5377 OBJEXT=$ac_cv_objext
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5380 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5381 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5398 if ac_fn_c_try_compile "$LINENO"; then :
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5408 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5409 if test $ac_compiler_gnu = yes; then
5414 ac_test_CFLAGS=${CFLAGS+set}
5415 ac_save_CFLAGS=$CFLAGS
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5417 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5418 if test "${ac_cv_prog_cc_g+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5421 ac_save_c_werror_flag=$ac_c_werror_flag
5422 ac_c_werror_flag=yes
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5436 if ac_fn_c_try_compile "$LINENO"; then :
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5451 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_c_werror_flag=$ac_save_c_werror_flag
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5467 if ac_fn_c_try_compile "$LINENO"; then :
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 ac_c_werror_flag=$ac_save_c_werror_flag
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5478 $as_echo "$ac_cv_prog_cc_g" >&6; }
5479 if test "$ac_test_CFLAGS" = set; then
5480 CFLAGS=$ac_save_CFLAGS
5481 elif test $ac_cv_prog_cc_g = yes; then
5482 if test "$GCC" = yes; then
5488 if test "$GCC" = yes; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5495 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5496 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 ac_cv_prog_cc_c89=no
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5505 #include <sys/types.h>
5506 #include <sys/stat.h>
5507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5508 struct buf { int x; };
5509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5510 static char *e (p, i)
5516 static char *f (char * (*g) (char **, int), char **p, ...)
5521 s = g (p, va_arg (v,int));
5526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5527 function prototypes and stuff, but not '\xHH' hex character constants.
5528 These don't provoke an error unfortunately, instead are silently treated
5529 as 'x'. The following induces an error, until -std is added to get
5530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5531 array size at least. It's necessary to write '\x00'==0 to get something
5532 that's true only with -std. */
5533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5535 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5536 inside strings and character constants. */
5538 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5540 int test (int i, double x);
5541 struct s1 {int (*f) (int a);};
5542 struct s2 {int (*f) (double a);};
5543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5557 CC="$ac_save_CC $ac_arg"
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_prog_cc_c89=$ac_arg
5561 rm -f core conftest.err conftest.$ac_objext
5562 test "x$ac_cv_prog_cc_c89" != "xno" && break
5564 rm -f conftest.$ac_ext
5569 case "x$ac_cv_prog_cc_c89" in
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5572 $as_echo "none needed" >&6; } ;;
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5575 $as_echo "unsupported" >&6; } ;;
5577 CC="$CC $ac_cv_prog_cc_c89"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5579 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5581 if test "x$ac_cv_prog_cc_c89" != xno; then :
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590 DEPDIR="${am__leading_dot}deps"
5592 ac_config_commands="$ac_config_commands depfiles"
5595 am_make=${MAKE-make}
5596 cat > confinc << 'END'
5598 @echo this is the am__doit target
5601 # If we don't find an include directive, just comment out the code.
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5603 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5607 # First try GNU make style include.
5608 echo "include confinc" > confmf
5609 # Ignore all kinds of additional output from `make'.
5610 case `$am_make -s -f confmf 2> /dev/null` in #(
5611 *the\ am__doit\ target*)
5617 # Now try BSD make style include.
5618 if test "$am__include" = "#"; then
5619 echo '.include
"confinc"' > confmf
5620 case `$am_make -s -f confmf 2> /dev/null` in #(
5621 *the\ am__doit\ target*)
5622 am__include=.include
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5631 $as_echo "$_am_result" >&6; }
5632 rm -f confinc confmf
5634 # Check whether --enable-dependency-tracking was given.
5635 if test "${enable_dependency_tracking+set}" = set; then :
5636 enableval=$enable_dependency_tracking;
5639 if test "x$enable_dependency_tracking" != xno; then
5640 am_depcomp="$ac_aux_dir/depcomp"
5643 if test "x$enable_dependency_tracking" != xno
; then
5653 depcc
="$CC" am_compiler_list
=
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5656 $as_echo_n "checking dependency style of $depcc... " >&6; }
5657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5661 # We make a subdir and do the tests there. Otherwise we can end up
5662 # making bogus files that we don't know about and never remove. For
5663 # instance it was reported that on HP-UX the gcc test will end up
5664 # making a dummy file named `D' -- because `-MD' means `put the output
5667 # Copy depcomp to subdir because otherwise we won't find it if we're
5668 # using a relative directory.
5669 cp "$am_depcomp" conftest.dir
5671 # We will build objects and dependencies in a subdirectory because
5672 # it helps to detect inapplicable dependency modes. For instance
5673 # both Tru64's cc and ICC support -MD to output dependencies as a
5674 # side effect of compilation, but ICC will put the dependencies in
5675 # the current directory while Tru64 will put them in the object
5679 am_cv_CC_dependencies_compiler_type
=none
5680 if test "$am_compiler_list" = ""; then
5681 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5684 case " $depcc " in #(
5685 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5688 for depmode
in $am_compiler_list; do
5689 # Setup a source with many dependencies, because some compilers
5690 # like to wrap large dependency lists on column 80 (with \), and
5691 # we should not choose a depcomp mode which is confused by this.
5693 # We need to recreate these files for each test, as the compiler may
5694 # overwrite some of them when testing with obscure command lines.
5695 # This happens at least with the AIX C compiler.
5697 for i
in 1 2 3 4 5 6; do
5698 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5699 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5700 # Solaris 8's {/usr,}/bin/sh.
5701 touch sub
/conftst
$i.h
5703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5705 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5706 # mode. It turns out that the SunPro C++ compiler does not properly
5707 # handle `-M -o', and we need to detect this. Also, some Intel
5708 # versions had trouble with output in subdirs
5709 am__obj
=sub
/conftest.
${OBJEXT-o}
5710 am__minus_obj
="-o $am__obj"
5713 # This depmode causes a compiler race in universal mode.
5714 test "$am__universal" = false ||
continue
5717 # after this tag, mechanisms are not by side-effect, so they'll
5718 # only be used when explicitly requested
5719 if test "x$enable_dependency_tracking" = xyes
; then
5725 msvisualcpp | msvcmsys
)
5726 # This compiler won't grok `-c -o', but also, the minuso test has
5727 # not run yet. These depmodes are late enough in the game, and
5728 # so weak that their functioning should not be impacted.
5729 am__obj
=conftest.
${OBJEXT-o}
5734 if depmode
=$depmode \
5735 source=sub
/conftest.c object
=$am__obj \
5736 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5737 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5738 >/dev
/null
2>conftest.err
&&
5739 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5740 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5741 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5742 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5743 # icc doesn't choke on unknown options, it will just issue warnings
5744 # or remarks (even with -Werror). So we grep stderr for any message
5745 # that says an option was ignored or not supported.
5746 # When given -MP, icc 7.0 and 7.1 complain thusly:
5747 # icc: Command line warning: ignoring option '-M'; no argument required
5748 # The diagnosis changed in icc 8.0:
5749 # icc: Command line remark: option '-MP' not supported
5750 if (grep 'ignoring option' conftest.err ||
5751 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5752 am_cv_CC_dependencies_compiler_type
=$depmode
5761 am_cv_CC_dependencies_compiler_type
=none
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5766 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5767 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5770 test "x$enable_dependency_tracking" != xno \
5771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5773 am__fastdepCC_FALSE
='#'
5775 am__fastdepCC_TRUE
='#'
5776 am__fastdepCC_FALSE
=
5780 if test "x$CC" != xcc
; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5782 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5785 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5787 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5788 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5789 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5790 $as_echo_n "(cached) " >&6
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5803 # Make sure it works both with $CC and with simple cc.
5804 # We do the test twice because some compilers refuse to overwrite an
5805 # existing .o file with -o, though they will create one.
5806 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5808 if { { case "(($ac_try" in
5809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5813 $as_echo "$ac_try_echo"; } >&5
5814 (eval "$ac_try") 2>&5
5816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817 test $ac_status = 0; } &&
5818 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5820 *) ac_try_echo
=$ac_try;;
5822 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5823 $as_echo "$ac_try_echo"; } >&5
5824 (eval "$ac_try") 2>&5
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; };
5829 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5830 if test "x$CC" != xcc
; then
5831 # Test first that cc exists at all.
5832 if { ac_try
='cc -c conftest.$ac_ext >&5'
5833 { { case "(($ac_try" in
5834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5838 $as_echo "$ac_try_echo"; } >&5
5839 (eval "$ac_try") 2>&5
5841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842 test $ac_status = 0; }; }; then
5843 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5845 if { { case "(($ac_try" in
5846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5847 *) ac_try_echo
=$ac_try;;
5849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5850 $as_echo "$ac_try_echo"; } >&5
5851 (eval "$ac_try") 2>&5
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; } &&
5855 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5860 $as_echo "$ac_try_echo"; } >&5
5861 (eval "$ac_try") 2>&5
5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864 test $ac_status = 0; };
5869 # cc exists but doesn't like -o.
5870 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5877 rm -f core conftest*
5880 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5882 $as_echo "yes" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5887 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5891 # FIXME: we rely on the cache variable name because
5892 # there is no other way.
5894 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5895 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5896 if test "$am_t" != yes; then
5897 # Losing compiler, so override with the script.
5898 # FIXME: It is wrong to rewrite CC.
5899 # But if we don't then we get into trouble of one sort or another.
5900 # A longer-term fix would be to have automake use am__CC in this case,
5901 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5902 CC="$am_aux_dir/compile $CC"
5907 if test x$GCC = xyes; then
5908 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5910 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5913 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5914 # as we don't use them.
5916 # Avoid gnulib's threadlib module, as we do threads our own way.
5919 # Initialize gnulib right after choosing the compiler.
5922 ac_cpp='$CPP $CPPFLAGS'
5923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5927 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5928 # On Suns, sometimes $CPP names a directory.
5929 if test -n "$CPP" && test -d "$CPP"; then
5932 if test -z "$CPP"; then
5933 if test "${ac_cv_prog_CPP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 # Double quotes because CPP needs to be expanded
5937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5940 for ac_c_preproc_warn_flag in '' yes
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 # include <limits.h>
5953 # include <assert.h>
5957 if ac_fn_c_try_cpp "$LINENO"; then :
5960 # Broken: fails on valid input.
5963 rm -f conftest.err conftest.$ac_ext
5965 # OK, works on sane cases. Now check whether nonexistent headers
5966 # can be detected and how.
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <ac_nonexistent.h>
5971 if ac_fn_c_try_cpp "$LINENO"; then :
5972 # Broken: success on invalid input.
5975 # Passes both tests.
5979 rm -f conftest.err conftest.$ac_ext
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.
$ac_ext
5984 if $ac_preproc_ok; then :
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5997 $as_echo "$CPP" >&6; }
5999 for ac_c_preproc_warn_flag
in '' yes
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 # include <limits.h>
6012 # include <assert.h>
6016 if ac_fn_c_try_cpp
"$LINENO"; then :
6019 # Broken: fails on valid input.
6022 rm -f conftest.err conftest.
$ac_ext
6024 # OK, works on sane cases. Now check whether nonexistent headers
6025 # can be detected and how.
6026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 #include <ac_nonexistent.h>
6030 if ac_fn_c_try_cpp
"$LINENO"; then :
6031 # Broken: success on invalid input.
6034 # Passes both tests.
6038 rm -f conftest.err conftest.
$ac_ext
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.err conftest.
$ac_ext
6043 if $ac_preproc_ok; then :
6046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6049 See \`config.log' for more details." "$LINENO" 5; }
6053 ac_cpp
='$CPP $CPPFLAGS'
6054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6060 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6061 if test "${ac_cv_path_GREP+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6064 if test -z "$GREP"; then
6065 ac_path_GREP_found
=false
6066 # Loop through the user's path and test for each of PROGNAME-LIST
6067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6068 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6071 test -z "$as_dir" && as_dir
=.
6072 for ac_prog
in grep ggrep
; do
6073 for ac_exec_ext
in '' $ac_executable_extensions; do
6074 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6075 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6076 # Check for GNU ac_path_GREP and select it if it is found.
6077 # Check for GNU $ac_path_GREP
6078 case `"$ac_path_GREP" --version 2>&1` in
6080 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6083 $as_echo_n 0123456789 >"conftest.in"
6086 cat "conftest.in" "conftest.in" >"conftest.tmp"
6087 mv "conftest.tmp" "conftest.in"
6088 cp "conftest.in" "conftest.nl"
6089 $as_echo 'GREP' >> "conftest.nl"
6090 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6091 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6092 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6093 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6094 # Best one so far, save it but keep looking for a better one
6095 ac_cv_path_GREP
="$ac_path_GREP"
6096 ac_path_GREP_max
=$ac_count
6098 # 10*(2^10) chars as input seems more than enough
6099 test $ac_count -gt 10 && break
6101 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6104 $ac_path_GREP_found && break 3
6109 if test -z "$ac_cv_path_GREP"; then
6110 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6113 ac_cv_path_GREP
=$GREP
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6118 $as_echo "$ac_cv_path_GREP" >&6; }
6119 GREP
="$ac_cv_path_GREP"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6123 $as_echo_n "checking for egrep... " >&6; }
6124 if test "${ac_cv_path_EGREP+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6127 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6128 then ac_cv_path_EGREP
="$GREP -E"
6130 if test -z "$EGREP"; then
6131 ac_path_EGREP_found
=false
6132 # Loop through the user's path and test for each of PROGNAME-LIST
6133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6134 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6137 test -z "$as_dir" && as_dir
=.
6138 for ac_prog
in egrep; do
6139 for ac_exec_ext
in '' $ac_executable_extensions; do
6140 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6141 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6142 # Check for GNU ac_path_EGREP and select it if it is found.
6143 # Check for GNU $ac_path_EGREP
6144 case `"$ac_path_EGREP" --version 2>&1` in
6146 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6149 $as_echo_n 0123456789 >"conftest.in"
6152 cat "conftest.in" "conftest.in" >"conftest.tmp"
6153 mv "conftest.tmp" "conftest.in"
6154 cp "conftest.in" "conftest.nl"
6155 $as_echo 'EGREP' >> "conftest.nl"
6156 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6157 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6158 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6159 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6160 # Best one so far, save it but keep looking for a better one
6161 ac_cv_path_EGREP
="$ac_path_EGREP"
6162 ac_path_EGREP_max
=$ac_count
6164 # 10*(2^10) chars as input seems more than enough
6165 test $ac_count -gt 10 && break
6167 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6170 $ac_path_EGREP_found && break 3
6175 if test -z "$ac_cv_path_EGREP"; then
6176 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6179 ac_cv_path_EGREP
=$EGREP
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6185 $as_echo "$ac_cv_path_EGREP" >&6; }
6186 EGREP
="$ac_cv_path_EGREP"
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6192 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6193 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6207 gl_cv_c_amsterdam_compiler
=yes
6209 gl_cv_c_amsterdam_compiler
=no
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6216 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6217 if test -z "$AR"; then
6218 if test $gl_cv_c_amsterdam_compiler = yes; then
6220 if test -z "$ARFLAGS"; then
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6226 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_AR+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 if test -n "$AR"; then
6233 ac_cv_prog_AR
="$AR" # Let the user override the test.
6235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir
=.
6240 for ac_exec_ext
in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 if test -n "$AR"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6255 $as_echo "$AR" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6263 if test -z "$ac_cv_prog_AR"; then
6265 # Extract the first word of "ar", so it can be a program name with args.
6266 set dummy
ar; ac_word
=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$ac_ct_AR"; then
6273 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir
=.
6280 for ac_exec_ext
in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_AR
="ar"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6293 if test -n "$ac_ct_AR"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6295 $as_echo "$ac_ct_AR" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6301 if test "x$ac_ct_AR" = x
; then
6304 case $cross_compiling:$ac_tool_warned in
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned
=yes ;;
6316 if test -z "$ARFLAGS"; then
6321 if test -z "$ARFLAGS"; then
6327 if test -z "$RANLIB"; then
6328 if test $gl_cv_c_amsterdam_compiler = yes; then
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6333 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$RANLIB"; then
6340 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir
=.
6347 for ac_exec_ext
in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 RANLIB
=$ac_cv_prog_RANLIB
6360 if test -n "$RANLIB"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6362 $as_echo "$RANLIB" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6370 if test -z "$ac_cv_prog_RANLIB"; then
6371 ac_ct_RANLIB
=$RANLIB
6372 # Extract the first word of "ranlib", so it can be a program name with args.
6373 set dummy ranlib
; ac_word
=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$ac_ct_RANLIB"; then
6380 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir
=.
6387 for ac_exec_ext
in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6400 if test -n "$ac_ct_RANLIB"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6402 $as_echo "$ac_ct_RANLIB" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6408 if test "x$ac_ct_RANLIB" = x
; then
6411 case $cross_compiling:$ac_tool_warned in
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned
=yes ;;
6417 RANLIB
=$ac_ct_RANLIB
6420 RANLIB
="$ac_cv_prog_RANLIB"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6428 $as_echo_n "checking for ANSI C header files... " >&6; }
6429 if test "${ac_cv_header_stdc+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6447 if ac_fn_c_try_compile
"$LINENO"; then :
6448 ac_cv_header_stdc
=yes
6450 ac_cv_header_stdc
=no
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 if test $ac_cv_header_stdc = yes; then
6455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "memchr" >/dev
/null
2>&1; then :
6465 ac_cv_header_stdc
=no
6471 if test $ac_cv_header_stdc = yes; then
6472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6479 $EGREP "free" >/dev
/null
2>&1; then :
6482 ac_cv_header_stdc
=no
6488 if test $ac_cv_header_stdc = yes; then
6489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6490 if test "$cross_compiling" = yes; then :
6493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6497 #if ((' ' & 0x0FF) == 0x020)
6498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6501 # define ISLOWER(c) \
6502 (('a' <= (c) && (c) <= 'i') \
6503 || ('j' <= (c) && (c) <= 'r') \
6504 || ('s' <= (c) && (c) <= 'z'))
6505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6513 for (i = 0; i < 256; i++)
6514 if (XOR (islower (i), ISLOWER (i))
6515 || toupper (i) != TOUPPER (i))
6520 if ac_fn_c_try_run
"$LINENO"; then :
6523 ac_cv_header_stdc
=no
6525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6532 $as_echo "$ac_cv_header_stdc" >&6; }
6533 if test $ac_cv_header_stdc = yes; then
6535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6540 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6541 inttypes.h stdint.h unistd.h
6543 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6546 eval as_val
=\$
$as_ac_Header
6547 if test "x$as_val" = x
""yes; then :
6548 cat >>confdefs.h
<<_ACEOF
6549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6559 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6566 if test "$MINIX" = yes; then
6568 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6571 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6574 $as_echo "#define _MINIX 1" >>confdefs.h
6577 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6583 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6584 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6590 # define __EXTENSIONS__ 1
6591 $ac_includes_default
6600 if ac_fn_c_try_compile
"$LINENO"; then :
6601 ac_cv_safe_to_define___extensions__
=yes
6603 ac_cv_safe_to_define___extensions__
=no
6605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6608 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6609 test $ac_cv_safe_to_define___extensions__ = yes &&
6610 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6612 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6614 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6616 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6618 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6620 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6623 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6624 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6625 $as_echo_n "(cached) " >&6
6627 ac_cv_should_define__xopen_source
=no
6628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6641 if ac_fn_c_try_compile
"$LINENO"; then :
6644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6647 #define _XOPEN_SOURCE 500
6658 if ac_fn_c_try_compile
"$LINENO"; then :
6659 ac_cv_should_define__xopen_source
=yes
6661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6666 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6667 test $ac_cv_should_define__xopen_source = yes &&
6668 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6677 # Check whether --enable-largefile was given.
6678 if test "${enable_largefile+set}" = set; then :
6679 enableval
=$enable_largefile;
6682 if test "$enable_largefile" != no
; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6685 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6686 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 ac_cv_sys_largefile_CC
=no
6690 if test "$GCC" != yes; then
6693 # IRIX 6.2 and later do not support large files by default,
6694 # so use the C compiler's -n32 option if that helps.
6695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 /* Check that off_t can represent 2**63 - 1 correctly.
6699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6700 since some C++ compilers masquerading as C compilers
6701 incorrectly reject 9223372036854775807. */
6702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6704 && LARGE_OFF_T % 2147483647 == 1)
6714 if ac_fn_c_try_compile
"$LINENO"; then :
6717 rm -f core conftest.err conftest.
$ac_objext
6719 if ac_fn_c_try_compile
"$LINENO"; then :
6720 ac_cv_sys_largefile_CC
=' -n32'; break
6722 rm -f core conftest.err conftest.
$ac_objext
6726 rm -f conftest.
$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6730 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6731 if test "$ac_cv_sys_largefile_CC" != no
; then
6732 CC
=$CC$ac_cv_sys_largefile_CC
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6736 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6737 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 /* Check that off_t can represent 2**63 - 1 correctly.
6745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6746 since some C++ compilers masquerading as C compilers
6747 incorrectly reject 9223372036854775807. */
6748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6750 && LARGE_OFF_T % 2147483647 == 1)
6760 if ac_fn_c_try_compile
"$LINENO"; then :
6761 ac_cv_sys_file_offset_bits
=no
; break
6763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 #define _FILE_OFFSET_BITS 64
6767 #include <sys/types.h>
6768 /* Check that off_t can represent 2**63 - 1 correctly.
6769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6770 since some C++ compilers masquerading as C compilers
6771 incorrectly reject 9223372036854775807. */
6772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6774 && LARGE_OFF_T % 2147483647 == 1)
6784 if ac_fn_c_try_compile
"$LINENO"; then :
6785 ac_cv_sys_file_offset_bits
=64; break
6787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 ac_cv_sys_file_offset_bits
=unknown
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6793 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6794 case $ac_cv_sys_file_offset_bits in #(
6797 cat >>confdefs.h
<<_ACEOF
6798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6803 if test $ac_cv_sys_file_offset_bits = unknown
; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6805 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6806 if test "${ac_cv_sys_large_files+set}" = set; then :
6807 $as_echo_n "(cached) " >&6
6810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 /* Check that off_t can represent 2**63 - 1 correctly.
6814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6815 since some C++ compilers masquerading as C compilers
6816 incorrectly reject 9223372036854775807. */
6817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6819 && LARGE_OFF_T % 2147483647 == 1)
6829 if ac_fn_c_try_compile
"$LINENO"; then :
6830 ac_cv_sys_large_files
=no
; break
6832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #define _LARGE_FILES 1
6836 #include <sys/types.h>
6837 /* Check that off_t can represent 2**63 - 1 correctly.
6838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6839 since some C++ compilers masquerading as C compilers
6840 incorrectly reject 9223372036854775807. */
6841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6843 && LARGE_OFF_T % 2147483647 == 1)
6853 if ac_fn_c_try_compile
"$LINENO"; then :
6854 ac_cv_sys_large_files
=1; break
6856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6857 ac_cv_sys_large_files
=unknown
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6862 $as_echo "$ac_cv_sys_large_files" >&6; }
6863 case $ac_cv_sys_large_files in #(
6866 cat >>confdefs.h
<<_ACEOF
6867 #define _LARGE_FILES $ac_cv_sys_large_files
6875 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6879 case $ac_cv_prog_cc_stdc in #(
6881 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6884 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6885 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6888 ac_cv_prog_cc_c99
=no
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6893 #include <stdbool.h>
6898 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6899 #define debug(...) fprintf (stderr, __VA_ARGS__)
6900 #define showlist(...) puts (#__VA_ARGS__)
6901 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6903 test_varargs_macros (void)
6908 debug ("X = %d\n", x);
6909 showlist (The first, second, and third items.);
6910 report (x>y, "x is %d but y is %d", x, y);
6913 // Check long long types.
6914 #define BIG64 18446744073709551615ull
6915 #define BIG32 4294967295ul
6916 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6918 your preprocessor is broken;
6922 your preprocessor is broken;
6924 static long long int bignum = -9223372036854775807LL;
6925 static unsigned long long int ubignum = BIG64;
6927 struct incomplete_array
6935 const wchar_t *name;
6939 typedef const char *ccp;
6942 test_restrict (ccp restrict text)
6944 // See if C++-style comments work.
6945 // Iterate through items via the restricted pointer.
6946 // Also check for declarations in for loops.
6947 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6952 // Check varargs and va_copy.
6954 test_varargs (const char *format, ...)
6957 va_start (args, format);
6959 va_copy (args_copy, args);
6970 str = va_arg (args_copy, const char *);
6973 number = va_arg (args_copy, int);
6976 fnumber = va_arg (args_copy, double);
6991 _Bool success = false;
6994 if (test_restrict ("String literal") == 0)
6996 char *restrict newvar = "Another string";
6999 test_varargs ("s, d' f .", "string", 65, 34.234);
7000 test_varargs_macros ();
7002 // Check flexible array members.
7003 struct incomplete_array *ia =
7004 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7006 for (int i = 0; i < ia->datasize; ++i)
7007 ia->data[i] = i * 1.234;
7009 // Check named initializers.
7010 struct named_init ni = {
7012 .name = L"Test wide string",
7013 .average = 543.34343,
7018 int dynamic_array[ni.number];
7019 dynamic_array[ni.number - 1] = 543;
7021 // work around unused variable warnings
7022 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7023 || dynamic_array[ni.number - 1] != 543);
7029 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7031 CC
="$ac_save_CC $ac_arg"
7032 if ac_fn_c_try_compile
"$LINENO"; then :
7033 ac_cv_prog_cc_c99
=$ac_arg
7035 rm -f core conftest.err conftest.
$ac_objext
7036 test "x$ac_cv_prog_cc_c99" != "xno" && break
7038 rm -f conftest.
$ac_ext
7043 case "x$ac_cv_prog_cc_c99" in
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7046 $as_echo "none needed" >&6; } ;;
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7049 $as_echo "unsupported" >&6; } ;;
7051 CC
="$CC $ac_cv_prog_cc_c99"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7053 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7055 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7056 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7059 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7060 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7063 ac_cv_prog_cc_c89
=no
7065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7069 #include <sys/types.h>
7070 #include <sys/stat.h>
7071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7072 struct buf { int x; };
7073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7074 static char *e (p, i)
7080 static char *f (char * (*g) (char **, int), char **p, ...)
7085 s = g (p, va_arg (v,int));
7090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7091 function prototypes and stuff, but not '\xHH' hex character constants.
7092 These don't provoke an error unfortunately, instead are silently treated
7093 as 'x'. The following induces an error, until -std is added to get
7094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7095 array size at least. It's necessary to write '\x00'==0 to get something
7096 that's true only with -std. */
7097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7100 inside strings and character constants. */
7102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7104 int test (int i, double x);
7105 struct s1 {int (*f) (int a);};
7106 struct s2 {int (*f) (double a);};
7107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7118 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7121 CC
="$ac_save_CC $ac_arg"
7122 if ac_fn_c_try_compile
"$LINENO"; then :
7123 ac_cv_prog_cc_c89
=$ac_arg
7125 rm -f core conftest.err conftest.
$ac_objext
7126 test "x$ac_cv_prog_cc_c89" != "xno" && break
7128 rm -f conftest.
$ac_ext
7133 case "x$ac_cv_prog_cc_c89" in
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7136 $as_echo "none needed" >&6; } ;;
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7139 $as_echo "unsupported" >&6; } ;;
7141 CC
="$CC $ac_cv_prog_cc_c89"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7143 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7145 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7146 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7148 ac_cv_prog_cc_stdc
=no
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7155 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7156 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7160 case $ac_cv_prog_cc_stdc in #(
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7163 $as_echo "unsupported" >&6; } ;; #(
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7166 $as_echo "none needed" >&6; } ;; #(
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7169 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7174 # Code from module alloca-opt:
7175 # Code from module allocator:
7176 # Code from module at-internal:
7177 # Code from module c-ctype:
7178 # Code from module c-strcase:
7179 # Code from module careadlinkat:
7180 # Code from module clock-time:
7181 # Code from module close-stream:
7182 # Code from module crypto/md5:
7183 # Code from module crypto/sha1:
7184 # Code from module crypto/sha256:
7185 # Code from module crypto/sha512:
7186 # Code from module dirent:
7187 # Code from module dosname:
7188 # Code from module dtoastr:
7189 # Code from module dtotimespec:
7190 # Code from module dup2:
7191 # Code from module environ:
7192 # Code from module euidaccess:
7193 # Code from module execinfo:
7194 # Code from module extensions:
7196 # Code from module extern-inline:
7197 # Code from module faccessat:
7198 # Code from module fcntl-h:
7199 # Code from module fdatasync:
7200 # Code from module fdopendir:
7201 # Code from module filemode:
7202 # Code from module fpending:
7203 # Code from module fstatat:
7204 # Code from module fsync:
7205 # Code from module getgroups:
7206 # Code from module getloadavg:
7207 # Code from module getopt-gnu:
7208 # Code from module getopt-posix:
7209 # Code from module gettext-h:
7210 # Code from module gettime:
7211 # Code from module gettimeofday:
7212 # Code from module group-member:
7213 # Code from module ignore-value:
7214 # Code from module include_next:
7215 # Code from module intprops:
7216 # Code from module inttypes-incomplete:
7217 # Code from module largefile:
7219 # Code from module lstat:
7220 # Code from module manywarnings:
7221 # Code from module memrchr:
7222 # Code from module mktime:
7223 # Code from module multiarch:
7224 # Code from module nocrash:
7225 # Code from module openat-h:
7226 # Code from module pathmax:
7227 # Code from module pselect:
7228 # Code from module pthread_sigmask:
7229 # Code from module putenv:
7230 # Code from module readlink:
7231 # Code from module readlinkat:
7232 # Code from module root-uid:
7233 # Code from module sig2str:
7234 # Code from module signal-h:
7235 # Code from module snippet/_Noreturn:
7236 # Code from module snippet/arg-nonnull:
7237 # Code from module snippet/c++defs:
7238 # Code from module snippet/warn-on-use:
7239 # Code from module socklen:
7240 # Code from module ssize_t:
7241 # Code from module stat:
7242 # Code from module stat-time:
7243 # Code from module stdalign:
7244 # Code from module stdarg:
7248 # Code from module stdbool:
7249 # Code from module stddef:
7250 # Code from module stdint:
7251 # Code from module stdio:
7252 # Code from module stdlib:
7253 # Code from module strftime:
7254 # Code from module string:
7255 # Code from module strtoimax:
7256 # Code from module strtoll:
7257 # Code from module strtoull:
7258 # Code from module strtoumax:
7259 # Code from module symlink:
7260 # Code from module sys_select:
7261 # Code from module sys_stat:
7262 # Code from module sys_time:
7263 # Code from module time:
7264 # Code from module time_r:
7265 # Code from module timer-time:
7266 # Code from module timespec:
7267 # Code from module timespec-add:
7268 # Code from module timespec-sub:
7269 # Code from module u64:
7270 # Code from module unistd:
7271 # Code from module unsetenv:
7272 # Code from module utimens:
7273 # Code from module verify:
7274 # Code from module warnings:
7275 # Code from module xalloc-oversized:
7278 if test "$ac_test_CFLAGS" != set; then
7279 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7280 # if -g3 works and the user does not specify CFLAGS.
7281 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7284 emacs_g3_CFLAGS
='-g3';;
7286 emacs_g3_CFLAGS
='-g3 -O2';;
7288 emacs_g3_CFLAGS
='';;
7290 if test -n "$emacs_g3_CFLAGS"; then
7291 emacs_save_CFLAGS
=$CFLAGS
7292 CFLAGS
=$emacs_g3_CFLAGS
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7294 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7295 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7309 if ac_fn_c_try_link
"$LINENO"; then :
7310 emacs_cv_prog_cc_g3
=yes
7312 emacs_cv_prog_cc_g3
=no
7314 rm -f core conftest.err conftest.
$ac_objext \
7315 conftest
$ac_exeext conftest.
$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7318 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7319 if test $emacs_cv_prog_cc_g3 != yes; then
7320 CFLAGS
=$emacs_save_CFLAGS
7327 # No optimization flag was inferred for this non-GCC compiler.
7328 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7329 emacs_save_CFLAGS
=$CFLAGS
7330 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7333 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7334 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_link
"$LINENO"; then :
7349 emacs_cv_prog_cc_o
=yes
7351 emacs_cv_prog_cc_o
=no
7353 rm -f core conftest.err conftest.
$ac_objext \
7354 conftest
$ac_exeext conftest.
$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7357 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7358 if test $emacs_cv_prog_cc_o != yes; then
7359 CFLAGS
=$emacs_save_CFLAGS
7364 # Check whether --enable-gcc-warnings was given.
7365 if test "${enable_gcc_warnings+set}" = set; then :
7366 enableval
=$enable_gcc_warnings; case $enableval in
7368 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7370 gl_gcc_warnings
=$enableval
7377 # Check whether --enable-link-time-optimization was given.
7378 if test "${enable_link_time_optimization+set}" = set; then :
7379 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7381 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7383 if test x
$GCC = xyes
; then
7384 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7385 if test x
$CPUS != x
; then
7391 CFLAGS
="$CFLAGS $LTO"
7392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7403 if ac_fn_c_try_compile
"$LINENO"; then :
7404 ac_lto_supported
=yes
7408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7409 CFLAGS
="$old_CFLAGS"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7412 $as_echo "$ac_lto_supported" >&6; }
7413 if test "$ac_lto_supported" = "yes"; then
7414 CFLAGS
="$CFLAGS $LTO"
7420 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7421 # ------------------------------------------------
7422 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7423 # Otherwise, run RUN-IF-NOT-FOUND.
7426 # When compiling with GCC, prefer -isystem to -I when including system
7427 # include files, to avoid generating useless diagnostics for the files.
7428 if test "$gl_gcc_warnings" != yes; then
7433 # This, $nw, is the list of warnings we disable.
7436 case $with_x_toolkit in
7437 lucid | athena | motif
)
7438 # Old toolkits mishandle 'const'.
7439 nw
="$nw -Wwrite-strings"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7443 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7444 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7448 gl_save_compiler_FLAGS
="$CFLAGS"
7449 as_fn_append CFLAGS
" -Werror"
7450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7461 if ac_fn_c_try_compile
"$LINENO"; then :
7462 gl_cv_warn_c__Werror
=yes
7464 gl_cv_warn_c__Werror
=no
7466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7467 CFLAGS
="$gl_save_compiler_FLAGS"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7471 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7472 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7473 as_fn_append WERROR_CFLAGS
" -Werror"
7481 nw
="$nw -Waggregate-return" # anachronistic
7482 nw
="$nw -Wlong-long" # C90 is anachronistic
7483 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7484 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7485 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7486 nw
="$nw -Wcast-qual" # Too many warnings for now
7487 nw
="$nw -Wconversion" # Too many warnings for now
7488 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7489 nw
="$nw -Wsign-conversion" # Too many warnings for now
7490 nw
="$nw -Woverlength-strings" # Not a problem these days
7491 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7492 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7493 nw
="$nw -Wpadded" # Our structs are not padded
7494 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7495 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7496 nw
="$nw -Wformat-nonliteral" # we do this a lot
7497 nw
="$nw -Wvla" # warnings in gettext.h
7498 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7499 nw
="$nw -Wswitch-enum" # Too many warnings for now
7500 nw
="$nw -Wswitch-default" # Too many warnings for now
7501 nw
="$nw -Wfloat-equal" # warns about high-quality code
7502 nw
="$nw -Winline" # OK to ignore 'inline'
7503 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7504 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7505 # signed overflow has undefined behavior
7506 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7507 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7509 # Emacs doesn't care about shadowing; see
7510 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7513 # Emacs's use of alloca inhibits protecting the stack.
7514 nw
="$nw -Wstack-protector"
7516 # The following line should be removable at some point.
7517 nw
="$nw -Wsuggest-attribute=pure"
7521 if test -n "$GCC"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7524 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7525 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7529 gl_save_CFLAGS
="$CFLAGS"
7530 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7542 if ac_fn_c_try_compile
"$LINENO"; then :
7543 gl_cv_cc_nomfi_supported
=yes
7545 gl_cv_cc_nomfi_supported
=no
7547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 CFLAGS
="$gl_save_CFLAGS"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7552 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7554 if test "$gl_cv_cc_nomfi_supported" = yes; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7556 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7557 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7561 gl_save_CFLAGS
="$CFLAGS"
7562 CFLAGS
="$CFLAGS -W -Werror"
7563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7567 typedef struct { int a; int b; } s_t;
7579 if ac_fn_c_try_compile
"$LINENO"; then :
7580 gl_cv_cc_nomfi_needed
=no
7582 gl_cv_cc_nomfi_needed
=yes
7584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 CFLAGS
="$gl_save_CFLAGS"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7590 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7594 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7595 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7599 gl_save_CFLAGS
="$CFLAGS"
7600 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7612 if ac_fn_c_try_compile
"$LINENO"; then :
7613 gl_cv_cc_uninitialized_supported
=yes
7615 gl_cv_cc_uninitialized_supported
=no
7617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7618 CFLAGS
="$gl_save_CFLAGS"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7622 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7626 # List all gcc warning categories.
7628 for gl_manywarn_item
in \
7635 -Wbad-function-cast \
7636 -Wbuiltin-macro-redefined \
7642 -Wcoverage-mismatch \
7645 -Wdeprecated-declarations \
7646 -Wdisabled-optimization \
7648 -Wdouble-promotion \
7653 -Wformat-contains-nul \
7654 -Wformat-extra-args \
7655 -Wformat-nonliteral \
7658 -Wformat-zero-length \
7660 -Wfree-nonheap-object \
7661 -Wignored-qualifiers \
7663 -Wimplicit-function-declaration \
7667 -Wint-to-pointer-cast \
7668 -Winvalid-memory-model \
7670 -Wjump-misses-init \
7673 -Wmaybe-uninitialized \
7675 -Wmissing-declarations \
7676 -Wmissing-field-initializers \
7677 -Wmissing-format-attribute \
7678 -Wmissing-include-dirs \
7679 -Wmissing-noreturn \
7680 -Wmissing-parameter-type \
7681 -Wmissing-prototypes \
7688 -Wold-style-declaration \
7689 -Wold-style-definition \
7691 -Woverlength-strings \
7694 -Wpacked-bitfield-compat \
7698 -Wpointer-to-int-cast \
7703 -Wsizeof-pointer-memaccess \
7707 -Wstrict-prototypes \
7708 -Wsuggest-attribute=const \
7709 -Wsuggest-attribute=format \
7710 -Wsuggest-attribute=noreturn \
7711 -Wsuggest-attribute=pure \
7721 -Wunreachable-code \
7722 -Wunsafe-loop-optimizations \
7724 -Wunused-but-set-parameter \
7725 -Wunused-but-set-variable \
7728 -Wunused-local-typedefs \
7730 -Wunused-parameter \
7736 -Wvector-operation-performance \
7738 -Wvolatile-register-var \
7742 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7745 # Disable specific options as needed.
7746 if test "$gl_cv_cc_nomfi_needed" = yes; then
7747 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7750 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7751 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7762 *" $gl_warn_item "*)
7765 gl_warn_set
="$gl_warn_set $gl_warn_item"
7772 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7774 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7775 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7776 $as_echo_n "(cached) " >&6
7779 gl_save_compiler_FLAGS
="$CFLAGS"
7780 as_fn_append CFLAGS
" $w"
7781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7792 if ac_fn_c_try_compile
"$LINENO"; then :
7793 eval "$as_gl_Warn=yes"
7795 eval "$as_gl_Warn=no"
7797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7798 CFLAGS
="$gl_save_compiler_FLAGS"
7801 eval ac_res
=\$
$as_gl_Warn
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7803 $as_echo "$ac_res" >&6; }
7804 eval as_val
=\$
$as_gl_Warn
7805 if test "x$as_val" = x
""yes; then :
7806 as_fn_append WARN_CFLAGS
" $w"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7812 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7813 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7817 gl_save_compiler_FLAGS
="$CFLAGS"
7818 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7830 if ac_fn_c_try_compile
"$LINENO"; then :
7831 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7833 gl_cv_warn_c__Wno_missing_field_initializers
=no
7835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 CFLAGS
="$gl_save_compiler_FLAGS"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7840 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7841 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7842 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7847 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7848 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7852 gl_save_compiler_FLAGS
="$CFLAGS"
7853 as_fn_append CFLAGS
" -Wno-sign-compare"
7854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7865 if ac_fn_c_try_compile
"$LINENO"; then :
7866 gl_cv_warn_c__Wno_sign_compare
=yes
7868 gl_cv_warn_c__Wno_sign_compare
=no
7870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7871 CFLAGS
="$gl_save_compiler_FLAGS"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7875 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7876 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7877 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7880 # Too many warnings for now
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7882 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7883 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7887 gl_save_compiler_FLAGS
="$CFLAGS"
7888 as_fn_append CFLAGS
" -Wno-type-limits"
7889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7900 if ac_fn_c_try_compile
"$LINENO"; then :
7901 gl_cv_warn_c__Wno_type_limits
=yes
7903 gl_cv_warn_c__Wno_type_limits
=no
7905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 CFLAGS
="$gl_save_compiler_FLAGS"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7910 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7911 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7912 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7915 # Too many warnings for now
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7917 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7918 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7922 gl_save_compiler_FLAGS
="$CFLAGS"
7923 as_fn_append CFLAGS
" -Wno-switch"
7924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7935 if ac_fn_c_try_compile
"$LINENO"; then :
7936 gl_cv_warn_c__Wno_switch
=yes
7938 gl_cv_warn_c__Wno_switch
=no
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7941 CFLAGS
="$gl_save_compiler_FLAGS"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7945 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7946 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7947 as_fn_append WARN_CFLAGS
" -Wno-switch"
7950 # Too many warnings for now
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7952 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7953 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7957 gl_save_compiler_FLAGS
="$CFLAGS"
7958 as_fn_append CFLAGS
" -Wno-unused-parameter"
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7970 if ac_fn_c_try_compile
"$LINENO"; then :
7971 gl_cv_warn_c__Wno_unused_parameter
=yes
7973 gl_cv_warn_c__Wno_unused_parameter
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7976 CFLAGS
="$gl_save_compiler_FLAGS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7980 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7981 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7982 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7985 # Too many warnings for now
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7987 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7988 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7992 gl_save_compiler_FLAGS
="$CFLAGS"
7993 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8005 if ac_fn_c_try_compile
"$LINENO"; then :
8006 gl_cv_warn_c__Wno_format_nonliteral
=yes
8008 gl_cv_warn_c__Wno_format_nonliteral
=no
8010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8011 CFLAGS
="$gl_save_compiler_FLAGS"
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8015 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8016 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8017 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8022 # In spite of excluding -Wlogical-op above, it is enabled, as of
8023 # gcc 4.5.0 20090517.
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8025 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8026 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8030 gl_save_compiler_FLAGS
="$CFLAGS"
8031 as_fn_append CFLAGS
" -Wno-logical-op"
8032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8043 if ac_fn_c_try_compile
"$LINENO"; then :
8044 gl_cv_warn_c__Wno_logical_op
=yes
8046 gl_cv_warn_c__Wno_logical_op
=no
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8049 CFLAGS
="$gl_save_compiler_FLAGS"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8053 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8054 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8055 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8061 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8062 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8066 gl_save_compiler_FLAGS
="$CFLAGS"
8067 as_fn_append CFLAGS
" -fdiagnostics-show-option"
8068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8079 if ac_fn_c_try_compile
"$LINENO"; then :
8080 gl_cv_warn_c__fdiagnostics_show_option
=yes
8082 gl_cv_warn_c__fdiagnostics_show_option
=no
8084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 CFLAGS
="$gl_save_compiler_FLAGS"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8089 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8090 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8091 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8096 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8097 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8101 gl_save_compiler_FLAGS
="$CFLAGS"
8102 as_fn_append CFLAGS
" -funit-at-a-time"
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8114 if ac_fn_c_try_compile
"$LINENO"; then :
8115 gl_cv_warn_c__funit_at_a_time
=yes
8117 gl_cv_warn_c__funit_at_a_time
=no
8119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 CFLAGS
="$gl_save_compiler_FLAGS"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8124 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8125 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8126 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8132 $as_echo "#define lint 1" >>confdefs.h
8136 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8139 # We use a slightly smaller set of warning options for lib/.
8140 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8142 nw
="$nw -Wunused-macros"
8146 set x
$WARN_CFLAGS; shift
8150 *" $gl_warn_item "*)
8153 gl_warn_set
="$gl_warn_set $gl_warn_item"
8157 GNULIB_WARN_CFLAGS
=$gl_warn_set
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8168 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8169 rm -f conf$$ conf$$.
file
8171 LN_S_FILEONLY
='cp -p'
8173 if (echo >conf$$.
file) 2>/dev
/null
; then
8174 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8175 LN_S_FILEONLY
='ln -s'
8176 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8181 rm -f conf$$ conf$$.
file
8183 if test "$LN_S_FILEONLY" = "ln -s"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8188 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8194 # Extract the first word of "install-info", so it can be a program name with args.
8195 set dummy install-info
; ac_word
=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8201 case $INSTALL_INFO in
8203 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8207 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8210 test -z "$as_dir" && as_dir
=.
8211 for ac_exec_ext
in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8225 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8226 if test -n "$INSTALL_INFO"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8228 $as_echo "$INSTALL_INFO" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8235 # Extract the first word of "gzip", so it can be a program name with args.
8236 set dummy
gzip; ac_word
=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8244 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir
=.
8252 for ac_exec_ext
in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8266 if test -n "$GZIP_PROG"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8268 $as_echo "$GZIP_PROG" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8276 if test $opsys = gnu-linux
; then
8277 # Extract the first word of "paxctl", so it can be a program name with args.
8278 set dummy paxctl
; ac_word
=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8286 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8290 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8293 test -z "$as_dir" && as_dir
=.
8294 for ac_exec_ext
in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 PAXCTL
=$ac_cv_path_PAXCTL
8308 if test -n "$PAXCTL"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8310 $as_echo "$PAXCTL" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8317 if test "X$PAXCTL" != X
; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8319 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8331 if ac_fn_c_try_link
"$LINENO"; then :
8332 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 $as_echo "yes" >&6; }
8334 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }; PAXCTL
=""; fi
8337 rm -f core conftest.err conftest.
$ac_objext \
8338 conftest
$ac_exeext conftest.
$ac_ext
8342 ## Need makeinfo >= 4.7 (?) to build the manuals.
8343 # Extract the first word of "makeinfo", so it can be a program name with args.
8344 set dummy makeinfo
; ac_word
=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8352 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir
=.
8360 for ac_exec_ext
in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8374 MAKEINFO
=$ac_cv_path_MAKEINFO
8375 if test -n "$MAKEINFO"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8377 $as_echo "$MAKEINFO" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8384 if test "$MAKEINFO" != "no"; then
8386 $MAKEINFO --version 2> /dev/null |
8387 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8393 ## Makeinfo is unusual. For a released Emacs, the manuals are
8394 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8395 ## therefore in the category of "special tools" not normally required, which
8396 ## configure does not have to check for (eg autoconf itself).
8397 ## In a Bazaar checkout on the other hand, the manuals are not included.
8398 ## So makeinfo is a requirement to build from Bazaar, and configure
8399 ## should test for it as it does for any other build requirement.
8400 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8401 ## with pre-built manuals, from a Bazaar checkout.
8404 if test "$MAKEINFO" = "no"; then
8406 if test "x${with_makeinfo}" = "xno"; then
8408 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8409 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8410 source tree does not seem to have pre-built manuals in the \`info' directory.
8411 Either install a suitable version of makeinfo, or re-run configure
8412 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8418 INFO_OPTS
=--no-split
8423 if test x
$GCC = xyes
; then
8424 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8425 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8427 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8428 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8432 late_LDFLAGS
=$LDFLAGS
8433 if test x
$GCC = xyes
; then
8434 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8436 LDFLAGS
="$LDFLAGS -znocombreloc"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8440 $as_echo_n "checking for -znocombreloc... " >&6; }
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8452 if ac_fn_c_try_link
"$LINENO"; then :
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8454 $as_echo "yes" >&6; }
8456 LDFLAGS
=$late_LDFLAGS
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8460 rm -f core conftest.err conftest.
$ac_objext \
8461 conftest
$ac_exeext conftest.
$ac_ext
8464 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8466 your-opsys-here
) CANNOT_DUMP
=yes ;;
8469 test "$CANNOT_DUMP" = "yes" && \
8471 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8477 UNEXEC_OBJ
=unexelf.o
8479 # MSDOS uses unexcoff.o
8480 # MSWindows uses unexw32.o
8482 UNEXEC_OBJ
=unexaix.o
8488 UNEXEC_OBJ
=unexmacosx.o
8491 UNEXEC_OBJ
=unexhp9k800.o
8494 # Use the Solaris dldump() function, called from unexsol.c, to dump
8495 # emacs, instead of the generic ELF dump code found in unexelf.c.
8496 # The resulting binary has a complete symbol table, and is better
8497 # for debugging and other observability tools (debuggers, pstack, etc).
8499 # If you encounter a problem using dldump(), please consider sending
8500 # a message to the OpenSolaris tools-linking mailing list:
8501 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8503 # It is likely that dldump() works with older Solaris too, but this has
8504 # not been tested, so for now this change is for Solaris 10 or newer.
8505 UNEXEC_OBJ
=unexsol.o
8512 ## Let `ld' find image libs and similar things in /usr/local/lib.
8513 ## The system compiler, GCC, has apparently been modified to not
8514 ## look there, contrary to what a stock GCC would do.
8515 ### It's not our place to do this. See bug#10313#17.
8516 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8521 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8522 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8526 ### It's not our place to do this. See bug#10313#17.
8527 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8532 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8533 ## otherwise Emacs dumps core on elf systems.
8534 LD_SWITCH_SYSTEM
="-Z"
8539 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8541 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8542 ## which has not been defined yet. When this was handled with cpp,
8543 ## it was expanded to null when configure sourced the s/*.h file.
8544 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8545 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8546 ## (or somesuch), but because it is supposed to go at the _front_
8547 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8548 ## Compare with the gnu-linux case below, which added to the end
8549 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8550 ## LD_SWITCH_SYSTEM_TEMACS.
8553 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8560 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8561 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8565 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8566 ## With ELF, make sure that all common symbols get allocated to in the
8567 ## data section. Otherwise, the dump of temacs may miss variables in
8568 ## the shared library that have been initialized. For example, with
8569 ## GNU libc, __malloc_initialized would normally be resolved to the
8570 ## shared library's .bss section, which is fatal.
8571 if test "x$GCC" = "xyes"; then
8572 C_SWITCH_MACHINE
="-fno-common"
8574 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8577 UNEXEC_OBJ
=unexalpha.o
8586 ## Some programs in src produce warnings saying certain subprograms
8587 ## are too complex and need a MAXMEM value greater than 2000 for
8588 ## additional optimization. --nils@exp-math.uni-essen.de
8589 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8590 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8591 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8592 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8598 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8599 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8601 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8603 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8605 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8607 ## Motif needs -lgen.
8608 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8613 ### Make sure subsequent tests use flags consistent with the build flags.
8615 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8616 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8618 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8621 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8623 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8628 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8635 ## Adding -lm confuses the dynamic linker, so omit it.
8638 freebsd | dragonfly
)
8639 SYSTEM_TYPE
=berkeley-unix
8641 gnu-linux | gnu-kfreebsd
)
8643 hpux10-20 | hpux11
)
8646 SYSTEM_TYPE
=berkeley-unix
8650 SYSTEM_TYPE
=usg-unix-v
8657 cat >>confdefs.h
<<_ACEOF
8658 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8663 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8664 pre_PKG_CONFIG_LIBS
=$LIBS
8666 # Extract the first word of "pkg-config", so it can be a program name with args.
8667 set dummy pkg-config
; ac_word
=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8675 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir
=.
8683 for ac_exec_ext
in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8697 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8698 if test -n "$PKG_CONFIG"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8700 $as_echo "$PKG_CONFIG" >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8711 if test "${with_sound}" != "no"; then
8712 # Sound support for GNU/Linux and the free BSDs.
8713 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8715 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8717 eval as_val
=\$
$as_ac_Header
8718 if test "x$as_val" = x
""yes; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722 have_sound_header
=yes
8727 # Emulation library used on NetBSD.
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8729 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8730 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8733 ac_check_lib_save_LIBS
=$LIBS
8734 LIBS
="-lossaudio $LIBS"
8735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8738 /* Override any GCC internal prototype to avoid an error.
8739 Use char because int might match the return type of a GCC
8740 builtin and then its argument prototype would still apply. */
8748 return _oss_ioctl ();
8753 if ac_fn_c_try_link
"$LINENO"; then :
8754 ac_cv_lib_ossaudio__oss_ioctl
=yes
8756 ac_cv_lib_ossaudio__oss_ioctl
=no
8758 rm -f core conftest.err conftest.
$ac_objext \
8759 conftest
$ac_exeext conftest.
$ac_ext
8760 LIBS
=$ac_check_lib_save_LIBS
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8763 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8764 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8773 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8777 if test "$PKG_CONFIG" = "no" ; then
8780 PKG_CONFIG_MIN_VERSION
=0.9.0
8781 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8783 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8785 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8786 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8787 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8794 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8795 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8797 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8804 ## If we have a custom action on failure, don't print errors, but
8805 ## do set a variable so people can do so. Do it in a subshell
8806 ## to capture any diagnostics in invoking pkg-config.
8807 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8819 if test $succeeded = yes; then
8825 if test $HAVE_ALSA = yes; then
8826 SAVE_CFLAGS
="$CFLAGS"
8828 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8829 LIBS
="$ALSA_LIBS $LIBS"
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <asoundlib.h>
8836 snd_lib_error_set_handler (0);
8841 if ac_fn_c_try_compile
"$LINENO"; then :
8842 emacs_alsa_normal
=yes
8844 emacs_alsa_normal
=no
8846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 if test "$emacs_alsa_normal" != yes; then
8848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #include <alsa/asoundlib.h>
8854 snd_lib_error_set_handler (0);
8859 if ac_fn_c_try_compile
"$LINENO"; then :
8860 emacs_alsa_subdir
=yes
8862 emacs_alsa_subdir
=no
8864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8865 if test "$emacs_alsa_subdir" != yes; then
8866 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8868 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8871 CFLAGS
="$SAVE_CFLAGS"
8873 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8874 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8876 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8880 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8882 gnu-linux|freebsd|netbsd
)
8884 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8896 for ac_header
in $ac_header_list
8898 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8901 eval as_val
=\$
$as_ac_Header
8902 if test "x$as_val" = x
""yes; then :
8903 cat >>confdefs.h
<<_ACEOF
8904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8932 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <sys/personality.h>
8939 personality (PER_LINUX32)
8944 if ac_fn_c_try_compile
"$LINENO"; then :
8945 emacs_cv_personality_linux32
=yes
8947 emacs_cv_personality_linux32
=no
8949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8951 $as_echo "$emacs_cv_personality_linux32" >&6; }
8953 if test $emacs_cv_personality_linux32 = yes; then
8955 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8959 for ac_header
in term.h
8961 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8962 if test "x$ac_cv_header_term_h" = x
""yes; then :
8963 cat >>confdefs.h
<<_ACEOF
8964 #define HAVE_TERM_H 1
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8972 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8973 if test "${ac_cv_header_time+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 #include <sys/types.h>
8979 #include <sys/time.h>
8985 if ((struct tm *) 0)
8991 if ac_fn_c_try_compile
"$LINENO"; then :
8992 ac_cv_header_time
=yes
8994 ac_cv_header_time
=no
8996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8999 $as_echo "$ac_cv_header_time" >&6; }
9000 if test $ac_cv_header_time = yes; then
9002 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9006 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9009 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9015 cat >>confdefs.h
<<_ACEOF
9016 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9019 if test $ac_cv_have_decl_sys_siglist != yes; then
9020 # For Tru64, at least:
9021 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9024 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9030 cat >>confdefs.h
<<_ACEOF
9031 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9034 if test $ac_cv_have_decl___sys_siglist = yes; then
9036 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9041 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9042 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <sys/types.h>
9048 #include <sys/wait.h>
9050 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9061 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9066 if ac_fn_c_try_compile
"$LINENO"; then :
9067 ac_cv_header_sys_wait_h
=yes
9069 ac_cv_header_sys_wait_h
=no
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9074 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9075 if test $ac_cv_header_sys_wait_h = yes; then
9077 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9083 $as_echo_n "checking for speed_t... " >&6; }
9084 if test "${emacs_cv_speed_t+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <termios.h>
9098 if ac_fn_c_try_compile
"$LINENO"; then :
9099 emacs_cv_speed_t
=yes
9103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9106 $as_echo "$emacs_cv_speed_t" >&6; }
9107 if test $emacs_cv_speed_t = yes; then
9109 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9116 for ac_header
in net
/if.h
9118 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9119 #if HAVE_SYS_SOCKET_H
9120 #include <sys/socket.h>
9123 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9124 cat >>confdefs.h
<<_ACEOF
9125 #define HAVE_NET_IF_H 1
9132 for ac_header
in ifaddrs.h
9134 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9135 #if HAVE_SYS_SOCKET_H
9136 #include <sys/socket.h>
9139 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9140 cat >>confdefs.h
<<_ACEOF
9141 #define HAVE_IFADDRS_H 1
9148 for ac_header
in net
/if_dl.h
9150 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9151 #if HAVE_SYS_SOCKET_H
9152 #include <sys/socket.h>
9155 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9156 cat >>confdefs.h
<<_ACEOF
9157 #define HAVE_NET_IF_DL_H 1
9165 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9166 #if HAVE_SYS_SOCKET_H
9167 #include <sys/socket.h>
9173 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9175 cat >>confdefs.h
<<_ACEOF
9176 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9181 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9182 #if HAVE_SYS_SOCKET_H
9183 #include <sys/socket.h>
9189 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9191 cat >>confdefs.h
<<_ACEOF
9192 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9197 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9198 #if HAVE_SYS_SOCKET_H
9199 #include <sys/socket.h>
9205 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9207 cat >>confdefs.h
<<_ACEOF
9208 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9213 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9214 #if HAVE_SYS_SOCKET_H
9215 #include <sys/socket.h>
9221 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9223 cat >>confdefs.h
<<_ACEOF
9224 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9229 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9230 #if HAVE_SYS_SOCKET_H
9231 #include <sys/socket.h>
9237 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9239 cat >>confdefs.h
<<_ACEOF
9240 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9245 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9246 #if HAVE_SYS_SOCKET_H
9247 #include <sys/socket.h>
9253 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9255 cat >>confdefs.h
<<_ACEOF
9256 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9268 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9270 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9272 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9273 if test "x$testval" != x
; then
9276 ac_enable_autodepend
=no
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9279 $as_echo "$HAVE_GNU_MAKE" >&6; }
9280 if test $HAVE_GNU_MAKE = yes; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9282 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9283 SAVE_CFLAGS
="$CFLAGS"
9284 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9296 if ac_fn_c_try_compile
"$LINENO"; then :
9299 ac_enable_autodepend
=no
9301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9302 CFLAGS
="$SAVE_CFLAGS"
9303 test -f deps.d || ac_enable_autodepend
=no
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9306 $as_echo "$ac_enable_autodepend" >&6; }
9308 if test $ac_enable_autodepend = yes; then
9309 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9310 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9311 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9312 deps_frag
=autodeps.mk
9315 deps_frag
=$srcdir/src
/$deps_frag
9321 lisp_frag
=$srcdir/src
/lisp.mk
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9326 $as_echo_n "checking for long file names... " >&6; }
9327 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9330 ac_cv_sys_long_file_names
=yes
9331 # Test for long file names in all the places we know might matter:
9332 # . the current directory, where building will happen
9333 # $prefix/lib where we will be installing things
9334 # $exec_prefix/lib likewise
9335 # $TMPDIR if set, where it might want to write temporary files
9336 # /tmp where it might want to write temporary files
9339 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9340 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9341 # in the usual case where exec_prefix is '${prefix}'.
9343 . |
/* | ?
:[\\/]*) ;; #(
9346 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9347 ac_xdir
=$ac_dir/cf$$
9348 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9349 ac_tf1
=$ac_xdir/conftest9012345
9350 ac_tf2
=$ac_xdir/conftest9012346
9351 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9352 ac_cv_sys_long_file_names
=no
9353 rm -f -r "$ac_xdir" 2>/dev
/null
9354 test $ac_cv_sys_long_file_names = no
&& break
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9358 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9359 if test $ac_cv_sys_long_file_names = yes; then
9361 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9366 #### Choose a window system.
9368 ## We leave window_system equal to none if
9369 ## we end up building without one. Any new window system should
9370 ## set window_system to an appropriate value and add objects to
9371 ## window-system-specific substs.
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9375 $as_echo_n "checking for X... " >&6; }
9378 # Check whether --with-x was given.
9379 if test "${with_x+set}" = set; then :
9383 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9384 if test "x$with_x" = xno
; then
9385 # The user explicitly disabled X.
9388 case $x_includes,$x_libraries in #(
9389 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9390 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9393 # One or both of the vars are not set, and there is no cached value.
9394 ac_x_includes
=no ac_x_libraries
=no
9395 rm -f -r conftest.dir
9396 if mkdir conftest.dir
; then
9398 cat >Imakefile
<<'_ACEOF'
9400 @echo incroot='${INCROOT}'
9402 @echo usrlibdir='${USRLIBDIR}'
9404 @echo libdir='${LIBDIR}'
9406 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9407 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9408 for ac_var
in incroot usrlibdir libdir
; do
9409 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9412 for ac_extension
in a so sl dylib la dll
; do
9413 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9414 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9415 ac_im_usrlibdir
=$ac_im_libdir; break
9418 # Screen out bogus values from the imake configuration. They are
9419 # bogus both because they are the default anyway, and because
9420 # using them would break gcc on systems where it needs fixed includes.
9421 case $ac_im_incroot in
9422 /usr
/include
) ac_x_includes
= ;;
9423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9425 case $ac_im_usrlibdir in
9426 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9431 rm -f -r conftest.dir
9434 # Standard set of common directories for X headers.
9435 # Check X11 before X11Rn because it is often a symlink to the current release.
9449 /usr/local/X11/include
9450 /usr/local/X11R7/include
9451 /usr/local/X11R6/include
9452 /usr/local/X11R5/include
9453 /usr/local/X11R4/include
9455 /usr/local/include/X11
9456 /usr/local/include/X11R7
9457 /usr/local/include/X11R6
9458 /usr/local/include/X11R5
9459 /usr/local/include/X11R4
9463 /usr/XFree86/include/X11
9467 /usr/unsupported/include
9469 /usr/local/x11r5/include
9470 /usr/lpp/Xamples/include
9472 /usr/openwin/include
9473 /usr/openwin/share/include'
9475 if test "$ac_x_includes" = no
; then
9476 # Guess where to find include files, by looking for Xlib.h.
9477 # First, try using that file with no special directory specified.
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9482 if ac_fn_c_try_cpp
"$LINENO"; then :
9483 # We can compile using X headers with no special include directory.
9486 for ac_dir
in $ac_x_header_dirs; do
9487 if test -r "$ac_dir/X11/Xlib.h"; then
9488 ac_x_includes
=$ac_dir
9493 rm -f conftest.err conftest.
$ac_ext
9494 fi # $ac_x_includes = no
9496 if test "$ac_x_libraries" = no
; then
9497 # Check for the libraries.
9498 # See if we find them without any special options.
9499 # Don't add to $LIBS permanently.
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504 #include <X11/Xlib.h>
9513 if ac_fn_c_try_link
"$LINENO"; then :
9515 # We can link X programs with no special library path.
9519 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9521 # Don't even attempt the hair of trying to link an X program!
9522 for ac_extension
in a so sl dylib la dll
; do
9523 if test -r "$ac_dir/libX11.$ac_extension"; then
9524 ac_x_libraries
=$ac_dir
9530 rm -f core conftest.err conftest.
$ac_objext \
9531 conftest
$ac_exeext conftest.
$ac_ext
9532 fi # $ac_x_libraries = no
9534 case $ac_x_includes,$ac_x_libraries in #(
9536 # Didn't find X, or a directory has "'" in its name.
9537 ac_cv_have_x
="have_x=no";; #(
9539 # Record where we found X for the cache.
9540 ac_cv_have_x
="have_x=yes\
9541 ac_x_includes='$ac_x_includes'\
9542 ac_x_libraries='$ac_x_libraries'"
9548 eval "$ac_cv_have_x"
9551 if test "$have_x" != yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9553 $as_echo "$have_x" >&6; }
9556 # If each of the values was on the command line, it overrides each guess.
9557 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9558 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9559 # Update the cache value to reflect the command line values.
9560 ac_cv_have_x
="have_x=yes\
9561 ac_x_includes='$x_includes'\
9562 ac_x_libraries='$x_libraries'"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9564 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9567 if test "$no_x" != yes; then
9571 LD_SWITCH_X_SITE_RPATH
=
9572 if test "${x_libraries}" != NONE
; then
9573 if test -n "${x_libraries}"; then
9574 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9575 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9577 x_default_search_path
=""
9578 x_search_path
=${x_libraries}
9579 if test -z "${x_search_path}"; then
9580 x_search_path
=/usr
/lib
9582 for x_library
in `echo ${x_search_path}: | \
9583 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9585 ${x_library}/X11/%L/%T/%N%C%S:\
9586 ${x_library}/X11/%l/%T/%N%C%S:\
9587 ${x_library}/X11/%T/%N%C%S:\
9588 ${x_library}/X11/%L/%T/%N%S:\
9589 ${x_library}/X11/%l/%T/%N%S:\
9590 ${x_library}/X11/%T/%N%S"
9591 if test x
"${x_default_search_path}" = x
; then
9592 x_default_search_path
=${x_search_path}
9594 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9600 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9601 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9604 if test x
"${x_includes}" = x
; then
9605 bitmapdir
=/usr
/include
/X11
/bitmaps
9607 # accumulate include directories that have X11 bitmap subdirectories
9609 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9610 if test -d "${bmd}/X11/bitmaps"; then
9611 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9613 if test -d "${bmd}/bitmaps"; then
9614 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9617 if test ${bmd_acc} != "dummyval"; then
9618 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9625 tmp_CPPFLAGS
="$CPPFLAGS"
9626 tmp_CFLAGS
="$CFLAGS"
9627 CPPFLAGS
="$CPPFLAGS -x objective-c"
9628 CFLAGS
="$CFLAGS -x objective-c"
9631 if test "${with_ns}" != no
; then
9632 if test "${opsys}" = darwin
; then
9634 ns_appdir
=`pwd`/nextstep
/Emacs.app
9635 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9636 ns_appresdir
=${ns_appdir}/Contents
/Resources
9637 ns_appsrc
=Cocoa
/Emacs.base
9638 elif test -f $GNUSTEP_CONFIG_FILE; then
9640 ns_appdir
=`pwd`/nextstep
/Emacs.app
9641 ns_appbindir
=${ns_appdir}
9642 ns_appresdir
=${ns_appdir}/Resources
9643 ns_appsrc
=GNUstep
/Emacs.base
9644 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9645 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9646 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9647 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9648 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9649 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9650 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9651 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9652 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9653 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9654 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9655 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9657 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9658 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <GNUstepBase/GSConfig.h>
9667 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9676 if ac_fn_c_try_compile
"$LINENO"; then :
9677 emacs_cv_objc_exceptions
=yes
9679 emacs_cv_objc_exceptions
=no
9681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9684 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9685 if test $emacs_cv_objc_exceptions = yes; then
9687 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9689 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9693 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9695 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9696 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9699 as_fn_error
"\`--with-ns' was specified, but the include
9700 files are missing or cannot be compiled." "$LINENO" 5
9705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 #include <AppKit/AppKit.h>
9712 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9713 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9716 #error "OSX 10.4 or newer required"
9724 if ac_fn_c_try_compile
"$LINENO"; then :
9729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <Foundation/NSObjCRuntime.h>
9741 if ac_fn_c_try_compile
"$LINENO"; then :
9742 ns_have_nsinteger
=yes
9744 ns_have_nsinteger
=no
9746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9747 if test $ns_osx_have_104 = no
; then
9748 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
9750 if test $ns_have_nsinteger = yes; then
9752 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9759 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9760 ns_self_contained
=no
9763 if test "${HAVE_NS}" = yes; then
9764 if test "$with_toolkit_scroll_bars" = "no"; then
9765 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9768 window_system
=nextstep
9769 # set up packaging dirs
9770 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9771 ns_self_contained
=yes
9772 prefix
=${ns_appresdir}
9773 exec_prefix
=${ns_appbindir}
9774 libexecdir
="\${ns_appbindir}/libexec"
9775 archlibdir
="\${ns_appbindir}/libexec"
9776 docdir
="\${ns_appresdir}/etc"
9777 etcdir
="\${ns_appresdir}/etc"
9778 infodir
="\${ns_appresdir}/info"
9779 mandir
="\${ns_appresdir}/man"
9780 lispdir
="\${ns_appresdir}/lisp"
9781 leimdir
="\${ns_appresdir}/leim"
9782 INSTALL_ARCH_INDEP_EXTRA
=
9784 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9786 CFLAGS
="$tmp_CFLAGS"
9787 CPPFLAGS
="$tmp_CPPFLAGS"
9798 if test "${with_w32}" != no
; then
9799 if test "${opsys}" != "cygwin"; then
9800 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9802 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9803 if test "x$ac_cv_header_windows_h" = x
""yes; then :
9806 as_fn_error
"\`--with-w32' was specified, but windows.h
9807 cannot be found." "$LINENO" 5
9812 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9814 if test -n "$ac_tool_prefix"; then
9815 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9816 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9822 if test -n "$WINDRES"; then
9823 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9829 test -z "$as_dir" && as_dir
=.
9830 for ac_exec_ext
in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 WINDRES
=$ac_cv_prog_WINDRES
9843 if test -n "$WINDRES"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9845 $as_echo "$WINDRES" >&6; }
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9853 if test -z "$ac_cv_prog_WINDRES"; then
9854 ac_ct_WINDRES
=$WINDRES
9855 # Extract the first word of "windres", so it can be a program name with args.
9856 set dummy windres
; ac_word
=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9862 if test -n "$ac_ct_WINDRES"; then
9863 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9869 test -z "$as_dir" && as_dir
=.
9870 for ac_exec_ext
in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_ac_ct_WINDRES
="windres"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9883 if test -n "$ac_ct_WINDRES"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9885 $as_echo "$ac_ct_WINDRES" >&6; }
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9891 if test "x$ac_ct_WINDRES" = x
; then
9892 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
9894 case $cross_compiling:$ac_tool_warned in
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9898 ac_tool_warned
=yes ;;
9900 WINDRES
=$ac_ct_WINDRES
9903 WINDRES
="$ac_cv_prog_WINDRES"
9906 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9907 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9908 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9909 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9911 # Tell the linker that emacs.res is an object (which we compile from
9912 # the rc file), not a linker script.
9913 W32_RES_LINK
="-Wl,emacs.res"
9920 if test "${HAVE_W32}" = "yes"; then
9925 ## $window_system is now set to the window system we will
9933 case "${window_system}" in
9938 case "${with_x_toolkit}" in
9939 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9940 motif
) USE_X_TOOLKIT
=MOTIF
;;
9942 term_header
=gtkutil.h
9943 USE_X_TOOLKIT
=none
;;
9944 gtk2
) with_gtk2
=yes
9945 term_header
=gtkutil.h
9946 USE_X_TOOLKIT
=none
;;
9947 gtk3
) with_gtk3
=yes
9948 term_header
=gtkutil.h
9949 USE_X_TOOLKIT
=none
;;
9950 no
) USE_X_TOOLKIT
=none
;;
9951 * ) USE_X_TOOLKIT
=maybe
;;
9955 term_header
=nsterm.h
9958 term_header
=w32term.h
9962 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9963 # Extract the first word of "X", so it can be a program name with args.
9964 set dummy X
; ac_word
=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$HAVE_XSERVER"; then
9971 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir
=.
9978 for ac_exec_ext
in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_HAVE_XSERVER
="true"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9988 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9991 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9992 if test -n "$HAVE_XSERVER"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9994 $as_echo "$HAVE_XSERVER" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 if test "$HAVE_XSERVER" = true ||
10002 test -n "$DISPLAY" ||
10003 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10004 as_fn_error
"You seem to be running X, but no X development libraries
10005 were found. You should install the relevant development files for X
10006 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10007 sure you have development files for image handling, i.e.
10008 tiff, gif, jpeg, png and xpm.
10009 If you are sure you want Emacs compiled without X window support, pass
10011 to configure." "$LINENO" 5
10015 ### If we're using X11, we should use the X menu package.
10017 case ${HAVE_X11} in
10018 yes ) HAVE_MENUS
=yes ;;
10021 # Does the opsystem file prohibit the use of the GNU malloc?
10022 # Assume not, until told otherwise.
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10026 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10027 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <malloc.h>
10033 static void hook (void) {}
10037 malloc_set_state (malloc_get_state ());
10038 __after_morecore_hook = hook;
10039 __malloc_initialize_hook = hook;
10044 if ac_fn_c_try_link
"$LINENO"; then :
10045 emacs_cv_var_doug_lea_malloc
=yes
10047 emacs_cv_var_doug_lea_malloc
=no
10049 rm -f core conftest.err conftest.
$ac_objext \
10050 conftest
$ac_exeext conftest.
$ac_ext
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10053 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10054 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10059 ## darwin ld insists on the use of malloc routines in the System framework.
10060 darwin|sol2-10
) system_malloc
=yes ;;
10063 if test "${system_malloc}" = "yes"; then
10065 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10068 GNU_MALLOC_reason
="
10069 (The GNU allocators don't work with this system configuration.)"
10073 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10074 VMLIMIT_OBJ
=vm-limit.o
10076 for ac_header
in sys
/vlimit.h
10078 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10079 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10080 cat >>confdefs.h
<<_ACEOF
10081 #define HAVE_SYS_VLIMIT_H 1
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10089 $as_echo_n "checking for data_start... " >&6; }
10090 if test "${emacs_cv_data_start+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 extern char data_start[]; char ch;
10099 return data_start < &ch;
10104 if ac_fn_c_try_link
"$LINENO"; then :
10105 emacs_cv_data_start
=yes
10107 emacs_cv_data_start
=no
10109 rm -f core conftest.err conftest.
$ac_objext \
10110 conftest
$ac_exeext conftest.
$ac_ext
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10113 $as_echo "$emacs_cv_data_start" >&6; }
10114 if test $emacs_cv_data_start = yes; then
10116 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10123 if test "$doug_lea_malloc" = "yes" ; then
10124 if test "$GNU_MALLOC" = yes ; then
10125 GNU_MALLOC_reason
="
10126 (Using Doug Lea's new malloc from the GNU C Library.)"
10129 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10132 ## Use mmap directly for allocating larger buffers.
10133 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10134 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10135 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10137 gnu
*) REL_ALLOC
=no
;;
10141 if test x
"${REL_ALLOC}" = x
; then
10142 REL_ALLOC
=${GNU_MALLOC}
10145 use_mmap_for_buffers
=no
10147 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10157 for ac_func
in getpagesize
10159 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10160 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10161 cat >>confdefs.h
<<_ACEOF
10162 #define HAVE_GETPAGESIZE 1
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10169 $as_echo_n "checking for working mmap... " >&6; }
10170 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10173 if test "$cross_compiling" = yes; then :
10174 ac_cv_func_mmap_fixed_mapped
=no
10176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 /* malloc might have been renamed as rpl_malloc. */
10182 /* Thanks to Mike Haertel and Jim Avera for this test.
10183 Here is a matrix of mmap possibilities:
10184 mmap private not fixed
10185 mmap private fixed at somewhere currently unmapped
10186 mmap private fixed at somewhere already mapped
10187 mmap shared not fixed
10188 mmap shared fixed at somewhere currently unmapped
10189 mmap shared fixed at somewhere already mapped
10190 For private mappings, we should verify that changes cannot be read()
10191 back from the file, nor mmap's back from the file at a different
10192 address. (There have been systems where private was not correctly
10193 implemented like the infamous i386 svr4.0, and systems where the
10194 VM page cache was not coherent with the file system buffer cache
10195 like early versions of FreeBSD and possibly contemporary NetBSD.)
10196 For shared mappings, we should conversely verify that changes get
10197 propagated back to all the places they're supposed to be.
10199 Grep wants private fixed already mapped.
10200 The main things grep needs to know about mmap are:
10201 * does it exist and is it safe to write into the mmap'd area
10202 * how to use it (BSD variants) */
10205 #include <sys/mman.h>
10207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10211 /* This mess was copied from the GNU getpagesize.h. */
10212 #ifndef HAVE_GETPAGESIZE
10213 # ifdef _SC_PAGESIZE
10214 # define getpagesize() sysconf(_SC_PAGESIZE)
10215 # else /* no _SC_PAGESIZE */
10216 # ifdef HAVE_SYS_PARAM_H
10217 # include <sys/param.h>
10218 # ifdef EXEC_PAGESIZE
10219 # define getpagesize() EXEC_PAGESIZE
10220 # else /* no EXEC_PAGESIZE */
10222 # define getpagesize() NBPG * CLSIZE
10225 # endif /* no CLSIZE */
10226 # else /* no NBPG */
10228 # define getpagesize() NBPC
10229 # else /* no NBPC */
10231 # define getpagesize() PAGESIZE
10232 # endif /* PAGESIZE */
10233 # endif /* no NBPC */
10234 # endif /* no NBPG */
10235 # endif /* no EXEC_PAGESIZE */
10236 # else /* no HAVE_SYS_PARAM_H */
10237 # define getpagesize() 8192 /* punt totally */
10238 # endif /* no HAVE_SYS_PARAM_H */
10239 # endif /* no _SC_PAGESIZE */
10241 #endif /* no HAVE_GETPAGESIZE */
10246 char *data, *data2, *data3;
10247 const char *cdata2;
10251 pagesize = getpagesize ();
10253 /* First, make a file with some known garbage in it. */
10254 data = (char *) malloc (pagesize);
10257 for (i = 0; i < pagesize; ++i)
10258 *(data + i) = rand ();
10260 fd = creat ("conftest.mmap", 0600);
10263 if (write (fd, data, pagesize) != pagesize)
10267 /* Next, check that the tail of a page is zero-filled. File must have
10268 non-zero length, otherwise we risk SIGBUS for entire page. */
10269 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10273 if (write (fd2, cdata2, 1) != 1)
10275 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10276 if (data2 == MAP_FAILED)
10278 for (i = 0; i < pagesize; ++i)
10282 if (munmap (data2, pagesize))
10285 /* Next, try to mmap the file at a fixed address which already has
10286 something else allocated at it. If we can, also make sure that
10287 we see the same garbage. */
10288 fd = open ("conftest.mmap", O_RDWR);
10291 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10294 for (i = 0; i < pagesize; ++i)
10295 if (*(data + i) != *(data2 + i))
10298 /* Finally, make sure that changes to the mapped area do not
10299 percolate back to the file as seen by read(). (This is a bug on
10300 some variants of i386 svr4.0.) */
10301 for (i = 0; i < pagesize; ++i)
10302 *(data2 + i) = *(data2 + i) + 1;
10303 data3 = (char *) malloc (pagesize);
10306 if (read (fd, data3, pagesize) != pagesize)
10308 for (i = 0; i < pagesize; ++i)
10309 if (*(data + i) != *(data3 + i))
10315 if ac_fn_c_try_run
"$LINENO"; then :
10316 ac_cv_func_mmap_fixed_mapped
=yes
10318 ac_cv_func_mmap_fixed_mapped
=no
10320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10332 rm -f conftest.mmap conftest.txt
10334 if test $use_mmap_for_buffers = yes; then
10336 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10341 LIBS
="$LIBS_SYSTEM $LIBS"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10344 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10345 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 ac_check_lib_save_LIBS
=$LIBS
10349 LIBS
="-ldnet $LIBS"
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10363 return dnet_ntoa ();
10368 if ac_fn_c_try_link
"$LINENO"; then :
10369 ac_cv_lib_dnet_dnet_ntoa
=yes
10371 ac_cv_lib_dnet_dnet_ntoa
=no
10373 rm -f core conftest.err conftest.
$ac_objext \
10374 conftest
$ac_exeext conftest.
$ac_ext
10375 LIBS
=$ac_check_lib_save_LIBS
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10378 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10379 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10380 cat >>confdefs.h
<<_ACEOF
10381 #define HAVE_LIBDNET 1
10384 LIBS
="-ldnet $LIBS"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10390 $as_echo_n "checking for main in -lXbsd... " >&6; }
10391 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10394 ac_check_lib_save_LIBS
=$LIBS
10395 LIBS
="-lXbsd $LIBS"
10396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10408 if ac_fn_c_try_link
"$LINENO"; then :
10409 ac_cv_lib_Xbsd_main
=yes
10411 ac_cv_lib_Xbsd_main
=no
10413 rm -f core conftest.err conftest.
$ac_objext \
10414 conftest
$ac_exeext conftest.
$ac_ext
10415 LIBS
=$ac_check_lib_save_LIBS
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10418 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10419 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10420 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10428 if test "$ac_cv_header_pthread_h"; then
10429 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10430 emacs_pthread_function
=pthread_atfork
10432 emacs_pthread_function
=pthread_self
10434 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10436 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10437 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10438 $as_echo_n "(cached) " >&6
10440 ac_check_lib_save_LIBS
=$LIBS
10441 LIBS
="-lpthread $LIBS"
10442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10445 /* Override any GCC internal prototype to avoid an error.
10446 Use char because int might match the return type of a GCC
10447 builtin and then its argument prototype would still apply. */
10451 char $emacs_pthread_function ();
10455 return $emacs_pthread_function ();
10460 if ac_fn_c_try_link
"$LINENO"; then :
10461 eval "$as_ac_Lib=yes"
10463 eval "$as_ac_Lib=no"
10465 rm -f core conftest.err conftest.
$ac_objext \
10466 conftest
$ac_exeext conftest.
$ac_ext
10467 LIBS
=$ac_check_lib_save_LIBS
10469 eval ac_res
=\$
$as_ac_Lib
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10471 $as_echo "$ac_res" >&6; }
10472 eval as_val
=\$
$as_ac_Lib
10473 if test "x$as_val" = x
""yes; then :
10478 if test "$HAVE_PTHREAD" = yes; then
10479 case "${canonical}" in
10481 *) LIB_PTHREAD
="-lpthread"
10482 LIBS
="$LIB_PTHREAD $LIBS" ;;
10485 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10491 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10492 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10495 ac_check_lib_save_LIBS
=$LIBS
10496 LIBS
="-lpthreads $LIBS"
10497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10510 return cma_open ();
10515 if ac_fn_c_try_link
"$LINENO"; then :
10516 ac_cv_lib_pthreads_cma_open
=yes
10518 ac_cv_lib_pthreads_cma_open
=no
10520 rm -f core conftest.err conftest.
$ac_objext \
10521 conftest
$ac_exeext conftest.
$ac_ext
10522 LIBS
=$ac_check_lib_save_LIBS
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10525 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10526 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10527 cat >>confdefs.h
<<_ACEOF
10528 #define HAVE_LIBPTHREADS 1
10531 LIBS
="-lpthreads $LIBS"
10536 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10537 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10538 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10539 ## added to LIBS in configure would never contain the pthreads part,
10540 ## but the value used in Makefiles might. FIXME?
10542 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10543 ## be harmless on older versions of X where it happens to exist.
10544 test "$opsys" = "aix4-2" && \
10545 test $ac_cv_lib_pthreads_cma_open = yes && \
10546 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10552 $as_echo_n "checking for -bbigtoc option... " >&6; }
10553 if test "${gdb_cv_bigtoc+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10558 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10559 *) gdb_cv_bigtoc
=-bbigtoc ;;
10562 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10574 if ac_fn_c_try_link
"$LINENO"; then :
10579 rm -f core conftest.err conftest.
$ac_objext \
10580 conftest
$ac_exeext conftest.
$ac_ext
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10584 $as_echo "$gdb_cv_bigtoc" >&6; }
10588 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10589 # used for the tests that follow. We set them back to REAL_CFLAGS and
10590 # REAL_CPPFLAGS later on.
10592 REAL_CFLAGS
="$CFLAGS"
10593 REAL_CPPFLAGS
="$CPPFLAGS"
10595 if test "${HAVE_X11}" = "yes"; then
10596 DEFS
="$C_SWITCH_X_SITE $DEFS"
10597 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10599 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10600 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10602 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10603 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10604 # but it's more convenient here to set LD_RUN_PATH since this
10605 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10606 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10607 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10611 if test "${opsys}" = "gnu-linux"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10613 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10620 XOpenDisplay ("foo");
10625 if ac_fn_c_try_link
"$LINENO"; then :
10626 xgnu_linux_first_failure
=no
10628 xgnu_linux_first_failure
=yes
10630 rm -f core conftest.err conftest.
$ac_objext \
10631 conftest
$ac_exeext conftest.
$ac_ext
10632 if test "${xgnu_linux_first_failure}" = "yes"; then
10633 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10634 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10635 OLD_CPPFLAGS
="$CPPFLAGS"
10637 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10638 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10639 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10640 LIBS
="$LIBS -b i486-linuxaout"
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10647 XOpenDisplay ("foo");
10652 if ac_fn_c_try_link
"$LINENO"; then :
10653 xgnu_linux_second_failure
=no
10655 xgnu_linux_second_failure
=yes
10657 rm -f core conftest.err conftest.
$ac_objext \
10658 conftest
$ac_exeext conftest.
$ac_ext
10659 if test "${xgnu_linux_second_failure}" = "yes"; then
10660 # If we get the same failure with -b, there is no use adding -b.
10661 # So take it out. This plays safe.
10662 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10663 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10664 CPPFLAGS
="$OLD_CPPFLAGS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; }
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10678 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10679 # header files included from there.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10681 $as_echo_n "checking for Xkb... " >&6; }
10682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <X11/Xlib.h>
10685 #include <X11/XKBlib.h>
10689 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10694 if ac_fn_c_try_link
"$LINENO"; then :
10699 rm -f core conftest.err conftest.
$ac_objext \
10700 conftest
$ac_exeext conftest.
$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10702 $as_echo "$emacs_xkb" >&6; }
10703 if test $emacs_xkb = yes; then
10705 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10709 for ac_func
in XrmSetDatabase XScreenResourceString \
10710 XScreenNumberOfScreen
10712 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10714 eval as_val
=\$
$as_ac_var
10715 if test "x$as_val" = x
""yes; then :
10716 cat >>confdefs.h
<<_ACEOF
10717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10725 if test "${window_system}" = "x11"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10727 $as_echo_n "checking X11 version 6... " >&6; }
10728 if test "${emacs_cv_x11_version_6+set}" = set; then :
10729 $as_echo_n "(cached) " >&6
10731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <X11/Xlib.h>
10737 #if XlibSpecificationRelease < 6
10745 if ac_fn_c_try_link
"$LINENO"; then :
10746 emacs_cv_x11_version_6
=yes
10748 emacs_cv_x11_version_6
=no
10750 rm -f core conftest.err conftest.
$ac_objext \
10751 conftest
$ac_exeext conftest.
$ac_ext
10754 if test $emacs_cv_x11_version_6 = yes; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10756 $as_echo "6 or newer" >&6; }
10758 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10761 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10763 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10768 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10774 $as_echo "before 6" >&6; }
10779 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10781 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10782 if test "${with_rsvg}" != "no"; then
10783 RSVG_REQUIRED
=2.11.0
10784 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10789 if test "$PKG_CONFIG" = "no" ; then
10792 PKG_CONFIG_MIN_VERSION
=0.9.0
10793 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10795 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10797 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10798 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10799 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10806 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10807 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10809 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10816 ## If we have a custom action on failure, don't print errors, but
10817 ## do set a variable so people can do so. Do it in a subshell
10818 ## to capture any diagnostics in invoking pkg-config.
10819 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10831 if test $succeeded = yes; then
10840 if test $HAVE_RSVG = yes; then
10842 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10844 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10845 LIBS
="$RSVG_LIBS $LIBS"
10850 HAVE_IMAGEMAGICK
=no
10851 if test "${HAVE_X11}" = "yes"; then
10852 if test "${with_imagemagick}" != "no"; then
10853 ## 6.2.8 is the earliest version known to work, but earlier versions
10854 ## might work - let us know if you find one.
10855 ## 6.0.7 does not work. See bug#7955.
10856 ## 6.8.2 makes Emacs crash; see Bug#13867.
10857 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
10861 if test "$PKG_CONFIG" = "no" ; then
10864 PKG_CONFIG_MIN_VERSION
=0.9.0
10865 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10867 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10869 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10870 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10871 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10878 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10879 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10881 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10886 IMAGEMAGICK_CFLAGS
=""
10887 IMAGEMAGICK_LIBS
=""
10888 ## If we have a custom action on failure, don't print errors, but
10889 ## do set a variable so people can do so. Do it in a subshell
10890 ## to capture any diagnostics in invoking pkg-config.
10891 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10903 if test $succeeded = yes; then
10904 HAVE_IMAGEMAGICK
=yes
10912 if test $HAVE_IMAGEMAGICK = yes; then
10914 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10916 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10917 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10918 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10920 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10922 eval as_val
=\$
$as_ac_var
10923 if test "x$as_val" = x
""yes; then :
10924 cat >>confdefs.h
<<_ACEOF
10925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10943 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10948 if test "$PKG_CONFIG" = "no" ; then
10951 PKG_CONFIG_MIN_VERSION
=0.9.0
10952 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10954 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10956 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10957 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10958 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10965 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10966 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10968 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10975 ## If we have a custom action on failure, don't print errors, but
10976 ## do set a variable so people can do so. Do it in a subshell
10977 ## to capture any diagnostics in invoking pkg-config.
10978 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10990 if test $succeeded = yes; then
10996 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10997 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10999 if test "$pkg_check_gtk" = "yes"; then
11001 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11003 GTK_OBJ
=emacsgtkfixed.o
11004 term_header
=gtkutil.h
11005 USE_GTK_TOOLKIT
="GTK3"
11006 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11007 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11011 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11015 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11018 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11023 if test "$PKG_CONFIG" = "no" ; then
11026 PKG_CONFIG_MIN_VERSION
=0.9.0
11027 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11029 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11031 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11032 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11033 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11040 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11041 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11043 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11050 ## If we have a custom action on failure, don't print errors, but
11051 ## do set a variable so people can do so. Do it in a subshell
11052 ## to capture any diagnostics in invoking pkg-config.
11053 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11065 if test $succeeded = yes; then
11071 if test "$pkg_check_gtk" = "no" &&
11072 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11074 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11076 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11079 if test x
"$pkg_check_gtk" = xyes
; then
11083 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11084 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11085 LIBS
="$GTK_LIBS $LIBS"
11087 for ac_func
in gtk_main
11089 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11090 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11091 cat >>confdefs.h
<<_ACEOF
11092 #define HAVE_GTK_MAIN 1
11098 if test "${GTK_COMPILES}" != "yes"; then
11099 if test "$USE_X_TOOLKIT" != "maybe"; then
11100 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11105 $as_echo "#define USE_GTK 1" >>confdefs.h
11107 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11109 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11113 closing open displays. This is no problem if you just use
11114 one display, but if you use more than one and close one of them
11115 Emacs may crash." >&5
11116 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11117 closing open displays. This is no problem if you just use
11118 one display, but if you use more than one and close one of them
11119 Emacs may crash." >&2;}
11128 if test "${HAVE_GTK}" = "yes"; then
11130 if test "$with_toolkit_scroll_bars" != no
; then
11131 with_toolkit_scroll_bars
=yes
11134 HAVE_GTK_FILE_SELECTION
=no
11135 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11136 #include <gtk/gtk.h>
11138 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11139 HAVE_GTK_FILE_SELECTION
=yes
11141 HAVE_GTK_FILE_SELECTION
=no
11144 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11145 for ac_func
in gtk_file_selection_new
11147 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11148 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11149 cat >>confdefs.h
<<_ACEOF
11150 #define HAVE_GTK_FILE_SELECTION_NEW 1
11158 HAVE_GTK_HANDLE_BOX
=no
11159 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11160 #include <gtk/gtk.h>
11162 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11163 HAVE_GTK_HANDLE_BOX
=yes
11165 HAVE_GTK_HANDLE_BOX
=no
11168 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11169 for ac_func
in gtk_handle_box_new
11171 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11172 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11173 cat >>confdefs.h
<<_ACEOF
11174 #define HAVE_GTK_HANDLE_BOX_NEW 1
11182 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11183 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11184 #include <gtk/gtk.h>
11186 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11187 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11189 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11192 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11193 for ac_func
in gtk_tearoff_menu_item_new
11195 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11196 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11197 cat >>confdefs.h
<<_ACEOF
11198 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11206 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11207 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11208 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11209 gtk_orientable_set_orientation \
11210 gtk_window_set_has_resize_grip
11212 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11213 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11214 eval as_val
=\$
$as_ac_var
11215 if test "x$as_val" = x
""yes; then :
11216 cat >>confdefs.h
<<_ACEOF
11217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224 term_header
=gtkutil.h
11229 if test "${with_dbus}" = "yes"; then
11233 if test "$PKG_CONFIG" = "no" ; then
11236 PKG_CONFIG_MIN_VERSION
=0.9.0
11237 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11239 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11241 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11242 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11243 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11250 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11251 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11253 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so. Do it in a subshell
11262 ## to capture any diagnostics in invoking pkg-config.
11263 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11275 if test $succeeded = yes; then
11281 if test "$HAVE_DBUS" = yes; then
11282 LIBS
="$LIBS $DBUS_LIBS"
11284 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11286 for ac_func
in dbus_watch_get_unix_fd \
11287 dbus_type_is_valid \
11288 dbus_validate_bus_name \
11289 dbus_validate_path \
11290 dbus_validate_interface \
11291 dbus_validate_member
11293 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11295 eval as_val
=\$
$as_ac_var
11296 if test "x$as_val" = x
""yes; then :
11297 cat >>confdefs.h
<<_ACEOF
11298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11304 DBUS_OBJ
=dbusbind.o
11310 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11314 if test "$PKG_CONFIG" = "no" ; then
11317 PKG_CONFIG_MIN_VERSION
=0.9.0
11318 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11320 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11322 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11323 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11324 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11331 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11332 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11334 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 $as_echo "no" >&6; }
11339 GSETTINGS_CFLAGS
=""
11341 ## If we have a custom action on failure, don't print errors, but
11342 ## do set a variable so people can do so. Do it in a subshell
11343 ## to capture any diagnostics in invoking pkg-config.
11344 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11351 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11352 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11356 if test $succeeded = yes; then
11362 if test "$HAVE_GSETTINGS" = "yes"; then
11364 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11366 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11367 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11372 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11376 if test "$PKG_CONFIG" = "no" ; then
11379 PKG_CONFIG_MIN_VERSION
=0.9.0
11380 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11382 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11384 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11385 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11386 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11393 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11394 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11396 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11403 ## If we have a custom action on failure, don't print errors, but
11404 ## do set a variable so people can do so. Do it in a subshell
11405 ## to capture any diagnostics in invoking pkg-config.
11406 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11413 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11414 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11418 if test $succeeded = yes; then
11424 if test "$HAVE_GCONF" = yes; then
11426 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11428 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11429 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11433 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11437 if test "$PKG_CONFIG" = "no" ; then
11440 PKG_CONFIG_MIN_VERSION
=0.9.0
11441 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11443 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11445 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11446 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11447 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11454 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11455 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11457 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11464 ## If we have a custom action on failure, don't print errors, but
11465 ## do set a variable so people can do so. Do it in a subshell
11466 ## to capture any diagnostics in invoking pkg-config.
11467 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11479 if test $succeeded = yes; then
11485 if test "$HAVE_GOBJECT" = "yes"; then
11486 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11487 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11489 SAVE_CFLAGS
="$CFLAGS"
11491 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11492 LIBS
="$SETTINGS_LIBS $LIBS"
11493 for ac_func
in g_type_init
11495 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11496 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11497 cat >>confdefs.h
<<_ACEOF
11498 #define HAVE_G_TYPE_INIT 1
11504 CFLAGS
="$SAVE_CFLAGS"
11513 if test "${with_selinux}" = "yes"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11515 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11516 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11520 LIBS
="-lselinux $LIBS"
11521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11530 char lgetfilecon ();
11534 return lgetfilecon ();
11539 if ac_fn_c_try_link
"$LINENO"; then :
11540 ac_cv_lib_selinux_lgetfilecon
=yes
11542 ac_cv_lib_selinux_lgetfilecon
=no
11544 rm -f core conftest.err conftest.
$ac_objext \
11545 conftest
$ac_exeext conftest.
$ac_ext
11546 LIBS
=$ac_check_lib_save_LIBS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11549 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11550 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11551 HAVE_LIBSELINUX
=yes
11556 if test "$HAVE_LIBSELINUX" = yes; then
11558 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11560 LIBSELINUX_LIBS
=-lselinux
11566 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11567 if test "${with_gnutls}" = "yes" ; then
11571 if test "$PKG_CONFIG" = "no" ; then
11574 PKG_CONFIG_MIN_VERSION
=0.9.0
11575 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11577 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11579 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11580 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11581 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11588 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11589 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11591 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11596 LIBGNUTLS_CFLAGS
=""
11598 ## If we have a custom action on failure, don't print errors, but
11599 ## do set a variable so people can do so. Do it in a subshell
11600 ## to capture any diagnostics in invoking pkg-config.
11601 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11608 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11609 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11613 if test $succeeded = yes; then
11619 if test "${HAVE_GNUTLS}" = "yes"; then
11621 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11625 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11626 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11627 for ac_func
in gnutls_certificate_set_verify_function
11629 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11630 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11631 cat >>confdefs.h
<<_ACEOF
11632 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11634 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11639 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11641 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11649 if test "${with_inotify}" = "yes"; then
11650 for ac_header
in sys
/inotify.h
11652 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11653 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
11654 cat >>confdefs.h
<<_ACEOF
11655 #define HAVE_SYS_INOTIFY_H 1
11662 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11663 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11664 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
11670 if test "$ac_cv_func_inotify_init1" = yes; then
11672 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11678 if test "${with_acl}" = "yes"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11680 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11681 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11684 ac_check_lib_save_LIBS
=$LIBS
11686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11695 char acl_set_file ();
11699 return acl_set_file ();
11704 if ac_fn_c_try_link
"$LINENO"; then :
11705 ac_cv_lib_acl_acl_set_file
=yes
11707 ac_cv_lib_acl_acl_set_file
=no
11709 rm -f core conftest.err conftest.
$ac_objext \
11710 conftest
$ac_exeext conftest.
$ac_ext
11711 LIBS
=$ac_check_lib_save_LIBS
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11714 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11715 if test "x$ac_cv_lib_acl_acl_set_file" = x
""yes; then :
11721 if test "$HAVE_POSIX_ACL" = yes; then
11723 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11727 ac_fn_c_check_func
"$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11728 if test "x$ac_cv_func_acl_set_file" = x
""yes; then :
11734 if test "$HAVE_POSIX_ACL" = yes; then
11736 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11745 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11746 if test "$with_xaw3d" != no
; then
11747 if test "${emacs_cv_xaw3d+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 #include <X11/Intrinsic.h>
11754 #include <X11/Xaw3d/Simple.h>
11763 if ac_fn_c_try_link
"$LINENO"; then :
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11765 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11766 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11769 ac_check_lib_save_LIBS
=$LIBS
11770 LIBS
="-lXaw3d $LIBS"
11771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11780 char XawScrollbarSetThumb ();
11784 return XawScrollbarSetThumb ();
11789 if ac_fn_c_try_link
"$LINENO"; then :
11790 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11792 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11794 rm -f core conftest.err conftest.
$ac_objext \
11795 conftest
$ac_exeext conftest.
$ac_ext
11796 LIBS
=$ac_check_lib_save_LIBS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11799 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11800 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11809 rm -f core conftest.err conftest.
$ac_objext \
11810 conftest
$ac_exeext conftest.
$ac_ext
11816 if test $emacs_cv_xaw3d = yes; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11818 $as_echo_n "checking for xaw3d... " >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11820 $as_echo "yes; using Lucid toolkit" >&6; }
11821 USE_X_TOOLKIT
=LUCID
11825 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11829 $as_echo_n "checking for xaw3d... " >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11833 $as_echo_n "checking for libXaw... " >&6; }
11834 if test "${emacs_cv_xaw+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11840 #include <X11/Intrinsic.h>
11841 #include <X11/Xaw/Simple.h>
11850 if ac_fn_c_try_link
"$LINENO"; then :
11855 rm -f core conftest.err conftest.
$ac_objext \
11856 conftest
$ac_exeext conftest.
$ac_ext
11859 if test $emacs_cv_xaw = yes; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11861 $as_echo "yes; using Lucid toolkit" >&6; }
11862 USE_X_TOOLKIT
=LUCID
11864 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11865 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11867 as_fn_error
"No X toolkit could be found.
11868 If you are sure you want Emacs compiled without an X toolkit, pass
11869 --with-x-toolkit=no
11870 to configure. Otherwise, install the development libraries for the toolkit
11871 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11876 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11879 if test "${USE_X_TOOLKIT}" != "none"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11881 $as_echo_n "checking X11 toolkit version... " >&6; }
11882 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887 #include <X11/Intrinsic.h>
11891 #if XtSpecificationRelease < 6
11899 if ac_fn_c_try_link
"$LINENO"; then :
11900 emacs_cv_x11_toolkit_version_6
=yes
11902 emacs_cv_x11_toolkit_version_6
=no
11904 rm -f core conftest.err conftest.
$ac_objext \
11905 conftest
$ac_exeext conftest.
$ac_ext
11908 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11909 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11911 $as_echo "6 or newer" >&6; }
11913 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11915 LIBXTR6
="-lSM -lICE"
11917 ## Use libw.a along with X11R6 Xt.
11918 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11922 $as_echo "before 6" >&6; }
11926 if test x
$HAVE_X11XTR6 = xyes
; then
11927 LIBS
="-lXt -lSM -lICE $LIBS"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11932 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11933 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_check_lib_save_LIBS
=$LIBS
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char XmuConvertStandardSelection ();
11951 return XmuConvertStandardSelection ();
11956 if ac_fn_c_try_link
"$LINENO"; then :
11957 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11959 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11961 rm -f core conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 LIBS
=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11966 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11967 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11968 cat >>confdefs.h
<<_ACEOF
11969 #define HAVE_LIBXMU 1
11976 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11982 ## These systems don't supply Xmu.
11984 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11989 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11990 if test "${HAVE_X11}" = "yes"; then
11991 if test "${USE_X_TOOLKIT}" != "none"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11993 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11994 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11997 ac_check_lib_save_LIBS
=$LIBS
11998 LIBS
="-lXext $LIBS"
11999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12008 char XShapeQueryExtension ();
12012 return XShapeQueryExtension ();
12017 if ac_fn_c_try_link
"$LINENO"; then :
12018 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12020 ac_cv_lib_Xext_XShapeQueryExtension
=no
12022 rm -f core conftest.err conftest.
$ac_objext \
12023 conftest
$ac_exeext conftest.
$ac_ext
12024 LIBS
=$ac_check_lib_save_LIBS
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12027 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12028 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12029 cat >>confdefs.h
<<_ACEOF
12030 #define HAVE_LIBXEXT 1
12033 LIBS
="-lXext $LIBS"
12041 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12042 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12043 if test -d /usr
/include
/openmotif
; then
12044 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12045 emacs_cv_openmotif
=yes
12046 case "$canonical" in
12047 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12048 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12051 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12054 emacs_cv_openmotif
=no
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12057 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12058 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12067 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12070 Motif version prior to 2.1.
12076 if ac_fn_c_try_compile
"$LINENO"; then :
12077 emacs_cv_motif_version_2_1
=yes
12079 emacs_cv_motif_version_2_1
=no
12081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12084 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12085 if test $emacs_cv_motif_version_2_1 = yes; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12087 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12088 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12091 ac_check_lib_save_LIBS
=$LIBS
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12102 char XpCreateContext ();
12106 return XpCreateContext ();
12111 if ac_fn_c_try_link
"$LINENO"; then :
12112 ac_cv_lib_Xp_XpCreateContext
=yes
12114 ac_cv_lib_Xp_XpCreateContext
=no
12116 rm -f core conftest.err conftest.
$ac_objext \
12117 conftest
$ac_exeext conftest.
$ac_ext
12118 LIBS
=$ac_check_lib_save_LIBS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12121 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12122 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12126 if test x
$emacs_cv_openmotif = xyes
; then
12127 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12131 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12132 if test "${emacs_cv_lesstif+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12135 # We put this in CFLAGS temporarily to precede other -I options
12136 # that might be in CFLAGS temporarily.
12137 # We put this in CPPFLAGS where it precedes the other -I options.
12138 OLD_CPPFLAGS
=$CPPFLAGS
12140 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12141 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12153 if ac_fn_c_try_compile
"$LINENO"; then :
12154 emacs_cv_lesstif
=yes
12156 emacs_cv_lesstif
=no
12158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12161 $as_echo "$emacs_cv_lesstif" >&6; }
12162 if test $emacs_cv_lesstif = yes; then
12163 # Make sure this -I option remains in CPPFLAGS after it is set
12164 # back to REAL_CPPFLAGS.
12165 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12166 # have those other -I options anyway. Ultimately, having this
12167 # directory ultimately in CPPFLAGS will be enough.
12168 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12169 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12172 CPPFLAGS
=$OLD_CPPFLAGS
12175 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12176 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12179 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12186 USE_TOOLKIT_SCROLL_BARS
=no
12187 if test "${with_toolkit_scroll_bars}" != "no"; then
12188 if test "${USE_X_TOOLKIT}" != "none"; then
12189 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12190 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12193 USE_TOOLKIT_SCROLL_BARS
=yes
12194 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12195 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12197 USE_TOOLKIT_SCROLL_BARS
=yes
12199 elif test "${HAVE_GTK}" = "yes"; then
12200 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12202 USE_TOOLKIT_SCROLL_BARS
=yes
12203 elif test "${HAVE_NS}" = "yes"; then
12204 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12206 USE_TOOLKIT_SCROLL_BARS
=yes
12207 elif test "${HAVE_W32}" = "yes"; then
12208 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12210 USE_TOOLKIT_SCROLL_BARS
=yes
12214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 #include <X11/Xlib.h>
12218 #include <X11/Xresource.h>
12227 if ac_fn_c_try_compile
"$LINENO"; then :
12230 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12238 if test "${with_xim}" != "no"; then
12240 $as_echo "#define USE_XIM 1" >>confdefs.h
12245 if test "${HAVE_XIM}" != "no"; then
12246 late_CFLAGS
=$CFLAGS
12247 if test "$GCC" = yes; then
12248 CFLAGS
="$CFLAGS --pedantic-errors"
12250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include <X11/Xlib.h>
12254 #include <X11/Xresource.h>
12263 XPointer *client_data;
12265 /* If we're not using GCC, it's probably not XFree86, and this is
12266 probably right, but we can't use something like --pedantic-errors. */
12267 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12268 char*, XIMProc, XPointer*);
12270 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12276 if ac_fn_c_try_compile
"$LINENO"; then :
12277 emacs_cv_arg6_star
=yes
12279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12280 if test "$emacs_cv_arg6_star" = yes; then
12281 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12284 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12287 CFLAGS
=$late_CFLAGS
12290 ### Start of font-backend (under any platform) section.
12291 # (nothing here yet -- this is a placeholder)
12292 ### End of font-backend (under any platform) section.
12294 ### Start of font-backend (under X11) section.
12295 if test "${HAVE_X11}" = "yes"; then
12299 if test "$PKG_CONFIG" = "no" ; then
12302 PKG_CONFIG_MIN_VERSION
=0.9.0
12303 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12305 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12307 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12308 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12309 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12316 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12317 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12319 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 FONTCONFIG_CFLAGS
=""
12326 ## If we have a custom action on failure, don't print errors, but
12327 ## do set a variable so people can do so. Do it in a subshell
12328 ## to capture any diagnostics in invoking pkg-config.
12329 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12341 if test $succeeded = yes; then
12348 ## Use -lXft if available, unless `--with-xft=no'.
12350 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12353 if test "x${with_xft}" != "xno"; then
12358 if test "$PKG_CONFIG" = "no" ; then
12361 PKG_CONFIG_MIN_VERSION
=0.9.0
12362 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12364 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12366 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12367 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12368 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12375 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12376 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12378 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12385 ## If we have a custom action on failure, don't print errors, but
12386 ## do set a variable so people can do so. Do it in a subshell
12387 ## to capture any diagnostics in invoking pkg-config.
12388 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12395 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12396 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12400 if test $succeeded = yes; then
12406 ## Because xftfont.c uses XRenderQueryExtension, we also
12407 ## need to link to -lXrender.
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12410 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12411 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_check_lib_save_LIBS
=$LIBS
12415 LIBS
="-lXrender $LIBS"
12416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12425 char XRenderQueryExtension ();
12429 return XRenderQueryExtension ();
12434 if ac_fn_c_try_link
"$LINENO"; then :
12435 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12437 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12439 rm -f core conftest.err conftest.
$ac_objext \
12440 conftest
$ac_exeext conftest.
$ac_ext
12441 LIBS
=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12444 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12445 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12449 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12450 OLD_CPPFLAGS
="$CPPFLAGS"
12451 OLD_CFLAGS
="$CFLAGS"
12453 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12454 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12455 XFT_LIBS
="-lXrender $XFT_LIBS"
12456 LIBS
="$XFT_LIBS $LIBS"
12457 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12458 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12460 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12461 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12464 ac_check_lib_save_LIBS
=$LIBS
12465 LIBS
="-lXft $XFT_LIBS $LIBS"
12466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12475 char XftFontOpen ();
12479 return XftFontOpen ();
12484 if ac_fn_c_try_link
"$LINENO"; then :
12485 ac_cv_lib_Xft_XftFontOpen
=yes
12487 ac_cv_lib_Xft_XftFontOpen
=no
12489 rm -f core conftest.err conftest.
$ac_objext \
12490 conftest
$ac_exeext conftest.
$ac_ext
12491 LIBS
=$ac_check_lib_save_LIBS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12494 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12495 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12503 if test "${HAVE_XFT}" = "yes"; then
12505 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12508 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12510 CPPFLAGS
="$OLD_CPPFLAGS"
12511 CFLAGS
="$OLD_CFLAGS"
12513 fi # "${HAVE_XFT}" = "yes"
12514 fi # "$HAVE_XFT" != no
12515 fi # "x${with_xft}" != "xno"
12517 ## We used to allow building with FreeType and without Xft.
12518 ## However, the ftx font backend driver is not in good shape.
12519 if test "$HAVE_XFT" != "yes"; then
12526 if test "$PKG_CONFIG" = "no" ; then
12529 PKG_CONFIG_MIN_VERSION
=0.9.0
12530 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12532 $as_echo_n "checking for freetype2... " >&6; }
12534 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12535 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12536 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12543 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12544 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12546 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so. Do it in a subshell
12555 ## to capture any diagnostics in invoking pkg-config.
12556 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12568 if test $succeeded = yes; then
12575 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12579 if test "${HAVE_FREETYPE}" = "yes"; then
12581 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12583 if test "${with_libotf}" != "no"; then
12587 if test "$PKG_CONFIG" = "no" ; then
12590 PKG_CONFIG_MIN_VERSION
=0.9.0
12591 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12593 $as_echo_n "checking for libotf... " >&6; }
12595 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12596 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12597 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12604 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12605 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12607 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12614 ## If we have a custom action on failure, don't print errors, but
12615 ## do set a variable so people can do so. Do it in a subshell
12616 ## to capture any diagnostics in invoking pkg-config.
12617 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12629 if test $succeeded = yes; then
12635 if test "$HAVE_LIBOTF" = "yes"; then
12637 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12640 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12641 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12644 ac_check_lib_save_LIBS
=$LIBS
12646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12655 char OTF_get_variation_glyphs ();
12659 return OTF_get_variation_glyphs ();
12664 if ac_fn_c_try_link
"$LINENO"; then :
12665 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12667 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12669 rm -f core conftest.err conftest.
$ac_objext \
12670 conftest
$ac_exeext conftest.
$ac_ext
12671 LIBS
=$ac_check_lib_save_LIBS
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12674 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12675 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12676 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12678 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12681 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12683 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12691 if test "${HAVE_LIBOTF}" = yes; then
12692 if test "${with_m17n_flt}" != "no"; then
12696 if test "$PKG_CONFIG" = "no" ; then
12699 PKG_CONFIG_MIN_VERSION
=0.9.0
12700 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12702 $as_echo_n "checking for m17n-flt... " >&6; }
12704 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12705 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12706 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12713 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12714 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12716 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12723 ## If we have a custom action on failure, don't print errors, but
12724 ## do set a variable so people can do so. Do it in a subshell
12725 ## to capture any diagnostics in invoking pkg-config.
12726 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12738 if test $succeeded = yes; then
12744 if test "$HAVE_M17N_FLT" = "yes"; then
12746 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12758 ### End of font-backend (under X11) section.
12769 ### Use -lXpm if available, unless `--with-xpm=no'.
12773 if test "${HAVE_W32}" = "yes"; then
12774 if test "${with_xpm}" != "no"; then
12775 SAVE_CPPFLAGS
="$CPPFLAGS"
12776 SAVE_LDFLAGS
="$LDFLAGS"
12777 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
12778 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
12779 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12780 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12782 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12783 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12786 ac_check_lib_save_LIBS
=$LIBS
12788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char XpmReadFileToImage ();
12801 return XpmReadFileToImage ();
12806 if ac_fn_c_try_link
"$LINENO"; then :
12807 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
12809 ac_cv_lib_Xpm_XpmReadFileToImage
=no
12811 rm -f core conftest.err conftest.
$ac_objext \
12812 conftest
$ac_exeext conftest.
$ac_ext
12813 LIBS
=$ac_check_lib_save_LIBS
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12816 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12817 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
12824 if test "${HAVE_XPM}" = "yes"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12826 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include "X11/xpm.h"
12830 #ifndef XpmReturnAllocPixels
12831 no_return_alloc_pixels
12835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12836 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12844 if test "${HAVE_XPM}" = "yes"; then
12845 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 CPPFLAGS
="$SAVE_CPPFLAGS"
12852 LDFLAGS
="$SAVE_LDFLAGS"
12857 if test "${HAVE_XPM}" = "yes"; then
12859 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12865 if test "${HAVE_X11}" = "yes"; then
12866 if test "${with_xpm}" != "no"; then
12867 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12868 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12870 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12871 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12874 ac_check_lib_save_LIBS
=$LIBS
12875 LIBS
="-lXpm -lX11 $LIBS"
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12885 char XpmReadFileToPixmap ();
12889 return XpmReadFileToPixmap ();
12894 if ac_fn_c_try_link
"$LINENO"; then :
12895 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12897 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12899 rm -f core conftest.err conftest.
$ac_objext \
12900 conftest
$ac_exeext conftest.
$ac_ext
12901 LIBS
=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12904 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12905 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12912 if test "${HAVE_XPM}" = "yes"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12914 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include "X11/xpm.h"
12918 #ifndef XpmReturnAllocPixels
12919 no_return_alloc_pixels
12923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12924 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12932 if test "${HAVE_XPM}" = "yes"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934 $as_echo "yes" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12942 if test "${HAVE_XPM}" = "yes"; then
12944 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12952 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12955 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
12956 if test "${with_jpeg}" != "no"; then
12957 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12958 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12960 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12961 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12964 ac_check_lib_save_LIBS
=$LIBS
12965 LIBS
="-ljpeg $LIBS"
12966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12975 char jpeg_destroy_compress ();
12979 return jpeg_destroy_compress ();
12984 if ac_fn_c_try_link
"$LINENO"; then :
12985 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12987 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12989 rm -f core conftest.err conftest.
$ac_objext \
12990 conftest
$ac_exeext conftest.
$ac_ext
12991 LIBS
=$ac_check_lib_save_LIBS
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12994 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12995 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13004 if test "${HAVE_JPEG}" = "yes"; then
13005 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 #include <jpeglib.h>
13010 version=JPEG_LIB_VERSION
13013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13014 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13015 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13019 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13025 if test "${HAVE_JPEG}" = "yes"; then
13031 ### Use -lpng if available, unless `--with-png=no'.
13034 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13035 if test "${with_png}" != "no"; then
13036 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13037 # in /usr/include/libpng.
13038 for ac_header
in png.h libpng
/png.h
13040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13042 eval as_val
=\$
$as_ac_Header
13043 if test "x$as_val" = x
""yes; then :
13044 cat >>confdefs.h
<<_ACEOF
13045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13052 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13054 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13055 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13058 ac_check_lib_save_LIBS
=$LIBS
13059 LIBS
="-lpng -lz -lm $LIBS"
13060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13069 char png_get_channels ();
13073 return png_get_channels ();
13078 if ac_fn_c_try_link
"$LINENO"; then :
13079 ac_cv_lib_png_png_get_channels
=yes
13081 ac_cv_lib_png_png_get_channels
=no
13083 rm -f core conftest.err conftest.
$ac_objext \
13084 conftest
$ac_exeext conftest.
$ac_ext
13085 LIBS
=$ac_check_lib_save_LIBS
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13088 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13089 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13096 if test "${HAVE_PNG}" = "yes"; then
13098 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13100 LIBPNG
="-lpng -lz -lm"
13102 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13103 # include <libpng/png.h>
13109 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13113 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13121 ### Use -ltiff if available, unless `--with-tiff=no'.
13124 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13125 if test "${with_tiff}" != "no"; then
13126 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13127 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13129 # At least one tiff package requires the jpeg library.
13130 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13132 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13133 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13136 ac_check_lib_save_LIBS
=$LIBS
13137 LIBS
="-ltiff $tifflibs $LIBS"
13138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13147 char TIFFGetVersion ();
13151 return TIFFGetVersion ();
13156 if ac_fn_c_try_link
"$LINENO"; then :
13157 ac_cv_lib_tiff_TIFFGetVersion
=yes
13159 ac_cv_lib_tiff_TIFFGetVersion
=no
13161 rm -f core conftest.err conftest.
$ac_objext \
13162 conftest
$ac_exeext conftest.
$ac_ext
13163 LIBS
=$ac_check_lib_save_LIBS
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13166 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13167 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13176 if test "${HAVE_TIFF}" = "yes"; then
13178 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13185 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13188 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13189 ||
test "${HAVE_W32}" = "yes"; then
13190 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13191 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13192 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13193 # Earlier versions can crash Emacs.
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13195 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13196 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13199 ac_check_lib_save_LIBS
=$LIBS
13201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13210 char EGifPutExtensionLast ();
13214 return EGifPutExtensionLast ();
13219 if ac_fn_c_try_link
"$LINENO"; then :
13220 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13222 ac_cv_lib_gif_EGifPutExtensionLast
=no
13224 rm -f core conftest.err conftest.
$ac_objext \
13225 conftest
$ac_exeext conftest.
$ac_ext
13226 LIBS
=$ac_check_lib_save_LIBS
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13229 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13230 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13240 if test "$HAVE_GIF" = yes; then
13242 elif test "$HAVE_GIF" = maybe
; then
13243 # If gif_lib.h but no libgif, try libungif.
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13245 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13246 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13249 ac_check_lib_save_LIBS
=$LIBS
13250 LIBS
="-lungif $LIBS"
13251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13260 char EGifPutExtensionLast ();
13264 return EGifPutExtensionLast ();
13269 if ac_fn_c_try_link
"$LINENO"; then :
13270 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13272 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13274 rm -f core conftest.err conftest.
$ac_objext \
13275 conftest
$ac_exeext conftest.
$ac_ext
13276 LIBS
=$ac_check_lib_save_LIBS
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13279 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13280 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13286 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13289 if test "${HAVE_GIF}" = "yes"; then
13291 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13297 if test "${HAVE_X11}" = "yes"; then
13300 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13301 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13302 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13303 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13304 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13305 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13306 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13307 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13308 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13309 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13311 if test "X${MISSING}" != X
; then
13312 as_fn_error
"The following required libraries were not found:
13314 Maybe some development libraries/packages are missing?
13315 If you don't want to link with them give
13317 as options to configure" "$LINENO" 5
13321 ### Use -lgpm if available, unless `--with-gpm=no'.
13324 if test "${with_gpm}" != "no"; then
13325 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13326 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13328 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13329 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13332 ac_check_lib_save_LIBS
=$LIBS
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13347 return Gpm_Open ();
13352 if ac_fn_c_try_link
"$LINENO"; then :
13353 ac_cv_lib_gpm_Gpm_Open
=yes
13355 ac_cv_lib_gpm_Gpm_Open
=no
13357 rm -f core conftest.err conftest.
$ac_objext \
13358 conftest
$ac_exeext conftest.
$ac_ext
13359 LIBS
=$ac_check_lib_save_LIBS
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13362 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13363 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13371 if test "${HAVE_GPM}" = "yes"; then
13373 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13385 ### Use NeXTstep API to implement GUI.
13386 if test "${HAVE_NS}" = "yes"; then
13388 $as_echo "#define HAVE_NS 1" >>confdefs.h
13390 if test "${NS_IMPL_COCOA}" = "yes"; then
13392 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13395 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13397 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13399 # See also .m.o rule in Makefile.in */
13400 # FIXME: are all these flags really needed? Document here why. */
13401 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13402 ## Extra CFLAGS applied to src/*.m files.
13403 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"
13405 # We also have mouse menus.
13410 if test "${HAVE_W32}" = "yes"; then
13414 ### Use session management (-lSM -lICE) if available
13417 if test "${HAVE_X11}" = "yes"; then
13418 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13419 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13421 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13422 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13426 LIBS
="-lSM -lICE $LIBS"
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13436 char SmcOpenConnection ();
13440 return SmcOpenConnection ();
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_lib_SM_SmcOpenConnection
=yes
13448 ac_cv_lib_SM_SmcOpenConnection
=no
13450 rm -f core conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13452 LIBS
=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13455 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13456 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13464 if test "${HAVE_X_SM}" = "yes"; then
13466 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13468 LIBXSM
="-lSM -lICE"
13471 *) LIBS
="$LIBXSM $LIBS" ;;
13477 ### Use XRandr (-lXrandr) if available
13479 if test "${HAVE_X11}" = "yes"; then
13480 XRANDR_REQUIRED
=1.2.2
13481 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
13485 if test "$PKG_CONFIG" = "no" ; then
13488 PKG_CONFIG_MIN_VERSION
=0.9.0
13489 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13491 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13493 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13494 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
13495 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
13502 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
13503 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
13505 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13512 ## If we have a custom action on failure, don't print errors, but
13513 ## do set a variable so people can do so. Do it in a subshell
13514 ## to capture any diagnostics in invoking pkg-config.
13515 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
13522 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13523 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13527 if test $succeeded = yes; then
13533 if test $HAVE_XRANDR = no
; then
13534 # Test old way in case pkg-config doesn't have it (older machines).
13535 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
13536 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
13538 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
13539 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13542 ac_check_lib_save_LIBS
=$LIBS
13543 LIBS
="-lXrandr $LIBS"
13544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13553 char XRRQueryExtension ();
13557 return XRRQueryExtension ();
13562 if ac_fn_c_try_link
"$LINENO"; then :
13563 ac_cv_lib_Xrandr_XRRQueryExtension
=yes
13565 ac_cv_lib_Xrandr_XRRQueryExtension
=no
13567 rm -f core conftest.err conftest.
$ac_objext \
13568 conftest
$ac_exeext conftest.
$ac_ext
13569 LIBS
=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
13572 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
13573 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x
""yes; then :
13580 if test $HAVE_XRANDR = yes; then
13581 XRANDR_LIBS
=-lXrandr
13585 if test $HAVE_XRANDR = yes; then
13586 SAVE_CFLAGS
="$CFLAGS"
13588 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
13589 LIBS
="$XRANDR_LIBS $LIBS"
13590 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
13592 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13593 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13594 eval as_val
=\$
$as_ac_var
13595 if test "x$as_val" = x
""yes; then :
13596 cat >>confdefs.h
<<_ACEOF
13597 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13603 CFLAGS
="$SAVE_CFLAGS"
13607 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
13612 ### Use Xinerama (-lXinerama) if available
13614 if test "${HAVE_X11}" = "yes"; then
13615 XINERAMA_REQUIRED
=1.0.2
13616 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
13620 if test "$PKG_CONFIG" = "no" ; then
13623 PKG_CONFIG_MIN_VERSION
=0.9.0
13624 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
13626 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
13628 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
13629 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
13630 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
13637 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
13638 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
13640 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13647 ## If we have a custom action on failure, don't print errors, but
13648 ## do set a variable so people can do so. Do it in a subshell
13649 ## to capture any diagnostics in invoking pkg-config.
13650 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
13657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13662 if test $succeeded = yes; then
13668 if test $HAVE_XINERAMA = no
; then
13669 # Test old way in case pkg-config doesn't have it (older machines).
13670 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
13673 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
13674 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13677 ac_check_lib_save_LIBS
=$LIBS
13678 LIBS
="-lXinerama $LIBS"
13679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13688 char XineramaQueryExtension ();
13692 return XineramaQueryExtension ();
13697 if ac_fn_c_try_link
"$LINENO"; then :
13698 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
13700 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
13702 rm -f core conftest.err conftest.
$ac_objext \
13703 conftest
$ac_exeext conftest.
$ac_ext
13704 LIBS
=$ac_check_lib_save_LIBS
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
13707 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
13708 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
13715 if test $HAVE_XINERAMA = yes; then
13716 XINERAMA_LIBS
=-lXinerama
13720 if test $HAVE_XINERAMA = yes; then
13722 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
13728 ### Use libxml (-lxml2) if available
13730 if test "${with_xml2}" != "no"; then
13731 ### I'm not sure what the version number should be, so I just guessed.
13735 if test "$PKG_CONFIG" = "no" ; then
13738 PKG_CONFIG_MIN_VERSION
=0.9.0
13739 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13741 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13743 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13744 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13745 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13752 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13753 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13755 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13762 ## If we have a custom action on failure, don't print errors, but
13763 ## do set a variable so people can do so. Do it in a subshell
13764 ## to capture any diagnostics in invoking pkg-config.
13765 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13772 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13773 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13777 if test $succeeded = yes; then
13783 if test "${HAVE_LIBXML2}" = "yes"; then
13784 LIBS
="$LIBXML2_LIBS $LIBS"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13786 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13787 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13790 ac_check_lib_save_LIBS
=$LIBS
13791 LIBS
="-lxml2 $LIBS"
13792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13801 char htmlReadMemory ();
13805 return htmlReadMemory ();
13810 if ac_fn_c_try_link
"$LINENO"; then :
13811 ac_cv_lib_xml2_htmlReadMemory
=yes
13813 ac_cv_lib_xml2_htmlReadMemory
=no
13815 rm -f core conftest.err conftest.
$ac_objext \
13816 conftest
$ac_exeext conftest.
$ac_ext
13817 LIBS
=$ac_check_lib_save_LIBS
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13820 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13821 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
13827 if test "${HAVE_LIBXML2}" = "yes"; then
13829 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13840 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13842 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13843 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13857 if ac_fn_c_try_link
"$LINENO"; then :
13858 emacs_cv_netdb_declares_h_errno
=yes
13860 emacs_cv_netdb_declares_h_errno
=no
13862 rm -f core conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13866 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13867 if test $emacs_cv_netdb_declares_h_errno = yes; then
13869 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13873 # sqrt and other floating-point functions such as fmod and frexp
13874 # are found in -lm on most systems.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13876 $as_echo_n "checking for sqrt in -lm... " >&6; }
13877 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13880 ac_check_lib_save_LIBS
=$LIBS
13882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13900 if ac_fn_c_try_link
"$LINENO"; then :
13901 ac_cv_lib_m_sqrt
=yes
13903 ac_cv_lib_m_sqrt
=no
13905 rm -f core conftest.err conftest.
$ac_objext \
13906 conftest
$ac_exeext conftest.
$ac_ext
13907 LIBS
=$ac_check_lib_save_LIBS
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13910 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13911 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13912 cat >>confdefs.h
<<_ACEOF
13913 #define HAVE_LIBM 1
13921 # Check for mail-locking functions in a "mail" library. Probably this should
13922 # have the same check as for liblockfile below.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13924 $as_echo_n "checking for maillock in -lmail... " >&6; }
13925 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13928 ac_check_lib_save_LIBS
=$LIBS
13929 LIBS
="-lmail $LIBS"
13930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13933 /* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13943 return maillock ();
13948 if ac_fn_c_try_link
"$LINENO"; then :
13949 ac_cv_lib_mail_maillock
=yes
13951 ac_cv_lib_mail_maillock
=no
13953 rm -f core conftest.err conftest.
$ac_objext \
13954 conftest
$ac_exeext conftest.
$ac_ext
13955 LIBS
=$ac_check_lib_save_LIBS
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13958 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13959 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13965 if test $have_mail = yes; then
13967 LIBS
="$LIBS_MAIL $LIBS"
13969 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13975 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13976 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13979 ac_check_lib_save_LIBS
=$LIBS
13980 LIBS
="-llockfile $LIBS"
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13994 return maillock ();
13999 if ac_fn_c_try_link
"$LINENO"; then :
14000 ac_cv_lib_lockfile_maillock
=yes
14002 ac_cv_lib_lockfile_maillock
=no
14004 rm -f core conftest.err conftest.
$ac_objext \
14005 conftest
$ac_exeext conftest.
$ac_ext
14006 LIBS
=$ac_check_lib_save_LIBS
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14009 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14010 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14016 if test $have_lockfile = yes; then
14017 LIBS_MAIL
=-llockfile
14018 LIBS
="$LIBS_MAIL $LIBS"
14020 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14023 # If we have the shared liblockfile, assume we must use it for mail
14024 # locking (e.g. Debian). If we couldn't link against liblockfile
14025 # (no liblockfile.a installed), ensure that we don't need to.
14026 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14027 set dummy liblockfile.so
; ac_word
=$2
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029 $as_echo_n "checking for $ac_word... " >&6; }
14030 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14033 if test -n "$liblockfile"; then
14034 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14037 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14038 for as_dir
in $as_dummy
14041 test -z "$as_dir" && as_dir
=.
14042 for ac_exec_ext
in '' $ac_executable_extensions; do
14043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14044 ac_cv_prog_liblockfile
="yes"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14055 liblockfile
=$ac_cv_prog_liblockfile
14056 if test -n "$liblockfile"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14058 $as_echo "$liblockfile" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14065 if test $ac_cv_prog_liblockfile = yes; then
14066 as_fn_error
"Shared liblockfile found but can't link against it.
14067 This probably means that movemail could lose mail.
14068 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14076 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14077 ## interlock access to the mail spool. The alternative is a lock file named
14078 ## /usr/spool/mail/$USER.lock.
14081 aix4-2
) mail_lock
="lockf" ;;
14083 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14085 ## On GNU/Linux systems, both methods are used by various mail programs.
14086 ## I assume most people are using newer mailers that have heard of flock.
14087 ## Change this if you need to.
14088 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14089 ## configure gets the right answers, and that means *NOT* using flock.
14090 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14091 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14092 ## Debian maintainer hasn't provided a clean fix for Emacs.
14093 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14094 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14095 ## correct logic. -- fx
14096 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14097 ## liblockfile is a Free Software replacement for libmail, used on
14098 ## Debian systems and elsewhere. -rfr.
14101 if test $have_mail = yes ||
test $have_lockfile = yes; then
14102 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14108 case "$mail_lock" in
14110 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14114 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14117 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14122 for ac_func
in gethostname \
14123 getrusage get_current_dir_name \
14125 select getpagesize setlocale \
14126 utimes getrlimit setrlimit shutdown getaddrinfo \
14127 strsignal setitimer \
14128 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14129 gai_strerror mkstemp getline getdelim sync \
14130 difftime posix_memalign \
14131 getpwent endpwent getgrent endgrent \
14133 cfmakeraw cfsetspeed copysign __executable_start
14135 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14136 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14137 eval as_val
=\$
$as_ac_var
14138 if test "x$as_val" = x
""yes; then :
14139 cat >>confdefs.h
<<_ACEOF
14140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14147 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14148 ## has a broken `rint' in some library versions including math library
14149 ## version number A.09.05.
14150 ## You can fix the math library by installing patch number PHSS_4630.
14151 ## But we can fix it more reliably for Emacs by just not using rint.
14152 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14155 *) for ac_func
in random rint
14157 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14158 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14159 eval as_val
=\$
$as_ac_var
14160 if test "x$as_val" = x
""yes; then :
14161 cat >>confdefs.h
<<_ACEOF
14162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14171 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14172 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14181 __builtin_unwind_init ();
14186 if ac_fn_c_try_link
"$LINENO"; then :
14187 emacs_cv_func___builtin_unwind_init
=yes
14189 emacs_cv_func___builtin_unwind_init
=no
14191 rm -f core conftest.err conftest.
$ac_objext \
14192 conftest
$ac_exeext conftest.
$ac_ext
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14195 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14196 if test $emacs_cv_func___builtin_unwind_init = yes; then
14198 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14207 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14208 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 #include <sys/types.h> /* for off_t */
14219 int (*fp) (FILE *, off_t, int) = fseeko;
14220 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14225 if ac_fn_c_try_link
"$LINENO"; then :
14226 ac_cv_sys_largefile_source
=no
; break
14228 rm -f core conftest.err conftest.
$ac_objext \
14229 conftest
$ac_exeext conftest.
$ac_ext
14230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #define _LARGEFILE_SOURCE 1
14233 #include <sys/types.h> /* for off_t */
14238 int (*fp) (FILE *, off_t, int) = fseeko;
14239 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14244 if ac_fn_c_try_link
"$LINENO"; then :
14245 ac_cv_sys_largefile_source
=1; break
14247 rm -f core conftest.err conftest.
$ac_objext \
14248 conftest
$ac_exeext conftest.
$ac_ext
14249 ac_cv_sys_largefile_source
=unknown
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14254 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14255 case $ac_cv_sys_largefile_source in #(
14258 cat >>confdefs.h
<<_ACEOF
14259 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14265 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14266 # in glibc 2.1.3, but that breaks too many other things.
14267 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14268 if test $ac_cv_sys_largefile_source != unknown
; then
14270 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14276 for ac_func
in grantpt
14278 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14279 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14280 cat >>confdefs.h
<<_ACEOF
14281 #define HAVE_GRANTPT 1
14288 # PTY-related GNU extensions.
14289 for ac_func
in getpt posix_openpt
14291 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14292 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14293 eval as_val
=\$
$as_ac_var
14294 if test "x$as_val" = x
""yes; then :
14295 cat >>confdefs.h
<<_ACEOF
14296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14303 # Check this now, so that we will NOT find the above functions in ncurses.
14304 # That is because we have not set up to link ncurses in lib-src.
14305 # It's better to believe a function is not available
14306 # than to expect to find it in ncurses.
14307 # Also we need tputs and friends to be able to build at all.
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14309 $as_echo_n "checking for library containing tputs... " >&6; }
14310 # Run a test program that contains a call to tputs, a call that is
14311 # never executed. This tests whether a pre-'main' dynamic linker
14312 # works with the library. It's too much trouble to actually call
14313 # tputs in the test program, due to portability hassles. When
14314 # cross-compiling, assume the test program will run if it links.
14316 # Maybe curses should be tried earlier?
14317 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14318 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14320 if test -z "$tputs_library"; then
14322 msg
='none required'
14324 LIBS_TERMCAP
=-l$tputs_library
14326 LIBS
="$LIBS_TERMCAP $LIBS"
14328 if test "$cross_compiling" = yes; then :
14329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14332 extern void tputs (const char *, int, int (*)(int));
14333 int main (int argc, char **argv)
14336 tputs (argv[0], 0, 0);
14341 if ac_fn_c_try_link
"$LINENO"; then :
14346 rm -f core conftest.err conftest.
$ac_objext \
14347 conftest
$ac_exeext conftest.
$ac_ext
14349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 extern void tputs (const char *, int, int (*)(int));
14353 int main (int argc, char **argv)
14356 tputs (argv[0], 0, 0);
14361 if ac_fn_c_try_run
"$LINENO"; then :
14366 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14367 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14371 if test "X$msg" != Xno
; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14376 $as_echo "$msg" >&6; }
14377 if test "X$msg" = Xno
; then
14378 as_fn_error
"The required function \`tputs' was not found in any library.
14379 The following libraries were tried (in order):
14380 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14381 Please try installing whichever of these libraries is most appropriate
14382 for your system, together with its header files.
14383 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14386 ## Use termcap instead of terminfo?
14387 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14389 ## FIXME? In the cases below where we unconditionally set
14390 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14391 ## if that was found above to have tputs.
14392 ## Should we use the gnu* logic everywhere?
14394 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14395 ## The ncurses library has been moved out of the System framework in
14396 ## Mac OS X 10.2. So if configure detects it, set the command-line
14397 ## option to use it.
14398 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14400 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14404 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14405 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #include <osreldate.h>
14414 #if __FreeBSD_version < 400000
14422 if ac_fn_c_try_link
"$LINENO"; then :
14423 emacs_cv_freebsd_terminfo
=yes
14425 emacs_cv_freebsd_terminfo
=no
14427 rm -f core conftest.err conftest.
$ac_objext \
14428 conftest
$ac_exeext conftest.
$ac_ext
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14433 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14435 if test $emacs_cv_freebsd_terminfo = yes; then
14436 LIBS_TERMCAP
="-lncurses"
14439 LIBS_TERMCAP
="-ltermcap"
14444 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14446 LIBS_TERMCAP
="-ltermcap"
14450 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
14452 ## hpux: Make sure we get select from libc rather than from libcurses
14453 ## because libcurses on HPUX 10.10 has a broken version of select.
14454 ## We used to use -lc -lcurses, but this may be cleaner.
14455 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14456 # set that way, now it uses the default). Isn't this a contradiction?
14457 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14461 TERMCAP_OBJ
=tparam.o
14462 if test $TERMINFO = yes; then
14464 $as_echo "#define TERMINFO 1" >>confdefs.h
14466 TERMCAP_OBJ
=terminfo.o
14472 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14473 # On Darwin, res_init appears not to be useful: see bug#562 and
14474 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14477 if test $opsys != darwin
; then
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <netinet/in.h>
14482 #include <arpa/nameser.h>
14483 #include <resolv.h>
14492 if ac_fn_c_try_link
"$LINENO"; then :
14497 rm -f core conftest.err conftest.
$ac_objext \
14498 conftest
$ac_exeext conftest.
$ac_ext
14499 if test "$have_res_init" = no
; then
14501 LIBS
="$LIBS -lresolv"
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14503 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <netinet/in.h>
14507 #include <arpa/nameser.h>
14508 #include <resolv.h>
14517 if ac_fn_c_try_link
"$LINENO"; then :
14522 rm -f core conftest.err conftest.
$ac_objext \
14523 conftest
$ac_exeext conftest.
$ac_ext
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14525 $as_echo "$have_res_init" >&6; }
14526 if test "$have_res_init" = yes ; then
14532 if test "$have_res_init" = yes; then
14534 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14538 # Do we need the Hesiod library to provide the support routines?
14540 if test "$with_hesiod" != no
; then
14541 # Don't set $LIBS here -- see comments above. FIXME which comments?
14542 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
14543 if test "x$ac_cv_func_res_send" = x
""yes; then :
14546 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
14547 if test "x$ac_cv_func___res_send" = x
""yes; then :
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14551 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14552 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14555 ac_check_lib_save_LIBS
=$LIBS
14556 LIBS
="-lresolv $LIBS"
14557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14570 return res_send ();
14575 if ac_fn_c_try_link
"$LINENO"; then :
14576 ac_cv_lib_resolv_res_send
=yes
14578 ac_cv_lib_resolv_res_send
=no
14580 rm -f core conftest.err conftest.
$ac_objext \
14581 conftest
$ac_exeext conftest.
$ac_ext
14582 LIBS
=$ac_check_lib_save_LIBS
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14585 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14586 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14590 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14591 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 ac_check_lib_save_LIBS
=$LIBS
14595 LIBS
="-lresolv $LIBS"
14596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14605 char __res_send ();
14609 return __res_send ();
14614 if ac_fn_c_try_link
"$LINENO"; then :
14615 ac_cv_lib_resolv___res_send
=yes
14617 ac_cv_lib_resolv___res_send
=no
14619 rm -f core conftest.err conftest.
$ac_objext \
14620 conftest
$ac_exeext conftest.
$ac_ext
14621 LIBS
=$ac_check_lib_save_LIBS
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14624 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14625 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
14635 if test "$resolv" = yes ; then
14640 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14641 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14645 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14646 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14649 ac_check_lib_save_LIBS
=$LIBS
14650 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14654 /* Override any GCC internal prototype to avoid an error.
14655 Use char because int might match the return type of a GCC
14656 builtin and then its argument prototype would still apply. */
14660 char hes_getmailhost ();
14664 return hes_getmailhost ();
14669 if ac_fn_c_try_link
"$LINENO"; then :
14670 ac_cv_lib_hesiod_hes_getmailhost
=yes
14672 ac_cv_lib_hesiod_hes_getmailhost
=no
14674 rm -f core conftest.err conftest.
$ac_objext \
14675 conftest
$ac_exeext conftest.
$ac_ext
14676 LIBS
=$ac_check_lib_save_LIBS
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14679 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14680 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
14689 if test x
"$hesiod" = xyes
; then
14691 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14698 # Do we need libresolv (due to res_init or Hesiod)?
14699 if test "$resolv" = yes && test $opsys != darwin
; then
14701 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14709 # These tell us which Kerberos-related libraries to use.
14716 if test "${with_kerberos}" != no
; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14718 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14719 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14720 $as_echo_n "(cached) " >&6
14722 ac_check_lib_save_LIBS
=$LIBS
14723 LIBS
="-lcom_err $LIBS"
14724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14742 if ac_fn_c_try_link
"$LINENO"; then :
14743 ac_cv_lib_com_err_com_err
=yes
14745 ac_cv_lib_com_err_com_err
=no
14747 rm -f core conftest.err conftest.
$ac_objext \
14748 conftest
$ac_exeext conftest.
$ac_ext
14749 LIBS
=$ac_check_lib_save_LIBS
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14752 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14753 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
14759 if test $have_com_err = yes; then
14760 COM_ERRLIB
=-lcom_err
14761 LIBS
="$COM_ERRLIB $LIBS"
14763 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14767 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14768 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14769 $as_echo_n "(cached) " >&6
14771 ac_check_lib_save_LIBS
=$LIBS
14772 LIBS
="-lcrypto $LIBS"
14773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14782 char mit_des_cbc_encrypt ();
14786 return mit_des_cbc_encrypt ();
14791 if ac_fn_c_try_link
"$LINENO"; then :
14792 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14794 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14796 rm -f core conftest.err conftest.
$ac_objext \
14797 conftest
$ac_exeext conftest.
$ac_ext
14798 LIBS
=$ac_check_lib_save_LIBS
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14801 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14802 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
14808 if test $have_crypto = yes; then
14810 LIBS
="$CRYPTOLIB $LIBS"
14812 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14816 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14817 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14818 $as_echo_n "(cached) " >&6
14820 ac_check_lib_save_LIBS
=$LIBS
14821 LIBS
="-lk5crypto $LIBS"
14822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14831 char mit_des_cbc_encrypt ();
14835 return mit_des_cbc_encrypt ();
14840 if ac_fn_c_try_link
"$LINENO"; then :
14841 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14843 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14845 rm -f core conftest.err conftest.
$ac_objext \
14846 conftest
$ac_exeext conftest.
$ac_ext
14847 LIBS
=$ac_check_lib_save_LIBS
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14850 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14851 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
14857 if test $have_k5crypto = yes; then
14858 CRYPTOLIB
=-lk5crypto
14859 LIBS
="$CRYPTOLIB $LIBS"
14861 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14865 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14866 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14869 ac_check_lib_save_LIBS
=$LIBS
14870 LIBS
="-lkrb5 $LIBS"
14871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14880 char krb5_init_context ();
14884 return krb5_init_context ();
14889 if ac_fn_c_try_link
"$LINENO"; then :
14890 ac_cv_lib_krb5_krb5_init_context
=yes
14892 ac_cv_lib_krb5_krb5_init_context
=no
14894 rm -f core conftest.err conftest.
$ac_objext \
14895 conftest
$ac_exeext conftest.
$ac_ext
14896 LIBS
=$ac_check_lib_save_LIBS
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14899 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14900 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14906 if test $have_krb5=yes; then
14908 LIBS
="$KRB5LIB $LIBS"
14910 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14913 if test "${with_kerberos5}" = no
; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14915 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14916 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14919 ac_check_lib_save_LIBS
=$LIBS
14920 LIBS
="-ldes425 $LIBS"
14921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14924 /* Override any GCC internal prototype to avoid an error.
14925 Use char because int might match the return type of a GCC
14926 builtin and then its argument prototype would still apply. */
14930 char des_cbc_encrypt ();
14934 return des_cbc_encrypt ();
14939 if ac_fn_c_try_link
"$LINENO"; then :
14940 ac_cv_lib_des425_des_cbc_encrypt
=yes
14942 ac_cv_lib_des425_des_cbc_encrypt
=no
14944 rm -f core conftest.err conftest.
$ac_objext \
14945 conftest
$ac_exeext conftest.
$ac_ext
14946 LIBS
=$ac_check_lib_save_LIBS
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14949 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14950 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14956 if test $have_des425 = yes; then
14958 LIBS
="$DESLIB $LIBS"
14960 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14964 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14965 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14968 ac_check_lib_save_LIBS
=$LIBS
14970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14979 char des_cbc_encrypt ();
14983 return des_cbc_encrypt ();
14988 if ac_fn_c_try_link
"$LINENO"; then :
14989 ac_cv_lib_des_des_cbc_encrypt
=yes
14991 ac_cv_lib_des_des_cbc_encrypt
=no
14993 rm -f core conftest.err conftest.
$ac_objext \
14994 conftest
$ac_exeext conftest.
$ac_ext
14995 LIBS
=$ac_check_lib_save_LIBS
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14998 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14999 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15005 if test $have_des = yes; then
15007 LIBS
="$DESLIB $LIBS"
15009 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15014 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15015 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15016 $as_echo_n "(cached) " >&6
15018 ac_check_lib_save_LIBS
=$LIBS
15019 LIBS
="-lkrb4 $LIBS"
15020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15029 char krb_get_cred ();
15033 return krb_get_cred ();
15038 if ac_fn_c_try_link
"$LINENO"; then :
15039 ac_cv_lib_krb4_krb_get_cred
=yes
15041 ac_cv_lib_krb4_krb_get_cred
=no
15043 rm -f core conftest.err conftest.
$ac_objext \
15044 conftest
$ac_exeext conftest.
$ac_ext
15045 LIBS
=$ac_check_lib_save_LIBS
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15048 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15049 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15055 if test $have_krb4 = yes; then
15057 LIBS
="$KRB4LIB $LIBS"
15059 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15063 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15064 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15065 $as_echo_n "(cached) " >&6
15067 ac_check_lib_save_LIBS
=$LIBS
15069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15072 /* Override any GCC internal prototype to avoid an error.
15073 Use char because int might match the return type of a GCC
15074 builtin and then its argument prototype would still apply. */
15078 char krb_get_cred ();
15082 return krb_get_cred ();
15087 if ac_fn_c_try_link
"$LINENO"; then :
15088 ac_cv_lib_krb_krb_get_cred
=yes
15090 ac_cv_lib_krb_krb_get_cred
=no
15092 rm -f core conftest.err conftest.
$ac_objext \
15093 conftest
$ac_exeext conftest.
$ac_ext
15094 LIBS
=$ac_check_lib_save_LIBS
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15097 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15098 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15104 if test $have_krb = yes; then
15106 LIBS
="$KRB4LIB $LIBS"
15108 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15114 if test "${with_kerberos5}" != no
; then
15115 for ac_header
in krb5.h
15117 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15119 cat >>confdefs.h
<<_ACEOF
15120 #define HAVE_KRB5_H 1
15122 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15124 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15126 cat >>confdefs.h
<<_ACEOF
15127 #define HAVE_KRB5_ERROR_TEXT 1
15132 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15134 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15136 cat >>confdefs.h
<<_ACEOF
15137 #define HAVE_KRB5_ERROR_E_TEXT 1
15148 for ac_header
in des.h
15150 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15151 if test "x$ac_cv_header_des_h" = x
""yes; then :
15152 cat >>confdefs.h
<<_ACEOF
15153 #define HAVE_DES_H 1
15157 for ac_header
in kerberosIV
/des.h
15159 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15160 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15161 cat >>confdefs.h
<<_ACEOF
15162 #define HAVE_KERBEROSIV_DES_H 1
15166 for ac_header
in kerberos
/des.h
15168 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15169 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15170 cat >>confdefs.h
<<_ACEOF
15171 #define HAVE_KERBEROS_DES_H 1
15186 for ac_header
in krb.h
15188 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15189 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15190 cat >>confdefs.h
<<_ACEOF
15191 #define HAVE_KRB_H 1
15195 for ac_header
in kerberosIV
/krb.h
15197 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15198 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15199 cat >>confdefs.h
<<_ACEOF
15200 #define HAVE_KERBEROSIV_KRB_H 1
15204 for ac_header
in kerberos
/krb.h
15206 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15207 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15208 cat >>confdefs.h
<<_ACEOF
15209 #define HAVE_KERBEROS_KRB_H 1
15225 for ac_header
in com_err.h
15227 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15228 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15229 cat >>confdefs.h
<<_ACEOF
15230 #define HAVE_COM_ERR_H 1
15248 for ac_func
in $ac_func_list
15250 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15251 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15252 eval as_val
=\$
$as_ac_var
15253 if test "x$as_val" = x
""yes; then :
15254 cat >>confdefs.h
<<_ACEOF
15255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15265 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15266 if test "${emacs_cv_localtime_cache+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15269 if test x
$ac_cv_func_tzset = xyes
; then
15270 if test "$cross_compiling" = yes; then :
15271 # If we have tzset, assume the worst when cross-compiling.
15272 emacs_cv_localtime_cache
=yes
15274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15277 char TZ_GMT0[] = "TZ=GMT0";
15278 char TZ_PST8[] = "TZ=PST8";
15281 time_t now = time ((time_t *) 0);
15282 int hour_GMT0, hour_unset;
15283 if (putenv (TZ_GMT0) != 0)
15285 hour_GMT0 = localtime (&now)->tm_hour;
15287 hour_unset = localtime (&now)->tm_hour;
15288 if (putenv (TZ_PST8) != 0)
15290 if (localtime (&now)->tm_hour == hour_GMT0)
15293 if (localtime (&now)->tm_hour != hour_unset)
15298 if ac_fn_c_try_run
"$LINENO"; then :
15299 emacs_cv_localtime_cache
=no
15301 emacs_cv_localtime_cache
=yes
15303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15304 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15308 # If we lack tzset, report that localtime does not cache TZ,
15309 # since we can't invalidate the cache if we don't have tzset.
15310 emacs_cv_localtime_cache
=no
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15314 $as_echo "$emacs_cv_localtime_cache" >&6; }
15315 if test $emacs_cv_localtime_cache = yes; then
15317 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15322 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15323 if test "x$ac_cv_func_socket" = x
""yes; then :
15329 if test $ok_so_far = yes; then
15330 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15331 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15339 if test $ok_so_far = yes; then
15340 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15341 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15349 if test $ok_so_far = yes; then
15351 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15355 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15357 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15362 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15363 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15365 $as_echo "yes" >&6; }
15367 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 $as_echo "no" >&6; }
15375 *-solaris2.4 |
*-solaris2.4.
*)
15376 : ${ac_cv_func_vfork_works=no};;
15379 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15380 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15384 cat >>confdefs.h
<<_ACEOF
15390 for ac_header
in vfork.h
15392 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15393 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15394 cat >>confdefs.h
<<_ACEOF
15395 #define HAVE_VFORK_H 1
15402 for ac_func
in fork vfork
15404 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15406 eval as_val
=\$
$as_ac_var
15407 if test "x$as_val" = x
""yes; then :
15408 cat >>confdefs.h
<<_ACEOF
15409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15415 if test "x$ac_cv_func_fork" = xyes
; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15417 $as_echo_n "checking for working fork... " >&6; }
15418 if test "${ac_cv_func_fork_works+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15421 if test "$cross_compiling" = yes; then :
15422 ac_cv_func_fork_works
=cross
15424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 $ac_includes_default
15431 /* By Ruediger Kuhlmann. */
15432 return fork () < 0;
15438 if ac_fn_c_try_run
"$LINENO"; then :
15439 ac_cv_func_fork_works
=yes
15441 ac_cv_func_fork_works
=no
15443 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15444 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15449 $as_echo "$ac_cv_func_fork_works" >&6; }
15452 ac_cv_func_fork_works
=$ac_cv_func_fork
15454 if test "x$ac_cv_func_fork_works" = xcross
; then
15456 *-*-amigaos* |
*-*-msdosdjgpp*)
15457 # Override, as these systems have only a dummy fork() stub
15458 ac_cv_func_fork_works
=no
15461 ac_cv_func_fork_works
=yes
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15465 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15467 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15468 if test "x$ac_cv_func_vfork" = xyes
; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15470 $as_echo_n "checking for working vfork... " >&6; }
15471 if test "${ac_cv_func_vfork_works+set}" = set; then :
15472 $as_echo_n "(cached) " >&6
15474 if test "$cross_compiling" = yes; then :
15475 ac_cv_func_vfork_works
=cross
15477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15479 /* Thanks to Paul Eggert for this test. */
15480 $ac_includes_default
15481 #include <sys/wait.h>
15482 #ifdef HAVE_VFORK_H
15483 # include <vfork.h>
15485 /* On some sparc systems, changes by the child to local and incoming
15486 argument registers are propagated back to the parent. The compiler
15487 is told about this with #include <vfork.h>, but some compilers
15488 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15489 static variable whose address is put into a register that is
15490 clobbered by the vfork. */
15493 sparc_address_test (int arg)
15495 sparc_address_test (arg) int arg;
15498 static pid_t child;
15516 pid_t parent = getpid ();
15519 sparc_address_test (0);
15524 /* Here is another test for sparc vfork register problems. This
15525 test uses lots of local variables, at least as many local
15526 variables as main has allocated so far including compiler
15527 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15528 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15529 reuse the register of parent for one of the local variables,
15530 since it will think that parent can't possibly be used any more
15531 in this routine. Assigning to the local variable will thus
15532 munge parent in the parent process. */
15534 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15535 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15536 /* Convince the compiler that p..p7 are live; otherwise, it might
15537 use the same hardware register for all 8 local variables. */
15538 if (p != p1 || p != p2 || p != p3 || p != p4
15539 || p != p5 || p != p6 || p != p7)
15542 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15543 from child file descriptors. If the child closes a descriptor
15544 before it execs or exits, this munges the parent's descriptor
15545 as well. Test for this by closing stdout in the child. */
15546 _exit(close(fileno(stdout)) != 0);
15551 while (wait(&status) != child)
15554 /* Was there some problem with vforking? */
15557 /* Did the child fail? (This shouldn't happen.) */
15560 /* Did the vfork/compiler bug occur? */
15561 || parent != getpid()
15563 /* Did the file descriptor bug occur? */
15564 || fstat(fileno(stdout), &st) != 0
15569 if ac_fn_c_try_run
"$LINENO"; then :
15570 ac_cv_func_vfork_works
=yes
15572 ac_cv_func_vfork_works
=no
15574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15580 $as_echo "$ac_cv_func_vfork_works" >&6; }
15583 if test "x$ac_cv_func_fork_works" = xcross
; then
15584 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15586 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15589 if test "x$ac_cv_func_vfork_works" = xyes
; then
15591 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15595 $as_echo "#define vfork fork" >>confdefs.h
15598 if test "x$ac_cv_func_fork_works" = xyes
; then
15600 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15605 for ac_func
in snprintf
15607 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
15608 if test "x$ac_cv_func_snprintf" = x
""yes; then :
15609 cat >>confdefs.h
<<_ACEOF
15610 #define HAVE_SNPRINTF 1
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15618 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15619 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15620 $as_echo_n "(cached) " >&6
15622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <langinfo.h>
15628 char* cs = nl_langinfo(CODESET);
15633 if ac_fn_c_try_link
"$LINENO"; then :
15634 emacs_cv_langinfo_codeset
=yes
15636 emacs_cv_langinfo_codeset
=no
15638 rm -f core conftest.err conftest.
$ac_objext \
15639 conftest
$ac_exeext conftest.
$ac_ext
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15643 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15644 if test $emacs_cv_langinfo_codeset = yes; then
15646 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15651 $as_echo_n "checking for mbstate_t... " >&6; }
15652 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15653 $as_echo_n "(cached) " >&6
15655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 $ac_includes_default
15658 # include <wchar.h>
15662 mbstate_t x; return sizeof x;
15667 if ac_fn_c_try_compile
"$LINENO"; then :
15668 ac_cv_type_mbstate_t
=yes
15670 ac_cv_type_mbstate_t
=no
15672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15675 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15676 if test $ac_cv_type_mbstate_t = yes; then
15678 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15682 $as_echo "#define mbstate_t int" >>confdefs.h
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15687 $as_echo_n "checking for C restricted array declarations... " >&6; }
15688 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15689 $as_echo_n "(cached) " >&6
15691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 void fred (int x[__restrict]);
15702 if ac_fn_c_try_compile
"$LINENO"; then :
15703 emacs_cv_c_restrict_arr
=yes
15705 emacs_cv_c_restrict_arr
=no
15707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15710 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15711 if test "$emacs_cv_c_restrict_arr" = yes; then
15713 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15719 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15723 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15726 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15728 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15732 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15738 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15742 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15746 $as_echo "#define subprocesses 1" >>confdefs.h
15750 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15755 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15761 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15765 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15769 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15777 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
15778 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15784 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15791 irix6-5 | sol2
* | unixware
)
15793 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15798 emacs_broken_SIGIO
=no
15801 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
15802 emacs_broken_SIGIO
=yes
15807 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15813 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15821 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15827 darwin | dragonfly | freebsd | netbsd | openbsd
)
15829 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15835 netbsd | openbsd
) sound_device
="/dev/audio" ;;
15836 *) sound_device
="/dev/dsp" ;;
15840 cat >>confdefs.h
<<_ACEOF
15841 #define DEFAULT_SOUND_DEVICE "$sound_device"
15847 darwin | gnu-linux | gnu-kfreebsd
)
15849 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15856 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
15858 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15872 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15874 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15876 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15881 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15883 $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
15885 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15887 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15892 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15894 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15896 $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
15898 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15900 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15905 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15909 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
15910 if test "x$ac_cv_func_grantpt" = xyes
; then
15912 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15914 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15916 $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
15918 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15919 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15921 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15923 elif test "x$ac_cv_func_getpt" = xyes
; then
15924 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15926 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15929 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15933 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15939 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15941 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15943 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15948 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15950 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15952 $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(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &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
15954 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15956 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15961 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15966 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); 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
15974 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15976 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15979 $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
15988 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
15989 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15993 gnu-linux | gnu-kfreebsd
)
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15996 $as_echo_n "checking for signals via characters... " >&6; }
15997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16000 #include <linux/version.h>
16001 #if LINUX_VERSION_CODE < 0x20400
16002 # error "Linux version too old"
16013 if ac_fn_c_try_cpp
"$LINENO"; then :
16014 emacs_signals_via_chars
=yes
16016 emacs_signals_via_chars
=no
16018 rm -f conftest.err conftest.
$ac_ext
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16021 $as_echo "$emacs_signals_via_chars" >&6; }
16022 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16032 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16036 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16040 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16049 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16052 gnu | dragonfly | freebsd | netbsd | openbsd
)
16054 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16056 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16060 gnu-linux | gnu-kfreebsd
)
16061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16076 if ac_fn_c_try_cpp
"$LINENO"; then :
16078 $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
16081 rm -f conftest.err conftest.
$ac_ext
16086 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16096 gnu-linux | gnu-kfreebsd
)
16097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16100 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16101 || defined __alpha__ || defined __mips__ || defined __s390__ \
16102 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16103 || defined __ia64__ || defined __sh__
16106 # error "setjmp not known to work on this arch"
16117 if ac_fn_c_try_cpp
"$LINENO"; then :
16118 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16121 rm -f conftest.err conftest.
$ac_ext
16126 if test x
$GCC = xyes
; then
16127 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16131 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16132 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16138 $as_echo_n "checking for _setjmp... " >&6; }
16139 if test "${emacs_cv_func__setjmp+set}" = set; then :
16140 $as_echo_n "(cached) " >&6
16142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #include <setjmp.h>
16156 if ac_fn_c_try_link
"$LINENO"; then :
16157 emacs_cv_func__setjmp
=yes
16159 emacs_cv_func__setjmp
=no
16161 rm -f core conftest.err conftest.
$ac_objext \
16162 conftest
$ac_exeext conftest.
$ac_ext
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16165 $as_echo "$emacs_cv_func__setjmp" >&6; }
16166 if test $emacs_cv_func__setjmp = yes; then
16168 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16172 $as_echo_n "checking for sigsetjmp... " >&6; }
16173 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16174 $as_echo_n "(cached) " >&6
16176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16177 /* end confdefs.h. */
16178 #include <setjmp.h>
16184 if (! sigsetjmp (j, 1))
16190 if ac_fn_c_try_link
"$LINENO"; then :
16191 emacs_cv_func_sigsetjmp
=yes
16193 emacs_cv_func_sigsetjmp
=no
16195 rm -f core conftest.err conftest.
$ac_objext \
16196 conftest
$ac_exeext conftest.
$ac_ext
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16199 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16200 if test $emacs_cv_func_sigsetjmp = yes; then
16202 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16210 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16219 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16233 $as_echo "#define USG /**/" >>confdefs.h
16235 $as_echo "#define USG5 /**/" >>confdefs.h
16237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16241 # error "_AIX not defined"
16252 if ac_fn_c_try_cpp
"$LINENO"; then :
16256 $as_echo "#define _AIX /**/" >>confdefs.h
16259 rm -f conftest.err conftest.
$ac_ext
16264 $as_echo "#define CYGWIN 1" >>confdefs.h
16270 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16274 gnu-linux | gnu-kfreebsd
)
16275 $as_echo "#define USG /**/" >>confdefs.h
16278 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16283 $as_echo "#define USG /**/" >>confdefs.h
16285 $as_echo "#define USG5 /**/" >>confdefs.h
16288 $as_echo "#define HPUX /**/" >>confdefs.h
16293 $as_echo "#define USG /**/" >>confdefs.h
16295 $as_echo "#define USG5 /**/" >>confdefs.h
16297 $as_echo "#define USG5_4 /**/" >>confdefs.h
16300 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16305 $as_echo "#define USG /**/" >>confdefs.h
16307 $as_echo "#define USG5 /**/" >>confdefs.h
16309 $as_echo "#define USG5_4 /**/" >>confdefs.h
16312 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16317 $as_echo "#define USG /**/" >>confdefs.h
16319 $as_echo "#define USG5 /**/" >>confdefs.h
16321 $as_echo "#define USG5_4 /**/" >>confdefs.h
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16327 $as_echo_n "checking for usable FIONREAD... " >&6; }
16328 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16333 emacs_cv_usable_FIONREAD
=no
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 #include <sys/types.h>
16340 #include <sys/ioctl.h>
16342 # include <sys/filio.h>
16348 int foo = ioctl (0, FIONREAD, &foo);
16353 if ac_fn_c_try_compile
"$LINENO"; then :
16354 emacs_cv_usable_FIONREAD
=yes
16356 emacs_cv_usable_FIONREAD
=no
16358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16363 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16364 if test $emacs_cv_usable_FIONREAD = yes; then
16366 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16369 if test $emacs_broken_SIGIO = no
; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16371 $as_echo_n "checking for usable SIGIO... " >&6; }
16372 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16373 $as_echo_n "(cached) " >&6
16375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16378 #include <signal.h>
16383 int foo = SIGIO | F_SETFL | FASYNC;
16388 if ac_fn_c_try_compile
"$LINENO"; then :
16389 emacs_cv_usable_SIGIO
=yes
16391 emacs_cv_usable_SIGIO
=no
16393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16396 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16397 if test $emacs_cv_usable_SIGIO = yes; then
16399 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16409 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16415 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16421 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16427 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16432 # Set up the CFLAGS for real compilation, so we can substitute it.
16433 CFLAGS
="$REAL_CFLAGS"
16434 CPPFLAGS
="$REAL_CPPFLAGS"
16436 ## Hack to detect a buggy GCC version.
16437 if test "x$GCC" = xyes \
16438 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16439 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16440 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16441 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16444 version
=$PACKAGE_VERSION
16446 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16448 cat >>confdefs.h
<<_ACEOF
16449 #define COPYRIGHT "$copyright"
16454 ### Specify what sort of things we'll be editing into Makefile and config.h.
16455 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16481 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16482 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16483 ## end of LIBX_BASE, but nothing ever set it.
16488 ## Used in lwlib/Makefile.in.
16497 if test -n "${term_header}"; then
16499 cat >>confdefs.h
<<_ACEOF
16500 #define TERM_HEADER "${term_header}"
16506 cat >>confdefs.h
<<_ACEOF
16507 #define EMACS_CONFIGURATION "${canonical}"
16510 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16512 cat >>confdefs.h
<<_ACEOF
16513 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16521 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16523 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16526 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16528 if test "$HAVE_XFT" = "yes"; then
16529 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16530 elif test "$HAVE_FREETYPE" = "yes"; then
16531 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16541 if test "${USE_X_TOOLKIT}" != "none" ; then
16542 WIDGET_OBJ
=widget.o
16544 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16546 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16548 $as_echo "#define USE_LUCID 1" >>confdefs.h
16550 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16552 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16557 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16558 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16562 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16563 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16564 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16568 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16569 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16572 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16578 case "$USE_X_TOOLKIT" in
16579 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16580 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16581 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16585 if test "$USE_X_TOOLKIT" = "none"; then
16586 LIBXT_OTHER
="\$(LIBXSM)"
16587 OLDXMENU_TARGET
="really-oldXMenu"
16589 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16590 OLDXMENU_TARGET
="really-lwlib"
16594 ## The X Menu stuff is present in the X10 distribution, but missing
16595 ## from X11. If we have X10, just use the installed library;
16596 ## otherwise, use our own copy.
16597 if test "${HAVE_X11}" = "yes" ; then
16599 $as_echo "#define HAVE_X11 1" >>confdefs.h
16602 if test "$USE_X_TOOLKIT" = "none"; then
16603 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16605 OLDXMENU
="\${lwlibdir}/liblw.a"
16607 LIBXMENU
="\$(OLDXMENU)"
16608 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16609 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16611 ## For a syntactically valid Makefile; not actually used for anything.
16612 ## See comments in src/Makefile.in.
16614 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16615 if test "${HAVE_X_WINDOWS}" = "yes"; then
16624 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16637 if test "${HAVE_MENUS}" = "yes" ; then
16639 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16643 if test "${GNU_MALLOC}" = "yes" ; then
16645 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16650 if test "${REL_ALLOC}" = "yes" ; then
16652 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16655 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16659 if test "$opsys" = "cygwin"; then
16660 CYGWIN_OBJ
="sheap.o cygw32.o"
16661 ## Cygwin differs because of its unexec().
16663 POST_ALLOC_OBJ
=lastfile.o
16666 PRE_ALLOC_OBJ
=lastfile.o
16673 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16674 # it temporarily reverts them to their pre-pkg-config values,
16675 # because gnulib needs to work with both src (which uses the
16676 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16677 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16678 # and it therefore needs to run in an environment where LIBS does not
16679 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16680 # for some package unrelated to lib-src.
16681 SAVE_CFLAGS
=$CFLAGS
16683 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16684 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16696 LIBC_FATAL_STDERR_
=1
16697 export LIBC_FATAL_STDERR_
16699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16700 # for constant arguments. Useless!
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16702 $as_echo_n "checking for working alloca.h... " >&6; }
16703 if test "${ac_cv_working_alloca_h+set}" = set; then :
16704 $as_echo_n "(cached) " >&6
16706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708 #include <alloca.h>
16712 char *p = (char *) alloca (2 * sizeof (int));
16718 if ac_fn_c_try_link
"$LINENO"; then :
16719 ac_cv_working_alloca_h
=yes
16721 ac_cv_working_alloca_h
=no
16723 rm -f core conftest.err conftest.
$ac_objext \
16724 conftest
$ac_exeext conftest.
$ac_ext
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16727 $as_echo "$ac_cv_working_alloca_h" >&6; }
16728 if test $ac_cv_working_alloca_h = yes; then
16730 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16735 $as_echo_n "checking for alloca... " >&6; }
16736 if test "${ac_cv_func_alloca_works+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16742 # define alloca __builtin_alloca
16745 # include <malloc.h>
16746 # define alloca _alloca
16748 # ifdef HAVE_ALLOCA_H
16749 # include <alloca.h>
16754 # ifndef alloca /* predefined by HP cc +Olibcalls */
16765 char *p = (char *) alloca (1);
16771 if ac_fn_c_try_link
"$LINENO"; then :
16772 ac_cv_func_alloca_works
=yes
16774 ac_cv_func_alloca_works
=no
16776 rm -f core conftest.err conftest.
$ac_objext \
16777 conftest
$ac_exeext conftest.
$ac_ext
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16780 $as_echo "$ac_cv_func_alloca_works" >&6; }
16782 if test $ac_cv_func_alloca_works = yes; then
16784 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16787 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16788 # that cause trouble. Some versions do not even contain alloca or
16789 # contain a buggy version. If you still want to use their alloca,
16790 # use ar to extract alloca.o from them instead of compiling alloca.c.
16796 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16798 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16802 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16803 if test "${ac_cv_os_cray+set}" = set; then :
16804 $as_echo_n "(cached) " >&6
16806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808 #if defined CRAY && ! defined CRAY2
16815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16816 $EGREP "webecray" >/dev
/null
2>&1; then :
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16825 $as_echo "$ac_cv_os_cray" >&6; }
16826 if test $ac_cv_os_cray = yes; then
16827 for ac_func
in _getb67 GETB67 getb67
; do
16828 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16829 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16830 eval as_val
=\$
$as_ac_var
16831 if test "x$as_val" = x
""yes; then :
16833 cat >>confdefs.h
<<_ACEOF
16834 #define CRAY_STACKSEG_END $ac_func
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16844 $as_echo_n "checking stack direction for C alloca... " >&6; }
16845 if test "${ac_cv_c_stack_direction+set}" = set; then :
16846 $as_echo_n "(cached) " >&6
16848 if test "$cross_compiling" = yes; then :
16849 ac_cv_c_stack_direction
=0
16851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16853 $ac_includes_default
16855 find_stack_direction (int *addr, int depth)
16857 int dir, dummy = 0;
16860 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16861 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16862 return dir + dummy;
16866 main (int argc, char **argv)
16868 return find_stack_direction (0, argc + !argv + 20) < 0;
16871 if ac_fn_c_try_run
"$LINENO"; then :
16872 ac_cv_c_stack_direction
=1
16874 ac_cv_c_stack_direction
=-1
16876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16877 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16882 $as_echo "$ac_cv_c_stack_direction" >&6; }
16883 cat >>confdefs.h
<<_ACEOF
16884 #define STACK_DIRECTION $ac_cv_c_stack_direction
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16894 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16895 if test "${ac_cv_c_bigendian+set}" = set; then :
16896 $as_echo_n "(cached) " >&6
16898 ac_cv_c_bigendian
=unknown
16899 # See if we're dealing with a universal compiler.
16900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h. */
16902 #ifndef __APPLE_CC__
16903 not a universal capable compiler
16908 if ac_fn_c_try_compile
"$LINENO"; then :
16910 # Check for potential -arch flags. It is not universal unless
16911 # there are at least two -arch flags with different values.
16914 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16915 if test -n "$ac_prev"; then
16917 i?
86 | x86_64 | ppc | ppc64
)
16918 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16921 ac_cv_c_bigendian
=universal
16927 elif test "x$ac_word" = "x-arch"; then
16932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16933 if test $ac_cv_c_bigendian = unknown
; then
16934 # See if sys/param.h defines the BYTE_ORDER macro.
16935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16936 /* end confdefs.h. */
16937 #include <sys/types.h>
16938 #include <sys/param.h>
16943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16946 bogus endian macros
16953 if ac_fn_c_try_compile
"$LINENO"; then :
16954 # It does; now see whether it defined to BIG_ENDIAN or not.
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <sys/types.h>
16958 #include <sys/param.h>
16963 #if BYTE_ORDER != BIG_ENDIAN
16971 if ac_fn_c_try_compile
"$LINENO"; then :
16972 ac_cv_c_bigendian
=yes
16974 ac_cv_c_bigendian
=no
16976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16980 if test $ac_cv_c_bigendian = unknown
; then
16981 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16983 /* end confdefs.h. */
16984 #include <limits.h>
16989 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16990 bogus endian macros
16997 if ac_fn_c_try_compile
"$LINENO"; then :
16998 # It does; now see whether it defined to _BIG_ENDIAN or not.
16999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <limits.h>
17006 #ifndef _BIG_ENDIAN
17014 if ac_fn_c_try_compile
"$LINENO"; then :
17015 ac_cv_c_bigendian
=yes
17017 ac_cv_c_bigendian
=no
17019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17023 if test $ac_cv_c_bigendian = unknown
; then
17024 # Compile a test program.
17025 if test "$cross_compiling" = yes; then :
17026 # Try to guess by grepping values from an object file.
17027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 short int ascii_mm[] =
17030 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17031 short int ascii_ii[] =
17032 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17033 int use_ascii (int i) {
17034 return ascii_mm[i] + ascii_ii[i];
17036 short int ebcdic_ii[] =
17037 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17038 short int ebcdic_mm[] =
17039 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17040 int use_ebcdic (int i) {
17041 return ebcdic_mm[i] + ebcdic_ii[i];
17048 return use_ascii (foo) == use_ebcdic (foo);
17053 if ac_fn_c_try_compile
"$LINENO"; then :
17054 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17055 ac_cv_c_bigendian
=yes
17057 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17058 if test "$ac_cv_c_bigendian" = unknown
; then
17059 ac_cv_c_bigendian
=no
17061 # finding both strings is unlikely to happen, but who knows?
17062 ac_cv_c_bigendian
=unknown
17066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070 $ac_includes_default
17075 /* Are we little or big endian? From Harbison&Steele. */
17079 char c[sizeof (long int)];
17082 return u.c[sizeof (long int) - 1] == 1;
17088 if ac_fn_c_try_run
"$LINENO"; then :
17089 ac_cv_c_bigendian
=no
17091 ac_cv_c_bigendian
=yes
17093 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17094 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17100 $as_echo "$ac_cv_c_bigendian" >&6; }
17101 case $ac_cv_c_bigendian in #(
17103 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17109 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17113 as_fn_error
"unknown endianness
17114 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17126 GNULIB_EUIDACCESS
=0;
17127 GNULIB_FACCESSAT
=0;
17130 GNULIB_FDATASYNC
=0;
17132 GNULIB_FTRUNCATE
=0;
17134 GNULIB_GETDOMAINNAME
=0;
17135 GNULIB_GETDTABLESIZE
=0;
17136 GNULIB_GETGROUPS
=0;
17137 GNULIB_GETHOSTNAME
=0;
17139 GNULIB_GETLOGIN_R
=0;
17140 GNULIB_GETPAGESIZE
=0;
17141 GNULIB_GETUSERSHELL
=0;
17142 GNULIB_GROUP_MEMBER
=0;
17154 GNULIB_READLINKAT
=0;
17156 GNULIB_SETHOSTNAME
=0;
17159 GNULIB_SYMLINKAT
=0;
17160 GNULIB_TTYNAME_R
=0;
17161 GNULIB_UNISTD_H_NONBLOCKING
=0;
17162 GNULIB_UNISTD_H_SIGPIPE
=0;
17177 HAVE_GETDTABLESIZE
=1;
17179 HAVE_GETHOSTNAME
=1;
17181 HAVE_GETPAGESIZE
=1;
17182 HAVE_GROUP_MEMBER
=1;
17192 HAVE_SETHOSTNAME
=1;
17198 HAVE_DECL_ENVIRON
=1;
17199 HAVE_DECL_FCHDIR
=1;
17200 HAVE_DECL_FDATASYNC
=1;
17201 HAVE_DECL_GETDOMAINNAME
=1;
17202 HAVE_DECL_GETLOGIN_R
=1;
17203 HAVE_DECL_GETPAGESIZE
=1;
17204 HAVE_DECL_GETUSERSHELL
=1;
17205 HAVE_DECL_SETHOSTNAME
=1;
17206 HAVE_DECL_TTYNAME_R
=1;
17208 HAVE_SYS_PARAM_H
=0;
17213 REPLACE_FCHOWNAT
=0;
17214 REPLACE_FTRUNCATE
=0;
17216 REPLACE_GETDOMAINNAME
=0;
17217 REPLACE_GETLOGIN_R
=0;
17218 REPLACE_GETGROUPS
=0;
17219 REPLACE_GETPAGESIZE
=0;
17228 REPLACE_READLINK
=0;
17232 REPLACE_TTYNAME_R
=0;
17234 REPLACE_UNLINKAT
=0;
17237 UNISTD_H_HAVE_WINSOCK2_H
=0;
17238 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17244 GNULIB_REWINDDIR
=0;
17247 GNULIB_FDOPENDIR
=0;
17249 GNULIB_ALPHASORT
=0;
17255 HAVE_DECL_FDOPENDIR
=1;
17260 REPLACE_CLOSEDIR
=0;
17262 REPLACE_FDOPENDIR
=0;
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17267 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17268 if test "${gl_cv_have_include_next+set}" = set; then :
17269 $as_echo_n "(cached) " >&6
17271 rm -rf conftestd1a conftestd1b conftestd2
17272 mkdir conftestd1a conftestd1b conftestd2
17273 cat <<EOF > conftestd1a/conftest.h
17274 #define DEFINED_IN_CONFTESTD1
17275 #include_next <conftest.h>
17276 #ifdef DEFINED_IN_CONFTESTD2
17279 #error "include_next doesn't work"
17282 cat <<EOF > conftestd1b/conftest.h
17283 #define DEFINED_IN_CONFTESTD1
17285 #include_next <conftest.h>
17286 #ifdef DEFINED_IN_CONFTESTD2
17289 #error "include_next doesn't work"
17292 cat <<EOF > conftestd2/conftest.h
17293 #ifndef DEFINED_IN_CONFTESTD1
17294 #error "include_next test doesn't work"
17296 #define DEFINED_IN_CONFTESTD2
17298 gl_save_CPPFLAGS
="$CPPFLAGS"
17299 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <conftest.h>
17304 if ac_fn_c_try_compile
"$LINENO"; then :
17305 gl_cv_have_include_next
=yes
17307 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 #include <conftest.h>
17312 if ac_fn_c_try_compile
"$LINENO"; then :
17313 gl_cv_have_include_next
=buggy
17315 gl_cv_have_include_next
=no
17317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17321 CPPFLAGS
="$gl_save_CPPFLAGS"
17322 rm -rf conftestd1a conftestd1b conftestd2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17326 $as_echo "$gl_cv_have_include_next" >&6; }
17327 PRAGMA_SYSTEM_HEADER
=
17328 if test $gl_cv_have_include_next = yes; then
17329 INCLUDE_NEXT
=include_next
17330 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17331 if test -n "$GCC"; then
17332 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17335 if test $gl_cv_have_include_next = buggy
; then
17336 INCLUDE_NEXT
=include
17337 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17339 INCLUDE_NEXT
=include
17340 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17347 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17348 if test "${gl_cv_pragma_columns+set}" = set; then :
17349 $as_echo_n "(cached) " >&6
17351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "choke me" >/dev
/null
2>&1; then :
17361 gl_cv_pragma_columns
=yes
17363 gl_cv_pragma_columns
=no
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17370 $as_echo "$gl_cv_pragma_columns" >&6; }
17371 if test $gl_cv_pragma_columns = yes; then
17372 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17382 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17383 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388 /* On HP-UX before 11.23, strtold returns a struct instead of
17389 long double. Reject implementations like that, by requiring
17390 compatibility with the C99 prototype. */
17391 #include <stdlib.h>
17392 static long double (*p) (char const *, char **) = strtold;
17394 test (char const *nptr, char **endptr)
17397 r = strtold (nptr, endptr);
17403 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17408 if ac_fn_c_try_link
"$LINENO"; then :
17409 gl_cv_func_c99_strtold
=yes
17411 gl_cv_func_c99_strtold
=no
17413 rm -f core conftest.err conftest.
$ac_objext \
17414 conftest
$ac_exeext conftest.
$ac_ext
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17417 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17418 if test $gl_cv_func_c99_strtold = yes; then
17420 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17432 $as_echo_n "checking if environ is properly declared... " >&6; }
17433 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17440 #include <unistd.h>
17442 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17443 #include <stdlib.h>
17445 extern struct { int foo; } environ;
17454 if ac_fn_c_try_compile
"$LINENO"; then :
17455 gt_cv_var_environ_declaration
=no
17457 gt_cv_var_environ_declaration
=yes
17459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17463 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17464 if test $gt_cv_var_environ_declaration = yes; then
17466 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17471 if test $gt_cv_var_environ_declaration != yes; then
17472 HAVE_DECL_ENVIRON
=0
17484 GNULIB_NONBLOCKING
=0;
17494 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17495 if test "x$ac_cv_type_mode_t" = x
""yes; then :
17499 cat >>confdefs.h
<<_ACEOF
17505 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17506 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
17512 cat >>confdefs.h
<<_ACEOF
17513 #define HAVE_DECL_FDATASYNC $ac_have_decl
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17519 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17520 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17521 $as_echo_n "(cached) " >&6
17523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 #include <sys/types.h>
17527 #include <sys/stat.h>
17531 struct stat s; s.st_dm_mode;
17536 if ac_fn_c_try_compile
"$LINENO"; then :
17537 ac_cv_struct_st_dm_mode
=yes
17539 ac_cv_struct_st_dm_mode
=no
17541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17544 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17546 if test $ac_cv_struct_st_dm_mode = yes; then
17548 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17553 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17554 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17560 cat >>confdefs.h
<<_ACEOF
17561 #define HAVE_DECL_STRMODE $ac_have_decl
17581 GNULIB_UTIMENSAT
=0;
17595 REPLACE_FUTIMENS
=0;
17601 REPLACE_UTIMENSAT
=0;
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17605 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17606 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17609 rm -f conftest.sym conftest.
file
17610 echo >conftest.
file
17611 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17612 if test "$cross_compiling" = yes; then :
17614 # Guess yes on glibc systems.
17615 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17616 # If we don't know, assume the worst.
17617 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17623 $ac_includes_default
17628 /* Linux will dereference the symlink and fail, as required by
17629 POSIX. That is better in the sense that it means we will not
17630 have to compile and use the lstat wrapper. */
17631 return lstat ("conftest.sym/", &sbuf) == 0;
17637 if ac_fn_c_try_run
"$LINENO"; then :
17638 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17640 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17647 # If the 'ln -s' command failed, then we probably don't even
17648 # have an lstat function.
17649 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17651 rm -f conftest.sym conftest.
file
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17655 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17656 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17659 cat >>confdefs.h
<<_ACEOF
17660 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17673 GNULIB_CALLOC_POSIX
=0;
17674 GNULIB_CANONICALIZE_FILE_NAME
=0;
17675 GNULIB_GETLOADAVG
=0;
17676 GNULIB_GETSUBOPT
=0;
17678 GNULIB_MALLOC_POSIX
=0;
17682 GNULIB_MKOSTEMPS
=0;
17685 GNULIB_POSIX_OPENPT
=0;
17687 GNULIB_PTSNAME_R
=0;
17691 GNULIB_REALLOC_POSIX
=0;
17694 GNULIB_SECURE_GETENV
=0;
17699 GNULIB_SYSTEM_POSIX
=0;
17705 HAVE_CANONICALIZE_FILE_NAME
=1;
17706 HAVE_DECL_GETLOADAVG
=1;
17714 HAVE_POSIX_OPENPT
=1;
17722 HAVE_SECURE_GETENV
=1;
17724 HAVE_DECL_SETENV
=1;
17728 HAVE_STRUCT_RANDOM_DATA
=1;
17729 HAVE_SYS_LOADAVG_H
=0;
17731 HAVE_DECL_UNSETENV
=1;
17733 REPLACE_CANONICALIZE_FILE_NAME
=0;
17738 REPLACE_PTSNAME_R
=0;
17740 REPLACE_RANDOM_R
=0;
17742 REPLACE_REALPATH
=0;
17745 REPLACE_UNSETENV
=0;
17763 if test $gl_cv_have_include_next = yes; then
17764 gl_cv_next_getopt_h
='<'getopt.h
'>'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17767 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17768 if test "${gl_cv_next_getopt_h+set}" = set; then :
17769 $as_echo_n "(cached) " >&6
17772 if test $ac_cv_header_getopt_h = yes; then
17775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 #include <getopt.h>
17781 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17782 *) gl_absname_cpp
="$ac_cpp" ;;
17787 gl_dirsep_regex
='[/\\]'
17790 gl_dirsep_regex
='\/'
17793 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17795 gl_header_literal_regex
=`echo 'getopt.h' \
17796 | sed -e "$gl_make_literal_regex_sed"`
17797 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17798 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17803 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17804 sed -n "$gl_absolute_header_sed"`'"'
17806 gl_cv_next_getopt_h
='<'getopt.h
'>'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17812 $as_echo "$gl_cv_next_getopt_h" >&6; }
17814 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17816 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17818 gl_next_as_first_directive
='<'getopt.h
'>'
17820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17821 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17823 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17828 if test $ac_cv_header_getopt_h = yes; then
17837 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17838 for ac_header
in getopt.h
17840 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17841 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17842 cat >>confdefs.h
<<_ACEOF
17843 #define HAVE_GETOPT_H 1
17847 gl_replace_getopt
=yes
17854 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17855 for ac_func
in getopt_long_only
17857 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17858 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17859 cat >>confdefs.h
<<_ACEOF
17860 #define HAVE_GETOPT_LONG_ONLY 1
17864 gl_replace_getopt
=yes
17870 if test -z "$gl_replace_getopt"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17872 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17873 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17874 $as_echo_n "(cached) " >&6
17877 if test $cross_compiling = no
; then
17878 if test "$cross_compiling" = yes; then :
17879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17881 as_fn_error
"cannot run test program while cross compiling
17882 See \`config.log' for more details." "$LINENO" 5; }
17884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17887 #include <unistd.h>
17888 #include <stdlib.h>
17889 #include <string.h>
17894 static char program[] = "program";
17895 static char a[] = "-a";
17896 static char foo[] = "foo";
17897 static char bar[] = "bar";
17898 char *argv[] = { program, a, foo, bar, NULL };
17901 c = getopt (4, argv, "ab");
17904 c = getopt (4, argv, "ab");
17907 if (!(optind == 2))
17913 if ac_fn_c_try_run
"$LINENO"; then :
17914 gl_cv_func_getopt_posix
=maybe
17916 gl_cv_func_getopt_posix
=no
17918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17919 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17922 if test $gl_cv_func_getopt_posix = maybe
; then
17923 if test "$cross_compiling" = yes; then :
17924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17926 as_fn_error
"cannot run test program while cross compiling
17927 See \`config.log' for more details." "$LINENO" 5; }
17929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17932 #include <unistd.h>
17933 #include <stdlib.h>
17934 #include <string.h>
17939 static char program[] = "program";
17940 static char donald[] = "donald";
17941 static char p[] = "-p";
17942 static char billy[] = "billy";
17943 static char duck[] = "duck";
17944 static char a[] = "-a";
17945 static char bar[] = "bar";
17946 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17949 c = getopt (7, argv, "+abp:q:");
17952 if (!(strcmp (argv[0], "program") == 0))
17954 if (!(strcmp (argv[1], "donald") == 0))
17956 if (!(strcmp (argv[2], "-p") == 0))
17958 if (!(strcmp (argv[3], "billy") == 0))
17960 if (!(strcmp (argv[4], "duck") == 0))
17962 if (!(strcmp (argv[5], "-a") == 0))
17964 if (!(strcmp (argv[6], "bar") == 0))
17966 if (!(optind == 1))
17972 if ac_fn_c_try_run
"$LINENO"; then :
17973 gl_cv_func_getopt_posix
=maybe
17975 gl_cv_func_getopt_posix
=no
17977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17982 if test $gl_cv_func_getopt_posix = maybe
; then
17983 if test "$cross_compiling" = yes; then :
17984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17986 as_fn_error
"cannot run test program while cross compiling
17987 See \`config.log' for more details." "$LINENO" 5; }
17989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17992 #include <unistd.h>
17993 #include <stdlib.h>
17994 #include <string.h>
17999 static char program[] = "program";
18000 static char ab[] = "-ab";
18001 char *argv[3] = { program, ab, NULL };
18002 if (getopt (2, argv, "ab:") != 'a')
18004 if (getopt (2, argv, "ab:") != '?')
18014 if ac_fn_c_try_run
"$LINENO"; then :
18015 gl_cv_func_getopt_posix
=yes
18017 gl_cv_func_getopt_posix
=no
18019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18026 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
18027 *) gl_cv_func_getopt_posix
="guessing yes";;
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18033 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18034 case "$gl_cv_func_getopt_posix" in
18035 *no
) gl_replace_getopt
=yes ;;
18039 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
18041 $as_echo_n "checking for working GNU getopt function... " >&6; }
18042 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18045 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
18046 # optstring is necessary for programs like m4 that have POSIX-mandated
18047 # semantics for supporting options interspersed with files.
18048 # Also, since getopt_long is a GNU extension, we require optind=0.
18049 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
18050 # so take care to revert to the correct (non-)export state.
18051 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
18052 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
18053 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
18054 x
) gl_had_POSIXLY_CORRECT
=yes ;;
18055 *) gl_had_POSIXLY_CORRECT
= ;;
18058 export POSIXLY_CORRECT
18059 if test "$cross_compiling" = yes; then :
18060 gl_cv_func_getopt_gnu
="guessing no"
18063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 #include <getopt.h>
18066 #include <stddef.h>
18067 #include <string.h>
18069 #include <stdlib.h>
18070 #if defined __MACH__ && defined __APPLE__
18071 /* Avoid a crash on Mac OS X. */
18072 #include <mach/mach.h>
18073 #include <mach/mach_error.h>
18074 #include <mach/thread_status.h>
18075 #include <mach/exception.h>
18076 #include <mach/task.h>
18077 #include <pthread.h>
18078 /* The exception port on which our thread listens. */
18079 static mach_port_t our_exception_port;
18080 /* The main function of the thread listening for exceptions of type
18083 mach_exception_thread (void *arg)
18085 /* Buffer for a message to be received. */
18087 mach_msg_header_t head;
18088 mach_msg_body_t msgh_body;
18091 mach_msg_return_t retval;
18092 /* Wait for a message on the exception port. */
18093 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
18094 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
18095 if (retval != MACH_MSG_SUCCESS)
18100 nocrash_init (void)
18102 mach_port_t self = mach_task_self ();
18103 /* Allocate a port on which the thread shall listen for exceptions. */
18104 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
18106 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
18107 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
18108 MACH_MSG_TYPE_MAKE_SEND)
18110 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
18112 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
18113 /* Create the thread listening on the exception port. */
18114 pthread_attr_t attr;
18116 if (pthread_attr_init (&attr) == 0
18117 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
18118 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
18119 pthread_attr_destroy (&attr);
18120 /* Replace the exception port info for these exceptions with our own.
18121 Note that we replace the exception port for the entire task, not only
18122 for a particular thread. This has the effect that when our exception
18123 port gets the message, the thread specific exception port has already
18124 been asked, and we don't need to bother about it.
18125 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
18126 task_set_exception_ports (self, mask, our_exception_port,
18127 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
18132 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18133 /* Avoid a crash on native Windows. */
18134 #define WIN32_LEAN_AND_MEAN
18135 #include <windows.h>
18136 #include <winerror.h>
18138 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
18140 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
18142 case EXCEPTION_ACCESS_VIOLATION:
18143 case EXCEPTION_IN_PAGE_ERROR:
18144 case EXCEPTION_STACK_OVERFLOW:
18145 case EXCEPTION_GUARD_PAGE:
18146 case EXCEPTION_PRIV_INSTRUCTION:
18147 case EXCEPTION_ILLEGAL_INSTRUCTION:
18148 case EXCEPTION_DATATYPE_MISALIGNMENT:
18149 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
18150 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
18153 return EXCEPTION_CONTINUE_SEARCH;
18156 nocrash_init (void)
18158 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
18161 /* Avoid a crash on POSIX systems. */
18162 #include <signal.h>
18163 /* A POSIX signal handler. */
18165 exception_handler (int sig)
18170 nocrash_init (void)
18173 signal (SIGSEGV, exception_handler);
18176 signal (SIGBUS, exception_handler);
18190 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
18191 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
18192 OSF/1 5.1, Solaris 10. */
18194 static char conftest[] = "conftest";
18195 static char plus[] = "-+";
18196 char *argv[3] = { conftest, plus, NULL };
18198 if (getopt (2, argv, "+a") != '?')
18201 /* This code succeeds on glibc 2.8, mingw,
18202 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
18203 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
18205 static char program[] = "program";
18206 static char p[] = "-p";
18207 static char foo[] = "foo";
18208 static char bar[] = "bar";
18209 char *argv[] = { program, p, foo, bar, NULL };
18212 if (getopt (4, argv, "p::") != 'p')
18214 else if (optarg != NULL)
18216 else if (getopt (4, argv, "p::") != -1)
18218 else if (optind != 2)
18221 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
18223 static char program[] = "program";
18224 static char foo[] = "foo";
18225 static char p[] = "-p";
18226 char *argv[] = { program, foo, p, NULL };
18228 if (getopt (3, argv, "-p") != 1)
18230 else if (getopt (3, argv, "-p") != 'p')
18233 /* This code fails on glibc 2.11. */
18235 static char program[] = "program";
18236 static char b[] = "-b";
18237 static char a[] = "-a";
18238 char *argv[] = { program, b, a, NULL };
18239 optind = opterr = 0;
18240 if (getopt (3, argv, "+:a:b") != 'b')
18242 else if (getopt (3, argv, "+:a:b") != ':')
18245 /* This code dumps core on glibc 2.14. */
18247 static char program[] = "program";
18248 static char w[] = "-W";
18249 static char dummy[] = "dummy";
18250 char *argv[] = { program, w, dummy, NULL };
18251 optind = opterr = 1;
18252 if (getopt (3, argv, "W;") != 'W')
18261 if ac_fn_c_try_run
"$LINENO"; then :
18262 gl_cv_func_getopt_gnu
=yes
18264 gl_cv_func_getopt_gnu
=no
18266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18270 case $gl_had_POSIXLY_CORRECT in
18272 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
18273 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18278 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18279 if test "$gl_cv_func_getopt_gnu" != yes; then
18280 gl_replace_getopt
=yes
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18283 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18284 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18285 $as_echo_n "(cached) " >&6
18287 if test "$cross_compiling" = yes; then :
18289 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
18290 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
18294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <getopt.h>
18297 #include <stddef.h>
18298 #include <string.h>
18303 static const struct option long_options[] =
18305 { "xtremely-",no_argument, NULL, 1003 },
18306 { "xtra", no_argument, NULL, 1001 },
18307 { "xtreme", no_argument, NULL, 1002 },
18308 { "xtremely", no_argument, NULL, 1003 },
18309 { NULL, 0, NULL, 0 }
18311 /* This code fails on OpenBSD 5.0. */
18313 static char program[] = "program";
18314 static char xtremel[] = "--xtremel";
18315 char *argv[] = { program, xtremel, NULL };
18317 optind = 1; opterr = 0;
18318 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18327 if ac_fn_c_try_run
"$LINENO"; then :
18328 gl_cv_func_getopt_long_gnu
=yes
18330 gl_cv_func_getopt_long_gnu
=no
18332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18339 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18340 case "$gl_cv_func_getopt_long_gnu" in
18342 *) gl_replace_getopt
=yes ;;
18353 if test -n "$gl_replace_getopt"; then
18357 if test $REPLACE_GETOPT = 1; then
18361 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18367 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18368 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
18374 cat >>confdefs.h
<<_ACEOF
18375 #define HAVE_DECL_GETENV $ac_have_decl
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18384 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18385 if test "${ac_cv_c_restrict+set}" = set; then :
18386 $as_echo_n "(cached) " >&6
18388 ac_cv_c_restrict
=no
18389 # The order here caters to the fact that C++ does not require restrict.
18390 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18393 typedef int * int_ptr;
18394 int foo (int_ptr $ac_kw ip) {
18401 int * $ac_kw t = s;
18408 if ac_fn_c_try_compile
"$LINENO"; then :
18409 ac_cv_c_restrict
=$ac_kw
18411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18412 test "$ac_cv_c_restrict" != no
&& break
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18417 $as_echo "$ac_cv_c_restrict" >&6; }
18419 case $ac_cv_c_restrict in
18421 no
) $as_echo "#define restrict /**/" >>confdefs.h
18423 *) cat >>confdefs.h
<<_ACEOF
18424 #define restrict $ac_cv_c_restrict
18430 GNULIB_GETTIMEOFDAY
=0;
18431 HAVE_GETTIMEOFDAY
=1;
18432 HAVE_STRUCT_TIMEVAL
=1;
18434 REPLACE_GETTIMEOFDAY
=0;
18435 REPLACE_STRUCT_TIMEVAL
=0;
18452 if test $gl_cv_have_include_next = yes; then
18453 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18456 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18457 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18461 if test $ac_cv_header_sys_time_h = yes; then
18464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #include <sys/time.h>
18470 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18471 *) gl_absname_cpp
="$ac_cpp" ;;
18476 gl_dirsep_regex
='[/\\]'
18479 gl_dirsep_regex
='\/'
18482 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18484 gl_header_literal_regex
=`echo 'sys/time.h' \
18485 | sed -e "$gl_make_literal_regex_sed"`
18486 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18487 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18492 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18493 sed -n "$gl_absolute_header_sed"`'"'
18495 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18501 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18503 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
18505 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18507 gl_next_as_first_directive
='<'sys
/time.h
'>'
18509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18510 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
18512 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
18518 if test $ac_cv_header_sys_time_h != yes; then
18526 if test $ac_cv_header_sys_socket_h != yes; then
18527 for ac_header
in winsock2.h
18529 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18530 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
18531 cat >>confdefs.h
<<_ACEOF
18532 #define HAVE_WINSOCK2_H 1
18540 if test "$ac_cv_header_winsock2_h" = yes; then
18542 UNISTD_H_HAVE_WINSOCK2_H
=1
18543 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18550 $as_echo_n "checking for struct timeval... " >&6; }
18551 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18555 /* end confdefs.h. */
18556 #if HAVE_SYS_TIME_H
18557 #include <sys/time.h>
18560 #if HAVE_WINSOCK2_H
18561 # include <winsock2.h>
18567 static struct timeval x; x.tv_sec = x.tv_usec;
18572 if ac_fn_c_try_compile
"$LINENO"; then :
18573 gl_cv_sys_struct_timeval
=yes
18575 gl_cv_sys_struct_timeval
=no
18577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18581 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18582 if test $gl_cv_sys_struct_timeval != yes; then
18583 HAVE_STRUCT_TIMEVAL
=0
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18586 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18587 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18588 $as_echo_n "(cached) " >&6
18590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18592 #if HAVE_SYS_TIME_H
18593 #include <sys/time.h>
18596 #if HAVE_WINSOCK2_H
18597 # include <winsock2.h>
18603 static struct timeval x;
18604 typedef int verify_tv_sec_type[
18605 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18612 if ac_fn_c_try_compile
"$LINENO"; then :
18613 gl_cv_sys_struct_timeval_tv_sec
=yes
18615 gl_cv_sys_struct_timeval_tv_sec
=no
18617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18621 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18622 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18623 REPLACE_STRUCT_TIMEVAL
=1
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18634 $as_echo_n "checking for unsigned long long int... " >&6; }
18635 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18636 $as_echo_n "(cached) " >&6
18638 ac_cv_type_unsigned_long_long_int
=yes
18639 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18641 /* end confdefs.h. */
18643 /* For now, do not test the preprocessor; as of 2007 there are too many
18644 implementations with broken preprocessors. Perhaps this can
18645 be revisited in 2012. In the meantime, code should not expect
18646 #if to work with literals wider than 32 bits. */
18647 /* Test literals. */
18648 long long int ll = 9223372036854775807ll;
18649 long long int nll = -9223372036854775807LL;
18650 unsigned long long int ull = 18446744073709551615ULL;
18651 /* Test constant expressions. */
18652 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18654 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18660 /* Test availability of runtime routines for shift and division. */
18661 long long int llmax = 9223372036854775807ll;
18662 unsigned long long int ullmax = 18446744073709551615ull;
18663 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18664 | (llmax / ll) | (llmax % ll)
18665 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18666 | (ullmax / ull) | (ullmax % ull));
18672 if ac_fn_c_try_link
"$LINENO"; then :
18675 ac_cv_type_unsigned_long_long_int
=no
18677 rm -f core conftest.err conftest.
$ac_objext \
18678 conftest
$ac_exeext conftest.
$ac_ext
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18682 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18683 if test $ac_cv_type_unsigned_long_long_int = yes; then
18685 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18692 $as_echo_n "checking for long long int... " >&6; }
18693 if test "${ac_cv_type_long_long_int+set}" = set; then :
18694 $as_echo_n "(cached) " >&6
18696 ac_cv_type_long_long_int
=yes
18697 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
18698 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
18699 if test $ac_cv_type_long_long_int = yes; then
18700 if test "$cross_compiling" = yes; then :
18703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 #include <limits.h>
18708 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18709 # define LLONG_MAX (HALF - 1 + HALF)
18714 long long int n = 1;
18718 long long int m = n << i;
18721 if (LLONG_MAX / 2 < m)
18729 if ac_fn_c_try_run
"$LINENO"; then :
18732 ac_cv_type_long_long_int
=no
18734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18742 $as_echo "$ac_cv_type_long_long_int" >&6; }
18743 if test $ac_cv_type_long_long_int = yes; then
18745 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18754 gl_cv_c_multiarch
=no
18755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18757 #ifndef __APPLE_CC__
18758 not a universal capable compiler
18763 if ac_fn_c_try_compile
"$LINENO"; then :
18767 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18768 if test -n "$prev"; then
18770 i?
86 | x86_64 | ppc | ppc64
)
18771 if test -z "$arch" ||
test "$arch" = "$word"; then
18774 gl_cv_c_multiarch
=yes
18780 if test "x$word" = "x-arch"; then
18787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18788 if test $gl_cv_c_multiarch = yes; then
18789 APPLE_UNIVERSAL_BUILD
=1
18791 APPLE_UNIVERSAL_BUILD
=0
18798 if test $ac_cv_type_long_long_int = yes; then
18799 HAVE_LONG_LONG_INT
=1
18801 HAVE_LONG_LONG_INT
=0
18805 if test $ac_cv_type_unsigned_long_long_int = yes; then
18806 HAVE_UNSIGNED_LONG_LONG_INT
=1
18808 HAVE_UNSIGNED_LONG_LONG_INT
=0
18813 if test $ac_cv_header_wchar_h = yes; then
18820 if test $ac_cv_header_inttypes_h = yes; then
18827 if test $ac_cv_header_sys_types_h = yes; then
18843 if test $gl_cv_have_include_next = yes; then
18844 gl_cv_next_stdint_h
='<'stdint.h
'>'
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18847 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18848 if test "${gl_cv_next_stdint_h+set}" = set; then :
18849 $as_echo_n "(cached) " >&6
18852 if test $ac_cv_header_stdint_h = yes; then
18855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18857 #include <stdint.h>
18861 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18862 *) gl_absname_cpp
="$ac_cpp" ;;
18867 gl_dirsep_regex
='[/\\]'
18870 gl_dirsep_regex
='\/'
18873 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18875 gl_header_literal_regex
=`echo 'stdint.h' \
18876 | sed -e "$gl_make_literal_regex_sed"`
18877 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18878 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18883 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18884 sed -n "$gl_absolute_header_sed"`'"'
18886 gl_cv_next_stdint_h
='<'stdint.h
'>'
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18892 $as_echo "$gl_cv_next_stdint_h" >&6; }
18894 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18896 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18898 gl_next_as_first_directive
='<'stdint.h
'>'
18900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18901 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18903 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18908 if test $ac_cv_header_stdint_h = yes; then
18915 if test $ac_cv_header_stdint_h = yes; then
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18917 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18918 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18919 $as_echo_n "(cached) " >&6
18921 gl_cv_header_working_stdint_h
=no
18922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18926 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18927 #include <stdint.h>
18928 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18929 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18930 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18934 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18935 included before <wchar.h>. */
18936 #include <stddef.h>
18937 #include <signal.h>
18939 # include <stdio.h>
18941 # include <wchar.h>
18946 int8_t a1 = INT8_MAX;
18947 int8_t a1min = INT8_MIN;
18950 int16_t a2 = INT16_MAX;
18951 int16_t a2min = INT16_MIN;
18954 int32_t a3 = INT32_MAX;
18955 int32_t a3min = INT32_MIN;
18958 int64_t a4 = INT64_MAX;
18959 int64_t a4min = INT64_MIN;
18962 uint8_t b1 = UINT8_MAX;
18964 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18967 uint16_t b2 = UINT16_MAX;
18970 uint32_t b3 = UINT32_MAX;
18973 uint64_t b4 = UINT64_MAX;
18975 int_least8_t c1 = INT8_C (0x7f);
18976 int_least8_t c1max = INT_LEAST8_MAX;
18977 int_least8_t c1min = INT_LEAST8_MIN;
18978 int_least16_t c2 = INT16_C (0x7fff);
18979 int_least16_t c2max = INT_LEAST16_MAX;
18980 int_least16_t c2min = INT_LEAST16_MIN;
18981 int_least32_t c3 = INT32_C (0x7fffffff);
18982 int_least32_t c3max = INT_LEAST32_MAX;
18983 int_least32_t c3min = INT_LEAST32_MIN;
18984 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18985 int_least64_t c4max = INT_LEAST64_MAX;
18986 int_least64_t c4min = INT_LEAST64_MIN;
18987 uint_least8_t d1 = UINT8_C (0xff);
18988 uint_least8_t d1max = UINT_LEAST8_MAX;
18989 uint_least16_t d2 = UINT16_C (0xffff);
18990 uint_least16_t d2max = UINT_LEAST16_MAX;
18991 uint_least32_t d3 = UINT32_C (0xffffffff);
18992 uint_least32_t d3max = UINT_LEAST32_MAX;
18993 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18994 uint_least64_t d4max = UINT_LEAST64_MAX;
18995 int_fast8_t e1 = INT_FAST8_MAX;
18996 int_fast8_t e1min = INT_FAST8_MIN;
18997 int_fast16_t e2 = INT_FAST16_MAX;
18998 int_fast16_t e2min = INT_FAST16_MIN;
18999 int_fast32_t e3 = INT_FAST32_MAX;
19000 int_fast32_t e3min = INT_FAST32_MIN;
19001 int_fast64_t e4 = INT_FAST64_MAX;
19002 int_fast64_t e4min = INT_FAST64_MIN;
19003 uint_fast8_t f1 = UINT_FAST8_MAX;
19004 uint_fast16_t f2 = UINT_FAST16_MAX;
19005 uint_fast32_t f3 = UINT_FAST32_MAX;
19006 uint_fast64_t f4 = UINT_FAST64_MAX;
19008 intptr_t g = INTPTR_MAX;
19009 intptr_t gmin = INTPTR_MIN;
19012 uintptr_t h = UINTPTR_MAX;
19014 intmax_t i = INTMAX_MAX;
19015 uintmax_t j = UINTMAX_MAX;
19017 #include <limits.h> /* for CHAR_BIT */
19018 #define TYPE_MINIMUM(t) \
19019 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19020 #define TYPE_MAXIMUM(t) \
19021 ((t) ((t) 0 < (t) -1 \
19023 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19026 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19027 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19029 /* Detect bug in FreeBSD 6.0 / ia64. */
19030 int check_SIG_ATOMIC:
19031 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19032 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19034 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19036 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19037 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19039 /* Detect bug in mingw. */
19041 WINT_MIN == TYPE_MINIMUM (wint_t)
19042 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19045 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19047 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19048 int check_UINT16_C:
19049 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19051 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19053 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19056 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19059 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19062 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19064 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19065 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19066 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19067 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19068 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19069 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19070 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19071 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19072 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19073 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19074 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19085 if ac_fn_c_try_compile
"$LINENO"; then :
19086 if test "$cross_compiling" = yes; then :
19087 gl_cv_header_working_stdint_h
=yes
19090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19094 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19095 #include <stdint.h>
19098 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19099 included before <wchar.h>. */
19100 #include <stddef.h>
19101 #include <signal.h>
19103 # include <stdio.h>
19105 # include <wchar.h>
19110 #include <string.h>
19111 #define MVAL(macro) MVAL1(macro)
19112 #define MVAL1(expression) #expression
19113 static const char *macro_values[] =
19147 for (mv = macro_values; *mv != NULL; mv++)
19149 const char *value = *mv;
19150 /* Test whether it looks like a cast expression. */
19151 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19152 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19153 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19154 || strncmp (value, "((int)"/*)*/, 6) == 0
19155 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19156 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19157 return mv - macro_values + 1;
19165 if ac_fn_c_try_run
"$LINENO"; then :
19166 gl_cv_header_working_stdint_h
=yes
19168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19178 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19180 if test "$gl_cv_header_working_stdint_h" = yes; then
19183 for ac_header
in sys
/inttypes.h sys
/bitypes.h
19185 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19186 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19187 eval as_val
=\$
$as_ac_Header
19188 if test "x$as_val" = x
""yes; then :
19189 cat >>confdefs.h
<<_ACEOF
19190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19197 if test $ac_cv_header_sys_inttypes_h = yes; then
19198 HAVE_SYS_INTTYPES_H
=1
19200 HAVE_SYS_INTTYPES_H
=0
19203 if test $ac_cv_header_sys_bitypes_h = yes; then
19204 HAVE_SYS_BITYPES_H
=1
19206 HAVE_SYS_BITYPES_H
=0
19212 if test $APPLE_UNIVERSAL_BUILD = 0; then
19215 for gltype
in ptrdiff_t size_t
; do
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19217 $as_echo_n "checking for bit size of $gltype... " >&6; }
19218 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19219 $as_echo_n "(cached) " >&6
19221 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19222 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19223 included before <wchar.h>. */
19224 #include <stddef.h>
19225 #include <signal.h>
19227 # include <stdio.h>
19229 # include <wchar.h>
19232 #include <limits.h>"; then :
19238 eval gl_cv_bitsizeof_
${gltype}=\
$result
19241 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19243 $as_echo "$ac_res" >&6; }
19244 eval result
=\
$gl_cv_bitsizeof_${gltype}
19245 if test $result = unknown
; then
19248 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19249 cat >>confdefs.h
<<_ACEOF
19250 #define BITSIZEOF_${GLTYPE} $result
19253 eval BITSIZEOF_
${GLTYPE}=\
$result
19260 for gltype
in sig_atomic_t wchar_t wint_t
; do
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19262 $as_echo_n "checking for bit size of $gltype... " >&6; }
19263 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19264 $as_echo_n "(cached) " >&6
19266 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19267 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19268 included before <wchar.h>. */
19269 #include <stddef.h>
19270 #include <signal.h>
19272 # include <stdio.h>
19274 # include <wchar.h>
19277 #include <limits.h>"; then :
19283 eval gl_cv_bitsizeof_
${gltype}=\
$result
19286 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19288 $as_echo "$ac_res" >&6; }
19289 eval result
=\
$gl_cv_bitsizeof_${gltype}
19290 if test $result = unknown
; then
19293 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19294 cat >>confdefs.h
<<_ACEOF
19295 #define BITSIZEOF_${GLTYPE} $result
19298 eval BITSIZEOF_
${GLTYPE}=\
$result
19304 for gltype
in sig_atomic_t wchar_t wint_t
; do
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19306 $as_echo_n "checking whether $gltype is signed... " >&6; }
19307 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19308 $as_echo_n "(cached) " >&6
19310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19313 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19314 included before <wchar.h>. */
19315 #include <stddef.h>
19316 #include <signal.h>
19318 # include <stdio.h>
19320 # include <wchar.h>
19323 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19332 if ac_fn_c_try_compile
"$LINENO"; then :
19337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19338 eval gl_cv_type_
${gltype}_signed
=\
$result
19341 eval ac_res
=\
$gl_cv_type_${gltype}_signed
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19343 $as_echo "$ac_res" >&6; }
19344 eval result
=\
$gl_cv_type_${gltype}_signed
19345 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19346 if test "$result" = yes; then
19347 cat >>confdefs.h
<<_ACEOF
19348 #define HAVE_SIGNED_${GLTYPE} 1
19351 eval HAVE_SIGNED_
${GLTYPE}=1
19353 eval HAVE_SIGNED_
${GLTYPE}=0
19358 gl_cv_type_ptrdiff_t_signed
=yes
19359 gl_cv_type_size_t_signed
=no
19360 if test $APPLE_UNIVERSAL_BUILD = 0; then
19363 for gltype
in ptrdiff_t size_t
; do
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19365 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19366 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19367 $as_echo_n "(cached) " >&6
19369 eval gl_cv_type_
${gltype}_suffix
=no
19370 eval result
=\
$gl_cv_type_${gltype}_signed
19371 if test "$result" = yes; then
19376 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19378 '') gltype1
='int';;
19379 l
) gltype1
='long int';;
19380 ll
) gltype1
='long long int';;
19381 i64
) gltype1
='__int64';;
19382 u
) gltype1
='unsigned int';;
19383 ul
) gltype1
='unsigned long int';;
19384 ull
) gltype1
='unsigned long long int';;
19385 ui64
)gltype1
='unsigned __int64';;
19387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19390 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19391 included before <wchar.h>. */
19392 #include <stddef.h>
19393 #include <signal.h>
19395 # include <stdio.h>
19397 # include <wchar.h>
19400 extern $gltype foo;
19401 extern $gltype1 foo;
19410 if ac_fn_c_try_compile
"$LINENO"; then :
19411 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19414 eval result
=\
$gl_cv_type_${gltype}_suffix
19415 test "$result" != no
&& break
19418 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19420 $as_echo "$ac_res" >&6; }
19421 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19422 eval result
=\
$gl_cv_type_${gltype}_suffix
19423 test "$result" = no
&& result
=
19424 eval ${GLTYPE}_SUFFIX
=\
$result
19425 cat >>confdefs.h
<<_ACEOF
19426 #define ${GLTYPE}_SUFFIX $result
19435 for gltype
in sig_atomic_t wchar_t wint_t
; do
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19437 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19438 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19439 $as_echo_n "(cached) " >&6
19441 eval gl_cv_type_
${gltype}_suffix
=no
19442 eval result
=\
$gl_cv_type_${gltype}_signed
19443 if test "$result" = yes; then
19448 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
19450 '') gltype1
='int';;
19451 l
) gltype1
='long int';;
19452 ll
) gltype1
='long long int';;
19453 i64
) gltype1
='__int64';;
19454 u
) gltype1
='unsigned int';;
19455 ul
) gltype1
='unsigned long int';;
19456 ull
) gltype1
='unsigned long long int';;
19457 ui64
)gltype1
='unsigned __int64';;
19459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19460 /* end confdefs.h. */
19462 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19463 included before <wchar.h>. */
19464 #include <stddef.h>
19465 #include <signal.h>
19467 # include <stdio.h>
19469 # include <wchar.h>
19472 extern $gltype foo;
19473 extern $gltype1 foo;
19482 if ac_fn_c_try_compile
"$LINENO"; then :
19483 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
19485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19486 eval result
=\
$gl_cv_type_${gltype}_suffix
19487 test "$result" != no
&& break
19490 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19492 $as_echo "$ac_res" >&6; }
19493 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19494 eval result
=\
$gl_cv_type_${gltype}_suffix
19495 test "$result" = no
&& result
=
19496 eval ${GLTYPE}_SUFFIX
=\
$result
19497 cat >>confdefs.h
<<_ACEOF
19498 #define ${GLTYPE}_SUFFIX $result
19505 if test $BITSIZEOF_WINT_T -lt 32; then
19506 BITSIZEOF_WINT_T
=32
19512 if test -n "$STDINT_H"; then
19513 GL_GENERATE_STDINT_H_TRUE
=
19514 GL_GENERATE_STDINT_H_FALSE
='#'
19516 GL_GENERATE_STDINT_H_TRUE
='#'
19517 GL_GENERATE_STDINT_H_FALSE
=
19526 GNULIB_STRTOIMAX
=0;
19527 GNULIB_STRTOUMAX
=0;
19528 HAVE_DECL_IMAXABS
=1;
19529 HAVE_DECL_IMAXDIV
=1;
19530 HAVE_DECL_STRTOIMAX
=1;
19531 HAVE_DECL_STRTOUMAX
=1;
19532 REPLACE_STRTOIMAX
=0;
19533 INT32_MAX_LT_INTMAX_MAX
=1;
19534 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
19535 PRI_MACROS_BROKEN
=0;
19536 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
19537 UINT32_MAX_LT_UINTMAX_MAX
=1;
19538 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
19554 if test $gl_cv_have_include_next = yes; then
19555 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19558 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19559 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19563 if test $ac_cv_header_inttypes_h = yes; then
19566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19568 #include <inttypes.h>
19572 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19573 *) gl_absname_cpp
="$ac_cpp" ;;
19578 gl_dirsep_regex
='[/\\]'
19581 gl_dirsep_regex
='\/'
19584 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19586 gl_header_literal_regex
=`echo 'inttypes.h' \
19587 | sed -e "$gl_make_literal_regex_sed"`
19588 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19589 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19594 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19595 sed -n "$gl_absolute_header_sed"`'"'
19597 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19603 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19605 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
19607 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19609 gl_next_as_first_directive
='<'inttypes.h
'>'
19611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19612 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
19614 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19629 $as_echo_n "checking for 64-bit off_t... " >&6; }
19630 if test "${gl_cv_type_off_t_64+set}" = set; then :
19631 $as_echo_n "(cached) " >&6
19633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19635 #include <sys/types.h>
19636 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19646 if ac_fn_c_try_compile
"$LINENO"; then :
19647 gl_cv_type_off_t_64
=yes
19649 gl_cv_type_off_t_64
=no
19651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19655 $as_echo "$gl_cv_type_off_t_64" >&6; }
19656 if test $gl_cv_type_off_t_64 = no
; then
19657 WINDOWS_64_BIT_OFF_T
=1
19659 WINDOWS_64_BIT_OFF_T
=0
19661 WINDOWS_64_BIT_ST_SIZE
=1
19664 WINDOWS_64_BIT_OFF_T
=0
19665 WINDOWS_64_BIT_ST_SIZE
=0
19678 GNULIB_RAWMEMCHR
=0;
19681 GNULIB_STRCHRNUL
=0;
19689 GNULIB_STRCASESTR
=0;
19696 GNULIB_MBSCASECMP
=0;
19697 GNULIB_MBSNCASECMP
=0;
19698 GNULIB_MBSPCASECMP
=0;
19699 GNULIB_MBSCASESTR
=0;
19706 GNULIB_STRERROR_R
=0;
19707 GNULIB_STRSIGNAL
=0;
19708 GNULIB_STRVERSCMP
=0;
19713 HAVE_DECL_MEMMEM
=1;
19715 HAVE_DECL_MEMRCHR
=1;
19720 HAVE_DECL_STRDUP
=1;
19721 HAVE_DECL_STRNDUP
=1;
19722 HAVE_DECL_STRNLEN
=1;
19726 HAVE_DECL_STRTOK_R
=1;
19727 HAVE_DECL_STRERROR_R
=1;
19728 HAVE_DECL_STRSIGNAL
=1;
19735 REPLACE_STRCASESTR
=0;
19736 REPLACE_STRCHRNUL
=0;
19737 REPLACE_STRERROR
=0;
19738 REPLACE_STRERROR_R
=0;
19742 REPLACE_STRSIGNAL
=0;
19743 REPLACE_STRTOK_R
=0;
19744 UNDEFINE_STRTOK_R
=0;
19746 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19747 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
19753 cat >>confdefs.h
<<_ACEOF
19754 #define HAVE_DECL_MEMRCHR $ac_have_decl
19759 GNULIB_NANOSLEEP
=0;
19763 HAVE_DECL_LOCALTIME_R
=1;
19767 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19768 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19769 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19770 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19772 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19773 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
19779 cat >>confdefs.h
<<_ACEOF
19780 #define HAVE_DECL_ALARM $ac_have_decl
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19796 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19797 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19798 $as_echo_n "(cached) " >&6
19801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19803 #include <sys/select.h>
19812 if ac_fn_c_try_compile
"$LINENO"; then :
19813 gl_cv_header_sys_select_h_selfcontained
=yes
19815 gl_cv_header_sys_select_h_selfcontained
=no
19817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19818 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19821 #include <sys/select.h>
19825 int memset; int bzero;
19831 if ac_fn_c_try_compile
"$LINENO"; then :
19832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19834 #include <sys/select.h>
19840 #define memset nonexistent_memset
19845 void *memset (void *, int, unsigned long);
19847 #define bzero nonexistent_bzero
19852 void bzero (void *, unsigned long);
19861 if ac_fn_c_try_link
"$LINENO"; then :
19864 gl_cv_header_sys_select_h_selfcontained
=no
19866 rm -f core conftest.err conftest.
$ac_objext \
19867 conftest
$ac_exeext conftest.
$ac_ext
19870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19875 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19885 if test $gl_cv_have_include_next = yes; then
19886 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19889 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19890 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19891 $as_echo_n "(cached) " >&6
19894 if test $ac_cv_header_sys_select_h = yes; then
19897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19899 #include <sys/select.h>
19903 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19904 *) gl_absname_cpp
="$ac_cpp" ;;
19909 gl_dirsep_regex
='[/\\]'
19912 gl_dirsep_regex
='\/'
19915 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19917 gl_header_literal_regex
=`echo 'sys/select.h' \
19918 | sed -e "$gl_make_literal_regex_sed"`
19919 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19925 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19926 sed -n "$gl_absolute_header_sed"`'"'
19928 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19934 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19936 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19938 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19940 gl_next_as_first_directive
='<'sys
/select.h
'>'
19942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19943 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19945 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19950 if test $ac_cv_header_sys_select_h = yes; then
19951 HAVE_SYS_SELECT_H
=1
19953 HAVE_SYS_SELECT_H
=0
19960 if test $ac_cv_header_sys_socket_h != yes; then
19961 for ac_header
in winsock2.h
19963 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19965 cat >>confdefs.h
<<_ACEOF
19966 #define HAVE_WINSOCK2_H 1
19974 if test "$ac_cv_header_winsock2_h" = yes; then
19976 UNISTD_H_HAVE_WINSOCK2_H
=1
19977 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19989 GNULIB_PTHREAD_SIGMASK
=0;
19991 GNULIB_SIGNAL_H_SIGPIPE
=0;
19992 GNULIB_SIGPROCMASK
=0;
19993 GNULIB_SIGACTION
=0;
19994 HAVE_POSIX_SIGNALBLOCKING
=1;
19995 HAVE_PTHREAD_SIGMASK
=1;
20000 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
20002 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
20004 HAVE_SIGHANDLER_T
=1;
20005 REPLACE_PTHREAD_SIGMASK
=0;
20014 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20015 #include <signal.h>
20016 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20017 #include <sys/types.h>
20020 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
20022 cat >>confdefs.h
<<_ACEOF
20023 #define HAVE_SIGSET_T 1
20026 gl_cv_type_sigset_t
=yes
20028 gl_cv_type_sigset_t
=no
20031 if test $gl_cv_type_sigset_t != yes; then
20037 if test $ac_cv_header_sys_socket_h = no
; then
20038 for ac_header
in ws2tcpip.h
20040 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20041 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
20042 cat >>confdefs.h
<<_ACEOF
20043 #define HAVE_WS2TCPIP_H 1
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20053 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20054 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20055 $as_echo_n "(cached) " >&6
20057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20060 #include <stdbool.h>
20062 "error: bool is not defined"
20065 "error: false is not defined"
20068 "error: false is not 0"
20071 "error: true is not defined"
20074 "error: true is not 1"
20076 #ifndef __bool_true_false_are_defined
20077 "error: __bool_true_false_are_defined is not defined"
20080 struct s { _Bool s: 1; _Bool t; } s;
20082 char a[true == 1 ? 1 : -1];
20083 char b[false == 0 ? 1 : -1];
20084 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20085 char d[(bool) 0.5 == true ? 1 : -1];
20086 /* See body of main program for 'e'. */
20087 char f[(_Bool) 0.0 == false ? 1 : -1];
20089 char h[sizeof (_Bool)];
20090 char i[sizeof s.t];
20091 enum { j = false, k = true, l = false * true, m = true * 256 };
20092 /* The following fails for
20093 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20095 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20096 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20097 /* Catch a bug in an HP-UX C compiler. See
20098 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20099 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20111 /* Refer to every declared value, to avoid compiler optimizations. */
20112 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20113 + !m + !n + !o + !p + !q + !pq);
20119 if ac_fn_c_try_compile
"$LINENO"; then :
20120 ac_cv_header_stdbool_h
=yes
20122 ac_cv_header_stdbool_h
=no
20124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20127 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20128 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20129 if test "x$ac_cv_type__Bool" = x
""yes; then :
20131 cat >>confdefs.h
<<_ACEOF
20132 #define HAVE__BOOL 1
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20145 $as_echo_n "checking for wchar_t... " >&6; }
20146 if test "${gt_cv_c_wchar_t+set}" = set; then :
20147 $as_echo_n "(cached) " >&6
20149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h. */
20151 #include <stddef.h>
20152 wchar_t foo = (wchar_t)'\0';
20161 if ac_fn_c_try_compile
"$LINENO"; then :
20162 gt_cv_c_wchar_t
=yes
20166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20169 $as_echo "$gt_cv_c_wchar_t" >&6; }
20170 if test $gt_cv_c_wchar_t = yes; then
20172 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20185 GNULIB_FPRINTF_POSIX
=0;
20201 GNULIB_OBSTACK_PRINTF
=0;
20202 GNULIB_OBSTACK_PRINTF_POSIX
=0;
20207 GNULIB_PRINTF_POSIX
=0;
20216 GNULIB_SPRINTF_POSIX
=0;
20217 GNULIB_STDIO_H_NONBLOCKING
=0;
20218 GNULIB_STDIO_H_SIGPIPE
=0;
20220 GNULIB_VASPRINTF
=0;
20225 GNULIB_VFPRINTF_POSIX
=0;
20227 GNULIB_VPRINTF_POSIX
=0;
20228 GNULIB_VSNPRINTF
=0;
20229 GNULIB_VSPRINTF_POSIX
=0;
20230 HAVE_DECL_FPURGE
=1;
20231 HAVE_DECL_FSEEKO
=1;
20232 HAVE_DECL_FTELLO
=1;
20233 HAVE_DECL_GETDELIM
=1;
20234 HAVE_DECL_GETLINE
=1;
20235 HAVE_DECL_OBSTACK_PRINTF
=1;
20236 HAVE_DECL_SNPRINTF
=1;
20237 HAVE_DECL_VSNPRINTF
=1;
20258 REPLACE_GETDELIM
=0;
20260 REPLACE_OBSTACK_PRINTF
=0;
20266 REPLACE_RENAMEAT
=0;
20267 REPLACE_SNPRINTF
=0;
20269 REPLACE_STDIO_READ_FUNCS
=0;
20270 REPLACE_STDIO_WRITE_FUNCS
=0;
20272 REPLACE_VASPRINTF
=0;
20273 REPLACE_VDPRINTF
=0;
20274 REPLACE_VFPRINTF
=0;
20276 REPLACE_VSNPRINTF
=0;
20277 REPLACE_VSPRINTF
=0;
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20280 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20281 if test "${ac_cv_struct_tm+set}" = set; then :
20282 $as_echo_n "(cached) " >&6
20284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20285 /* end confdefs.h. */
20286 #include <sys/types.h>
20293 int *p = &tm.tm_sec;
20299 if ac_fn_c_try_compile
"$LINENO"; then :
20300 ac_cv_struct_tm
=time.h
20302 ac_cv_struct_tm
=sys
/time.h
20304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20307 $as_echo "$ac_cv_struct_tm" >&6; }
20308 if test $ac_cv_struct_tm = sys
/time.h
; then
20310 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20314 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20315 #include <$ac_cv_struct_tm>
20318 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
20320 cat >>confdefs.h
<<_ACEOF
20321 #define HAVE_STRUCT_TM_TM_ZONE 1
20327 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20329 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20332 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20334 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
20340 cat >>confdefs.h
<<_ACEOF
20341 #define HAVE_DECL_TZNAME $ac_have_decl
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20345 $as_echo_n "checking for tzname... " >&6; }
20346 if test "${ac_cv_var_tzname+set}" = set; then :
20347 $as_echo_n "(cached) " >&6
20349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20352 #if !HAVE_DECL_TZNAME
20353 extern char *tzname[];
20359 return tzname[0][0];
20364 if ac_fn_c_try_link
"$LINENO"; then :
20365 ac_cv_var_tzname
=yes
20367 ac_cv_var_tzname
=no
20369 rm -f core conftest.err conftest.
$ac_objext \
20370 conftest
$ac_exeext conftest.
$ac_ext
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20373 $as_echo "$ac_cv_var_tzname" >&6; }
20374 if test $ac_cv_var_tzname = yes; then
20376 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20382 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20384 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
20386 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20402 if test $gl_cv_have_include_next = yes; then
20403 gl_cv_next_string_h
='<'string.h
'>'
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20406 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20407 if test "${gl_cv_next_string_h+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20413 #include <string.h>
20417 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20418 *) gl_absname_cpp
="$ac_cpp" ;;
20423 gl_dirsep_regex
='[/\\]'
20426 gl_dirsep_regex
='\/'
20429 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20431 gl_header_literal_regex
=`echo 'string.h' \
20432 | sed -e "$gl_make_literal_regex_sed"`
20433 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20434 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20439 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20440 sed -n "$gl_absolute_header_sed"`'"'
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20445 $as_echo "$gl_cv_next_string_h" >&6; }
20447 NEXT_STRING_H
=$gl_cv_next_string_h
20449 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20451 gl_next_as_first_directive
='<'string.h
'>'
20453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20454 gl_next_as_first_directive
=$gl_cv_next_string_h
20456 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
20466 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20467 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
20473 cat >>confdefs.h
<<_ACEOF
20474 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20479 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20480 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
20486 cat >>confdefs.h
<<_ACEOF
20487 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20493 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20494 if test "${ac_cv_header_stat_broken+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20499 #include <sys/types.h>
20500 #include <sys/stat.h>
20502 #if defined S_ISBLK && defined S_IFDIR
20503 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20506 #if defined S_ISBLK && defined S_IFCHR
20507 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20510 #if defined S_ISLNK && defined S_IFREG
20511 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20514 #if defined S_ISSOCK && defined S_IFREG
20515 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20519 if ac_fn_c_try_compile
"$LINENO"; then :
20520 ac_cv_header_stat_broken
=no
20522 ac_cv_header_stat_broken
=yes
20524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20527 $as_echo "$ac_cv_header_stat_broken" >&6; }
20528 if test $ac_cv_header_stat_broken = yes; then
20530 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20539 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20540 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20541 $as_echo_n "(cached) " >&6
20543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20550 static struct timespec x; x.tv_sec = x.tv_nsec;
20555 if ac_fn_c_try_compile
"$LINENO"; then :
20556 gl_cv_sys_struct_timespec_in_time_h
=yes
20558 gl_cv_sys_struct_timespec_in_time_h
=no
20560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20563 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20565 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20566 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
20567 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
20568 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20569 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20572 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20573 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20578 #include <sys/time.h>
20583 static struct timespec x; x.tv_sec = x.tv_nsec;
20588 if ac_fn_c_try_compile
"$LINENO"; then :
20589 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
20591 gl_cv_sys_struct_timespec_in_sys_time_h
=no
20593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20596 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20597 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20598 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20601 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20602 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <pthread.h>
20612 static struct timespec x; x.tv_sec = x.tv_nsec;
20617 if ac_fn_c_try_compile
"$LINENO"; then :
20618 gl_cv_sys_struct_timespec_in_pthread_h
=yes
20620 gl_cv_sys_struct_timespec_in_pthread_h
=no
20622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20625 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20626 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20627 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
20646 if test $gl_cv_have_include_next = yes; then
20647 gl_cv_next_time_h
='<'time.h
'>'
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20650 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20651 if test "${gl_cv_next_time_h+set}" = set; then :
20652 $as_echo_n "(cached) " >&6
20655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20661 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20662 *) gl_absname_cpp
="$ac_cpp" ;;
20667 gl_dirsep_regex
='[/\\]'
20670 gl_dirsep_regex
='\/'
20673 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20675 gl_header_literal_regex
=`echo 'time.h' \
20676 | sed -e "$gl_make_literal_regex_sed"`
20677 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20678 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20683 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20684 sed -n "$gl_absolute_header_sed"`'"'
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20689 $as_echo "$gl_cv_next_time_h" >&6; }
20691 NEXT_TIME_H
=$gl_cv_next_time_h
20693 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20695 gl_next_as_first_directive
='<'time.h
'>'
20697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20698 gl_next_as_first_directive
=$gl_cv_next_time_h
20700 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
20715 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20716 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
20722 cat >>confdefs.h
<<_ACEOF
20723 #define HAVE_DECL_UNSETENV $ac_have_decl
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20728 $as_echo_n "checking whether the utimes function works... " >&6; }
20729 if test "${gl_cv_func_working_utimes+set}" = set; then :
20730 $as_echo_n "(cached) " >&6
20733 if test "$cross_compiling" = yes; then :
20734 gl_cv_func_working_utimes
=no
20736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20737 /* end confdefs.h. */
20739 #include <sys/types.h>
20740 #include <sys/stat.h>
20742 #include <sys/time.h>
20744 #include <unistd.h>
20745 #include <stdlib.h>
20750 inorder (time_t a, time_t b, time_t c)
20752 return a <= b && b <= c;
20759 char const *file = "conftest.utimes";
20760 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20762 /* Test whether utimes() essentially works. */
20765 FILE *f = fopen (file, "w");
20768 else if (fclose (f) != 0)
20770 else if (utimes (file, timeval) != 0)
20772 else if (lstat (file, &sbuf) != 0)
20774 else if (!(sbuf.st_atime == timeval[0].tv_sec
20775 && sbuf.st_mtime == timeval[1].tv_sec))
20777 if (unlink (file) != 0)
20781 /* Test whether utimes() with a NULL argument sets the file's timestamp
20782 to the current time. Use 'fstat' as well as 'time' to
20783 determine the "current" time, to accommodate NFS file systems
20784 if there is a time skew between the host and the NFS server. */
20786 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20792 struct stat st0, st1, st2;
20793 if (time (&t0) == (time_t) -1)
20795 else if (fstat (fd, &st0) != 0)
20797 else if (utimes (file, timeval) != 0)
20799 else if (utimes (file, NULL) != 0)
20801 else if (fstat (fd, &st1) != 0)
20803 else if (write (fd, "\n", 1) != 1)
20805 else if (fstat (fd, &st2) != 0)
20807 else if (time (&t2) == (time_t) -1)
20811 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20812 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20813 if (! (st1.st_atime == st1.st_mtime))
20815 if (! (m_ok_POSIX || m_ok_NFS))
20818 if (close (fd) != 0)
20821 if (unlink (file) != 0)
20825 /* Test whether utimes() with a NULL argument works on read-only files. */
20827 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20830 else if (close (fd) != 0)
20832 else if (utimes (file, NULL) != 0)
20834 if (unlink (file) != 0)
20842 if ac_fn_c_try_run
"$LINENO"; then :
20843 gl_cv_func_working_utimes
=yes
20845 gl_cv_func_working_utimes
=no
20847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20853 $as_echo "$gl_cv_func_working_utimes" >&6; }
20855 if test $gl_cv_func_working_utimes = yes; then
20857 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20866 $as_echo_n "checking for struct utimbuf... " >&6; }
20867 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20868 $as_echo_n "(cached) " >&6
20870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 #if HAVE_SYS_TIME_H
20873 #include <sys/time.h>
20876 #ifdef HAVE_UTIME_H
20883 static struct utimbuf x; x.actime = x.modtime;
20888 if ac_fn_c_try_compile
"$LINENO"; then :
20889 gl_cv_sys_struct_utimbuf
=yes
20891 gl_cv_sys_struct_utimbuf
=no
20893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20896 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20898 if test $gl_cv_sys_struct_utimbuf = yes; then
20900 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20915 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20916 if test "${ac_cv_type_getgroups+set}" = set; then :
20917 $as_echo_n "(cached) " >&6
20919 if test "$cross_compiling" = yes; then :
20920 ac_cv_type_getgroups
=cross
20922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20924 /* Thanks to Mike Rendell for this test. */
20925 $ac_includes_default
20928 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20933 gid_t gidset[NGID];
20935 union { gid_t gval; long int lval; } val;
20938 for (i = 0; i < NGID; i++)
20939 gidset[i] = val.gval;
20940 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20942 /* Exit non-zero if getgroups seems to require an array of ints. This
20943 happens when gid_t is short int but getgroups modifies an array
20945 return n > 0 && gidset[n] != val.gval;
20948 if ac_fn_c_try_run
"$LINENO"; then :
20949 ac_cv_type_getgroups
=gid_t
20951 ac_cv_type_getgroups
=int
20953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20957 if test $ac_cv_type_getgroups = cross
; then
20958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <unistd.h>
20963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20964 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
20965 ac_cv_type_getgroups
=gid_t
20967 ac_cv_type_getgroups
=int
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20974 $as_echo "$ac_cv_type_getgroups" >&6; }
20976 cat >>confdefs.h
<<_ACEOF
20977 #define GETGROUPS_T $ac_cv_type_getgroups
20984 GL_COND_LIBTOOL_TRUE
=
20985 GL_COND_LIBTOOL_FALSE
='#'
20987 GL_COND_LIBTOOL_TRUE
='#'
20988 GL_COND_LIBTOOL_FALSE
=
20991 gl_cond_libtool
=false
21004 gl_source_base
='lib'
21007 if test $ac_cv_func_alloca_works = no
; then
21011 # Define an additional variable used in the Makefile substitution.
21012 if test $ac_cv_working_alloca_h = yes; then
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21014 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21015 if test "${gl_cv_rpl_alloca+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21022 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21028 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
21029 gl_cv_rpl_alloca
=yes
21031 gl_cv_rpl_alloca
=no
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21038 $as_echo "$gl_cv_rpl_alloca" >&6; }
21039 if test $gl_cv_rpl_alloca = yes; then
21041 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21051 if test -n "$ALLOCA_H"; then
21052 GL_GENERATE_ALLOCA_H_TRUE
=
21053 GL_GENERATE_ALLOCA_H_FALSE
='#'
21055 GL_GENERATE_ALLOCA_H_TRUE
='#'
21056 GL_GENERATE_ALLOCA_H_FALSE
=
21064 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
21065 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21067 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
21068 # programs in the package would end up linked with that potentially-shared
21069 # library, inducing unnecessary run-time overhead.
21072 gl_saved_libs
=$LIBS
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21074 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21075 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21078 ac_func_search_save_LIBS
=$LIBS
21079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21082 /* Override any GCC internal prototype to avoid an error.
21083 Use char because int might match the return type of a GCC
21084 builtin and then its argument prototype would still apply. */
21088 char clock_gettime ();
21092 return clock_gettime ();
21097 for ac_lib
in '' rt posix4
; do
21098 if test -z "$ac_lib"; then
21099 ac_res
="none required"
21102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21104 if ac_fn_c_try_link
"$LINENO"; then :
21105 ac_cv_search_clock_gettime
=$ac_res
21107 rm -f core conftest.err conftest.
$ac_objext \
21109 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21113 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21116 ac_cv_search_clock_gettime
=no
21118 rm conftest.
$ac_ext
21119 LIBS
=$ac_func_search_save_LIBS
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21122 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21123 ac_res
=$ac_cv_search_clock_gettime
21124 if test "$ac_res" != no
; then :
21125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21126 test "$ac_cv_search_clock_gettime" = "none required" ||
21127 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
21130 for ac_func
in clock_gettime clock_settime
21132 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21134 eval as_val
=\$
$as_ac_var
21135 if test "x$as_val" = x
""yes; then :
21136 cat >>confdefs.h
<<_ACEOF
21137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21143 LIBS
=$gl_saved_libs
21150 cat >>confdefs.h
<<_ACEOF
21151 #define GNULIB_CLOSE_STREAM 1
21181 if test $gl_cv_have_include_next = yes; then
21182 gl_cv_next_dirent_h
='<'dirent.h
'>'
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
21185 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
21186 if test "${gl_cv_next_dirent_h+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21190 if test $ac_cv_header_dirent_h = yes; then
21193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #include <dirent.h>
21199 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21200 *) gl_absname_cpp
="$ac_cpp" ;;
21205 gl_dirsep_regex
='[/\\]'
21208 gl_dirsep_regex
='\/'
21211 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21213 gl_header_literal_regex
=`echo 'dirent.h' \
21214 | sed -e "$gl_make_literal_regex_sed"`
21215 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21221 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21222 sed -n "$gl_absolute_header_sed"`'"'
21224 gl_cv_next_dirent_h
='<'dirent.h
'>'
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
21230 $as_echo "$gl_cv_next_dirent_h" >&6; }
21232 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
21234 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21236 gl_next_as_first_directive
='<'dirent.h
'>'
21238 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21239 gl_next_as_first_directive
=$gl_cv_next_dirent_h
21241 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
21246 if test $ac_cv_header_dirent_h = yes; then
21261 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21264 if test $HAVE_DUP2 = 1; then
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21266 $as_echo_n "checking whether dup2 works... " >&6; }
21267 if test "${gl_cv_func_dup2_works+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21270 if test "$cross_compiling" = yes; then :
21272 mingw
*) # on this platform, dup2 always returns 0 for success
21273 gl_cv_func_dup2_works
="guessing no" ;;
21274 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
21275 gl_cv_func_dup2_works
="guessing no" ;;
21276 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21277 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21278 gl_cv_func_dup2_works
="guessing no" ;;
21279 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21280 gl_cv_func_dup2_works
="guessing no" ;;
21281 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21282 gl_cv_func_dup2_works
="guessing no" ;;
21283 *) gl_cv_func_dup2_works
="guessing yes" ;;
21286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21287 /* end confdefs.h. */
21289 #include <unistd.h>
21297 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21300 if (dup2 (1, 1) == 0)
21303 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21307 if (dup2 (0, 0) != -1)
21309 /* Many gnulib modules require POSIX conformance of EBADF. */
21310 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21312 /* Flush out a cygwin core dump. */
21313 if (dup2 (2, -1) != -1 || errno != EBADF)
21322 if ac_fn_c_try_run
"$LINENO"; then :
21323 gl_cv_func_dup2_works
=yes
21325 gl_cv_func_dup2_works
=no
21327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21334 $as_echo "$gl_cv_func_dup2_works" >&6; }
21335 case "$gl_cv_func_dup2_works" in
21344 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
21353 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
21384 EXECINFO_H
='execinfo.h'
21386 if test $ac_cv_header_execinfo_h = yes; then
21387 gl_saved_libs
=$LIBS
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21389 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21390 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21391 $as_echo_n "(cached) " >&6
21393 ac_func_search_save_LIBS
=$LIBS
21394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21397 /* Override any GCC internal prototype to avoid an error.
21398 Use char because int might match the return type of a GCC
21399 builtin and then its argument prototype would still apply. */
21403 char backtrace_symbols_fd ();
21407 return backtrace_symbols_fd ();
21412 for ac_lib
in '' execinfo
; do
21413 if test -z "$ac_lib"; then
21414 ac_res
="none required"
21417 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21419 if ac_fn_c_try_link
"$LINENO"; then :
21420 ac_cv_search_backtrace_symbols_fd
=$ac_res
21422 rm -f core conftest.err conftest.
$ac_objext \
21424 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21428 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21431 ac_cv_search_backtrace_symbols_fd
=no
21433 rm conftest.
$ac_ext
21434 LIBS
=$ac_func_search_save_LIBS
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21437 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21438 ac_res
=$ac_cv_search_backtrace_symbols_fd
21439 if test "$ac_res" != no
; then :
21440 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21441 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21442 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
21445 LIBS
=$gl_saved_libs
21446 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
21449 if test -n "$EXECINFO_H"; then
21458 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
21464 if test -n "$EXECINFO_H"; then
21465 GL_GENERATE_EXECINFO_H_TRUE
=
21466 GL_GENERATE_EXECINFO_H_FALSE
='#'
21468 GL_GENERATE_EXECINFO_H_TRUE
='#'
21469 GL_GENERATE_EXECINFO_H_FALSE
=
21480 if test $ac_cv_func_faccessat = no
; then
21484 if test $HAVE_FACCESSAT = 0; then
21493 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
21496 for ac_func
in access
21498 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
21499 if test "x$ac_cv_func_access" = x
""yes; then :
21500 cat >>confdefs.h
<<_ACEOF
21501 #define HAVE_ACCESS 1
21511 cat >>confdefs.h
<<_ACEOF
21512 #define GNULIB_FACCESSAT 1
21538 if test $gl_cv_have_include_next = yes; then
21539 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21542 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21543 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21544 $as_echo_n "(cached) " >&6
21547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21553 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21554 *) gl_absname_cpp
="$ac_cpp" ;;
21559 gl_dirsep_regex
='[/\\]'
21562 gl_dirsep_regex
='\/'
21565 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21567 gl_header_literal_regex
=`echo 'fcntl.h' \
21568 | sed -e "$gl_make_literal_regex_sed"`
21569 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21570 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21575 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21576 sed -n "$gl_absolute_header_sed"`'"'
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21581 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21583 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
21585 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21587 gl_next_as_first_directive
='<'fcntl.h
'>'
21589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21590 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
21592 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
21611 if test $ac_cv_have_decl_fdatasync = no
; then
21612 HAVE_DECL_FDATASYNC
=0
21613 for ac_func
in fdatasync
21615 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21616 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
21617 cat >>confdefs.h
<<_ACEOF
21618 #define HAVE_FDATASYNC 1
21624 if test $ac_cv_func_fdatasync = no
; then
21628 gl_saved_libs
=$LIBS
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21630 $as_echo_n "checking for library containing fdatasync... " >&6; }
21631 if test "${ac_cv_search_fdatasync+set}" = set; then :
21632 $as_echo_n "(cached) " >&6
21634 ac_func_search_save_LIBS
=$LIBS
21635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21638 /* Override any GCC internal prototype to avoid an error.
21639 Use char because int might match the return type of a GCC
21640 builtin and then its argument prototype would still apply. */
21648 return fdatasync ();
21653 for ac_lib
in '' rt posix4
; do
21654 if test -z "$ac_lib"; then
21655 ac_res
="none required"
21658 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21660 if ac_fn_c_try_link
"$LINENO"; then :
21661 ac_cv_search_fdatasync
=$ac_res
21663 rm -f core conftest.err conftest.
$ac_objext \
21665 if test "${ac_cv_search_fdatasync+set}" = set; then :
21669 if test "${ac_cv_search_fdatasync+set}" = set; then :
21672 ac_cv_search_fdatasync
=no
21674 rm conftest.
$ac_ext
21675 LIBS
=$ac_func_search_save_LIBS
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21678 $as_echo "$ac_cv_search_fdatasync" >&6; }
21679 ac_res
=$ac_cv_search_fdatasync
21680 if test "$ac_res" != no
; then :
21681 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21682 test "$ac_cv_search_fdatasync" = "none required" ||
21683 LIB_FDATASYNC
=$ac_cv_search_fdatasync
21686 LIBS
=$gl_saved_libs
21689 if test $HAVE_FDATASYNC = 0; then
21698 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
21717 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21718 #include <dirent.h>
21721 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
21727 cat >>confdefs.h
<<_ACEOF
21728 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21730 if test $ac_have_decl = 1; then :
21733 HAVE_DECL_FDOPENDIR
=0
21737 if test $ac_cv_func_fdopendir = no
; then
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21741 $as_echo_n "checking whether fdopendir works... " >&6; }
21742 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21743 $as_echo_n "(cached) " >&6
21745 if test "$cross_compiling" = yes; then :
21747 # Guess yes on glibc systems.
21748 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
21749 # If we don't know, assume the worst.
21750 *) gl_cv_func_fdopendir_works
="guessing no" ;;
21754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21757 #include <dirent.h>
21759 #include <unistd.h>
21760 #if !HAVE_DECL_FDOPENDIR
21762 # ifdef __cplusplus
21765 DIR *fdopendir (int);
21772 int fd = open ("conftest.c", O_RDONLY);
21773 if (fd < 0) result |= 1;
21774 if (fdopendir (fd)) result |= 2;
21775 if (close (fd)) result |= 4;
21781 if ac_fn_c_try_run
"$LINENO"; then :
21782 gl_cv_func_fdopendir_works
=yes
21784 gl_cv_func_fdopendir_works
=no
21786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21792 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21793 case "$gl_cv_func_fdopendir_works" in
21796 REPLACE_FDOPENDIR
=1
21801 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
21810 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
21826 cat >>confdefs.h
<<_ACEOF
21827 #define GNULIB_FDOPENDIR 1
21839 # include <stdio.h>
21840 # if HAVE_STDIO_EXT_H
21841 # include <stdio_ext.h>
21844 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21846 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
21852 cat >>confdefs.h
<<_ACEOF
21853 #define HAVE_DECL___FPENDING $ac_have_decl
21857 if test $ac_cv_func___fpending = no
; then
21866 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21870 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21871 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21872 $as_echo_n "(cached) " >&6
21878 'fp->_IO_write_ptr - fp->_IO_write_base' \
21880 '# traditional Unix' \
21881 'fp->_ptr - fp->_base' \
21884 'fp->_p - fp->_bf._base' \
21886 '# SCO, Unixware' \
21887 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21890 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21893 'fp->__bufp - fp->__buffer' \
21895 '# old glibc iostream?' \
21896 'fp->_pptr - fp->_pbase' \
21899 'fp->_ptr - fp->_buffer' \
21902 'fp->_ptr - fp->_buf' \
21905 'fp->wp - fp->buf' \
21908 '(*fp)->_ptr - (*fp)->_base' \
21910 '# e.g., DGUX R4.11; the info is not available' \
21914 # Skip each embedded comment.
21915 case "$ac_expr" in '#'*) continue;; esac
21917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21923 FILE *fp = stdin; (void) ($ac_expr);
21928 if ac_fn_c_try_compile
"$LINENO"; then :
21932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21933 test "$fp_done" = yes && break
21936 ac_cv_sys_pending_output_n_bytes
=$ac_expr
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21941 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21943 cat >>confdefs.h
<<_ACEOF
21944 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21955 if test $ac_cv_func_fstatat = no
; then
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21959 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21960 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21963 if test "$cross_compiling" = yes; then :
21965 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
21966 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
21970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21971 /* end confdefs.h. */
21974 #include <sys/stat.h>
21979 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21983 if ac_fn_c_try_run
"$LINENO"; then :
21984 gl_cv_func_fstatat_zero_flag
=yes
21986 gl_cv_func_fstatat_zero_flag
=no
21988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21995 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21997 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21999 *) REPLACE_FSTATAT
=1
22000 case $gl_cv_func_fstatat_zero_flag in
22003 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
22011 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
22020 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
22037 if test $ac_cv_func_fsync = no
; then
22041 if test $HAVE_FSYNC = 0; then
22050 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
22067 # Persuade glibc <stdlib.h> to declare getloadavg().
22072 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
22073 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
22075 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
22076 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
22079 gl_func_getloadavg_done
=no
22081 # Some systems with -lutil have (and need) -lkvm as well, some do not.
22082 # On Solaris, -lkvm requires nlist from -lelf, so check that first
22083 # to get the right answer into the cache.
22084 # For kstat on solaris, we need to test for libelf and libkvm to force the
22085 # definition of SVR4 below.
22086 if test $gl_func_getloadavg_done = no
; then
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
22088 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
22089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
22090 $as_echo_n "(cached) " >&6
22092 ac_check_lib_save_LIBS
=$LIBS
22094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22097 /* Override any GCC internal prototype to avoid an error.
22098 Use char because int might match the return type of a GCC
22099 builtin and then its argument prototype would still apply. */
22107 return elf_begin ();
22112 if ac_fn_c_try_link
"$LINENO"; then :
22113 ac_cv_lib_elf_elf_begin
=yes
22115 ac_cv_lib_elf_elf_begin
=no
22117 rm -f core conftest.err conftest.
$ac_objext \
22118 conftest
$ac_exeext conftest.
$ac_ext
22119 LIBS
=$ac_check_lib_save_LIBS
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
22122 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
22123 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
22128 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
22129 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22132 ac_check_lib_save_LIBS
=$LIBS
22134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22147 return kvm_open ();
22152 if ac_fn_c_try_link
"$LINENO"; then :
22153 ac_cv_lib_kvm_kvm_open
=yes
22155 ac_cv_lib_kvm_kvm_open
=no
22157 rm -f core conftest.err conftest.
$ac_objext \
22158 conftest
$ac_exeext conftest.
$ac_ext
22159 LIBS
=$ac_check_lib_save_LIBS
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
22162 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
22163 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
22167 # Check for the 4.4BSD definition of getloadavg.
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
22169 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
22170 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22173 ac_check_lib_save_LIBS
=$LIBS
22174 LIBS
="-lutil $LIBS"
22175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22184 char getloadavg ();
22188 return getloadavg ();
22193 if ac_fn_c_try_link
"$LINENO"; then :
22194 ac_cv_lib_util_getloadavg
=yes
22196 ac_cv_lib_util_getloadavg
=no
22198 rm -f core conftest.err conftest.
$ac_objext \
22199 conftest
$ac_exeext conftest.
$ac_ext
22200 LIBS
=$ac_check_lib_save_LIBS
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
22203 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
22204 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
22205 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
22210 if test $gl_func_getloadavg_done = no
; then
22211 # There is a commonly available library for RS/6000 AIX.
22212 # Since it is not a standard part of AIX, it might be installed locally.
22213 gl_getloadavg_LIBS
=$LIBS
22214 LIBS
="-L/usr/local/lib $LIBS"
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
22216 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
22217 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22220 ac_check_lib_save_LIBS
=$LIBS
22221 LIBS
="-lgetloadavg $LIBS"
22222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22231 char getloadavg ();
22235 return getloadavg ();
22240 if ac_fn_c_try_link
"$LINENO"; then :
22241 ac_cv_lib_getloadavg_getloadavg
=yes
22243 ac_cv_lib_getloadavg_getloadavg
=no
22245 rm -f core conftest.err conftest.
$ac_objext \
22246 conftest
$ac_exeext conftest.
$ac_ext
22247 LIBS
=$ac_check_lib_save_LIBS
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
22250 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
22251 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
22252 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
22254 LIBS
=$gl_getloadavg_LIBS
22259 # Set up the replacement function if necessary.
22260 if test $gl_func_getloadavg_done = no
; then
22263 # Solaris has libkstat which does not require root.
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
22265 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
22266 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22269 ac_check_lib_save_LIBS
=$LIBS
22270 LIBS
="-lkstat $LIBS"
22271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22272 /* end confdefs.h. */
22274 /* Override any GCC internal prototype to avoid an error.
22275 Use char because int might match the return type of a GCC
22276 builtin and then its argument prototype would still apply. */
22280 char kstat_open ();
22284 return kstat_open ();
22289 if ac_fn_c_try_link
"$LINENO"; then :
22290 ac_cv_lib_kstat_kstat_open
=yes
22292 ac_cv_lib_kstat_kstat_open
=no
22294 rm -f core conftest.err conftest.
$ac_objext \
22295 conftest
$ac_exeext conftest.
$ac_ext
22296 LIBS
=$ac_check_lib_save_LIBS
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
22299 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
22300 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
22301 cat >>confdefs.h
<<_ACEOF
22302 #define HAVE_LIBKSTAT 1
22305 LIBS
="-lkstat $LIBS"
22309 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
22311 # AIX has libperfstat which does not require root
22312 if test $gl_func_getloadavg_done = no
; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
22314 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22315 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22318 ac_check_lib_save_LIBS
=$LIBS
22319 LIBS
="-lperfstat $LIBS"
22320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22323 /* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22329 char perfstat_cpu_total ();
22333 return perfstat_cpu_total ();
22338 if ac_fn_c_try_link
"$LINENO"; then :
22339 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
22341 ac_cv_lib_perfstat_perfstat_cpu_total
=no
22343 rm -f core conftest.err conftest.
$ac_objext \
22344 conftest
$ac_exeext conftest.
$ac_ext
22345 LIBS
=$ac_check_lib_save_LIBS
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22348 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22349 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
22350 cat >>confdefs.h
<<_ACEOF
22351 #define HAVE_LIBPERFSTAT 1
22354 LIBS
="-lperfstat $LIBS"
22358 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
22361 if test $gl_func_getloadavg_done = no
; then
22362 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22363 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
22364 gl_func_getloadavg_done
=yes
22366 $as_echo "#define DGUX 1" >>confdefs.h
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22369 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22370 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22373 ac_check_lib_save_LIBS
=$LIBS
22375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22378 /* Override any GCC internal prototype to avoid an error.
22379 Use char because int might match the return type of a GCC
22380 builtin and then its argument prototype would still apply. */
22384 char dg_sys_info ();
22388 return dg_sys_info ();
22393 if ac_fn_c_try_link
"$LINENO"; then :
22394 ac_cv_lib_dgc_dg_sys_info
=yes
22396 ac_cv_lib_dgc_dg_sys_info
=no
22398 rm -f core conftest.err conftest.
$ac_objext \
22399 conftest
$ac_exeext conftest.
$ac_ext
22400 LIBS
=$ac_check_lib_save_LIBS
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22403 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22404 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
22405 cat >>confdefs.h
<<_ACEOF
22406 #define HAVE_LIBDGC 1
22421 if test "x$gl_save_LIBS" = x
; then
22422 GETLOADAVG_LIBS
=$LIBS
22424 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22429 # Test whether the system declares getloadavg. Solaris has the function
22430 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22431 for ac_header
in sys
/loadavg.h
22433 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22434 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
22435 cat >>confdefs.h
<<_ACEOF
22436 #define HAVE_SYS_LOADAVG_H 1
22443 if test $ac_cv_header_sys_loadavg_h = yes; then
22444 HAVE_SYS_LOADAVG_H
=1
22446 HAVE_SYS_LOADAVG_H
=0
22448 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22449 # include <sys/loadavg.h>
22451 #include <stdlib.h>
22453 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
22456 HAVE_DECL_GETLOADAVG
=0
22460 if test $HAVE_GETLOADAVG = 0; then
22469 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
22472 # Figure out what our getloadavg.c needs.
22476 # On HPUX9, an unprivileged user can get load averages this way.
22477 if test $gl_func_getloadavg_done = no
; then
22478 for ac_func
in pstat_getdynamic
22480 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22481 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
22482 cat >>confdefs.h
<<_ACEOF
22483 #define HAVE_PSTAT_GETDYNAMIC 1
22485 gl_func_getloadavg_done
=yes
22491 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22492 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22493 # Irix 4.0.5F has the header but not the library.
22494 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
22495 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22496 gl_func_getloadavg_done
=yes
22498 $as_echo "#define SVR4 1" >>confdefs.h
22502 if test $gl_func_getloadavg_done = no
; then
22503 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22504 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
22505 gl_func_getloadavg_done
=yes
22507 $as_echo "#define UMAX 1" >>confdefs.h
22510 $as_echo "#define UMAX4_3 1" >>confdefs.h
22517 if test $gl_func_getloadavg_done = no
; then
22518 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22519 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
22520 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
22527 if test $gl_func_getloadavg_done = no
; then
22528 for ac_header
in mach
/mach.h
22530 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22531 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
22532 cat >>confdefs.h
<<_ACEOF
22533 #define HAVE_MACH_MACH_H 1
22542 for ac_header
in nlist.h
22544 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22545 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
22546 cat >>confdefs.h
<<_ACEOF
22547 #define HAVE_NLIST_H 1
22549 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22551 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
22553 cat >>confdefs.h
<<_ACEOF
22554 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22567 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22568 x.n_un.n_name = "";
22576 if ac_fn_c_try_link
"$LINENO"; then :
22578 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22581 rm -f core conftest.err conftest.
$ac_objext \
22582 conftest
$ac_exeext conftest.
$ac_ext
22594 GNULIB_GETLOADAVG
=1
22605 if test $REPLACE_GETOPT = 1; then
22614 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22624 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22629 GNULIB_GL_UNISTD_H_GETOPT
=1
22639 if test -n "$gl_replace_getopt"; then
22643 if test $REPLACE_GETOPT = 1; then
22647 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22653 if test $REPLACE_GETOPT = 1; then
22662 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
22672 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
22677 GNULIB_GL_UNISTD_H_GETOPT
=1
22691 gl_gettimeofday_timezone
=void
22692 if test $ac_cv_func_gettimeofday != yes; then
22693 HAVE_GETTIMEOFDAY
=0
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22699 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22700 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22703 if test "$cross_compiling" = yes; then :
22704 # When cross-compiling:
22706 # Guess all is fine on glibc systems.
22707 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
22708 # If we don't know, assume the worst.
22709 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
22713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715 #include <string.h>
22716 #include <sys/time.h>
22718 #include <stdlib.h>
22726 struct tm saved_lt;
22728 lt = localtime (&t);
22730 gettimeofday (&tv, NULL);
22731 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22737 if ac_fn_c_try_run
"$LINENO"; then :
22738 gl_cv_func_gettimeofday_clobber
=no
22740 gl_cv_func_gettimeofday_clobber
=yes
22742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22743 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22748 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22750 case "$gl_cv_func_gettimeofday_clobber" in
22752 REPLACE_GETTIMEOFDAY
=1
22755 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22758 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22762 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22768 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22769 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22774 #include <sys/time.h>
22776 int gettimeofday (struct timeval *restrict, void *restrict);
22781 /* glibc uses struct timezone * rather than the POSIX void *
22782 if _GNU_SOURCE is defined. However, since the only portable
22783 use of gettimeofday uses NULL as the second parameter, and
22784 since the glibc definition is actually more typesafe, it is
22785 not worth wrapping this to get a compliant signature. */
22786 int (*f) (struct timeval *restrict, void *restrict)
22789 return !(x | c.tv_sec | c.tv_usec);
22795 if ac_fn_c_try_compile
"$LINENO"; then :
22796 gl_cv_func_gettimeofday_posix_signature
=yes
22798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22800 #include <sys/time.h>
22801 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22811 if ac_fn_c_try_compile
"$LINENO"; then :
22812 gl_cv_func_gettimeofday_posix_signature
=almost
22814 gl_cv_func_gettimeofday_posix_signature
=no
22816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22821 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22822 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
22823 gl_gettimeofday_timezone
='struct timezone'
22824 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22825 REPLACE_GETTIMEOFDAY
=1
22827 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22828 REPLACE_GETTIMEOFDAY
=1
22833 cat >>confdefs.h
<<_ACEOF
22834 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22838 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
22847 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
22850 for ac_header
in sys
/timeb.h
22852 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22853 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
22854 cat >>confdefs.h
<<_ACEOF
22855 #define HAVE_SYS_TIMEB_H 1
22862 for ac_func
in _ftime
22864 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
22865 if test "x$ac_cv_func__ftime" = x
""yes; then :
22866 cat >>confdefs.h
<<_ACEOF
22867 #define HAVE__FTIME 1
22880 GNULIB_GETTIMEOFDAY
=1
22891 if test $ac_cv_func_lstat = yes; then
22893 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22902 if test $REPLACE_LSTAT = 1; then
22911 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22931 if test $ac_cv_have_decl_memrchr = no
; then
22932 HAVE_DECL_MEMRCHR
=0
22935 for ac_func
in memrchr
22937 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
22938 if test "x$ac_cv_func_memrchr" = x
""yes; then :
22939 cat >>confdefs.h
<<_ACEOF
22940 #define HAVE_MEMRCHR 1
22947 if test $ac_cv_func_memrchr = no
; then
22956 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
22977 if test $APPLE_UNIVERSAL_BUILD = 1; then
22978 # A universal build on Apple Mac OS X platforms.
22979 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22980 # But we need a configuration result that is valid in both modes.
22981 gl_cv_func_working_mktime
=no
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22984 $as_echo_n "checking for working mktime... " >&6; }
22985 if test "${gl_cv_func_working_mktime+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
22988 if test "$cross_compiling" = yes; then :
22989 gl_cv_func_working_mktime
=no
22991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22993 /* Test program from Paul Eggert and Tony Leneis. */
22994 #include <limits.h>
22995 #include <stdlib.h>
22998 #ifdef HAVE_UNISTD_H
22999 # include <unistd.h>
23002 #if HAVE_DECL_ALARM
23003 # include <signal.h>
23006 /* Work around redefinition to rpl_putenv by other config tests. */
23009 static time_t time_t_max;
23010 static time_t time_t_min;
23012 /* Values we'll use to set the TZ environment variable. */
23013 static char *tz_strings[] = {
23014 (char *) 0, "TZ=GMT0", "TZ=JST-9",
23015 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
23017 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
23019 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
23020 Based on a problem report from Andreas Jaeger. */
23022 spring_forward_gap ()
23024 /* glibc (up to about 1998-10-07) failed this test. */
23027 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23028 instead of "TZ=America/Vancouver" in order to detect the bug even
23029 on systems that don't support the Olson extension, or don't have the
23030 full zoneinfo tables installed. */
23031 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23040 return mktime (&tm) != (time_t) -1;
23044 mktime_test1 (time_t now)
23047 return ! (lt = localtime (&now)) || mktime (lt) == now;
23051 mktime_test (time_t now)
23053 return (mktime_test1 (now)
23054 && mktime_test1 ((time_t) (time_t_max - now))
23055 && mktime_test1 ((time_t) (time_t_min + now)));
23061 /* Based on code from Ariel Faigon. */
23071 return tm.tm_mon == 2 && tm.tm_mday == 31;
23075 bigtime_test (int j)
23079 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23080 now = mktime (&tm);
23081 if (now != (time_t) -1)
23083 struct tm *lt = localtime (&now);
23085 && lt->tm_year == tm.tm_year
23086 && lt->tm_mon == tm.tm_mon
23087 && lt->tm_mday == tm.tm_mday
23088 && lt->tm_hour == tm.tm_hour
23089 && lt->tm_min == tm.tm_min
23090 && lt->tm_sec == tm.tm_sec
23091 && lt->tm_yday == tm.tm_yday
23092 && lt->tm_wday == tm.tm_wday
23093 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23094 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23103 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23104 ignoring leap seconds. */
23105 unsigned long int answer = 2527315200UL;
23109 tm.tm_year = 2050 - 1900;
23112 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23115 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23116 instead of "TZ=America/Vancouver" in order to detect the bug even
23117 on systems that don't support the Olson extension, or don't have the
23118 full zoneinfo tables installed. */
23119 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23123 /* Check that the result is either a failure, or close enough
23124 to the correct answer that we can assume the discrepancy is
23125 due to leap seconds. */
23126 return (t == (time_t) -1
23127 || (0 < t && answer - 120 <= t && t <= answer + 120));
23136 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
23137 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
23139 #if HAVE_DECL_ALARM
23140 /* This test makes some buggy mktime implementations loop.
23141 Give up after 60 seconds; a mktime slower than that
23142 isn't worth using anyway. */
23143 signal (SIGALRM, SIG_DFL);
23147 time_t_max = (! time_t_signed
23149 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
23151 time_t_min = (! time_t_signed
23153 : time_t_signed_magnitude
23157 delta = time_t_max / 997; /* a suitable prime number */
23158 for (i = 0; i < N_STRINGS; i++)
23161 putenv (tz_strings[i]);
23163 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
23164 if (! mktime_test (t))
23166 if ((result & 2) == 0
23167 && ! (mktime_test ((time_t) 1)
23168 && mktime_test ((time_t) (60 * 60))
23169 && mktime_test ((time_t) (60 * 60 * 24))))
23172 for (j = 1; (result & 4) == 0; j <<= 1)
23174 if (! bigtime_test (j))
23176 if (INT_MAX / 2 < j)
23179 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
23182 if (! irix_6_4_bug ())
23184 if (! spring_forward_gap ())
23186 if (! year_2050_test ())
23191 if ac_fn_c_try_run
"$LINENO"; then :
23192 gl_cv_func_working_mktime
=yes
23194 gl_cv_func_working_mktime
=no
23196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
23203 $as_echo "$gl_cv_func_working_mktime" >&6; }
23205 if test $gl_cv_func_working_mktime = no
; then
23211 if test $REPLACE_MKTIME = 1; then
23220 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
23241 if test $ac_cv_func_pselect = yes; then
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
23243 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
23244 if test "${gl_cv_sig_pselect+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23249 #include <sys/select.h>
23254 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
23255 struct timespec const *restrict,
23256 sigset_t const *restrict) = pselect;
23262 if ac_fn_c_try_link
"$LINENO"; then :
23263 gl_cv_sig_pselect
=yes
23265 gl_cv_sig_pselect
=no
23267 rm -f core conftest.err conftest.
$ac_objext \
23268 conftest
$ac_exeext conftest.
$ac_ext
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
23271 $as_echo "$gl_cv_sig_pselect" >&6; }
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
23274 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
23275 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23279 if test "$cross_compiling" = yes; then :
23282 # Guess yes on glibc systems.
23283 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
23284 # If we don't know, assume the worst.
23285 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
23289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23292 #include <sys/types.h>
23293 #include <sys/time.h>
23294 #if HAVE_SYS_SELECT_H
23295 # include <sys/select.h>
23297 #include <unistd.h>
23309 struct timespec timeout;
23310 timeout.tv_sec = 0;
23311 timeout.tv_nsec = 5000;
23312 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23318 if ac_fn_c_try_run
"$LINENO"; then :
23319 gl_cv_func_pselect_detects_ebadf
=yes
23321 gl_cv_func_pselect_detects_ebadf
=no
23323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23330 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23331 case $gl_cv_func_pselect_detects_ebadf in
23333 *) REPLACE_PSELECT
=1 ;;
23337 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
23341 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
23350 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
23368 LIB_PTHREAD_SIGMASK
=
23373 if test "$gl_threads_api" = posix
; then
23374 if test $ac_cv_func_pthread_sigmask = yes; then
23377 if test -n "$LIBMULTITHREAD"; then
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23379 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23380 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23381 $as_echo_n "(cached) " >&6
23383 gl_save_LIBS
="$LIBS"
23384 LIBS
="$LIBS $LIBMULTITHREAD"
23385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23386 /* end confdefs.h. */
23387 #include <pthread.h>
23388 #include <signal.h>
23393 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23399 if ac_fn_c_try_link
"$LINENO"; then :
23400 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
23402 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
23404 rm -f core conftest.err conftest.
$ac_objext \
23405 conftest
$ac_exeext conftest.
$ac_ext
23406 LIBS
="$gl_save_LIBS"
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23410 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23411 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23412 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
23414 HAVE_PTHREAD_SIGMASK
=0
23417 HAVE_PTHREAD_SIGMASK
=0
23421 if test $ac_cv_func_pthread_sigmask = yes; then
23422 REPLACE_PTHREAD_SIGMASK
=1
23424 HAVE_PTHREAD_SIGMASK
=0
23431 if test $HAVE_PTHREAD_SIGMASK = 1; then
23434 if test -z "$LIB_PTHREAD_SIGMASK"; then
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23436 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23437 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23438 $as_echo_n "(cached) " >&6
23441 if test "$cross_compiling" = yes; then :
23444 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
23445 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
23447 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
23451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23454 #include <pthread.h>
23455 #include <signal.h>
23456 #include <stddef.h>
23460 sigemptyset (&set);
23461 return pthread_sigmask (1729, &set, NULL) != 0;
23464 if ac_fn_c_try_run
"$LINENO"; then :
23465 gl_cv_func_pthread_sigmask_in_libc_works
=no
23467 gl_cv_func_pthread_sigmask_in_libc_works
=yes
23469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23476 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23477 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23479 REPLACE_PTHREAD_SIGMASK
=1
23481 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23488 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23489 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23493 gl_save_LIBS
="$LIBS"
23494 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
23495 if test "$cross_compiling" = yes; then :
23498 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
23500 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
23504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23505 /* end confdefs.h. */
23507 #include <pthread.h>
23508 #include <signal.h>
23509 #include <stddef.h>
23513 sigemptyset (&set);
23514 if (pthread_sigmask (1729, &set, NULL) == -1)
23519 if ac_fn_c_try_run
"$LINENO"; then :
23520 gl_cv_func_pthread_sigmask_return_works
=yes
23522 gl_cv_func_pthread_sigmask_return_works
=no
23524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23528 LIBS
="$gl_save_LIBS"
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23532 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23533 case "$gl_cv_func_pthread_sigmask_return_works" in
23535 REPLACE_PTHREAD_SIGMASK
=1
23537 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23543 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23544 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23545 $as_echo_n "(cached) " >&6
23550 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
23552 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
23554 gl_save_LIBS
="$LIBS"
23555 LIBS
="$LIBS $LIBMULTITHREAD"
23556 if test "$cross_compiling" = yes; then :
23559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23562 #include <pthread.h>
23563 #include <signal.h>
23565 #include <stdlib.h>
23566 #include <unistd.h>
23567 static volatile int sigint_occurred;
23569 sigint_handler (int sig)
23576 int pid = getpid ();
23578 signal (SIGINT, sigint_handler);
23579 sigemptyset (&set);
23580 sigaddset (&set, SIGINT);
23581 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23583 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23584 if (!(system (command) == 0))
23587 if (!(sigint_occurred == 0))
23589 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23591 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23596 if ac_fn_c_try_run
"$LINENO"; then :
23599 gl_cv_func_pthread_sigmask_unblock_works
=no
23601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23605 LIBS
="$gl_save_LIBS"
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23609 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23610 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23612 REPLACE_PTHREAD_SIGMASK
=1
23614 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23620 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
23629 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23632 if test $HAVE_PTHREAD_SIGMASK = 1; then
23634 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23644 GNULIB_PTHREAD_SIGMASK
=1
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23653 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23654 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23655 $as_echo_n "(cached) " >&6
23657 if test "$cross_compiling" = yes; then :
23659 # Guess yes on glibc systems.
23660 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
23661 # If we don't know, assume the worst.
23662 *) gl_cv_func_svid_putenv
="guessing no" ;;
23666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23667 /* end confdefs.h. */
23668 $ac_includes_default
23673 /* Put it in env. */
23674 if (putenv ("CONFTEST_putenv=val"))
23677 /* Try to remove it. */
23678 if (putenv ("CONFTEST_putenv"))
23681 /* Make sure it was deleted. */
23682 if (getenv ("CONFTEST_putenv") != 0)
23691 if ac_fn_c_try_run
"$LINENO"; then :
23692 gl_cv_func_svid_putenv
=yes
23694 gl_cv_func_svid_putenv
=no
23696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23703 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23704 case "$gl_cv_func_svid_putenv" in
23711 if test $REPLACE_PUTENV = 1; then
23720 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
23723 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
23724 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
23730 cat >>confdefs.h
<<_ACEOF
23731 #define HAVE_DECL__PUTENV $ac_have_decl
23750 if test $ac_cv_func_readlink = no
; then
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23754 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23755 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23756 $as_echo_n "(cached) " >&6
23758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23759 /* end confdefs.h. */
23760 #include <unistd.h>
23761 /* Cause compilation failure if original declaration has wrong type. */
23762 ssize_t readlink (const char *, char *, size_t);
23771 if ac_fn_c_try_compile
"$LINENO"; then :
23772 gl_cv_decl_readlink_works
=yes
23774 gl_cv_decl_readlink_works
=no
23776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23779 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23781 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23782 if test "${gl_cv_func_readlink_works+set}" = set; then :
23783 $as_echo_n "(cached) " >&6
23785 # We have readlink, so assume ln -s works.
23786 ln -s conftest.no-such conftest.link
23787 ln -s conftest.link conftest.lnk2
23788 if test "$cross_compiling" = yes; then :
23790 # Guess yes on glibc systems.
23791 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
23792 # If we don't know, assume the worst.
23793 *) gl_cv_func_readlink_works
="guessing no" ;;
23797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23798 /* end confdefs.h. */
23799 #include <unistd.h>
23805 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23810 if ac_fn_c_try_run
"$LINENO"; then :
23811 gl_cv_func_readlink_works
=yes
23813 gl_cv_func_readlink_works
=no
23815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23819 rm -f conftest.link conftest.lnk2
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23822 $as_echo "$gl_cv_func_readlink_works" >&6; }
23823 case "$gl_cv_func_readlink_works" in
23825 if test "$gl_cv_decl_readlink_works" != yes; then
23831 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23838 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23847 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
23868 if test $ac_cv_func_readlinkat = no
; then
23872 if test $HAVE_READLINKAT = 0; then
23881 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
23889 GNULIB_READLINKAT
=1
23896 for ac_func
in sig2str
23898 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
23899 if test "x$ac_cv_func_sig2str" = x
""yes; then :
23900 cat >>confdefs.h
<<_ACEOF
23901 #define HAVE_SIG2STR 1
23908 if test $ac_cv_func_sig2str = no
; then
23917 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
23934 if test $gl_cv_have_include_next = yes; then
23935 gl_cv_next_signal_h
='<'signal.h
'>'
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23938 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23939 if test "${gl_cv_next_signal_h+set}" = set; then :
23940 $as_echo_n "(cached) " >&6
23943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23945 #include <signal.h>
23949 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23950 *) gl_absname_cpp
="$ac_cpp" ;;
23955 gl_dirsep_regex
='[/\\]'
23958 gl_dirsep_regex
='\/'
23961 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23963 gl_header_literal_regex
=`echo 'signal.h' \
23964 | sed -e "$gl_make_literal_regex_sed"`
23965 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23971 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23972 sed -n "$gl_absolute_header_sed"`'"'
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23977 $as_echo "$gl_cv_next_signal_h" >&6; }
23979 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23981 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23983 gl_next_as_first_directive
='<'signal.h
'>'
23985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23986 gl_next_as_first_directive
=$gl_cv_next_signal_h
23988 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23994 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23995 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23996 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23997 #include <signal.h>
24000 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
24003 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
24012 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24013 #include <signal.h>
24016 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
24019 HAVE_SIGHANDLER_T
=0
24025 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24026 /* <sys/types.h> is not needed according to POSIX, but the
24027 <sys/socket.h> in i386-unknown-freebsd4.10 and
24028 powerpc-apple-darwin5.5 required it. */
24029 #include <sys/types.h>
24030 #if HAVE_SYS_SOCKET_H
24031 # include <sys/socket.h>
24032 #elif HAVE_WS2TCPIP_H
24033 # include <ws2tcpip.h>
24037 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
24041 $as_echo_n "checking for socklen_t equivalent... " >&6; }
24042 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24045 # Systems have either "struct sockaddr *" or
24046 # "void *" as the second argument to getpeername
24047 gl_cv_socklen_t_equiv
=
24048 for arg2
in "struct sockaddr" void
; do
24049 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
24050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24051 /* end confdefs.h. */
24052 #include <sys/types.h>
24053 #include <sys/socket.h>
24055 int getpeername (int, $arg2 *, $t *);
24060 getpeername (0, 0, &len);
24065 if ac_fn_c_try_compile
"$LINENO"; then :
24066 gl_cv_socklen_t_equiv
="$t"
24068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24069 test "$gl_cv_socklen_t_equiv" != "" && break
24071 test "$gl_cv_socklen_t_equiv" != "" && break
24076 if test "$gl_cv_socklen_t_equiv" = ""; then
24077 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
24080 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
24082 cat >>confdefs.h
<<_ACEOF
24083 #define socklen_t $gl_cv_socklen_t_equiv
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
24090 $as_echo_n "checking for ssize_t... " >&6; }
24091 if test "${gt_cv_ssize_t+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24095 /* end confdefs.h. */
24096 #include <sys/types.h>
24100 int x = sizeof (ssize_t *) + sizeof (ssize_t);
24106 if ac_fn_c_try_compile
"$LINENO"; then :
24111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
24114 $as_echo "$gt_cv_ssize_t" >&6; }
24115 if test $gt_cv_ssize_t = no
; then
24117 $as_echo "#define ssize_t int" >>confdefs.h
24125 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>
24126 #include <sys/stat.h>
24128 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
24130 cat >>confdefs.h
<<_ACEOF
24131 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
24135 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
24136 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24140 /* end confdefs.h. */
24142 #include <sys/types.h>
24143 #include <sys/stat.h>
24144 #if HAVE_SYS_TIME_H
24145 # include <sys/time.h>
24148 struct timespec ts;
24161 if ac_fn_c_try_compile
"$LINENO"; then :
24162 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
24164 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
24166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
24169 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
24170 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
24172 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
24176 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>
24177 #include <sys/stat.h>
24179 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
24181 cat >>confdefs.h
<<_ACEOF
24182 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
24187 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
24188 #include <sys/stat.h>
24190 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
24192 cat >>confdefs.h
<<_ACEOF
24193 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
24198 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>
24199 #include <sys/stat.h>
24201 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
24203 cat >>confdefs.h
<<_ACEOF
24204 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
24220 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>
24221 #include <sys/stat.h>
24223 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
24225 cat >>confdefs.h
<<_ACEOF
24226 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
24231 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
24232 #include <sys/stat.h>
24234 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
24236 cat >>confdefs.h
<<_ACEOF
24237 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
24242 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>
24243 #include <sys/stat.h>
24245 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
24247 cat >>confdefs.h
<<_ACEOF
24248 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
24261 $as_echo_n "checking for working stdalign.h... " >&6; }
24262 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h. */
24267 #include <stdalign.h>
24268 #include <stddef.h>
24270 /* Test that alignof yields a result consistent with offsetof.
24271 This catches GCC bug 52023
24272 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
24274 template <class t> struct alignof_helper { char a; t b; };
24275 # define ao(type) offsetof (alignof_helper<type>, b)
24277 # define ao(type) offsetof (struct { char a; type b; }, b)
24279 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
24280 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
24281 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
24283 /* Test _Alignas only on platforms where gnulib can help. */
24285 (__GNUC__ || __IBMC__ || __IBMCPP__ \
24286 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
24287 struct alignas_test { char c; char alignas (8) alignas_8; };
24288 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
24300 if ac_fn_c_try_compile
"$LINENO"; then :
24301 gl_cv_header_working_stdalign_h
=yes
24303 gl_cv_header_working_stdalign_h
=no
24305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
24308 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
24310 if test $gl_cv_header_working_stdalign_h = yes; then
24313 STDALIGN_H
='stdalign.h'
24317 if test -n "$STDALIGN_H"; then
24318 GL_GENERATE_STDALIGN_H_TRUE
=
24319 GL_GENERATE_STDALIGN_H_FALSE
='#'
24321 GL_GENERATE_STDALIGN_H_TRUE
='#'
24322 GL_GENERATE_STDALIGN_H_FALSE
=
24328 NEXT_STDARG_H
='<stdarg.h>'
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
24330 $as_echo_n "checking for va_copy... " >&6; }
24331 if test "${gl_cv_func_va_copy+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24336 /* end confdefs.h. */
24337 #include <stdarg.h>
24343 void (*func) (va_list, va_list) = va_copy;
24350 if ac_fn_c_try_compile
"$LINENO"; then :
24351 gl_cv_func_va_copy
=yes
24353 gl_cv_func_va_copy
=no
24355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24359 $as_echo "$gl_cv_func_va_copy" >&6; }
24360 if test $gl_cv_func_va_copy = no
; then
24361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24362 /* end confdefs.h. */
24363 #if defined _AIX && !defined __GNUC__
24368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24369 $EGREP "vaccine" >/dev
/null
2>&1; then :
24376 if test $gl_aixcc = yes; then
24386 if test $gl_cv_have_include_next = yes; then
24387 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24390 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24391 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24392 $as_echo_n "(cached) " >&6
24395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24397 #include <stdarg.h>
24401 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24402 *) gl_absname_cpp
="$ac_cpp" ;;
24407 gl_dirsep_regex
='[/\\]'
24410 gl_dirsep_regex
='\/'
24413 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24415 gl_header_literal_regex
=`echo 'stdarg.h' \
24416 | sed -e "$gl_make_literal_regex_sed"`
24417 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24423 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24424 sed -n "$gl_absolute_header_sed"`'"'
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24429 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24431 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
24433 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24435 gl_next_as_first_directive
='<'stdarg.h
'>'
24437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24438 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
24440 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
24445 if test "$gl_cv_next_stdarg_h" = '""'; then
24446 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
24447 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
24451 saved_as_echo_n
="$as_echo_n"
24453 if test "${gl_cv_func___va_copy+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24458 /* end confdefs.h. */
24459 #include <stdarg.h>
24472 if ac_fn_c_try_compile
"$LINENO"; then :
24473 gl_cv_func___va_copy
=yes
24475 gl_cv_func___va_copy
=no
24477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24480 as_echo_n
="$saved_as_echo_n"
24482 if test $gl_cv_func___va_copy = yes; then
24484 $as_echo "#define va_copy __va_copy" >>confdefs.h
24489 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24495 if test -n "$STDARG_H"; then
24496 GL_GENERATE_STDARG_H_TRUE
=
24497 GL_GENERATE_STDARG_H_FALSE
='#'
24499 GL_GENERATE_STDARG_H_TRUE
='#'
24500 GL_GENERATE_STDARG_H_FALSE
=
24508 # Define two additional variables used in the Makefile substitution.
24510 if test "$ac_cv_header_stdbool_h" = yes; then
24513 STDBOOL_H
='stdbool.h'
24516 if test -n "$STDBOOL_H"; then
24517 GL_GENERATE_STDBOOL_H_TRUE
=
24518 GL_GENERATE_STDBOOL_H_FALSE
='#'
24520 GL_GENERATE_STDBOOL_H_TRUE
='#'
24521 GL_GENERATE_STDBOOL_H_FALSE
=
24525 if test "$ac_cv_type__Bool" = yes; then
24536 if test $gt_cv_c_wchar_t = no
; then
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24541 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24542 if test "${gl_cv_decl_null_works+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24546 /* end confdefs.h. */
24547 #include <stddef.h>
24548 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24558 if ac_fn_c_try_compile
"$LINENO"; then :
24559 gl_cv_decl_null_works
=yes
24561 gl_cv_decl_null_works
=no
24563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24566 $as_echo "$gl_cv_decl_null_works" >&6; }
24567 if test $gl_cv_decl_null_works = no
; then
24572 if test -n "$STDDEF_H"; then
24573 GL_GENERATE_STDDEF_H_TRUE
=
24574 GL_GENERATE_STDDEF_H_FALSE
='#'
24576 GL_GENERATE_STDDEF_H_TRUE
='#'
24577 GL_GENERATE_STDDEF_H_FALSE
=
24580 if test -n "$STDDEF_H"; then
24589 if test $gl_cv_have_include_next = yes; then
24590 gl_cv_next_stddef_h
='<'stddef.h
'>'
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24593 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24594 if test "${gl_cv_next_stddef_h+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24600 #include <stddef.h>
24604 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24605 *) gl_absname_cpp
="$ac_cpp" ;;
24610 gl_dirsep_regex
='[/\\]'
24613 gl_dirsep_regex
='\/'
24616 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24618 gl_header_literal_regex
=`echo 'stddef.h' \
24619 | sed -e "$gl_make_literal_regex_sed"`
24620 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24621 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24626 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24627 sed -n "$gl_absolute_header_sed"`'"'
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24632 $as_echo "$gl_cv_next_stddef_h" >&6; }
24634 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
24636 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24638 gl_next_as_first_directive
='<'stddef.h
'>'
24640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24641 gl_next_as_first_directive
=$gl_cv_next_stddef_h
24643 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24661 if test $gl_cv_have_include_next = yes; then
24662 gl_cv_next_stdio_h
='<'stdio.h
'>'
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24665 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24666 if test "${gl_cv_next_stdio_h+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24676 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24677 *) gl_absname_cpp
="$ac_cpp" ;;
24682 gl_dirsep_regex
='[/\\]'
24685 gl_dirsep_regex
='\/'
24688 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24690 gl_header_literal_regex
=`echo 'stdio.h' \
24691 | sed -e "$gl_make_literal_regex_sed"`
24692 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24693 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24698 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24699 sed -n "$gl_absolute_header_sed"`'"'
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24704 $as_echo "$gl_cv_next_stdio_h" >&6; }
24706 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24708 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24710 gl_next_as_first_directive
='<'stdio.h
'>'
24712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24713 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24715 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24724 cat >>confdefs.h
<<_ACEOF
24725 #define GNULIB_FSCANF 1
24732 cat >>confdefs.h
<<_ACEOF
24733 #define GNULIB_SCANF 1
24769 if test $gl_cv_have_include_next = yes; then
24770 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24773 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24774 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h. */
24780 #include <stdlib.h>
24784 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24785 *) gl_absname_cpp
="$ac_cpp" ;;
24790 gl_dirsep_regex
='[/\\]'
24793 gl_dirsep_regex
='\/'
24796 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24798 gl_header_literal_regex
=`echo 'stdlib.h' \
24799 | sed -e "$gl_make_literal_regex_sed"`
24800 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24801 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24806 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24807 sed -n "$gl_absolute_header_sed"`'"'
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24812 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24814 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24816 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24818 gl_next_as_first_directive
='<'stdlib.h
'>'
24820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24821 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24823 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24833 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24841 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24853 if test "$ac_cv_have_decl_strtoimax" != yes; then
24854 HAVE_DECL_STRTOIMAX
=0
24857 if test $ac_cv_func_strtoimax = yes; then
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24860 $as_echo_n "checking whether strtoimax works... " >&6; }
24861 if test "${gl_cv_func_strtoimax+set}" = set; then :
24862 $as_echo_n "(cached) " >&6
24864 if test "$cross_compiling" = yes; then :
24866 # Guess no on AIX 5.
24867 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
24868 # Guess yes otherwise.
24869 *) gl_cv_func_strtoimax
="guessing yes" ;;
24873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24877 #include <string.h>
24878 #include <inttypes.h>
24881 if (sizeof (intmax_t) > sizeof (int))
24883 const char *s = "4294967295";
24887 res = strtoimax (s, &p, 10);
24888 if (p != s + strlen (s))
24892 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24897 const char *s = "2147483647";
24901 res = strtoimax (s, &p, 10);
24902 if (p != s + strlen (s))
24906 if (res != 2147483647)
24913 if ac_fn_c_try_run
"$LINENO"; then :
24914 gl_cv_func_strtoimax
=yes
24916 gl_cv_func_strtoimax
=no
24918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24919 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24925 $as_echo "$gl_cv_func_strtoimax" >&6; }
24926 case "$gl_cv_func_strtoimax" in
24927 *no
) REPLACE_STRTOIMAX
=1 ;;
24933 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24942 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
24945 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24946 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
24952 cat >>confdefs.h
<<_ACEOF
24953 #define HAVE_DECL_STRTOLL $ac_have_decl
24974 if test "$ac_cv_have_decl_strtoumax" != yes; then
24975 HAVE_DECL_STRTOUMAX
=0
24978 if test $ac_cv_func_strtoumax = no
; then
24987 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
24990 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24991 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
24997 cat >>confdefs.h
<<_ACEOF
24998 #define HAVE_DECL_STRTOULL $ac_have_decl
25017 if test $ac_cv_func_symlink = no
; then
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
25021 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
25022 if test "${gl_cv_func_symlink_works+set}" = set; then :
25023 $as_echo_n "(cached) " >&6
25025 if test "$cross_compiling" = yes; then :
25027 # Guess yes on glibc systems.
25028 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
25029 # If we don't know, assume the worst.
25030 *) gl_cv_func_symlink_works
="guessing no" ;;
25034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 #include <unistd.h>
25042 if (!symlink ("a", "conftest.link/"))
25044 if (symlink ("conftest.f", "conftest.lnk2"))
25046 else if (!symlink ("a", "conftest.lnk2/"))
25054 if ac_fn_c_try_run
"$LINENO"; then :
25055 gl_cv_func_symlink_works
=yes
25057 gl_cv_func_symlink_works
=no
25059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25063 rm -f conftest.f conftest.link conftest.lnk2
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
25066 $as_echo "$gl_cv_func_symlink_works" >&6; }
25067 case "$gl_cv_func_symlink_works" in
25075 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
25084 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25102 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25103 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h. */
25109 #include <sys/select.h>
25118 if ac_fn_c_try_compile
"$LINENO"; then :
25119 gl_cv_header_sys_select_h_selfcontained
=yes
25121 gl_cv_header_sys_select_h_selfcontained
=no
25123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25124 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h. */
25127 #include <sys/select.h>
25131 int memset; int bzero;
25137 if ac_fn_c_try_compile
"$LINENO"; then :
25138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25139 /* end confdefs.h. */
25140 #include <sys/select.h>
25146 #define memset nonexistent_memset
25151 void *memset (void *, int, unsigned long);
25153 #define bzero nonexistent_bzero
25158 void bzero (void *, unsigned long);
25167 if ac_fn_c_try_link
"$LINENO"; then :
25170 gl_cv_header_sys_select_h_selfcontained
=no
25172 rm -f core conftest.err conftest.
$ac_objext \
25173 conftest
$ac_exeext conftest.
$ac_ext
25176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25181 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25191 if test $gl_cv_have_include_next = yes; then
25192 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25195 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25196 if test "${gl_cv_next_sys_select_h+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25200 if test $ac_cv_header_sys_select_h = yes; then
25203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25205 #include <sys/select.h>
25209 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25210 *) gl_absname_cpp
="$ac_cpp" ;;
25215 gl_dirsep_regex
='[/\\]'
25218 gl_dirsep_regex
='\/'
25221 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25223 gl_header_literal_regex
=`echo 'sys/select.h' \
25224 | sed -e "$gl_make_literal_regex_sed"`
25225 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25226 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25231 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25232 sed -n "$gl_absolute_header_sed"`'"'
25234 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25240 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25242 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
25244 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25246 gl_next_as_first_directive
='<'sys
/select.h
'>'
25248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25249 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
25251 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
25256 if test $ac_cv_header_sys_select_h = yes; then
25257 HAVE_SYS_SELECT_H
=1
25259 HAVE_SYS_SELECT_H
=0
25266 if test $ac_cv_header_sys_socket_h != yes; then
25267 for ac_header
in winsock2.h
25269 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25270 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
25271 cat >>confdefs.h
<<_ACEOF
25272 #define HAVE_WINSOCK2_H 1
25280 if test "$ac_cv_header_winsock2_h" = yes; then
25282 UNISTD_H_HAVE_WINSOCK2_H
=1
25283 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
25307 if test $gl_cv_have_include_next = yes; then
25308 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25311 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25312 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
25313 $as_echo_n "(cached) " >&6
25316 if test $ac_cv_header_sys_stat_h = yes; then
25319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25320 /* end confdefs.h. */
25321 #include <sys/stat.h>
25325 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25326 *) gl_absname_cpp
="$ac_cpp" ;;
25331 gl_dirsep_regex
='[/\\]'
25334 gl_dirsep_regex
='\/'
25337 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25339 gl_header_literal_regex
=`echo 'sys/stat.h' \
25340 | sed -e "$gl_make_literal_regex_sed"`
25341 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25342 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25347 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25348 sed -n "$gl_absolute_header_sed"`'"'
25350 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25356 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25358 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
25360 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25361 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25362 gl_next_as_first_directive
='<'sys
/stat.h
'>'
25364 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25365 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
25367 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
25379 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25381 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25385 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25386 #include <sys/stat.h>
25388 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
25392 $as_echo "#define nlink_t int" >>confdefs.h
25413 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25415 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
25421 cat >>confdefs.h
<<_ACEOF
25422 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25425 if test $ac_cv_have_decl_localtime_r = no
; then
25426 HAVE_DECL_LOCALTIME_R
=0
25430 if test $ac_cv_func_localtime_r = yes; then
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25433 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25434 if test "${gl_cv_time_r_posix+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25443 /* We don't need to append 'restrict's to the argument types,
25444 even though the POSIX signature has the 'restrict's,
25445 since C99 says they can't affect type compatibility. */
25446 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25448 /* Check the return type is a pointer.
25449 On HP-UX 10 it is 'int'. */
25450 *localtime_r (0, 0);
25456 if ac_fn_c_try_compile
"$LINENO"; then :
25457 gl_cv_time_r_posix
=yes
25459 gl_cv_time_r_posix
=no
25461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25465 $as_echo "$gl_cv_time_r_posix" >&6; }
25466 if test $gl_cv_time_r_posix = yes; then
25467 REPLACE_LOCALTIME_R
=0
25469 REPLACE_LOCALTIME_R
=1
25475 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
25484 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
25508 gl_saved_libs
=$LIBS
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25510 $as_echo_n "checking for library containing timer_settime... " >&6; }
25511 if test "${ac_cv_search_timer_settime+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25514 ac_func_search_save_LIBS
=$LIBS
25515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25516 /* end confdefs.h. */
25518 /* Override any GCC internal prototype to avoid an error.
25519 Use char because int might match the return type of a GCC
25520 builtin and then its argument prototype would still apply. */
25524 char timer_settime ();
25528 return timer_settime ();
25533 for ac_lib
in '' rt posix4
; do
25534 if test -z "$ac_lib"; then
25535 ac_res
="none required"
25538 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25540 if ac_fn_c_try_link
"$LINENO"; then :
25541 ac_cv_search_timer_settime
=$ac_res
25543 rm -f core conftest.err conftest.
$ac_objext \
25545 if test "${ac_cv_search_timer_settime+set}" = set; then :
25549 if test "${ac_cv_search_timer_settime+set}" = set; then :
25552 ac_cv_search_timer_settime
=no
25554 rm conftest.
$ac_ext
25555 LIBS
=$ac_func_search_save_LIBS
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25558 $as_echo "$ac_cv_search_timer_settime" >&6; }
25559 ac_res
=$ac_cv_search_timer_settime
25560 if test "$ac_res" != no
; then :
25561 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25562 test "$ac_cv_search_timer_settime" = "none required" ||
25563 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
25566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25569 #include <features.h>
25570 #ifdef __GNU_LIBRARY__
25571 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25572 && !defined __UCLIBC__
25573 Thread emulation available
25578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25579 $EGREP "Thread" >/dev
/null
2>&1; then :
25580 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
25584 for ac_func
in timer_settime
25586 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25587 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
25588 cat >>confdefs.h
<<_ACEOF
25589 #define HAVE_TIMER_SETTIME 1
25595 LIBS
=$gl_saved_libs
25610 if test $gl_cv_have_include_next = yes; then
25611 gl_cv_next_unistd_h
='<'unistd.h
'>'
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25614 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25615 if test "${gl_cv_next_unistd_h+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25619 if test $ac_cv_header_unistd_h = yes; then
25622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h. */
25624 #include <unistd.h>
25628 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25629 *) gl_absname_cpp
="$ac_cpp" ;;
25634 gl_dirsep_regex
='[/\\]'
25637 gl_dirsep_regex
='\/'
25640 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25642 gl_header_literal_regex
=`echo 'unistd.h' \
25643 | sed -e "$gl_make_literal_regex_sed"`
25644 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25650 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25651 sed -n "$gl_absolute_header_sed"`'"'
25653 gl_cv_next_unistd_h
='<'unistd.h
'>'
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25659 $as_echo "$gl_cv_next_unistd_h" >&6; }
25661 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25663 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25665 gl_next_as_first_directive
='<'unistd.h
'>'
25667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25668 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25670 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25675 if test $ac_cv_header_unistd_h = yes; then
25691 if test $ac_cv_have_decl_unsetenv = no
; then
25692 HAVE_DECL_UNSETENV
=0
25694 for ac_func
in unsetenv
25696 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25697 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
25698 cat >>confdefs.h
<<_ACEOF
25699 #define HAVE_UNSETENV 1
25705 if test $ac_cv_func_unsetenv = no
; then
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25710 $as_echo_n "checking for unsetenv() return type... " >&6; }
25711 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25712 $as_echo_n "(cached) " >&6
25714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25715 /* end confdefs.h. */
25718 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25719 #include <stdlib.h>
25724 int unsetenv (const char *name);
25734 if ac_fn_c_try_compile
"$LINENO"; then :
25735 gt_cv_func_unsetenv_ret
='int'
25737 gt_cv_func_unsetenv_ret
='void'
25739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25742 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25743 if test $gt_cv_func_unsetenv_ret = 'void'; then
25745 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25751 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25752 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25753 $as_echo_n "(cached) " >&6
25755 if test "$cross_compiling" = yes; then :
25757 # Guess yes on glibc systems.
25758 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25759 # If we don't know, assume the worst.
25760 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25765 /* end confdefs.h. */
25767 #include <stdlib.h>
25769 extern char **environ;
25775 char entry1[] = "a=1";
25776 char entry2[] = "b=2";
25777 char *env[] = { entry1, entry2, NULL };
25778 if (putenv ((char *) "a=1")) return 1;
25779 if (putenv (entry2)) return 2;
25782 if (getenv ("a")) return 3;
25783 if (!unsetenv ("") || errno != EINVAL) return 4;
25786 if (!getenv ("a")) return 5;
25789 if (getenv ("a")) return 6;
25795 if ac_fn_c_try_run
"$LINENO"; then :
25796 gl_cv_func_unsetenv_works
=yes
25798 gl_cv_func_unsetenv_works
=no
25800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25806 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25807 case "$gl_cv_func_unsetenv_works" in
25815 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25824 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25848 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25850 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25851 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25852 $as_echo_n "(cached) " >&6
25854 touch conftest.
file
25855 if test "$cross_compiling" = yes; then :
25857 # Guess yes on glibc systems.
25858 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
25859 # If we don't know, assume the worst.
25860 *) gl_cv_func_futimesat_works
="guessing no" ;;
25864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h. */
25867 #include <stddef.h>
25868 #include <sys/times.h>
25874 int fd = open ("conftest.file", O_RDWR);
25875 if (fd < 0) return 1;
25876 if (futimesat (fd, NULL, NULL)) return 2;
25882 if ac_fn_c_try_run
"$LINENO"; then :
25883 gl_cv_func_futimesat_works
=yes
25885 gl_cv_func_futimesat_works
=no
25887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25891 rm -f conftest.
file
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25894 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25895 case "$gl_cv_func_futimesat_works" in
25899 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25905 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
25906 gl_gnulib_enabled_dosname
=false
25907 gl_gnulib_enabled_euidaccess
=false
25908 gl_gnulib_enabled_getgroups
=false
25909 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
25910 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
25911 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
25912 gl_gnulib_enabled_pathmax
=false
25913 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
25914 gl_gnulib_enabled_stat
=false
25915 gl_gnulib_enabled_strtoll
=false
25916 gl_gnulib_enabled_strtoull
=false
25917 gl_gnulib_enabled_verify
=false
25918 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
25919 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
25921 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25930 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
25932 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
25935 func_gl_gnulib_m4code_dosname
()
25937 if ! $gl_gnulib_enabled_dosname; then
25938 gl_gnulib_enabled_dosname
=true
25941 func_gl_gnulib_m4code_euidaccess
()
25943 if ! $gl_gnulib_enabled_euidaccess; then
25949 for ac_func
in euidaccess
25951 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25952 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
25953 cat >>confdefs.h
<<_ACEOF
25954 #define HAVE_EUIDACCESS 1
25960 if test $ac_cv_func_euidaccess = no
; then
25964 if test $HAVE_EUIDACCESS = 0; then
25973 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
25977 for ac_header
in libgen.h
25979 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25980 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
25981 cat >>confdefs.h
<<_ACEOF
25982 #define HAVE_LIBGEN_H 1
25990 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
25991 if test "x$ac_cv_func_getgroups" = x
""yes; then :
25996 # If we don't yet have getgroups, see if it's in -lbsd.
25997 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25999 if test $ac_cv_func_getgroups = no
; then
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26001 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26002 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26005 ac_check_lib_save_LIBS
=$LIBS
26007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26008 /* end confdefs.h. */
26010 /* Override any GCC internal prototype to avoid an error.
26011 Use char because int might match the return type of a GCC
26012 builtin and then its argument prototype would still apply. */
26020 return getgroups ();
26025 if ac_fn_c_try_link
"$LINENO"; then :
26026 ac_cv_lib_bsd_getgroups
=yes
26028 ac_cv_lib_bsd_getgroups
=no
26030 rm -f core conftest.err conftest.
$ac_objext \
26031 conftest
$ac_exeext conftest.
$ac_ext
26032 LIBS
=$ac_check_lib_save_LIBS
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26035 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26036 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
26037 GETGROUPS_LIB
=-lbsd
26042 # Run the program to test the functionality of the system-supplied
26043 # getgroups function only if there is such a function.
26044 if test $ac_cv_func_getgroups = yes; then
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26046 $as_echo_n "checking for working getgroups... " >&6; }
26047 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26050 if test "$cross_compiling" = yes; then :
26051 case "$host_os" in # ((
26052 # Guess yes on glibc systems.
26053 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
26054 # If we don't know, assume the worst.
26055 *) ac_cv_func_getgroups_works
="guessing no" ;;
26059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26061 $ac_includes_default
26065 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26066 return getgroups (0, 0) == -1;
26072 if ac_fn_c_try_run
"$LINENO"; then :
26073 ac_cv_func_getgroups_works
=yes
26075 ac_cv_func_getgroups_works
=no
26077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26084 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26086 ac_cv_func_getgroups_works
=no
26088 case "$ac_cv_func_getgroups_works" in
26091 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26098 # Solaris 9 and 10 need -lgen to get the eaccess function.
26099 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
26100 # programs in the package would end up linked with that potentially-shared
26101 # library, inducing unnecessary run-time overhead.
26104 gl_saved_libs
=$LIBS
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
26106 $as_echo_n "checking for library containing eaccess... " >&6; }
26107 if test "${ac_cv_search_eaccess+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26110 ac_func_search_save_LIBS
=$LIBS
26111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26112 /* end confdefs.h. */
26114 /* Override any GCC internal prototype to avoid an error.
26115 Use char because int might match the return type of a GCC
26116 builtin and then its argument prototype would still apply. */
26129 for ac_lib
in '' gen
; do
26130 if test -z "$ac_lib"; then
26131 ac_res
="none required"
26134 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26136 if ac_fn_c_try_link
"$LINENO"; then :
26137 ac_cv_search_eaccess
=$ac_res
26139 rm -f core conftest.err conftest.
$ac_objext \
26141 if test "${ac_cv_search_eaccess+set}" = set; then :
26145 if test "${ac_cv_search_eaccess+set}" = set; then :
26148 ac_cv_search_eaccess
=no
26150 rm conftest.
$ac_ext
26151 LIBS
=$ac_func_search_save_LIBS
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
26154 $as_echo "$ac_cv_search_eaccess" >&6; }
26155 ac_res
=$ac_cv_search_eaccess
26156 if test "$ac_res" != no
; then :
26157 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26158 test "$ac_cv_search_eaccess" = "none required" ||
26159 LIB_EACCESS
=$ac_cv_search_eaccess
26162 for ac_func
in eaccess
26164 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
26165 if test "x$ac_cv_func_eaccess" = x
""yes; then :
26166 cat >>confdefs.h
<<_ACEOF
26167 #define HAVE_EACCESS 1
26173 LIBS
=$gl_saved_libs
26181 GNULIB_EUIDACCESS
=1
26187 gl_gnulib_enabled_euidaccess
=true
26188 if test $HAVE_EUIDACCESS = 0; then
26189 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
26191 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
26192 if test $HAVE_EUIDACCESS = 0; then
26193 func_gl_gnulib_m4code_stat
26197 func_gl_gnulib_m4code_getgroups
()
26199 if ! $gl_gnulib_enabled_getgroups; then
26205 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
26206 if test "x$ac_cv_func_getgroups" = x
""yes; then :
26211 # If we don't yet have getgroups, see if it's in -lbsd.
26212 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26214 if test $ac_cv_func_getgroups = no
; then
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
26216 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
26217 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
26218 $as_echo_n "(cached) " >&6
26220 ac_check_lib_save_LIBS
=$LIBS
26222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26225 /* Override any GCC internal prototype to avoid an error.
26226 Use char because int might match the return type of a GCC
26227 builtin and then its argument prototype would still apply. */
26235 return getgroups ();
26240 if ac_fn_c_try_link
"$LINENO"; then :
26241 ac_cv_lib_bsd_getgroups
=yes
26243 ac_cv_lib_bsd_getgroups
=no
26245 rm -f core conftest.err conftest.
$ac_objext \
26246 conftest
$ac_exeext conftest.
$ac_ext
26247 LIBS
=$ac_check_lib_save_LIBS
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
26250 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
26251 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
26252 GETGROUPS_LIB
=-lbsd
26257 # Run the program to test the functionality of the system-supplied
26258 # getgroups function only if there is such a function.
26259 if test $ac_cv_func_getgroups = yes; then
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26261 $as_echo_n "checking for working getgroups... " >&6; }
26262 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26263 $as_echo_n "(cached) " >&6
26265 if test "$cross_compiling" = yes; then :
26266 case "$host_os" in # ((
26267 # Guess yes on glibc systems.
26268 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
26269 # If we don't know, assume the worst.
26270 *) ac_cv_func_getgroups_works
="guessing no" ;;
26274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26275 /* end confdefs.h. */
26276 $ac_includes_default
26280 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26281 return getgroups (0, 0) == -1;
26287 if ac_fn_c_try_run
"$LINENO"; then :
26288 ac_cv_func_getgroups_works
=yes
26290 ac_cv_func_getgroups_works
=no
26292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26299 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26301 ac_cv_func_getgroups_works
=no
26303 case "$ac_cv_func_getgroups_works" in
26306 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26312 if test $ac_cv_func_getgroups != yes; then
26315 if test "$ac_cv_type_getgroups" != gid_t \
26316 ||
{ case "$ac_cv_func_getgroups_works" in
26321 REPLACE_GETGROUPS
=1
26323 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
26327 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
26328 if test "${gl_cv_func_getgroups_works+set}" = set; then :
26329 $as_echo_n "(cached) " >&6
26331 if test "$cross_compiling" = yes; then :
26333 # Guess yes on glibc systems.
26334 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
26335 # If we don't know, assume the worst.
26336 *) gl_cv_func_getgroups_works
="guessing no" ;;
26340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26341 /* end confdefs.h. */
26342 $ac_includes_default
26346 int size = getgroups (0, 0);
26347 gid_t *list = malloc (size * sizeof *list);
26348 return getgroups (-1, list) != -1;
26353 if ac_fn_c_try_run
"$LINENO"; then :
26354 gl_cv_func_getgroups_works
=yes
26356 gl_cv_func_getgroups_works
=no
26358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26364 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26365 case "$gl_cv_func_getgroups_works" in
26367 *) REPLACE_GETGROUPS
=1 ;;
26371 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
26373 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
26382 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
26396 gl_gnulib_enabled_getgroups
=true
26399 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
26401 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26404 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
26407 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
26409 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26415 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
26416 if test "x$ac_cv_func_group_member" = x
""yes; then :
26420 HAVE_GROUP_MEMBER
=0
26425 if test $HAVE_GROUP_MEMBER = 0; then
26434 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
26445 GNULIB_GROUP_MEMBER
=1
26451 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
26452 if test $HAVE_GROUP_MEMBER = 0; then
26453 func_gl_gnulib_m4code_getgroups
26455 if test $HAVE_GROUP_MEMBER = 0; then
26456 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26460 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
26462 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26463 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
26466 func_gl_gnulib_m4code_pathmax
()
26468 if ! $gl_gnulib_enabled_pathmax; then
26472 gl_gnulib_enabled_pathmax
=true
26475 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
26477 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26478 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
26481 func_gl_gnulib_m4code_stat
()
26483 if ! $gl_gnulib_enabled_stat; then
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26488 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26489 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26490 $as_echo_n "(cached) " >&6
26492 if test "$cross_compiling" = yes; then :
26494 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
26495 *) gl_cv_func_stat_dir_slash
="guessing yes";;
26498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26499 /* end confdefs.h. */
26500 #include <sys/stat.h>
26505 struct stat st; return stat (".", &st) != stat ("./", &st);
26510 if ac_fn_c_try_run
"$LINENO"; then :
26511 gl_cv_func_stat_dir_slash
=yes
26513 gl_cv_func_stat_dir_slash
=no
26515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26521 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26523 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26524 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26525 $as_echo_n "(cached) " >&6
26528 # Assume that if we have lstat, we can also check symlinks.
26529 if test $ac_cv_func_lstat = yes; then
26530 ln -s conftest.tmp conftest.lnk
26532 if test "$cross_compiling" = yes; then :
26534 # Guess yes on glibc systems.
26535 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26536 # If we don't know, assume the worst.
26537 *) gl_cv_func_stat_file_slash
="guessing no" ;;
26541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h. */
26543 #include <sys/stat.h>
26550 if (!stat ("conftest.tmp/", &st))
26553 if (!stat ("conftest.lnk/", &st))
26562 if ac_fn_c_try_run
"$LINENO"; then :
26563 gl_cv_func_stat_file_slash
=yes
26565 gl_cv_func_stat_file_slash
=no
26567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26571 rm -f conftest.tmp conftest.lnk
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26574 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26575 case $gl_cv_func_stat_dir_slash in
26576 *no
) REPLACE_STAT
=1
26578 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26581 case $gl_cv_func_stat_file_slash in
26582 *no
) REPLACE_STAT
=1
26584 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26588 if test $REPLACE_STAT = 1; then
26597 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
26612 gl_gnulib_enabled_stat
=true
26613 if test $REPLACE_STAT = 1; then
26614 func_gl_gnulib_m4code_dosname
26616 if test $REPLACE_STAT = 1; then
26617 func_gl_gnulib_m4code_pathmax
26619 if test $REPLACE_STAT = 1; then
26620 func_gl_gnulib_m4code_verify
26624 func_gl_gnulib_m4code_strtoll
()
26626 if ! $gl_gnulib_enabled_strtoll; then
26630 if test "$ac_cv_type_long_long_int" = yes; then
26631 for ac_func
in strtoll
26633 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
26634 if test "x$ac_cv_func_strtoll" = x
""yes; then :
26635 cat >>confdefs.h
<<_ACEOF
26636 #define HAVE_STRTOLL 1
26642 if test $ac_cv_func_strtoll = no
; then
26647 if test $HAVE_STRTOLL = 0; then
26656 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
26673 gl_gnulib_enabled_strtoll
=true
26676 func_gl_gnulib_m4code_strtoull
()
26678 if ! $gl_gnulib_enabled_strtoull; then
26682 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26683 for ac_func
in strtoull
26685 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
26686 if test "x$ac_cv_func_strtoull" = x
""yes; then :
26687 cat >>confdefs.h
<<_ACEOF
26688 #define HAVE_STRTOULL 1
26694 if test $ac_cv_func_strtoull = no
; then
26699 if test $HAVE_STRTOULL = 0; then
26708 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
26725 gl_gnulib_enabled_strtoull
=true
26728 func_gl_gnulib_m4code_verify
()
26730 if ! $gl_gnulib_enabled_verify; then
26731 gl_gnulib_enabled_verify
=true
26734 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
26736 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26737 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
26740 if test $HAVE_FACCESSAT = 0; then
26741 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26743 if test $HAVE_FACCESSAT = 0; then
26744 func_gl_gnulib_m4code_dosname
26746 if test $HAVE_FACCESSAT = 0; then
26747 func_gl_gnulib_m4code_euidaccess
26749 if test $HAVE_FACCESSAT = 0; then
26750 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26752 if test $HAVE_FDOPENDIR = 0; then
26753 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26755 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26756 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26758 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26759 func_gl_gnulib_m4code_dosname
26761 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
26762 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26764 if test $REPLACE_GETOPT = 1; then
26765 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26767 if test $REPLACE_LSTAT = 1; then
26768 func_gl_gnulib_m4code_dosname
26770 if test $REPLACE_LSTAT = 1; then
26771 func_gl_gnulib_m4code_stat
26773 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26774 func_gl_gnulib_m4code_stat
26776 if test $HAVE_READLINKAT = 0; then
26777 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26779 if test $HAVE_READLINKAT = 0; then
26780 func_gl_gnulib_m4code_dosname
26782 if test $HAVE_READLINKAT = 0; then
26783 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26785 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26786 func_gl_gnulib_m4code_strtoll
26788 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26789 func_gl_gnulib_m4code_verify
26791 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
26792 func_gl_gnulib_m4code_strtoull
26794 if test $ac_cv_func_strtoumax = no
; then
26795 func_gl_gnulib_m4code_verify
26798 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26799 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
26800 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
26802 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
26803 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
26806 if $gl_gnulib_enabled_dosname; then
26807 gl_GNULIB_ENABLED_dosname_TRUE
=
26808 gl_GNULIB_ENABLED_dosname_FALSE
='#'
26810 gl_GNULIB_ENABLED_dosname_TRUE
='#'
26811 gl_GNULIB_ENABLED_dosname_FALSE
=
26814 if $gl_gnulib_enabled_euidaccess; then
26815 gl_GNULIB_ENABLED_euidaccess_TRUE
=
26816 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
26818 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
26819 gl_GNULIB_ENABLED_euidaccess_FALSE
=
26822 if $gl_gnulib_enabled_getgroups; then
26823 gl_GNULIB_ENABLED_getgroups_TRUE
=
26824 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
26826 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
26827 gl_GNULIB_ENABLED_getgroups_FALSE
=
26830 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26831 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
26832 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
26834 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
26835 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
26838 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26839 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
26840 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
26842 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
26843 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
26846 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26847 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
26848 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
26850 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
26851 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
26854 if $gl_gnulib_enabled_pathmax; then
26855 gl_GNULIB_ENABLED_pathmax_TRUE
=
26856 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
26858 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
26859 gl_GNULIB_ENABLED_pathmax_FALSE
=
26862 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26863 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
26864 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
26866 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
26867 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
26870 if $gl_gnulib_enabled_stat; then
26871 gl_GNULIB_ENABLED_stat_TRUE
=
26872 gl_GNULIB_ENABLED_stat_FALSE
='#'
26874 gl_GNULIB_ENABLED_stat_TRUE
='#'
26875 gl_GNULIB_ENABLED_stat_FALSE
=
26878 if $gl_gnulib_enabled_strtoll; then
26879 gl_GNULIB_ENABLED_strtoll_TRUE
=
26880 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
26882 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
26883 gl_GNULIB_ENABLED_strtoll_FALSE
=
26886 if $gl_gnulib_enabled_strtoull; then
26887 gl_GNULIB_ENABLED_strtoull_TRUE
=
26888 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
26890 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
26891 gl_GNULIB_ENABLED_strtoull_FALSE
=
26894 if $gl_gnulib_enabled_verify; then
26895 gl_GNULIB_ENABLED_verify_TRUE
=
26896 gl_GNULIB_ENABLED_verify_FALSE
='#'
26898 gl_GNULIB_ENABLED_verify_TRUE
='#'
26899 gl_GNULIB_ENABLED_verify_FALSE
=
26902 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26903 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
26904 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
26906 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
26907 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
26910 # End of code from modules
26931 gl_source_base
='tests'
26932 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
26934 gl_module_indicator_condition
=$gltests_WITNESS
26945 LIBGNU_LIBDEPS
="$gl_libdeps"
26947 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26950 CFLAGS
=$SAVE_CFLAGS
26954 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26957 ## The -headerpad option tells ld (see man page) to leave room at the
26958 ## end of the header for adding load commands. Needed for dumping.
26959 ## 0x690 is the total size of 30 segment load commands (at 56
26960 ## each); under Cocoa 31 commands are required.
26961 if test "$HAVE_NS" = "yes"; then
26962 libs_nsgui
="-framework AppKit"
26963 headerpad_extra
=6C8
26966 headerpad_extra
=690
26968 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26970 ## This is here because src/Makefile.in did some extra fiddling around
26971 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26972 ## LD_SWITCH_SYSTEM_TEMACS instead,
26973 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26974 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
26977 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26978 ## find X at run-time.
26979 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26980 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26981 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26982 ## had different values in configure (in ac_link) and src/Makefile.in.
26983 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26984 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26986 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26989 if test x
$ac_enable_profiling != x
; then
26991 *freebsd | gnu-linux
) ;;
26992 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
26998 ## Common for all window systems
26999 if test "$window_system" != "none"; then
27001 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
27003 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
27010 #### Report on what we decided to do.
27011 #### Report GTK as a toolkit, even if it doesn't use Xt.
27012 #### It makes printing result more understandable as using GTK sets
27013 #### toolkit_scroll_bars to yes by default.
27014 if test "${HAVE_GTK}" = "yes"; then
27015 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
27019 Configured for \`${canonical}'.
27021 Where should the build process find the source code? ${srcdir}
27022 What compiler should emacs be built with? ${CC} ${CFLAGS}
27023 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
27024 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
27025 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
27026 What window system should Emacs use? ${window_system}
27027 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
27029 if test -n "${x_includes}"; then
27030 echo " Where do we find X Windows header files? ${x_includes}"
27032 echo " Where do we find X Windows header files? Standard dirs"
27034 if test -n "${x_libraries}"; then
27035 echo " Where do we find X Windows libraries? ${x_libraries}"
27037 echo " Where do we find X Windows libraries? Standard dirs"
27040 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
27041 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
27042 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
27043 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
27044 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
27045 echo " Does Emacs use -lpng? ${HAVE_PNG}"
27046 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
27047 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
27049 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
27050 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
27051 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
27052 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
27053 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
27054 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
27055 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
27057 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
27058 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
27059 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
27060 echo " Does Emacs use -lxft? ${HAVE_XFT}"
27062 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
27065 if test -n "${EMACSDATA}"; then
27066 echo " Environment variable EMACSDATA set to: $EMACSDATA"
27068 if test -n "${EMACSDOC}"; then
27069 echo " Environment variable EMACSDOC set to: $EMACSDOC"
27074 if test "$HAVE_NS" = "yes"; then
27076 echo "You must run \"${MAKE-make} install\" in order to test the built application.
27077 The installed application will go to nextstep/Emacs.app and can be
27078 run or moved from there."
27079 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
27080 echo "The application will be fully self-contained."
27082 echo "The lisp resources for the application will be installed under ${prefix}.
27083 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
27084 to run if these resources are not installed."
27089 if test "${opsys}" = "cygwin"; then
27091 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
27092 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
27098 # Remove any trailing slashes in these variables.
27099 test "${prefix}" != NONE
&&
27100 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
27101 test "${exec_prefix}" != NONE
&&
27102 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
27104 if test "$HAVE_NS" = "yes"; then
27105 if test "$NS_IMPL_GNUSTEP" = yes; then
27106 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"
27109 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"
27114 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"
27116 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"
27119 opt_makefile
=test
/automated
/Makefile
27121 if test -f "$srcdir/$opt_makefile.in"; then
27122 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
27123 ac_config_files
="$ac_config_files test/automated/Makefile"
27128 opt_makefile
=admin
/unidata
/Makefile
27130 if test -f "$srcdir/$opt_makefile.in"; then
27131 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
27132 ac_config_files
="$ac_config_files admin/unidata/Makefile"
27137 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
27141 ac_config_commands
="$ac_config_commands mkdirs"
27144 ac_config_commands
="$ac_config_commands epaths"
27147 ac_config_commands
="$ac_config_commands gdbinit"
27150 cat >confcache
<<\_ACEOF
27151 # This file is a shell script that caches the results of configure
27152 # tests run on this system so they can be shared between configure
27153 # scripts and configure runs, see configure's option --config-cache.
27154 # It is not useful on other systems. If it contains results you don't
27155 # want to keep, you may remove or edit it.
27157 # config.status only pays attention to the cache file if you give it
27158 # the --recheck option to rerun configure.
27160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27162 # following values.
27166 # The following way of writing the cache mishandles newlines in values,
27167 # but we know of no workaround that is simple, portable, and efficient.
27168 # So, we kill variables containing newlines.
27169 # Ultrix sh set writes to stderr and can't be redirected directly,
27170 # and sets the high bit in the cache file unless we assign to the vars.
27172 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27173 eval ac_val
=\$
$ac_var
27177 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27181 _ | IFS | as_nl
) ;; #(
27182 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27183 *) { eval $ac_var=; unset $ac_var;} ;;
27189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27190 *${as_nl}ac_space
=\
*)
27191 # `set' does not quote correctly, so add quotes: double-quote
27192 # substitution turns \\\\ into \\, and sed turns \\ into \.
27195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27198 # `set' quotes correctly as required by POSIX, so do not add quotes.
27199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27212 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27213 if test -w "$cache_file"; then
27214 test "x$cache_file" != "x/dev/null" &&
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27216 $as_echo "$as_me: updating cache $cache_file" >&6;}
27217 cat confcache
>$cache_file
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27225 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27226 # Let make expand exec_prefix.
27227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27229 DEFS
=-DHAVE_CONFIG_H
27233 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27234 # 1. Remove the extension, and $U if already installed.
27235 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27236 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27238 # will be set to the directory where LIBOBJS objects are built.
27239 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27240 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27242 LIBOBJS
=$ac_libobjs
27244 LTLIBOBJS
=$ac_ltlibobjs
27247 if test -n "$EXEEXT"; then
27249 am__EXEEXT_FALSE
='#'
27251 am__EXEEXT_TRUE
='#'
27255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27256 as_fn_error
"conditional \"AMDEP\" was never defined.
27257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27260 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
27261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27263 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27264 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
27265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27267 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27268 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27272 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
27273 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
27274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27276 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27277 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
27278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27280 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27281 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27284 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27285 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
27286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27288 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27289 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27292 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27293 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27296 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
27297 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
27298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27300 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
27301 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
27302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27304 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
27305 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
27306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27308 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
27309 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
27310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27312 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
27313 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
27314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27316 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
27317 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
27318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27320 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
27321 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
27322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27324 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
27325 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
27326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27328 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27329 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27332 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27333 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27336 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27337 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27340 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27341 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27344 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27345 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27348 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27349 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27355 if test -n "$gl_LIBOBJS"; then
27356 # Remove the extension.
27357 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27358 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27359 gl_libobjs
="$gl_libobjs $i.$ac_objext"
27360 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
27363 gl_LIBOBJS
=$gl_libobjs
27365 gl_LTLIBOBJS
=$gl_ltlibobjs
27371 if test -n "$gltests_LIBOBJS"; then
27372 # Remove the extension.
27373 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27374 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27375 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
27376 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
27379 gltests_LIBOBJS
=$gltests_libobjs
27381 gltests_LTLIBOBJS
=$gltests_ltlibobjs
27385 : ${CONFIG_STATUS=./config.status}
27387 ac_clean_files_save
=$ac_clean_files
27388 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27394 # Generated by $as_me.
27395 # Run this file to recreate the current configuration.
27396 # Compiler output produced by configure, useful for debugging
27397 # configure, is in config.log if it exists.
27400 ac_cs_recheck=false
27403 SHELL=\${CONFIG_SHELL-$SHELL}
27406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27407 ## -------------------- ##
27408 ## M4sh Initialization. ##
27409 ## -------------------- ##
27411 # Be more Bourne compatible
27412 DUALCASE
=1; export DUALCASE
# for MKS sh
27413 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27417 # is contrary to our usage. Disable this feature.
27418 alias -g '${1+"$@"}'='"$@"'
27419 setopt NO_GLOB_SUBST
27421 case `(set -o) 2>/dev/null` in #(
27433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27434 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27437 # Prefer a ksh shell builtin over an external printf program on Solaris,
27438 # but without wasting forks for bash or zsh.
27439 if test -z "$BASH_VERSION$ZSH_VERSION" \
27440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27441 as_echo='print
-r --'
27442 as_echo_n='print
-rn --'
27443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27444 as_echo='printf %s
\n'
27445 as_echo_n='printf %s
'
27447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27448 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27449 as_echo_n='/usr
/ucb
/echo -n'
27451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27452 as_echo_n_body='eval
27456 expr "X$arg" : "X\\(.*\\)$as_nl";
27457 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27459 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27461 export as_echo_n_body
27462 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27464 export as_echo_body
27465 as_echo='sh
-c $as_echo_body as_echo
'
27468 # The user is always right.
27469 if test "${PATH_SEPARATOR+set}" != set; then
27471 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27472 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27479 # We need space, tab and new line, in precisely that order. Quoting is
27480 # there to prevent editors from complaining about space-tab.
27481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27482 # splitting by setting IFS to empty value.)
27485 # Find who we are. Look in the path if we contain no directory separator.
27487 *[\\/]* ) as_myself=$0 ;;
27488 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 for as_dir in $PATH
27492 test -z "$as_dir" && as_dir=.
27493 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27499 # We did not find ourselves, most probably we were run as `sh COMMAND'
27500 # in which case we are not to be found in the path.
27501 if test "x$as_myself" = x
; then
27504 if test ! -f "$as_myself"; then
27505 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27509 # Unset variables that we do not need and which cause bugs (e.g. in
27510 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27511 # suppresses any "Segmentation fault" message there. '((' could
27512 # trigger a bug in pdksh 5.2.14.
27513 for as_var
in BASH_ENV ENV MAIL MAILPATH
27514 do eval test x\
${$as_var+set} = xset \
27515 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27528 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27531 # as_fn_error ERROR [LINENO LOG_FD]
27532 # ---------------------------------
27533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27535 # script with status $?, using 1 if that was 0.
27538 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27540 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27541 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27543 $as_echo "$as_me: error: $1" >&2
27544 as_fn_exit
$as_status
27548 # as_fn_set_status STATUS
27549 # -----------------------
27550 # Set $? to STATUS, without forking.
27551 as_fn_set_status
()
27554 } # as_fn_set_status
27556 # as_fn_exit STATUS
27557 # -----------------
27558 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27562 as_fn_set_status
$1
27568 # Portably unset VAR.
27571 { eval $1=; unset $1;}
27573 as_unset
=as_fn_unset
27574 # as_fn_append VAR VALUE
27575 # ----------------------
27576 # Append the text in VALUE to the end of the definition contained in VAR. Take
27577 # advantage of any shell optimizations that allow amortized linear growth over
27578 # repeated appends, instead of the typical quadratic growth present in naive
27580 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27581 eval 'as_fn_append ()
27592 # as_fn_arith ARG...
27593 # ------------------
27594 # Perform arithmetic evaluation on the ARGs, and store the result in the
27595 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27596 # must be portable across $(()) and expr.
27597 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27598 eval 'as_fn_arith ()
27605 as_val
=`expr "$@" || test $? -eq 1`
27610 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27611 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27617 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27618 as_basename
=basename
27623 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27629 as_me
=`$as_basename -- "$0" ||
27630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27631 X"$0" : 'X\(//\)$' \| \
27632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27634 sed '/^.*\/\([^/][^/]*\)\/*$/{
27648 # Avoid depending upon Character Ranges.
27649 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27650 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27651 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27652 as_cr_digits
='0123456789'
27653 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27655 ECHO_C
= ECHO_N
= ECHO_T
=
27656 case `echo -n x` in #(((((
27658 case `echo 'xy\c'` in
27659 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27661 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27668 rm -f conf$$ conf$$.exe conf$$.
file
27669 if test -d conf$$.dir
; then
27670 rm -f conf$$.dir
/conf$$.
file
27673 mkdir conf$$.dir
2>/dev
/null
27675 if (echo >conf$$.
file) 2>/dev
/null
; then
27676 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27678 # ... but there are two gotchas:
27679 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27680 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27681 # In both cases, we have to default to `cp -p'.
27682 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27684 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27692 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27693 rmdir conf$$.dir
2>/dev
/null
27698 # Create "$as_dir" as a directory, including parents if necessary.
27703 -*) as_dir
=.
/$as_dir;;
27705 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27709 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27710 *) as_qdir
=$as_dir;;
27712 as_dirs
="'$as_qdir' $as_dirs"
27713 as_dir
=`$as_dirname -- "$as_dir" ||
27714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27715 X"$as_dir" : 'X\(//\)[^/]' \| \
27716 X"$as_dir" : 'X\(//\)$' \| \
27717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27718 $as_echo X"$as_dir" |
27719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27723 /^X\(\/\/\)[^/].*/{
27736 test -d "$as_dir" && break
27738 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27739 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27743 if mkdir
-p .
2>/dev
/null
; then
27744 as_mkdir_p
='mkdir -p "$as_dir"'
27746 test -d .
/-p && rmdir .
/-p
27750 if test -x / >/dev
/null
2>&1; then
27751 as_test_x
='test -x'
27753 if ls -dL / >/dev
/null
2>&1; then
27760 if test -d "$1"; then
27766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27767 ???[sx]*):;;*)false;;esac;fi
27771 as_executable_p
=$as_test_x
27773 # Sed expression to map a string onto a valid CPP name.
27774 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27776 # Sed expression to map a string onto a valid variable name.
27777 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27781 ## ----------------------------------- ##
27782 ## Main body of $CONFIG_STATUS script. ##
27783 ## ----------------------------------- ##
27785 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27788 # Save the log message, to keep $0 and so on meaningful, and to
27789 # report actual input values of CONFIG_FILES etc. instead of their
27790 # values after options handling.
27792 This file was extended by emacs $as_me 24.3.50, which was
27793 generated by GNU Autoconf 2.65. Invocation command line was
27795 CONFIG_FILES = $CONFIG_FILES
27796 CONFIG_HEADERS = $CONFIG_HEADERS
27797 CONFIG_LINKS = $CONFIG_LINKS
27798 CONFIG_COMMANDS = $CONFIG_COMMANDS
27801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27806 case $ac_config_files in *"
27807 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27810 case $ac_config_headers in *"
27811 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27816 # Files that config.status was made for.
27817 config_files="$ac_config_files"
27818 config_headers="$ac_config_headers"
27819 config_commands="$ac_config_commands"
27823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27825 \`$as_me' instantiates files and other configuration actions
27826 from templates according to the current configuration. Unless the files
27827 and actions are specified as TAGs, all are instantiated by default.
27829 Usage: $0 [OPTION]... [TAG]...
27831 -h, --help print this help, then exit
27832 -V, --version print version number and configuration settings, then exit
27833 --config print configuration, then exit
27834 -q, --quiet, --silent
27835 do not print progress messages
27836 -d, --debug don't remove temporary files
27837 --recheck update $as_me by reconfiguring in the same conditions
27838 --file=FILE[:TEMPLATE]
27839 instantiate the configuration file FILE
27840 --header=FILE[:TEMPLATE]
27841 instantiate the configuration header FILE
27843 Configuration files:
27846 Configuration headers:
27849 Configuration commands:
27852 Report bugs to the package provider."
27855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27856 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27858 emacs config.status 24.3.50
27859 configured by $0, generated by GNU Autoconf 2.65,
27860 with options \\"\$ac_cs_config\\"
27862 Copyright (C) 2009 Free Software Foundation, Inc.
27863 This config.status script is free software; the Free Software Foundation
27864 gives unlimited permission to copy, distribute and modify it."
27871 test -n "\$AWK" || AWK=awk
27874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27875 # The default lists apply if the user does not specify any file.
27881 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27882 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27893 # Handling of the options.
27894 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27896 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27897 $as_echo "$ac_cs_version"; exit ;;
27898 --config |
--confi |
--conf |
--con |
--co |
--c )
27899 $as_echo "$ac_cs_config"; exit ;;
27900 --debug |
--debu |
--deb |
--de |
--d |
-d )
27902 --file |
--fil |
--fi |
--f )
27905 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27907 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27908 ac_need_defaults
=false
;;
27909 --header |
--heade |
--head |
--hea )
27912 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27914 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27915 ac_need_defaults
=false
;;
27917 # Conflict between --help and --header
27918 as_fn_error
"ambiguous option: \`$1'
27919 Try \`$0 --help' for more information.";;
27920 --help |
--hel |
-h )
27921 $as_echo "$ac_cs_usage"; exit ;;
27922 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27923 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27926 # This is an error.
27927 -*) as_fn_error
"unrecognized option: \`$1'
27928 Try \`$0 --help' for more information." ;;
27930 *) as_fn_append ac_config_targets
" $1"
27931 ac_need_defaults
=false
;;
27937 ac_configure_extra_args
=
27939 if $ac_cs_silent; then
27941 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27946 if \$ac_cs_recheck; then
27947 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27950 CONFIG_SHELL='$SHELL'
27951 export CONFIG_SHELL
27956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27961 ## Running $as_me. ##
27967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27972 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27978 # Handling of arguments.
27979 for ac_config_target
in $ac_config_targets
27981 case $ac_config_target in
27982 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27983 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27984 "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" ;;
27985 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27986 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27987 "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" ;;
27988 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27989 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
27990 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27991 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27992 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27993 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27994 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27995 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27996 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
27997 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27998 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27999 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
28000 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
28001 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
28002 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
28003 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
28004 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
28005 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
28007 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28012 # If the user did not use the arguments to specify the items to instantiate,
28013 # then the envvar interface is used. Set only those that are not.
28014 # We use the long form for the default assignment because of an extremely
28015 # bizarre bug on SunOS 4.1.3.
28016 if $ac_need_defaults; then
28017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28022 # Have a temporary directory for convenience. Make it in the build tree
28023 # simply because there is no reason against having it here, and in addition,
28024 # creating and moving files from /tmp can sometimes cause problems.
28025 # Hook for its removal unless debugging.
28026 # Note that there is a small window in which the directory will not be cleaned:
28027 # after its creation but before its name has been assigned to `$tmp'.
28031 trap 'exit_status=$?
28032 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28034 trap 'as_fn_exit 1' 1 2 13 15
28036 # Create a (secure) tmp directory for tmp files.
28039 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28040 test -n "$tmp" && test -d "$tmp"
28043 tmp
=.
/conf$$
-$RANDOM
28044 (umask 077 && mkdir
"$tmp")
28045 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28047 # Set up the scripts for CONFIG_FILES section.
28048 # No need to generate them if there are no CONFIG_FILES.
28049 # This happens for instance with `./config.status config.h'.
28050 if test -n "$CONFIG_FILES"; then
28052 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28053 ac_cs_awk_getline
=:
28054 ac_cs_awk_pipe_init
=
28055 ac_cs_awk_read_file
='
28056 while ((getline aline < (F[key])) > 0)
28059 ac_cs_awk_pipe_fini
=
28061 ac_cs_awk_getline
=false
28062 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28063 ac_cs_awk_read_file
='
28065 print "cat " F[key] " &&"
28066 '$ac_cs_awk_pipe_init
28067 # The final `:' finishes the AND list.
28068 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28070 ac_cr
=`echo X | tr X '\015'`
28071 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28072 # But we know of no other shell where ac_cr would be empty at this
28073 # point, so we can use a bashism as a fallback.
28074 if test "x$ac_cr" = x
; then
28075 eval ac_cr
=\$
\'\\r
\'
28077 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28078 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28081 ac_cs_awk_cr
=$ac_cr
28084 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28087 # Create commands to substitute file output variables.
28089 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28090 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28091 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28094 } >conf$
$files.sh
&&
28095 . .
/conf$
$files.sh ||
28096 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28097 rm -f conf$
$files.sh
28100 echo "cat >conf$$subs.awk <<_ACEOF" &&
28101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28103 } >conf$$subs.sh ||
28104 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28107 for ac_last_try in false false false false false :; do
28108 . ./conf$$subs.sh ||
28109 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28111 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28112 if test $ac_delim_n = $ac_delim_num; then
28114 elif $ac_last_try; then
28115 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28117 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28120 rm -f conf$$subs.sh
28122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28123 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28127 s/^/S["/; s
/!.
*/"]=/
28137 s/\(.\{148\}\)..*/\1/
28139 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28144 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28151 s/\(.\{148\}\)..*/\1/
28153 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28157 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28162 ' <conf$$subs.awk | sed '
28167 ' >>$CONFIG_STATUS || ac_write_fail=1
28168 rm -f conf$$subs.awk
28169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28172 for (key in S) S_is_set[key] = 1
28174 \$ac_cs_awk_pipe_init
28178 nfields = split(line, field, "@
")
28180 len = length(field[1])
28181 for (i = 2; i < nfields; i++) {
28183 keylen = length(key)
28184 if (S_is_set[key]) {
28186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28187 len += length(value) + length(field[++i])
28192 if (nfields == 3 && !substed) {
28194 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28195 \$ac_cs_awk_read_file
28201 \$ac_cs_awk_pipe_fini
28204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28205 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28206 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28209 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28210 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28215 # trailing colons and then remove the whole line if VPATH becomes empty
28216 # (actually we leave an empty line to preserve line numbers).
28217 if test "x
$srcdir" = x.; then
28218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28219 s/:*\$(srcdir):*/:/
28220 s/:*\${srcdir}:*/:/
28222 s/^\([^=]*=[ ]*\):*/\1/
28228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28229 fi # test -n "$CONFIG_FILES"
28231 # Set up the scripts for CONFIG_HEADERS section.
28232 # No need to generate them if there are no CONFIG_HEADERS.
28233 # This happens for instance with `./config.status Makefile'.
28234 if test -n "$CONFIG_HEADERS"; then
28235 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28239 # Transform confdefs.h into an awk script `defines.awk', embedded as
28240 # here-document in config.status, that substitutes the proper values into
28241 # config.h.in to produce config.h.
28243 # Create a delimiter string that does not exist in confdefs.h, to ease
28244 # handling of long lines.
28246 for ac_last_try in false false :; do
28247 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28248 if test -z "$ac_t"; then
28250 elif $ac_last_try; then
28251 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28253 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28257 # For the awk script, D is an array of macro values keyed by name,
28258 # likewise P contains macro parameters if any. Preserve backslash
28259 # newline sequences.
28261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28263 s/.\{148\}/&'"$ac_delim"'/g
28266 s/^[ ]*#[ ]*define[ ][ ]*/ /
28273 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28275 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28280 D["\
1"]=" \
3\\\\\\n
"\\/p
28282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28287 s/.\{148\}/&'"$ac_delim"'/g
28292 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28295 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28297 ' <confdefs.h | sed '
28298 s/'"$ac_delim"'/"\\\
28299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28302 for (key in D) D_is_set[key] = 1
28305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28307 split(line, arg, " ")
28308 if (arg[1] == "#") {
28312 defundef
= substr
(arg
[1], 2)
28315 split(mac1
, mac2
, "(") #)
28317 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28318 if (D_is_set
[macro
]) {
28319 # Preserve the white space surrounding the "#".
28320 print prefix
"define", macro P
[macro
] D
[macro
]
28323 # Replace #undef with comments. This is necessary, for example,
28324 # in the case of _POSIX_SOURCE, which is predefined and required
28325 # on some systems where configure will not decide to define it.
28326 if (defundef
== "undef") {
28327 print
"/*", prefix defundef
, macro
, "*/"
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28336 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28337 fi # test -n "$CONFIG_HEADERS"
28340 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28345 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28347 case $ac_mode$ac_tag in
28349 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28350 :[FH
]-) ac_tag
=-:-;;
28351 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28368 -) ac_f
="$tmp/stdin";;
28369 *) # Look for the file first in the build tree, then in the source tree
28370 # (if the path is not absolute). The absolute path cannot be DOS-style,
28371 # because $ac_f cannot contain `:'.
28375 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28377 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28379 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28380 as_fn_append ac_file_inputs
" '$ac_f'"
28383 # Let's still pretend it is `configure' which instantiates (i.e., don't
28384 # use $as_me), people would be surprised to read:
28385 # /* config.h. Generated by config.status. */
28386 configure_input
='Generated from '`
28387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28389 if test x
"$ac_file" != x-
; then
28390 configure_input
="$ac_file. $configure_input"
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28392 $as_echo "$as_me: creating $ac_file" >&6;}
28394 # Neutralize special characters interpreted by sed in replacement strings.
28395 case $configure_input in #(
28396 *\
&* |
*\|
* |
*\\* )
28397 ac_sed_conf_input
=`$as_echo "$configure_input" |
28398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28399 *) ac_sed_conf_input
=$configure_input;;
28403 *:-:* |
*:-) cat >"$tmp/stdin" \
28404 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28409 ac_dir
=`$as_dirname -- "$ac_file" ||
28410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28411 X"$ac_file" : 'X\(//\)[^/]' \| \
28412 X"$ac_file" : 'X\(//\)$' \| \
28413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28414 $as_echo X"$ac_file" |
28415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28419 /^X\(\/\/\)[^/].*/{
28432 as_dir
="$ac_dir"; as_fn_mkdir_p
28436 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28438 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28439 # A ".." for each directory in $ac_dir_suffix.
28440 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28441 case $ac_top_builddir_sub in
28442 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28443 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28446 ac_abs_top_builddir
=$ac_pwd
28447 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28448 # for backward compatibility:
28449 ac_top_builddir
=$ac_top_build_prefix
28452 .
) # We are building in place.
28454 ac_top_srcdir
=$ac_top_builddir_sub
28455 ac_abs_top_srcdir
=$ac_pwd ;;
28456 [\\/]* | ?
:[\\/]* ) # Absolute name.
28457 ac_srcdir
=$srcdir$ac_dir_suffix;
28458 ac_top_srcdir
=$srcdir
28459 ac_abs_top_srcdir
=$srcdir ;;
28460 *) # Relative name.
28461 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28462 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28463 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28465 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28475 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28476 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28478 ac_MKDIR_P
=$MKDIR_P
28480 [\\/$
]* | ?
:[\\/]* ) ;;
28481 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28486 # If the template does not know about datarootdir, expand it.
28487 # FIXME: This hack should be removed a few years after 2.60.
28488 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28500 *datarootdir
*) ac_datarootdir_seen
=yes;;
28501 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28506 ac_datarootdir_hack='
28507 s&@datadir@&$datadir&g
28508 s&@docdir@&$docdir&g
28509 s&@infodir@&$infodir&g
28510 s&@localedir@&$localedir&g
28511 s&@mandir@&$mandir&g
28512 s&\\\${datarootdir}&$datarootdir&g' ;;
28516 # Neutralize VPATH when `$srcdir' = `.'.
28517 # Shell code in configure.ac might set extrasub.
28518 # FIXME: do we really want to maintain this feature?
28519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28520 ac_sed_extra="$ac_vpsub
28523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28525 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28526 s|@configure_input@|
$ac_sed_conf_input|
;t t
28527 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28528 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28529 s
&@srcdir@
&$ac_srcdir&;t t
28530 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28531 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28532 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28533 s
&@builddir@
&$ac_builddir&;t t
28534 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28535 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28536 s
&@INSTALL@
&$ac_INSTALL&;t t
28537 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28538 $ac_datarootdir_hack
28540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28541 if $ac_cs_awk_getline; then
28542 $AWK -f "$tmp/subs.
awk"
28544 $AWK -f "$tmp/subs.
awk" | $SHELL
28546 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28552 which seems to be undefined. Please make sure it is defined." >&5
28553 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28554 which seems to be undefined. Please make sure it is defined." >&2;}
28558 -) cat "$tmp/out" && rm -f "$tmp/out";;
28559 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28561 || as_fn_error "could not create $ac_file" "$LINENO" 5
28567 if test x"$ac_file" != x-; then
28569 $as_echo "/* $configure_input */" \
28570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28571 } >"$tmp/config.h" \
28572 || as_fn_error "could not create $ac_file" "$LINENO" 5
28573 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28575 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28578 mv "$tmp/config.h" "$ac_file" \
28579 || as_fn_error "could not create $ac_file" "$LINENO" 5
28582 $as_echo "/* $configure_input */" \
28583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28584 || as_fn_error "could not create -" "$LINENO" 5
28586 # Compute "$ac_file"'s index
in $config_headers.
28589 for _am_header
in $config_headers :; do
28590 case $_am_header in
28591 $_am_arg |
$_am_arg:* )
28594 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28597 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28598 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28599 X"$_am_arg" : 'X\(//\)[^/]' \| \
28600 X"$_am_arg" : 'X\(//\)$' \| \
28601 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28602 $as_echo X"$_am_arg" |
28603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28607 /^X\(\/\/\)[^/].*/{
28619 s/.*/./; q'`/stamp-h
$_am_stamp_count
28622 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28623 $as_echo "$as_me: executing $ac_file commands" >&6;}
28628 case $ac_file$ac_mode in
28629 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28630 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28631 # are listed without --file. Let's play safe and only enable the eval
28632 # if we detect the quoting.
28633 case $CONFIG_FILES in
28634 *\'*) eval set x
"$CONFIG_FILES" ;;
28635 *) set x
$CONFIG_FILES ;;
28640 # Strip MF so we end up with the name of the file.
28641 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28642 # Check whether this is an Automake generated Makefile or not.
28643 # We used to match only the files named `Makefile.in', but
28644 # some people rename them; so instead we look at the file content.
28645 # Grep'ing the first line is not enough: some people post-process
28646 # each Makefile.in and add a new line on top of each file to say so.
28647 # Grep'ing the whole file is not good either: AIX grep has a line
28648 # limit of 2048, but all sed's we know have understand at least 4000.
28649 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28650 dirpart
=`$as_dirname -- "$mf" ||
28651 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28652 X"$mf" : 'X\(//\)[^/]' \| \
28653 X"$mf" : 'X\(//\)$' \| \
28654 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28660 /^X\(\/\/\)[^/].*/{
28676 # Extract the definition of DEPDIR, am__include, and am__quote
28677 # from the Makefile without running `make'.
28678 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28679 test -z "$DEPDIR" && continue
28680 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28681 test -z "am__include" && continue
28682 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28683 # When using ansi2knr, U may be empty or an underscore; expand it
28684 U
=`sed -n 's/^U = //p' < "$mf"`
28685 # Find all dependency output files, they are included files with
28686 # $(DEPDIR) in their names. We invoke sed twice because it is the
28687 # simplest approach to changing $(DEPDIR) to its actual value in the
28689 for file in `sed -n "
28690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28692 # Make sure the directory exists.
28693 test -f "$dirpart/$file" && continue
28694 fdir
=`$as_dirname -- "$file" ||
28695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28696 X"$file" : 'X\(//\)[^/]' \| \
28697 X"$file" : 'X\(//\)$' \| \
28698 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28699 $as_echo X"$file" |
28700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28704 /^X\(\/\/\)[^/].*/{
28717 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28718 # echo "creating $dirpart/$file"
28719 echo '# dummy' > "$dirpart/$file"
28725 for dir
in etc lisp
; do
28726 test -d ${dir} || mkdir
${dir}
28730 echo creating src
/epaths.h
28731 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
28734 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
28735 echo creating src
/.gdbinit
28736 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
28746 ac_clean_files
=$ac_clean_files_save
28748 test $ac_write_fail = 0 ||
28749 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28752 # configure is writing to config.log, and then calls config.status.
28753 # config.status does its own redirection, appending to config.log.
28754 # Unfortunately, on DOS this fails, as config.log is still kept open
28755 # by configure, so config.status won't be able to write to it; its
28756 # output is simply discarded. So we exec the FD to /dev/null,
28757 # effectively closing config.log, so it can be properly (re)opened and
28758 # appended to by config.status. When coming back to configure, we
28759 # need to make the FD available again.
28760 if test "$no_create" != yes; then
28762 ac_config_status_args
=
28763 test "$silent" = yes &&
28764 ac_config_status_args
="$ac_config_status_args --quiet"
28766 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28768 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28769 # would make configure fail if this is the last instruction.
28770 $ac_cs_success || as_fn_exit $?
28772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}