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
612 LD_SWITCH_SYSTEM_TEMACS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
687 REPLACE_OBSTACK_PRINTF
712 HAVE_DECL_OBSTACK_PRINTF
718 GNULIB_VSPRINTF_POSIX
722 GNULIB_VFPRINTF_POSIX
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
796 REPLACE_PTHREAD_SIGMASK
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
805 HAVE_POSIX_SIGNALBLOCKING
808 GNULIB_SIGNAL_H_SIGPIPE
810 GNULIB_PTHREAD_SIGMASK
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
826 HAVE_DECL_LOCALTIME_R
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
922 GL_GENERATE_STDINT_H_FALSE
923 GL_GENERATE_STDINT_H_TRUE
932 HAVE_SIGNED_SIG_ATOMIC_T
935 BITSIZEOF_SIG_ATOMIC_T
938 APPLE_UNIVERSAL_BUILD
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
947 HAVE_UNSIGNED_LONG_LONG_INT
950 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
952 REPLACE_STRUCT_TIMEVAL
958 GNULIB_GL_UNISTD_H_GETOPT
961 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
977 REPLACE_CANONICALIZE_FILE_NAME
982 HAVE_STRUCT_RANDOM_DATA
1004 HAVE_DECL_GETLOADAVG
1005 HAVE_CANONICALIZE_FILE_NAME
1016 GNULIB_SECURE_GETENV
1019 GNULIB_REALLOC_POSIX
1036 GNULIB_CANONICALIZE_FILE_NAME
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1085 GL_GENERATE_EXECINFO_H_FALSE
1086 GL_GENERATE_EXECINFO_H_TRUE
1095 GL_GENERATE_ERRNO_H_FALSE
1096 GL_GENERATE_ERRNO_H_TRUE
1098 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1101 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1104 PRAGMA_SYSTEM_HEADER
1105 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1128 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1129 UNISTD_H_HAVE_WINSOCK2_H
1150 REPLACE_GETDOMAINNAME
1161 HAVE_DECL_SETHOSTNAME
1162 HAVE_DECL_GETUSERSHELL
1163 HAVE_DECL_GETPAGESIZE
1164 HAVE_DECL_GETLOGIN_R
1165 HAVE_DECL_GETDOMAINNAME
1204 GNULIB_UNISTD_H_SIGPIPE
1205 GNULIB_UNISTD_H_NONBLOCKING
1231 GNULIB_GETDTABLESIZE
1232 GNULIB_GETDOMAINNAME
1249 GL_GENERATE_ALLOCA_H_FALSE
1250 GL_GENERATE_ALLOCA_H_TRUE
1253 GL_COND_LIBTOOL_FALSE
1254 GL_COND_LIBTOOL_TRUE
1286 x_default_search_path
1383 INSTALL_ARCH_INDEP_EXTRA
1385 LD_SWITCH_X_SITE_RPATH
1418 BUILDING_FOR_WINDOWSNT_FALSE
1419 BUILDING_FOR_WINDOWSNT_TRUE
1455 INSTALL_STRIP_PROGRAM
1497 program_transform_name
1508 ac_subst_files
='deps_frag
1511 enable_option_checking
1534 with_toolkit_scroll_bars
1546 with_file_notification
1549 with_pkg_config_prog
1552 enable_ns_self_contained
1553 enable_locallisppath
1555 enable_check_lisp_object_type
1558 enable_gtk_deprecation_warnings
1559 enable_dependency_tracking
1562 enable_link_time_optimization
1566 ac_precious_vars
='build_alias
1578 # Initialize some variables set by options.
1580 ac_init_version
=false
1581 ac_unrecognized_opts
=
1582 ac_unrecognized_sep
=
1583 # The variables have the same names as the options, with
1584 # dashes changed to underlines.
1585 cache_file
=/dev
/null
1592 program_transform_name
=s
,x
,x
,
1600 # Installation directory options.
1601 # These are left unexpanded so users can "make install exec_prefix=/foo"
1602 # and all the variables that are supposed to be based on exec_prefix
1603 # by default will actually change.
1604 # Use braces instead of parens because sh, perl, etc. also accept them.
1605 # (The list follows the same order as the GNU Coding Standards.)
1606 bindir
='${exec_prefix}/bin'
1607 sbindir
='${exec_prefix}/sbin'
1608 libexecdir
='${exec_prefix}/libexec'
1609 datarootdir
='${prefix}/share'
1610 datadir
='${datarootdir}'
1611 sysconfdir
='${prefix}/etc'
1612 sharedstatedir
='${prefix}/com'
1613 localstatedir
='${prefix}/var'
1614 includedir
='${prefix}/include'
1615 oldincludedir
='/usr/include'
1616 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1617 infodir
='${datarootdir}/info'
1622 libdir
='${exec_prefix}/lib'
1623 localedir
='${datarootdir}/locale'
1624 mandir
='${datarootdir}/man'
1630 # If the previous option needs an argument, assign it.
1631 if test -n "$ac_prev"; then
1632 eval $ac_prev=\
$ac_option
1638 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1642 # Accept the important Cygnus configure options, so we can diagnose typos.
1644 case $ac_dashdash$ac_option in
1648 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1650 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1651 bindir
=$ac_optarg ;;
1653 -build |
--build |
--buil |
--bui |
--bu)
1654 ac_prev
=build_alias
;;
1655 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1656 build_alias
=$ac_optarg ;;
1658 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1659 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1660 ac_prev
=cache_file
;;
1661 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1662 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1663 cache_file
=$ac_optarg ;;
1665 --config-cache |
-C)
1666 cache_file
=config.cache
;;
1668 -datadir |
--datadir |
--datadi |
--datad)
1670 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1671 datadir
=$ac_optarg ;;
1673 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1674 |
--dataroo |
--dataro |
--datar)
1675 ac_prev
=datarootdir
;;
1676 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1677 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1678 datarootdir
=$ac_optarg ;;
1680 -disable-* |
--disable-*)
1681 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1684 as_fn_error
"invalid feature name: $ac_useropt"
1685 ac_useropt_orig
=$ac_useropt
1686 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1689 "enable_
$ac_useropt"
1691 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1692 ac_unrecognized_sep
=', ';;
1694 eval enable_
$ac_useropt=no
;;
1696 -docdir |
--docdir |
--docdi |
--doc |
--do)
1698 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1699 docdir
=$ac_optarg ;;
1701 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1703 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1704 dvidir
=$ac_optarg ;;
1706 -enable-* |
--enable-*)
1707 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1708 # Reject names that are not valid shell variable names.
1709 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1710 as_fn_error
"invalid feature name: $ac_useropt"
1711 ac_useropt_orig
=$ac_useropt
1712 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1713 case $ac_user_opts in
1715 "enable_
$ac_useropt"
1717 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1718 ac_unrecognized_sep
=', ';;
1720 eval enable_
$ac_useropt=\
$ac_optarg ;;
1722 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1723 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1724 |
--exec |
--exe |
--ex)
1725 ac_prev
=exec_prefix
;;
1726 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1727 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1728 |
--exec=* |
--exe=* |
--ex=*)
1729 exec_prefix
=$ac_optarg ;;
1731 -gas |
--gas |
--ga |
--g)
1732 # Obsolete; use --with-gas.
1735 -help |
--help |
--hel |
--he |
-h)
1736 ac_init_help
=long
;;
1737 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1738 ac_init_help
=recursive
;;
1739 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1740 ac_init_help
=short
;;
1742 -host |
--host |
--hos |
--ho)
1743 ac_prev
=host_alias
;;
1744 -host=* |
--host=* |
--hos=* |
--ho=*)
1745 host_alias
=$ac_optarg ;;
1747 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1749 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1751 htmldir
=$ac_optarg ;;
1753 -includedir |
--includedir |
--includedi |
--included |
--include \
1754 |
--includ |
--inclu |
--incl |
--inc)
1755 ac_prev
=includedir
;;
1756 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1757 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1758 includedir
=$ac_optarg ;;
1760 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1762 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1763 infodir
=$ac_optarg ;;
1765 -libdir |
--libdir |
--libdi |
--libd)
1767 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1768 libdir
=$ac_optarg ;;
1770 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1771 |
--libexe |
--libex |
--libe)
1772 ac_prev
=libexecdir
;;
1773 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1774 |
--libexe=* |
--libex=* |
--libe=*)
1775 libexecdir
=$ac_optarg ;;
1777 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1778 ac_prev
=localedir
;;
1779 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1780 localedir
=$ac_optarg ;;
1782 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1783 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1784 ac_prev
=localstatedir
;;
1785 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1786 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1787 localstatedir
=$ac_optarg ;;
1789 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1791 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1792 mandir
=$ac_optarg ;;
1794 -nfp |
--nfp |
--nf)
1795 # Obsolete; use --without-fp.
1798 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1799 |
--no-cr |
--no-c |
-n)
1802 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1803 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1806 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1807 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1808 |
--oldin |
--oldi |
--old |
--ol |
--o)
1809 ac_prev
=oldincludedir
;;
1810 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1811 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1812 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1813 oldincludedir
=$ac_optarg ;;
1815 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1817 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1818 prefix
=$ac_optarg ;;
1820 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1821 |
--program-pre |
--program-pr |
--program-p)
1822 ac_prev
=program_prefix
;;
1823 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1824 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1825 program_prefix
=$ac_optarg ;;
1827 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1828 |
--program-suf |
--program-su |
--program-s)
1829 ac_prev
=program_suffix
;;
1830 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1831 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1832 program_suffix
=$ac_optarg ;;
1834 -program-transform-name |
--program-transform-name \
1835 |
--program-transform-nam |
--program-transform-na \
1836 |
--program-transform-n |
--program-transform- \
1837 |
--program-transform |
--program-transfor \
1838 |
--program-transfo |
--program-transf \
1839 |
--program-trans |
--program-tran \
1840 |
--progr-tra |
--program-tr |
--program-t)
1841 ac_prev
=program_transform_name
;;
1842 -program-transform-name=* |
--program-transform-name=* \
1843 |
--program-transform-nam=* |
--program-transform-na=* \
1844 |
--program-transform-n=* |
--program-transform-=* \
1845 |
--program-transform=* |
--program-transfor=* \
1846 |
--program-transfo=* |
--program-transf=* \
1847 |
--program-trans=* |
--program-tran=* \
1848 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1849 program_transform_name
=$ac_optarg ;;
1851 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1853 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1854 pdfdir
=$ac_optarg ;;
1856 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1858 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1861 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1862 |
-silent |
--silent |
--silen |
--sile |
--sil)
1865 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1867 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1869 sbindir
=$ac_optarg ;;
1871 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1872 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1873 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1875 ac_prev
=sharedstatedir
;;
1876 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1877 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1878 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1880 sharedstatedir
=$ac_optarg ;;
1882 -site |
--site |
--sit)
1884 -site=* |
--site=* |
--sit=*)
1887 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1889 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1890 srcdir
=$ac_optarg ;;
1892 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1893 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1894 ac_prev
=sysconfdir
;;
1895 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1896 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1897 sysconfdir
=$ac_optarg ;;
1899 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1900 ac_prev
=target_alias
;;
1901 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1902 target_alias
=$ac_optarg ;;
1904 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1907 -version |
--version |
--versio |
--versi |
--vers |
-V)
1908 ac_init_version
=: ;;
1911 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1912 # Reject names that are not valid shell variable names.
1913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1914 as_fn_error
"invalid package name: $ac_useropt"
1915 ac_useropt_orig
=$ac_useropt
1916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1917 case $ac_user_opts in
1921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1922 ac_unrecognized_sep
=', ';;
1924 eval with_
$ac_useropt=\
$ac_optarg ;;
1926 -without-* |
--without-*)
1927 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1928 # Reject names that are not valid shell variable names.
1929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1930 as_fn_error
"invalid package name: $ac_useropt"
1931 ac_useropt_orig
=$ac_useropt
1932 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1933 case $ac_user_opts in
1937 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1938 ac_unrecognized_sep
=', ';;
1940 eval with_
$ac_useropt=no
;;
1943 # Obsolete; use --with-x.
1946 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1947 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1948 ac_prev
=x_includes
;;
1949 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1950 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1951 x_includes
=$ac_optarg ;;
1953 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1954 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1955 ac_prev
=x_libraries
;;
1956 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1957 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1958 x_libraries
=$ac_optarg ;;
1960 -*) as_fn_error
"unrecognized option: \`$ac_option'
1961 Try \`$0 --help' for more information."
1965 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1966 # Reject names that are not valid shell variable names.
1967 case $ac_envvar in #(
1968 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1969 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1971 eval $ac_envvar=\
$ac_optarg
1972 export $ac_envvar ;;
1975 # FIXME: should be removed in autoconf 3.0.
1976 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1977 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1978 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1979 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1985 if test -n "$ac_prev"; then
1986 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1987 as_fn_error
"missing argument to $ac_option"
1990 if test -n "$ac_unrecognized_opts"; then
1991 case $enable_option_checking in
1993 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1994 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1998 # Check all directory arguments for consistency.
1999 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2000 datadir sysconfdir sharedstatedir localstatedir includedir \
2001 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2002 libdir localedir mandir
2004 eval ac_val
=\$
$ac_var
2005 # Remove trailing slashes.
2008 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2009 eval $ac_var=\
$ac_val;;
2011 # Be sure to have absolute directory names.
2013 [\\/$
]* | ?
:[\\/]* ) continue;;
2014 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2016 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2019 # There might be people who depend on the old broken behavior: `$host'
2020 # used to hold the argument of --host etc.
2021 # FIXME: To remove some day.
2024 target
=$target_alias
2026 # FIXME: To remove some day.
2027 if test "x$host_alias" != x
; then
2028 if test "x$build_alias" = x
; then
2029 cross_compiling
=maybe
2030 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2031 If a cross compiler is detected then cross compile mode will be used." >&2
2032 elif test "x$build_alias" != "x$host_alias"; then
2038 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2040 test "$silent" = yes && exec 6>/dev
/null
2043 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2044 ac_ls_di
=`ls -di .` &&
2045 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2046 as_fn_error
"working directory cannot be determined"
2047 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2048 as_fn_error
"pwd does not report name of working directory"
2051 # Find the source files, if location was not specified.
2052 if test -z "$srcdir"; then
2053 ac_srcdir_defaulted
=yes
2054 # Try the directory containing this script, then the parent directory.
2055 ac_confdir
=`$as_dirname -- "$as_myself" ||
2056 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2057 X"$as_myself" : 'X\(//\)[^/]' \| \
2058 X"$as_myself" : 'X\(//\)$' \| \
2059 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2060 $as_echo X"$as_myself" |
2061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2079 if test ! -r "$srcdir/$ac_unique_file"; then
2083 ac_srcdir_defaulted
=no
2085 if test ! -r "$srcdir/$ac_unique_file"; then
2086 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2087 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2089 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2091 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2093 # When building in place, set srcdir=.
2094 if test "$ac_abs_confdir" = "$ac_pwd"; then
2097 # Remove unnecessary trailing slashes from srcdir.
2098 # Double slashes in file names in object file debugging info
2099 # mess up M-x gdb in Emacs.
2101 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2103 for ac_var
in $ac_precious_vars; do
2104 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2105 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2106 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2107 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2111 # Report the --help message.
2113 if test "$ac_init_help" = "long"; then
2114 # Omit some internal or obsolete options to make the list less imposing.
2115 # This message is too long to be a string in the A/UX 3.1 sh.
2117 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2119 Usage: $0 [OPTION]... [VAR=VALUE]...
2121 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2122 VAR=VALUE. See below for descriptions of some of the useful variables.
2124 Defaults for the options are specified in brackets.
2127 -h, --help display this help and exit
2128 --help=short display options specific to this package
2129 --help=recursive display the short help of all the included packages
2130 -V, --version display version information and exit
2131 -q, --quiet, --silent do not print \`checking...' messages
2132 --cache-file=FILE cache test results in FILE [disabled]
2133 -C, --config-cache alias for \`--cache-file=config.cache'
2134 -n, --no-create do not create output files
2135 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2137 Installation directories:
2138 --prefix=PREFIX install architecture-independent files in PREFIX
2139 [$ac_default_prefix]
2140 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2143 By default, \`make install' will install all the files in
2144 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2145 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2146 for instance \`--prefix=\$HOME'.
2148 For better control, use the options below.
2150 Fine tuning of the installation directories:
2151 --bindir=DIR user executables [EPREFIX/bin]
2152 --sbindir=DIR system admin executables [EPREFIX/sbin]
2153 --libexecdir=DIR program executables [EPREFIX/libexec]
2154 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2155 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2156 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2157 --libdir=DIR object code libraries [EPREFIX/lib]
2158 --includedir=DIR C header files [PREFIX/include]
2159 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2160 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2161 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2162 --infodir=DIR info documentation [DATAROOTDIR/info]
2163 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2164 --mandir=DIR man documentation [DATAROOTDIR/man]
2165 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2166 --htmldir=DIR html documentation [DOCDIR]
2167 --dvidir=DIR dvi documentation [DOCDIR]
2168 --pdfdir=DIR pdf documentation [DOCDIR]
2169 --psdir=DIR ps documentation [DOCDIR]
2175 --program-prefix=PREFIX prepend PREFIX to installed program names
2176 --program-suffix=SUFFIX append SUFFIX to installed program names
2177 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2180 --x-includes=DIR X include files are
in DIR
2181 --x-libraries=DIR X library files are
in DIR
2184 --build=BUILD configure
for building on BUILD
[guessed
]
2185 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2189 if test -n "$ac_init_help"; then
2190 case $ac_init_help in
2191 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2196 --disable-option-checking ignore unrecognized
--enable/--with options
2197 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2198 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2199 --disable-ns-self-contained
2200 disable self contained build under NeXTstep
2201 --enable-locallisppath=PATH
2202 directories Emacs should search
for lisp files
2203 specific to this site
2204 --enable-checking[=LIST
]
2205 enable expensive run-time checks. With LIST
, enable
2206 only specific categories of checks. Categories are
:
2207 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2208 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2209 --enable-check-lisp-object-type
2210 enable compile
time checks
for the Lisp_Object data
2211 type. This is useful
for development
for catching
2212 certain types of bugs.
2213 --enable-profiling build emacs with low-level
, gprof profiling support.
2214 Mainly useful
for debugging Emacs itself. May not
2215 work on all platforms. Stops profiler.el working.
2216 --enable-autodepend automatically generate dependencies to .h-files.
2217 Requires GNU Make and Gcc. Enabled
if GNU Make and
2219 --enable-gtk-deprecation-warnings
2220 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2221 --disable-dependency-tracking speeds up one-time build
2222 --enable-dependency-tracking do not reject slow dependency extractors
2223 --disable-largefile omit support
for large files
2224 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2225 intended
for developers
, and may generate false
2226 alarms when used with older or non-GNU development
2228 --enable-link-time-optimization
2229 build emacs with link-time optimization. This is
2230 supported only
for GCC since
4.5.0.
2231 --disable-acl do not support ACLs
2234 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2235 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2236 --without-all omit almost all features and build small executable
2237 with minimal dependencies
2238 --without-pop don
't support POP mail retrieval with movemail
2239 --with-kerberos support Kerberos-authenticated POP
2240 --with-kerberos5 support Kerberos version 5 authenticated POP
2241 --with-hesiod support Hesiod to get the POP server host
2242 --with-mmdf support MMDF mailboxes
2243 --with-mail-unlink unlink, rather than empty, mail spool after reading
2244 --with-mailhost=HOSTNAME
2245 string giving default POP mail host
2246 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2247 oss, bsd-ossaudio, no; default yes). Only for
2248 GNU/Linux, FreeBSD, NetBSD, MinGW.
2249 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2250 gtk3, lucid or athena, motif, no)
2251 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2252 --without-xpm don't compile with XPM image support
2253 --without-jpeg don
't compile with JPEG image support
2254 --without-tiff don't compile with TIFF image support
2255 --without-gif don
't compile with GIF image support
2256 --without-png don't compile with PNG image support
2257 --without-rsvg don
't compile with SVG image support
2258 --without-xml2 don't compile with XML parsing support
2259 --without-imagemagick don
't compile with ImageMagick image support
2260 --without-xft don't use XFT
for anti aliased fonts
2261 --without-libotf don
't use libotf for OpenType font support
2262 --without-m17n-flt don't use m17n-flt
for text shaping
2263 --without-toolkit-scroll-bars
2264 don
't use Motif or Xaw3d scroll bars
2265 --without-xaw3d don't use Xaw3d
2266 --without-xim don
't use X11 XIM
2267 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2268 --with-w32 use native MS Windows GUI in a Cygwin build
2269 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
2271 --without-dbus don
't compile with D-Bus support
2272 --without-gconf don't compile with GConf support
2273 --without-gsettings don
't compile with GSettings support
2274 --without-selinux don't compile with SELinux support
2275 --without-gnutls don
't use -lgnutls for SSL/TLS support
2276 --without-zlib don't compile with zlib decompression support
2277 --with-file-notification=LIB
2278 use a
file notification library
(LIB one of
: yes,
2279 gfile
, inotify
, w32
, no
)
2280 --without-makeinfo don
't require makeinfo for building manuals
2281 --without-compress-info don't
compress the installed Info pages
2282 --with-pkg-config-prog=FILENAME
2283 file name of pkg-config
for finding GTK and librsvg
2284 --with-gameuser=USER user
for shared game score files
2285 --with-gnustep-conf=FILENAME
2286 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2287 or
/etc
/GNUstep
/GNUstep.conf
2288 --with-x use the X Window System
2290 Some influential environment variables
:
2291 CC C compiler
command
2292 CFLAGS C compiler flags
2293 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2294 nonstandard directory
<lib dir
>
2295 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2296 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2297 you have headers
in a nonstandard directory
<include dir
>
2299 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2301 Use these variables to override the choices made by
`configure' or to help
2302 it to find libraries and programs with nonstandard names/locations.
2304 Report bugs to the package provider.
2309 if test "$ac_init_help" = "recursive"; then
2310 # If there are subdirs, report their specific --help.
2311 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2312 test -d "$ac_dir" ||
2313 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2320 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2321 # A ".." for each directory in $ac_dir_suffix.
2322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2323 case $ac_top_builddir_sub in
2324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2328 ac_abs_top_builddir=$ac_pwd
2329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2330 # for backward compatibility:
2331 ac_top_builddir=$ac_top_build_prefix
2334 .) # We are building in place.
2336 ac_top_srcdir=$ac_top_builddir_sub
2337 ac_abs_top_srcdir=$ac_pwd ;;
2338 [\\/]* | ?:[\\/]* ) # Absolute name.
2339 ac_srcdir=$srcdir$ac_dir_suffix;
2340 ac_top_srcdir=$srcdir
2341 ac_abs_top_srcdir=$srcdir ;;
2343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2344 ac_top_srcdir=$ac_top_build_prefix$srcdir
2345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2349 cd "$ac_dir" || { ac_status=$?; continue; }
2350 # Check for guested configure.
2351 if test -f "$ac_srcdir/configure.gnu"; then
2353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2354 elif test -f "$ac_srcdir/configure"; then
2356 $SHELL "$ac_srcdir/configure" --help=recursive
2358 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2360 cd "$ac_pwd" || { ac_status=$?; break; }
2364 test -n "$ac_init_help" && exit $ac_status
2365 if $ac_init_version; then
2367 emacs configure 24.3.50
2368 generated by GNU Autoconf 2.65
2370 Copyright (C) 2009 Free Software Foundation, Inc.
2371 This configure script is free software; the Free Software Foundation
2372 gives unlimited permission to copy, distribute and modify it.
2377 ## ------------------------ ##
2378 ## Autoconf initialization. ##
2379 ## ------------------------ ##
2381 # ac_fn_c_try_compile LINENO
2382 # --------------------------
2383 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2384 ac_fn_c_try_compile ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 rm -f conftest.$ac_objext
2388 if { { ac_try="$ac_compile"
2390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2391 *) ac_try_echo
=$ac_try;;
2393 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_compile") 2>conftest.err
2397 if test -s conftest.err
; then
2398 grep -v '^ *+' conftest.err
>conftest.er1
2399 cat conftest.er1
>&5
2400 mv -f conftest.er1 conftest.err
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } && {
2404 test -z "$ac_c_werror_flag" ||
2405 test ! -s conftest.err
2406 } && test -s conftest.
$ac_objext; then :
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.
$ac_ext >&5
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2415 as_fn_set_status
$ac_retval
2417 } # ac_fn_c_try_compile
2419 # ac_fn_c_try_cpp LINENO
2420 # ----------------------
2421 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2424 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2425 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2431 $as_echo "$ac_try_echo"; } >&5
2432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2434 if test -s conftest.err; then
2435 grep -v '^ *+' conftest.err >conftest.er1
2436 cat conftest.er1 >&5
2437 mv -f conftest.er1 conftest.err
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; } >/dev/null && {
2441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2442 test ! -s conftest.err
2446 $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 as_fn_set_status $ac_retval
2456 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2457 # -------------------------------------------------------
2458 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2459 # the include files in INCLUDES and setting the cache variable VAR
2461 ac_fn_c_check_header_mongrel ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468 $as_echo_n "(cached) " >&6
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2474 # Is the header compilable?
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2476 $as_echo_n "checking $2 usability... " >&6; }
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_header_compiler=yes
2485 ac_header_compiler=no
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2489 $as_echo "$ac_header_compiler" >&6; }
2491 # Is the header present?
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2493 $as_echo_n "checking $2 presence... " >&6; }
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2498 if ac_fn_c_try_cpp "$LINENO"; then :
2499 ac_header_preproc=yes
2501 ac_header_preproc=no
2503 rm -f conftest.err conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2505 $as_echo "$ac_header_preproc" >&6; }
2507 # So? What about this header?
2508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2511 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2513 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2517 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2519 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2521 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2523 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2533 eval "$3=\$ac_header_compiler"
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_c_check_header_mongrel
2543 # ac_fn_c_try_run LINENO
2544 # ----------------------
2545 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2546 # that executables *can* be run.
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 if { { ac_try="$ac_link"
2552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2553 *) ac_try_echo
=$ac_try;;
2555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_link") 2>&5
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2561 { { case "(($ac_try" in
2562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566 $as_echo "$ac_try_echo"; } >&5
2567 (eval "$ac_try") 2>&5
2569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2570 test $ac_status = 0; }; }; then :
2573 $as_echo "$as_me: program exited with status $ac_status" >&5
2574 $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 ac_retval=$ac_status
2579 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 as_fn_set_status $ac_retval
2585 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists and can be compiled using the include files in
2588 # INCLUDES, setting the cache variable VAR accordingly.
2589 ac_fn_c_check_header_compile ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2602 if ac_fn_c_try_compile "$LINENO"; then :
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_c_check_header_compile
2616 # ac_fn_c_try_link LINENO
2617 # -----------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { { ac_try="$ac_link"
2625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2626 *) ac_try_echo
=$ac_try;;
2628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>conftest.err
2632 if test -s conftest.err
; then
2633 grep -v '^ *+' conftest.err
>conftest.er1
2634 cat conftest.er1
>&5
2635 mv -f conftest.er1 conftest.err
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && {
2639 test -z "$ac_c_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest
$ac_exeext && {
2642 test "$cross_compiling" = yes ||
2643 $as_test_x conftest
$ac_exeext
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.
$ac_ext >&5
2652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654 # interfere with the next link command; also delete a directory that is
2655 # left behind by Apple's compiler. We do this before executing the actions.
2656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2658 as_fn_set_status
$ac_retval
2660 } # ac_fn_c_try_link
2662 # ac_fn_c_check_decl LINENO SYMBOL VAR
2663 # ------------------------------------
2664 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2665 ac_fn_c_check_decl
()
2667 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2669 $as_echo_n "checking whether $2 is declared... " >&6; }
2670 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2671 $as_echo_n "(cached) " >&6
2673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2687 if ac_fn_c_try_compile
"$LINENO"; then :
2692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2699 } # ac_fn_c_check_decl
2701 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2702 # ----------------------------------------------
2703 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2704 ac_fn_c_check_header_preproc
()
2706 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2716 if ac_fn_c_try_cpp
"$LINENO"; then :
2721 rm -f conftest.err conftest.
$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2728 } # ac_fn_c_check_header_preproc
2730 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2731 # ----------------------------------------------------
2732 # Tries to find if the field MEMBER exists in type AGGR, after including
2733 # INCLUDES, setting cache variable VAR accordingly.
2734 ac_fn_c_check_member
()
2736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2738 $as_echo_n "checking for $2.$3... " >&6; }
2739 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2740 $as_echo_n "(cached) " >&6
2742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2755 if ac_fn_c_try_compile
"$LINENO"; then :
2758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2765 if (sizeof ac_aggr.$3)
2771 if ac_fn_c_try_compile
"$LINENO"; then :
2776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2782 $as_echo "$ac_res" >&6; }
2783 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2785 } # ac_fn_c_check_member
2787 # ac_fn_c_check_func LINENO FUNC VAR
2788 # ----------------------------------
2789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2790 ac_fn_c_check_func
()
2792 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2794 $as_echo_n "checking for $2... " >&6; }
2795 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2796 $as_echo_n "(cached) " >&6
2798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2802 #define $2 innocuous_$2
2804 /* System header to define __stub macros and hopefully few prototypes,
2805 which can conflict with char $2 (); below.
2806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2807 <limits.h> exists even on freestanding compilers. */
2810 # include <limits.h>
2812 # include <assert.h>
2817 /* Override any GCC internal prototype to avoid an error.
2818 Use char because int might match the return type of a GCC
2819 builtin and then its argument prototype would still apply. */
2824 /* The GNU C library defines this for functions which it implements
2825 to always fail with ENOSYS. Some functions are actually named
2826 something starting with __ and the normal name is an alias. */
2827 #if defined __stub_$2 || defined __stub___$2
2839 if ac_fn_c_try_link
"$LINENO"; then :
2844 rm -f core conftest.err conftest.
$ac_objext \
2845 conftest
$ac_exeext conftest.
$ac_ext
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2849 $as_echo "$ac_res" >&6; }
2850 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2852 } # ac_fn_c_check_func
2854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2855 # -------------------------------------------
2856 # Tests whether TYPE exists after having included INCLUDES, setting cache
2857 # variable VAR accordingly.
2858 ac_fn_c_check_type
()
2860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2879 if ac_fn_c_try_compile
"$LINENO"; then :
2880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2892 if ac_fn_c_try_compile
"$LINENO"; then :
2897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2903 $as_echo "$ac_res" >&6; }
2904 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2906 } # ac_fn_c_check_type
2908 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2909 # --------------------------------------------
2910 # Tries to find the compile-time value of EXPR in a program that includes
2911 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2913 ac_fn_c_compute_int
()
2915 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2916 if test "$cross_compiling" = yes; then
2917 # Depending upon the size, compute the lo and hi bounds.
2918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2924 static int test_array [1 - 2 * !(($2) >= 0)];
2931 if ac_fn_c_try_compile
"$LINENO"; then :
2934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2947 if ac_fn_c_try_compile
"$LINENO"; then :
2948 ac_hi
=$ac_mid; break
2950 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2951 if test $ac_lo -le $ac_mid; then
2955 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2966 static int test_array [1 - 2 * !(($2) < 0)];
2973 if ac_fn_c_try_compile
"$LINENO"; then :
2976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2982 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2989 if ac_fn_c_try_compile
"$LINENO"; then :
2990 ac_lo
=$ac_mid; break
2992 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2993 if test $ac_mid -le $ac_hi; then
2997 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3007 # Binary search between lo and hi bounds.
3008 while test "x$ac_lo" != "x$ac_hi"; do
3009 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3023 if ac_fn_c_try_compile
"$LINENO"; then :
3026 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3031 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3038 static long int longval () { return $2; }
3039 static unsigned long int ulongval () { return $2; }
3046 FILE *f = fopen ("conftest.val", "w");
3051 long int i = longval ();
3054 fprintf (f, "%ld", i);
3058 unsigned long int i = ulongval ();
3061 fprintf (f, "%lu", i);
3063 /* Do not output a trailing newline, as this causes \r\n confusion
3064 on some platforms. */
3065 return ferror (f) || fclose (f) != 0;
3071 if ac_fn_c_try_run
"$LINENO"; then :
3072 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3081 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3082 as_fn_set_status
$ac_retval
3084 } # ac_fn_c_compute_int
3085 cat >config.log
<<_ACEOF
3086 This file contains any messages produced by compilers while
3087 running configure, to aid debugging if configure makes a mistake.
3089 It was created by emacs $as_me 24.3.50, which was
3090 generated by GNU Autoconf 2.65. Invocation command line was
3102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3109 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3111 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3112 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3114 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3115 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3116 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3117 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir
=.
3126 $as_echo "PATH: $as_dir"
3142 # Keep a trace of the command line.
3143 # Strip out --no-create and --no-recursion so they do not pile up.
3144 # Strip out --silent because we don't want to record it for future runs.
3145 # Also quote any args containing shell meta-characters.
3146 # Make two passes to allow for proper duplicate-argument suppression.
3150 ac_must_keep_next
=false
3156 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3157 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3158 |
-silent |
--silent |
--silen |
--sile |
--sil)
3161 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3164 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3166 as_fn_append ac_configure_args1
" '$ac_arg'"
3167 if test $ac_must_keep_next = true
; then
3168 ac_must_keep_next
=false
# Got value, back to normal.
3171 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3172 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3173 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3174 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3175 case "$ac_configure_args0 " in
3176 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3179 -* ) ac_must_keep_next
=true
;;
3182 as_fn_append ac_configure_args
" '$ac_arg'"
3187 { ac_configure_args0
=; unset ac_configure_args0
;}
3188 { ac_configure_args1
=; unset ac_configure_args1
;}
3190 # When interrupted or exit'd, cleanup temporary files, and complete
3191 # config.log. We remove comments because anyway the quotes in there
3192 # would cause problems or look ugly.
3193 # WARNING: Use '\'' to represent an apostrophe within the trap.
3194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3195 trap 'exit_status=$?
3196 # Save into config.log some information that might help in debugging.
3201 ## ---------------- ##
3202 ## Cache variables. ##
3203 ## ---------------- ##
3206 # The following way of writing the cache mishandles newlines in values,
3208 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3209 eval ac_val=\$$ac_var
3213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3217 _ | IFS | as_nl) ;; #(
3218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3219 *) { eval $ac_var=; unset $ac_var;} ;;
3224 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3225 *${as_nl}ac_space=\ *)
3227 "s/'\''/'\''\\\\'\'''\''/g;
3228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3239 ## ----------------- ##
3240 ## Output variables. ##
3241 ## ----------------- ##
3244 for ac_var in $ac_subst_vars
3246 eval ac_val=\$$ac_var
3248 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3250 $as_echo "$ac_var='\''$ac_val'\''"
3254 if test -n "$ac_subst_files"; then
3256 ## ------------------- ##
3257 ## File substitutions. ##
3258 ## ------------------- ##
3261 for ac_var
in $ac_subst_files
3263 eval ac_val
=\$
$ac_var
3265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3267 $as_echo "$ac_var='\''$ac_val'\''"
3272 if test -s confdefs.h; then
3282 test "$ac_signal" != 0 &&
3283 $as_echo "$as_me: caught signal $ac_signal"
3284 $as_echo "$as_me: exit $exit_status"
3286 rm -f core *.core core.conftest.* &&
3287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3290 for ac_signal
in 1 2 13 15; do
3291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3296 rm -f -r conftest
* confdefs.h
3298 $as_echo "/* confdefs.h */" > confdefs.h
3300 # Predefined preprocessor variables.
3302 cat >>confdefs.h
<<_ACEOF
3303 #define PACKAGE_NAME "$PACKAGE_NAME"
3306 cat >>confdefs.h
<<_ACEOF
3307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3310 cat >>confdefs.h
<<_ACEOF
3311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3314 cat >>confdefs.h
<<_ACEOF
3315 #define PACKAGE_STRING "$PACKAGE_STRING"
3318 cat >>confdefs.h
<<_ACEOF
3319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3322 cat >>confdefs.h
<<_ACEOF
3323 #define PACKAGE_URL "$PACKAGE_URL"
3327 # Let the site file select an alternate cache file if it wants to.
3328 # Prefer an explicitly selected file to automatically selected ones.
3331 if test -n "$CONFIG_SITE"; then
3332 ac_site_file1
=$CONFIG_SITE
3333 elif test "x$prefix" != xNONE
; then
3334 ac_site_file1
=$prefix/share
/config.site
3335 ac_site_file2
=$prefix/etc
/config.site
3337 ac_site_file1
=$ac_default_prefix/share
/config.site
3338 ac_site_file2
=$ac_default_prefix/etc
/config.site
3340 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3342 test "x$ac_site_file" = xNONE
&& continue
3343 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3346 sed 's/^/| /' "$ac_site_file" >&5
3351 if test -r "$cache_file"; then
3352 # Some versions of bash will fail to source /dev/null (special files
3353 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3354 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3356 $as_echo "$as_me: loading cache $cache_file" >&6;}
3358 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3359 *) .
"./$cache_file";;
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3364 $as_echo "$as_me: creating cache $cache_file" >&6;}
3368 as_fn_append ac_header_list
" sys/systeminfo.h"
3369 as_fn_append ac_header_list
" coff.h"
3370 as_fn_append ac_header_list
" pty.h"
3371 as_fn_append ac_header_list
" sys/resource.h"
3372 as_fn_append ac_header_list
" sys/utsname.h"
3373 as_fn_append ac_header_list
" pwd.h"
3374 as_fn_append ac_header_list
" utmp.h"
3375 as_fn_append ac_header_list
" util.h"
3376 as_fn_append ac_header_list
" sys/socket.h"
3377 as_fn_append ac_header_list
" stdlib.h"
3378 as_fn_append ac_header_list
" unistd.h"
3379 as_fn_append ac_header_list
" sys/param.h"
3380 as_fn_append ac_header_list
" pthread.h"
3381 as_fn_append ac_header_list
" malloc/malloc.h"
3382 as_fn_append ac_header_list
" maillock.h"
3383 as_fn_append ac_header_list
" sys/un.h"
3384 as_fn_append ac_func_list
" tzset"
3385 as_fn_append ac_func_list
" readlinkat"
3386 as_fn_append ac_header_list
" dirent.h"
3387 as_fn_append ac_header_list
" execinfo.h"
3388 as_fn_append ac_func_list
" faccessat"
3389 as_fn_append ac_func_list
" fcntl"
3390 as_fn_append ac_func_list
" fdopendir"
3391 as_fn_append ac_header_list
" stdio_ext.h"
3392 as_fn_append ac_func_list
" fstatat"
3393 as_fn_append ac_func_list
" fsync"
3394 gl_getopt_required
=GNU
3395 as_fn_append ac_header_list
" getopt.h"
3396 as_fn_append ac_func_list
" gettimeofday"
3397 as_fn_append ac_func_list
" nanotime"
3398 as_fn_append ac_header_list
" sys/time.h"
3399 as_fn_append ac_header_list
" wchar.h"
3400 as_fn_append ac_header_list
" stdint.h"
3401 as_fn_append ac_header_list
" inttypes.h"
3402 as_fn_append ac_func_list
" lstat"
3403 as_fn_append ac_func_list
" mkostemp"
3404 as_fn_append ac_func_list
" pipe2"
3405 as_fn_append ac_header_list
" sys/select.h"
3406 as_fn_append ac_func_list
" pselect"
3407 as_fn_append ac_func_list
" pthread_sigmask"
3408 as_fn_append ac_func_list
" readlink"
3409 as_fn_append ac_func_list
" strtoimax"
3410 as_fn_append ac_func_list
" strtoumax"
3411 as_fn_append ac_func_list
" symlink"
3412 as_fn_append ac_header_list
" sys/stat.h"
3413 as_fn_append ac_func_list
" localtime_r"
3414 as_fn_append ac_header_list
" utime.h"
3415 as_fn_append ac_func_list
" futimes"
3416 as_fn_append ac_func_list
" futimesat"
3417 as_fn_append ac_func_list
" futimens"
3418 as_fn_append ac_func_list
" utimensat"
3419 as_fn_append ac_func_list
" lutimes"
3420 as_fn_append ac_func_list
" getdtablesize"
3421 as_fn_append ac_func_list
" secure_getenv"
3422 # Check that the precious variables saved in the cache have kept the same
3424 ac_cache_corrupted
=false
3425 for ac_var
in $ac_precious_vars; do
3426 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3427 eval ac_new_set
=\
$ac_env_${ac_var}_set
3428 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3429 eval ac_new_val
=\
$ac_env_${ac_var}_value
3430 case $ac_old_set,$ac_new_set in
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3434 ac_cache_corrupted
=: ;;
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3438 ac_cache_corrupted
=: ;;
3441 if test "x$ac_old_val" != "x$ac_new_val"; then
3442 # differences in whitespace do not lead to failure.
3443 ac_old_val_w
=`echo x $ac_old_val`
3444 ac_new_val_w
=`echo x $ac_new_val`
3445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3448 ac_cache_corrupted
=:
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3452 eval $ac_var=\
$ac_old_val
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3460 # Pass precious variables to config.status.
3461 if test "$ac_new_set" = set; then
3463 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3464 *) ac_arg
=$ac_var=$ac_new_val ;;
3466 case " $ac_configure_args " in
3467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3468 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3472 if $ac_cache_corrupted; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3477 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3479 ## -------------------- ##
3480 ## Main body of script. ##
3481 ## -------------------- ##
3484 ac_cpp
='$CPP $CPPFLAGS'
3485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3491 emacs_config_options
=
3493 for opt
in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS
; do
3495 -n |
--no-create |
--no-recursion)
3497 CFLAGS | CPPFLAGS | LDFLAGS
)
3498 eval 'test "${'$opt'+set}" = set' ||
continue
3500 *" $opt="*) continue ;;
3502 eval opt
=$opt=\$
$opt ;;
3505 emacs_shell_specials
=$IFS\''"#$&()*;<>?[\\`{|~'
3507 *["$emacs_shell_specials"]*)
3510 emacs_quote_apostrophes
="s/'/'\\\\''/g"
3511 opt
=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3516 emacs_quote_for_c
='s/["\\]/\\&/g; $!s/$/\\n\\/'
3517 opt
=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3520 as_fn_append emacs_config_options
"$optsep$opt"
3524 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3528 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3529 for ac_t
in install-sh
install.sh shtool
; do
3530 if test -f "$ac_dir/$ac_t"; then
3532 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3537 if test -z "$ac_aux_dir"; then
3538 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3541 # These three variables are undocumented and unsupported,
3542 # and are intended to be withdrawn in a future Autoconf release.
3543 # They can cause serious problems if a builder's source tree is in a directory
3544 # whose full name contains unusual characters.
3545 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3546 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3547 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3550 am__api_version
='1.11'
3552 # Find a good install program. We prefer a C program (faster),
3553 # so one script is as good as another. But avoid the broken or
3554 # incompatible versions:
3555 # SysV /etc/install, /usr/sbin/install
3556 # SunOS /usr/etc/install
3557 # IRIX /sbin/install
3559 # AmigaOS /C/install, which installs bootblocks on floppy discs
3560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563 # OS/2's system install, which has a completely different semantic
3564 # ./install, which can be erroneously created by make from ./install.sh.
3565 # Reject install programs that cannot install multiple files.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3568 if test -z "$INSTALL"; then
3569 if test "${ac_cv_path_install+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir
=.
3577 # Account for people who put trailing slashes in PATH elements.
3578 case $as_dir/ in #((
3579 .
/ | .
// |
/[cC
]/* | \
3580 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3581 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3584 # OSF1 and SCO ODT 3.0 have their own names for install.
3585 # Don't use installbsd from OSF since it installs stuff as root
3587 for ac_prog
in ginstall scoinst
install; do
3588 for ac_exec_ext
in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3590 if test $ac_prog = install &&
3591 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3592 # AIX install. It has an incompatible calling convention.
3594 elif test $ac_prog = install &&
3595 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3596 # program-specific install script used by HP pwplus--don't use.
3599 rm -rf conftest.one conftest.two conftest.dir
3600 echo one
> conftest.one
3601 echo two
> conftest.two
3603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3604 test -s conftest.one
&& test -s conftest.two
&&
3605 test -s conftest.dir
/conftest.one
&&
3606 test -s conftest.dir
/conftest.two
3608 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3621 rm -rf conftest.one conftest.two conftest.dir
3624 if test "${ac_cv_path_install+set}" = set; then
3625 INSTALL
=$ac_cv_path_install
3627 # As a last resort, use the slow shell script. Don't cache a
3628 # value for INSTALL within a source directory, because that will
3629 # break other packages using the cache if that directory is
3630 # removed, or if the value is a relative name.
3631 INSTALL
=$ac_install_sh
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3635 $as_echo "$INSTALL" >&6; }
3637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3638 # It thinks the first close brace ends the variable substitution.
3639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3643 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3646 $as_echo_n "checking whether build environment is sane... " >&6; }
3649 echo timestamp
> conftest.
file
3650 # Reject unsafe characters in $srcdir or the absolute working directory
3651 # name. Accept space and tab only in the latter.
3655 *[\\\"\
#\$\&\'\`$am_lf]*)
3656 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3659 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3660 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3663 # Do `set' in a subshell so we don't clobber the current shell's
3664 # arguments. Must try -L first in case configure is actually a
3665 # symlink; some systems play weird games with the mod time of symlinks
3666 # (eg FreeBSD returns the mod time of the symlink's containing
3669 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3670 if test "$*" = "X"; then
3672 set X
`ls -t "$srcdir/configure" conftest.file`
3675 if test "$*" != "X $srcdir/configure conftest.file" \
3676 && test "$*" != "X conftest.file $srcdir/configure"; then
3678 # If neither matched, then we have a broken ls. This can happen
3679 # if, for instance, CONFIG_SHELL is bash and it inherits a
3680 # broken ls alias from the environment. This has actually
3681 # happened. Such a system could not be considered "sane".
3682 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3683 alias in your environment" "$LINENO" 5
3686 test "$2" = conftest.
file
3692 as_fn_error
"newly created file is older than distributed files!
3693 Check your system clock" "$LINENO" 5
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3696 $as_echo "yes" >&6; }
3697 test "$program_prefix" != NONE
&&
3698 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3699 # Use a double $ so make ignores it.
3700 test "$program_suffix" != NONE
&&
3701 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3702 # Double any \ or $.
3703 # By default was `s,x,x', remove it if useless.
3704 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3705 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3707 # expand $ac_aux_dir to an absolute path
3708 am_aux_dir
=`cd $ac_aux_dir && pwd`
3710 if test x
"${MISSING+set}" != xset
; then
3713 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3715 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3718 # Use eval to expand $SHELL
3719 if eval "$MISSING --run true"; then
3720 am_missing_run
="$MISSING --run "
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3724 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3727 if test x
"${install_sh}" != xset
; then
3730 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3732 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3736 # Installed binaries are usually stripped using `strip' when the user
3737 # run `make install-strip'. However `strip' might not be the right
3738 # tool to use in cross-compilation environments, therefore Automake
3739 # will honor the `STRIP' environment variable to overrule this program.
3740 if test "$cross_compiling" != no
; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3743 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_STRIP+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$STRIP"; then
3750 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_exec_ext
in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 STRIP
=$ac_cv_prog_STRIP
3770 if test -n "$STRIP"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3772 $as_echo "$STRIP" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3780 if test -z "$ac_cv_prog_STRIP"; then
3782 # Extract the first word of "strip", so it can be a program name with args.
3783 set dummy strip
; ac_word
=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$ac_ct_STRIP"; then
3790 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir
=.
3797 for ac_exec_ext
in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_ac_ct_STRIP
="strip"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3810 if test -n "$ac_ct_STRIP"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3812 $as_echo "$ac_ct_STRIP" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3818 if test "x$ac_ct_STRIP" = x
; then
3821 case $cross_compiling:$ac_tool_warned in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned
=yes ;;
3830 STRIP
="$ac_cv_prog_STRIP"
3834 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3837 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3838 if test -z "$MKDIR_P"; then
3839 if test "${ac_cv_path_mkdir+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3843 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3846 test -z "$as_dir" && as_dir
=.
3847 for ac_prog
in mkdir gmkdir
; do
3848 for ac_exec_ext
in '' $ac_executable_extensions; do
3849 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3850 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3851 'mkdir (GNU coreutils) '* | \
3852 'mkdir (coreutils) '* | \
3853 'mkdir (fileutils) '4.1*)
3854 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3864 test -d .
/--version && rmdir .
/--version
3865 if test "${ac_cv_path_mkdir+set}" = set; then
3866 MKDIR_P
="$ac_cv_path_mkdir -p"
3868 # As a last resort, use the slow shell script. Don't cache a
3869 # value for MKDIR_P within a source directory, because that will
3870 # break other packages using the cache if that directory is
3871 # removed, or if the value is a relative name.
3872 MKDIR_P
="$ac_install_sh -d"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3876 $as_echo "$MKDIR_P" >&6; }
3880 [\\/$
]* | ?
:[\\/]*) ;;
3881 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3884 for ac_prog
in gawk mawk nawk
awk
3886 # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy
$ac_prog; ac_word
=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_prog_AWK+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$AWK"; then
3894 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_exec_ext
in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_AWK
="$ac_prog"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 if test -n "$AWK"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3916 $as_echo "$AWK" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3923 test -n "$AWK" && break
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3929 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3930 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3931 $as_echo_n "(cached) " >&6
3933 cat >conftest.
make <<\_ACEOF
3936 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3941 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3943 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3947 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 SET_MAKE
="MAKE=${MAKE-make}"
3957 rm -rf .tst
2>/dev
/null
3958 mkdir .tst
2>/dev
/null
3959 if test -d .tst
; then
3964 rmdir .tst
2>/dev
/null
3966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3968 # is not polluted with repeated "-I."
3969 am__isrc
=' -I$(srcdir)'
3970 # test to see if srcdir already configured
3971 if test -f $srcdir/config.status
; then
3972 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3976 # test whether we have cygpath
3977 if test -z "$CYGPATH_W"; then
3978 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3979 CYGPATH_W
='cygpath -w'
3986 # Define the identity of the package.
3991 cat >>confdefs.h
<<_ACEOF
3992 #define PACKAGE "$PACKAGE"
3996 cat >>confdefs.h
<<_ACEOF
3997 #define VERSION "$VERSION"
4000 # Some tools Automake needs.
4002 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4005 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4008 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4011 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4014 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4016 # We need awk for the "check" target. The system "awk" is bad on
4018 # Always define AMTAR for backward compatibility.
4020 AMTAR
=${AMTAR-"${am_missing_run}tar"}
4022 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4031 lispdir
='${datadir}/emacs/${version}/lisp'
4032 leimdir
='${datadir}/emacs/${version}/leim'
4033 standardlisppath
='${lispdir}:${leimdir}'
4034 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4035 '${datadir}/emacs/site-lisp'
4036 lisppath
='${locallisppath}:${standardlisppath}'
4037 etcdir
='${datadir}/emacs/${version}/etc'
4038 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4039 etcdocdir
='${datadir}/emacs/${version}/etc'
4040 gamedir
='${localstatedir}/games/emacs'
4043 # Check whether --with-all was given.
4044 if test "${with_all+set}" = set; then :
4045 withval
=$with_all; with_features
=$withval
4054 # Check whether --with-pop was given.
4055 if test "${with_pop+set}" = set; then :
4058 with_pop
=$with_features
4061 if test "$with_pop" = yes; then
4062 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4067 # Check whether --with-kerberos was given.
4068 if test "${with_kerberos+set}" = set; then :
4069 withval
=$with_kerberos;
4074 if test "$with_kerberos" != no
; then
4075 $as_echo "#define KERBEROS 1" >>confdefs.h
4080 # Check whether --with-kerberos5 was given.
4081 if test "${with_kerberos5+set}" = set; then :
4082 withval
=$with_kerberos5;
4087 if test "${with_kerberos5}" != no
; then
4088 if test "${with_kerberos}" = no
; then
4090 $as_echo "#define KERBEROS 1" >>confdefs.h
4094 $as_echo "#define KERBEROS5 1" >>confdefs.h
4099 # Check whether --with-hesiod was given.
4100 if test "${with_hesiod+set}" = set; then :
4101 withval
=$with_hesiod;
4106 if test "$with_hesiod" != no
; then
4108 $as_echo "#define HESIOD 1" >>confdefs.h
4113 # Check whether --with-mmdf was given.
4114 if test "${with_mmdf+set}" = set; then :
4120 if test "$with_mmdf" != no
; then
4122 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4127 # Check whether --with-mail-unlink was given.
4128 if test "${with_mail_unlink+set}" = set; then :
4129 withval
=$with_mail_unlink;
4134 if test "$with_mail_unlink" != no
; then
4136 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4141 # Check whether --with-mailhost was given.
4142 if test "${with_mailhost+set}" = set; then :
4143 withval
=$with_mailhost;
4144 cat >>confdefs.h
<<_ACEOF
4145 #define MAILHOST "$withval"
4152 # Check whether --with-sound was given.
4153 if test "${with_sound+set}" = set; then :
4154 withval
=$with_sound; case "${withval}" in
4155 yes|no|alsa|oss|bsd-ossaudio
) val
=$withval ;;
4156 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4157 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4163 with_sound
=$with_features
4168 # Check whether --with-x-toolkit was given.
4169 if test "${with_x_toolkit+set}" = set; then :
4170 withval
=$with_x_toolkit; case "${withval}" in
4171 y | ye |
yes ) val
=gtk
;;
4173 l | lu | luc | luci | lucid
) val
=lucid
;;
4174 a |
at | ath | athe | athen | athena
) val
=athena
;;
4175 m | mo | mot | moti | motif
) val
=motif
;;
4176 g | gt | gtk
) val
=gtk
;;
4180 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4181 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4182 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4183 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4192 # Check whether --with-wide-int was given.
4193 if test "${with_wide_int+set}" = set; then :
4194 withval
=$with_wide_int;
4199 if test "$with_wide_int" = yes; then
4201 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4206 # Check whether --with-xpm was given.
4207 if test "${with_xpm+set}" = set; then :
4210 with_xpm
=$with_features
4214 # Check whether --with-jpeg was given.
4215 if test "${with_jpeg+set}" = set; then :
4218 with_jpeg
=$with_features
4222 # Check whether --with-tiff was given.
4223 if test "${with_tiff+set}" = set; then :
4226 with_tiff
=$with_features
4230 # Check whether --with-gif was given.
4231 if test "${with_gif+set}" = set; then :
4234 with_gif
=$with_features
4238 # Check whether --with-png was given.
4239 if test "${with_png+set}" = set; then :
4242 with_png
=$with_features
4246 # Check whether --with-rsvg was given.
4247 if test "${with_rsvg+set}" = set; then :
4250 with_rsvg
=$with_features
4254 # Check whether --with-xml2 was given.
4255 if test "${with_xml2+set}" = set; then :
4258 with_xml2
=$with_features
4262 # Check whether --with-imagemagick was given.
4263 if test "${with_imagemagick+set}" = set; then :
4264 withval
=$with_imagemagick;
4266 with_imagemagick
=$with_features
4271 # Check whether --with-xft was given.
4272 if test "${with_xft+set}" = set; then :
4275 with_xft
=$with_features
4279 # Check whether --with-libotf was given.
4280 if test "${with_libotf+set}" = set; then :
4281 withval
=$with_libotf;
4283 with_libotf
=$with_features
4287 # Check whether --with-m17n-flt was given.
4288 if test "${with_m17n_flt+set}" = set; then :
4289 withval
=$with_m17n_flt;
4291 with_m17n_flt
=$with_features
4296 # Check whether --with-toolkit-scroll-bars was given.
4297 if test "${with_toolkit_scroll_bars+set}" = set; then :
4298 withval
=$with_toolkit_scroll_bars;
4300 with_toolkit_scroll_bars
=$with_features
4304 # Check whether --with-xaw3d was given.
4305 if test "${with_xaw3d+set}" = set; then :
4306 withval
=$with_xaw3d;
4308 with_xaw3d
=$with_features
4312 # Check whether --with-xim was given.
4313 if test "${with_xim+set}" = set; then :
4316 with_xim
=$with_features
4320 # Check whether --with-ns was given.
4321 if test "${with_ns+set}" = set; then :
4328 # Check whether --with-w32 was given.
4329 if test "${with_w32+set}" = set; then :
4337 # Check whether --with-gpm was given.
4338 if test "${with_gpm+set}" = set; then :
4341 with_gpm
=$with_features
4345 # Check whether --with-dbus was given.
4346 if test "${with_dbus+set}" = set; then :
4349 with_dbus
=$with_features
4353 # Check whether --with-gconf was given.
4354 if test "${with_gconf+set}" = set; then :
4355 withval
=$with_gconf;
4357 with_gconf
=$with_features
4361 # Check whether --with-gsettings was given.
4362 if test "${with_gsettings+set}" = set; then :
4363 withval
=$with_gsettings;
4365 with_gsettings
=$with_features
4369 # Check whether --with-selinux was given.
4370 if test "${with_selinux+set}" = set; then :
4371 withval
=$with_selinux;
4373 with_selinux
=$with_features
4377 # Check whether --with-gnutls was given.
4378 if test "${with_gnutls+set}" = set; then :
4379 withval
=$with_gnutls;
4381 with_gnutls
=$with_features
4385 # Check whether --with-zlib was given.
4386 if test "${with_zlib+set}" = set; then :
4389 with_zlib
=$with_features
4394 # Check whether --with-file-notification was given.
4395 if test "${with_file_notification+set}" = set; then :
4396 withval
=$with_file_notification; case "${withval}" in
4397 y | ye |
yes ) val
=yes ;;
4399 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4400 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4401 w | w3 | w32
) val
=w32
;;
4402 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4403 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4404 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4405 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4408 with_file_notification
=$val
4411 with_file_notification
=$with_features
4415 ## For the times when you want to build Emacs but don't have
4416 ## a suitable makeinfo, and can live without the manuals.
4418 # Check whether --with-makeinfo was given.
4419 if test "${with_makeinfo+set}" = set; then :
4420 withval
=$with_makeinfo;
4422 with_makeinfo
=$with_features
4426 ## Makefile.in needs the cache file name.
4429 ## This is an option because I do not know if all info/man support
4430 ## compressed files, nor how to test if they do so.
4432 # Check whether --with-compress-info was given.
4433 if test "${with_compress_info+set}" = set; then :
4434 withval
=$with_compress_info;
4436 with_compress_info
=$with_features
4439 if test $with_compress_info = yes; then
4447 # Check whether --with-pkg-config-prog was given.
4448 if test "${with_pkg_config_prog+set}" = set; then :
4449 withval
=$with_pkg_config_prog;
4452 if test "X${with_pkg_config_prog}" != X
; then
4453 if test "${with_pkg_config_prog}" != yes; then
4454 PKG_CONFIG
="${with_pkg_config_prog}"
4459 # Check whether --with-gameuser was given.
4460 if test "${with_gameuser+set}" = set; then :
4461 withval
=$with_gameuser;
4464 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4465 && gameuser
="${with_gameuser}"
4466 test "X$gameuser" = X
&& gameuser
=games
4469 # Check whether --with-gnustep-conf was given.
4470 if test "${with_gnustep_conf+set}" = set; then :
4471 withval
=$with_gnustep_conf;
4474 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4475 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4476 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4477 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4479 # Check whether --enable-ns-self-contained was given.
4480 if test "${enable_ns_self_contained+set}" = set; then :
4481 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4483 EN_NS_SELF_CONTAINED
=yes
4487 # Check whether --enable-locallisppath was given.
4488 if test "${enable_locallisppath+set}" = set; then :
4489 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4491 elif test "${enableval}" != "yes"; then
4492 locallisppath
=${enableval}
4497 # Check whether --enable-checking was given.
4498 if test "${enable_checking+set}" = set; then :
4499 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4502 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4503 for check
in $ac_checking_flags
4506 # these set all the flags to specific states
4507 yes) ac_enable_checking
=1 ;;
4508 no
) ac_enable_checking
= ;
4509 ac_gc_check_stringbytes
= ;
4510 ac_gc_check_string_overrun
= ;
4511 ac_gc_check_string_free_list
= ;
4512 ac_xmalloc_overrun
= ;
4513 ac_gc_check_cons_list
= ;
4515 all
) ac_enable_checking
=1 ;
4516 ac_gc_check_stringbytes
=1 ;
4517 ac_gc_check_string_overrun
=1 ;
4518 ac_gc_check_string_free_list
=1 ;
4519 ac_xmalloc_overrun
=1 ;
4520 ac_gc_check_cons_list
=1 ;
4521 ac_glyphs_debug
=1 ;;
4522 # these enable particular checks
4523 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4524 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4525 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4526 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4527 conslist
) ac_gc_check_cons_list
=1 ;;
4528 glyphs
) ac_glyphs_debug
=1 ;;
4529 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4534 if test x
$ac_enable_checking != x
; then
4536 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4539 if test x
$ac_gc_check_stringbytes != x
; then
4541 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4544 if test x
$ac_gc_check_string_overrun != x
; then
4546 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4549 if test x
$ac_gc_check_string_free_list != x
; then
4551 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4554 if test x
$ac_xmalloc_overrun != x
; then
4556 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4559 if test x
$ac_gc_check_cons_list != x
; then
4561 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4564 if test x
$ac_glyphs_debug != x
; then
4566 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4570 # Check whether --enable-check-lisp-object-type was given.
4571 if test "${enable_check_lisp_object_type+set}" = set; then :
4572 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4574 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4581 # Check whether --enable-profiling was given.
4582 if test "${enable_profiling+set}" = set; then :
4583 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4586 if test x
$ac_enable_profiling != x
; then
4587 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4593 # Check whether --enable-autodepend was given.
4594 if test "${enable_autodepend+set}" = set; then :
4595 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4597 ac_enable_autodepend
=yes
4601 # Check whether --enable-gtk-deprecation-warnings was given.
4602 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4603 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4607 #### Make srcdir absolute, if it isn't already. It's important to
4608 #### avoid running the file name through pwd unnecessarily, since pwd can
4609 #### give you automounter prefixes, which can go away. We do all this
4610 #### so Emacs can find its files when run uninstalled.
4611 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4614 [\\/]* | ?
:[\\/]*) ;;
4616 ## We may be able to use the $PWD environment variable to make this
4617 ## absolute. But sometimes PWD is inaccurate.
4618 ## Note: we used to use $PWD at the end instead of `pwd`,
4619 ## but that tested only for a well-formed and valid PWD,
4620 ## it did not object when PWD was well-formed and valid but just wrong.
4621 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4625 srcdir
=`(cd "$srcdir"; pwd)`
4628 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4631 ### Canonicalize the configuration name.
4633 # Make sure we can run config.sub.
4634 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4635 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4638 $as_echo_n "checking build system type... " >&6; }
4639 if test "${ac_cv_build+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4642 ac_build_alias
=$build_alias
4643 test "x$ac_build_alias" = x
&&
4644 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4645 test "x$ac_build_alias" = x
&&
4646 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4647 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4648 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4652 $as_echo "$ac_cv_build" >&6; }
4653 case $ac_cv_build in
4655 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4658 ac_save_IFS
=$IFS; IFS
='-'
4664 # Remember, the first character of IFS is used to create $*,
4665 # except with old shells:
4668 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4672 $as_echo_n "checking host system type... " >&6; }
4673 if test "${ac_cv_host+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4676 if test "x$host_alias" = x
; then
4677 ac_cv_host
=$ac_cv_build
4679 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4680 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4685 $as_echo "$ac_cv_host" >&6; }
4688 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4691 ac_save_IFS
=$IFS; IFS
='-'
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4701 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4705 configuration
=${host_alias-${build_alias-$host}}
4709 ### If you add support for a new configuration, add code to this
4710 ### switch statement to recognize your configuration name and select
4711 ### the appropriate operating system file.
4713 ### You would hope that you could choose an s/*.h
4714 ### file based on the operating system portion. However, it turns out
4715 ### that each s/*.h file is pretty manufacturer-specific.
4716 ### So we basically have to have a special case for each
4717 ### configuration name.
4719 ### As far as handling version numbers on operating systems is
4720 ### concerned, make sure things will fail in a fixable way. If
4721 ### /etc/MACHINES doesn't say anything about version numbers, be
4722 ### prepared to handle anything reasonably. If version numbers
4723 ### matter, be sure /etc/MACHINES says something about it.
4725 opsys
='' unported
=no
4726 case "${canonical}" in
4728 ## GNU/Linux and similar ports
4743 ## FreeBSD kernel + glibc based userland
4758 ## Apple Darwin / Mac OS X
4760 case "${canonical}" in
4767 ## Use fink packages if available.
4768 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4769 ## if test -d /sw/include && test -d /sw/lib; then
4770 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4771 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4780 ## HP 9000 series 700 and 800, running HP/UX
4781 hppa
*-hp-hpux10.2
* )
4784 hppa
*-hp-hpux1[1-9]* )
4786 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4790 rs6000-ibm-aix4.
[23]* )
4793 powerpc-ibm-aix4.
[23]* )
4796 rs6000-ibm-aix
[56]* )
4799 powerpc-ibm-aix
[56]* )
4803 ## Silicon Graphics machines
4807 # Without defining _LANGUAGE_C, things get masked out in the headers
4808 # so that, for instance, grepping for `free' in stdlib.h fails and
4809 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4810 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4815 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4816 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4817 case "${canonical}" in
4819 amd64-
*-*|x86_64-
*-*) ;;
4823 case "${canonical}" in
4824 *-sunos5.6
* |
*-solaris2.6
* )
4828 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4830 emacs_check_sunpro_c
=yes
4832 *-sunos5* |
*-solaris* )
4834 emacs_check_sunpro_c
=yes
4837 ## Watch out for a compiler that we know will not work.
4838 case "${canonical}" in
4839 *-solaris* |
*-sunos5* )
4840 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4841 ## /usr/ucb/cc doesn't work;
4842 ## we should find some other compiler that does work.
4850 ## Intel 386 machines where we don't care about the manufacturer.
4852 case "${canonical}" in
4853 *-darwin* ) opsys
=darwin
;;
4856 # MinGW overrides and adds some system headers in nt/inc.
4857 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4859 *-sysv4.2uw
* ) opsys
=unixware
;;
4860 *-sysv5uw* ) opsys
=unixware
;;
4861 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4862 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4871 ### If the code above didn't choose an operating system, just choose
4872 ### an operating system based on the configuration name. You really
4873 ### only want to use this when you have no idea what the right
4874 ### operating system is; if you know what operating systems a machine
4875 ### runs, it's cleaner to make it explicit in the case statement
4877 if test x
"${opsys}" = x
; then
4878 case "${canonical}" in
4879 *-gnu* ) opsys
=gnu
;;
4888 if test $unported = yes; then
4889 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4890 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4894 #### Choose a compiler.
4897 ac_cpp
='$CPP $CPPFLAGS'
4898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4903 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC
="$CC" # Let the user override the test.
4912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir
=.
4917 for ac_exec_ext
in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 if test -n "$CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4932 $as_echo "$CC" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4940 if test -z "$ac_cv_prog_CC"; then
4942 # Extract the first word of "gcc", so it can be a program name with args.
4943 set dummy gcc
; ac_word
=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -n "$ac_ct_CC"; then
4950 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir
=.
4957 for ac_exec_ext
in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_ac_ct_CC
="gcc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4970 if test -n "$ac_ct_CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4972 $as_echo "$ac_ct_CC" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4978 if test "x$ac_ct_CC" = x
; then
4981 case $cross_compiling:$ac_tool_warned in
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985 ac_tool_warned
=yes ;;
4993 if test -z "$CC"; then
4994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4996 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC
="$CC" # Let the user override the test.
5005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir
=.
5010 for ac_exec_ext
in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 if test -n "$CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5025 $as_echo "$CC" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5034 if test -z "$CC"; then
5035 # Extract the first word of "cc", so it can be a program name with args.
5036 set dummy cc
; ac_word
=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_prog_CC+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5042 if test -n "$CC"; then
5043 ac_cv_prog_CC
="$CC" # Let the user override the test.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5054 ac_prog_rejected
=yes
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 if test $ac_prog_rejected = yes; then
5066 # We found a bogon in the path, so make sure we never use it.
5067 set dummy
$ac_cv_prog_CC
5069 if test $# != 0; then
5070 # We chose a different compiler from the bogus one.
5071 # However, it has the same basename, so the bogon will be chosen
5072 # first if we set CC to just the basename; use the full file name.
5074 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5080 if test -n "$CC"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082 $as_echo "$CC" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5090 if test -z "$CC"; then
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog
in cl.exe
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_CC+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$CC"; then
5102 ac_cv_prog_CC
="$CC" # Let the user override the test.
5104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir
=.
5109 for ac_exec_ext
in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 if test -n "$CC"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5124 $as_echo "$CC" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$CC" && break
5134 if test -z "$CC"; then
5136 for ac_prog
in cl.exe
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy
$ac_prog; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$ac_ct_CC"; then
5146 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_CC
="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5168 $as_echo "$ac_ct_CC" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$ac_ct_CC" && break
5178 if test "x$ac_ct_CC" = x
; then
5181 case $cross_compiling:$ac_tool_warned in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned
=yes ;;
5194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 as_fn_error
"no acceptable C compiler found in \$PATH
5197 See \`config.log' for more details." "$LINENO" 5; }
5199 # Provide some information about the compiler.
5200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5203 for ac_option
in --version -v -V -qversion; do
5204 { { ac_try
="$ac_compiler $ac_option >&5"
5206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5210 $as_echo "$ac_try_echo"; } >&5
5211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5213 if test -s conftest.err; then
5215 ... rest of stderr output deleted ...
5216 10q' conftest.err >conftest.er1
5217 cat conftest.er1 >&5
5219 rm -f conftest.er1 conftest.err
5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5221 test $ac_status = 0; }
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5235 ac_clean_files_save=$ac_clean_files
5236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5237 # Try to create an executable without -o first, disregard a.out.
5238 # It will help us diagnose broken compilers, and finding out an intuition
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5241 $as_echo_n "checking whether the C compiler works... " >&6; }
5242 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5244 # The possible output files:
5245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5248 for ac_file in $ac_files
5251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5257 if { { ac_try="$ac_link_default"
5259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5260 *) ac_try_echo
=$ac_try;;
5262 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5263 $as_echo "$ac_try_echo"; } >&5
5264 (eval "$ac_link_default") 2>&5
5266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }; then :
5268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5271 # so that the user can short-circuit this test for compilers unknown to
5273 for ac_file
in $ac_files ''
5275 test -f "$ac_file" ||
continue
5277 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5280 # We found the default executable, but exeext='' is most
5284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5286 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5288 # We set ac_cv_exeext here because the later test for it is not
5289 # safe: cross compilers may not add the suffix if given an `-o'
5290 # argument, so we may need to know it at that point already.
5291 # Even if this section looks crufty: it has the advantage of
5298 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5303 if test -z "$ac_file"; then :
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.
$ac_ext >&5
5309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5311 { as_fn_set_status
77
5312 as_fn_error
"C compiler cannot create executables
5313 See \`config.log' for more details." "$LINENO" 5; }; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5319 $as_echo_n "checking for C compiler default output file name... " >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5321 $as_echo "$ac_file" >&6; }
5322 ac_exeext
=$ac_cv_exeext
5324 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5325 ac_clean_files
=$ac_clean_files_save
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5327 $as_echo_n "checking for suffix of executables... " >&6; }
5328 if { { ac_try
="$ac_link"
5330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5334 $as_echo "$ac_try_echo"; } >&5
5335 (eval "$ac_link") 2>&5
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; }; then :
5339 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5340 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5341 # work properly (i.e., refer to `conftest.exe'), while it won't with
5343 for ac_file
in conftest.exe conftest conftest.
*; do
5344 test -f "$ac_file" ||
continue
5346 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5347 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5355 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5356 See \`config.log' for more details." "$LINENO" 5; }
5358 rm -f conftest conftest
$ac_cv_exeext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5360 $as_echo "$ac_cv_exeext" >&6; }
5362 rm -f conftest.
$ac_ext
5363 EXEEXT
=$ac_cv_exeext
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5371 FILE *f = fopen ("conftest.out", "w");
5372 return ferror (f) || fclose (f) != 0;
5378 ac_clean_files
="$ac_clean_files conftest.out"
5379 # Check that the compiler produces executables we can run. If not, either
5380 # the compiler is broken, or we cross compile.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5382 $as_echo_n "checking whether we are cross compiling... " >&6; }
5383 if test "$cross_compiling" != yes; then
5384 { { ac_try
="$ac_link"
5386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5390 $as_echo "$ac_try_echo"; } >&5
5391 (eval "$ac_link") 2>&5
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }
5395 if { ac_try='./conftest$ac_cv_exeext'
5396 { { case "(($ac_try" in
5397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5398 *) ac_try_echo
=$ac_try;;
5400 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5401 $as_echo "$ac_try_echo"; } >&5
5402 (eval "$ac_try") 2>&5
5404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5405 test $ac_status = 0; }; }; then
5408 if test "$cross_compiling" = maybe
; then
5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5413 as_fn_error
"cannot run C compiled programs.
5414 If you meant to cross compile, use \`--host'.
5415 See \`config.log' for more details." "$LINENO" 5; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5420 $as_echo "$cross_compiling" >&6; }
5422 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5423 ac_clean_files
=$ac_clean_files_save
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5425 $as_echo_n "checking for suffix of object files... " >&6; }
5426 if test "${ac_cv_objext+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5440 rm -f conftest.o conftest.obj
5441 if { { ac_try
="$ac_compile"
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_compile") 2>&5
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then :
5452 for ac_file in conftest.o conftest.obj conftest.*; do
5453 test -f "$ac_file" || continue;
5455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5461 $as_echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5466 as_fn_error "cannot compute suffix of object files
: cannot compile
5467 See \
`config.log' for more details." "$LINENO" 5; }
5469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5472 $as_echo "$ac_cv_objext" >&6; }
5473 OBJEXT=$ac_cv_objext
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5477 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5494 if ac_fn_c_try_compile "$LINENO"; then :
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5505 if test $ac_compiler_gnu = yes; then
5510 ac_test_CFLAGS=${CFLAGS+set}
5511 ac_save_CFLAGS=$CFLAGS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5514 if test "${ac_cv_prog_cc_g+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5517 ac_save_c_werror_flag=$ac_c_werror_flag
5518 ac_c_werror_flag=yes
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5532 if ac_fn_c_try_compile "$LINENO"; then :
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5547 if ac_fn_c_try_compile "$LINENO"; then :
5550 ac_c_werror_flag=$ac_save_c_werror_flag
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5563 if ac_fn_c_try_compile "$LINENO"; then :
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 ac_c_werror_flag=$ac_save_c_werror_flag
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5574 $as_echo "$ac_cv_prog_cc_g" >&6; }
5575 if test "$ac_test_CFLAGS" = set; then
5576 CFLAGS=$ac_save_CFLAGS
5577 elif test $ac_cv_prog_cc_g = yes; then
5578 if test "$GCC" = yes; then
5584 if test "$GCC" = yes; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5592 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5595 ac_cv_prog_cc_c89=no
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5601 #include <sys/types.h>
5602 #include <sys/stat.h>
5603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5604 struct buf { int x; };
5605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5606 static char *e (p, i)
5612 static char *f (char * (*g) (char **, int), char **p, ...)
5617 s = g (p, va_arg (v,int));
5622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5623 function prototypes and stuff, but not '\xHH' hex character constants.
5624 These don't provoke an error unfortunately, instead are silently treated
5625 as 'x'. The following induces an error, until -std is added to get
5626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5627 array size at least. It's necessary to write '\x00'==0 to get something
5628 that's true only with -std. */
5629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5632 inside strings and character constants. */
5634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5636 int test (int i, double x);
5637 struct s1 {int (*f) (int a);};
5638 struct s2 {int (*f) (double a);};
5639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5653 CC="$ac_save_CC $ac_arg"
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 ac_cv_prog_cc_c89=$ac_arg
5657 rm -f core conftest.err conftest.$ac_objext
5658 test "x$ac_cv_prog_cc_c89" != "xno" && break
5660 rm -f conftest.$ac_ext
5665 case "x$ac_cv_prog_cc_c89" in
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5668 $as_echo "none needed" >&6; } ;;
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5671 $as_echo "unsupported" >&6; } ;;
5673 CC="$CC $ac_cv_prog_cc_c89"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5677 if test "x$ac_cv_prog_cc_c89" != xno; then :
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686 DEPDIR="${am__leading_dot}deps"
5688 ac_config_commands="$ac_config_commands depfiles"
5691 am_make=${MAKE-make}
5692 cat > confinc << 'END'
5694 @echo this is the am__doit target
5697 # If we don't find an include directive, just comment out the code.
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5699 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5703 # First try GNU make style include.
5704 echo "include confinc" > confmf
5705 # Ignore all kinds of additional output from `make'.
5706 case `$am_make -s -f confmf 2> /dev/null` in #(
5707 *the\ am__doit\ target*)
5713 # Now try BSD make style include.
5714 if test "$am__include" = "#"; then
5715 echo '.include
"confinc"' > confmf
5716 case `$am_make -s -f confmf 2> /dev/null` in #(
5717 *the\ am__doit\ target*)
5718 am__include=.include
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5727 $as_echo "$_am_result" >&6; }
5728 rm -f confinc confmf
5730 # Check whether --enable-dependency-tracking was given.
5731 if test "${enable_dependency_tracking+set}" = set; then :
5732 enableval=$enable_dependency_tracking;
5735 if test "x$enable_dependency_tracking" != xno; then
5736 am_depcomp="$ac_aux_dir/depcomp"
5739 if test "x$enable_dependency_tracking" != xno
; then
5749 depcc
="$CC" am_compiler_list
=
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5752 $as_echo_n "checking dependency style of $depcc... " >&6; }
5753 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757 # We make a subdir and do the tests there. Otherwise we can end up
5758 # making bogus files that we don't know about and never remove. For
5759 # instance it was reported that on HP-UX the gcc test will end up
5760 # making a dummy file named `D' -- because `-MD' means `put the output
5763 # Copy depcomp to subdir because otherwise we won't find it if we're
5764 # using a relative directory.
5765 cp "$am_depcomp" conftest.dir
5767 # We will build objects and dependencies in a subdirectory because
5768 # it helps to detect inapplicable dependency modes. For instance
5769 # both Tru64's cc and ICC support -MD to output dependencies as a
5770 # side effect of compilation, but ICC will put the dependencies in
5771 # the current directory while Tru64 will put them in the object
5775 am_cv_CC_dependencies_compiler_type
=none
5776 if test "$am_compiler_list" = ""; then
5777 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5780 case " $depcc " in #(
5781 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5784 for depmode
in $am_compiler_list; do
5785 # Setup a source with many dependencies, because some compilers
5786 # like to wrap large dependency lists on column 80 (with \), and
5787 # we should not choose a depcomp mode which is confused by this.
5789 # We need to recreate these files for each test, as the compiler may
5790 # overwrite some of them when testing with obscure command lines.
5791 # This happens at least with the AIX C compiler.
5793 for i
in 1 2 3 4 5 6; do
5794 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5795 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5796 # Solaris 8's {/usr,}/bin/sh.
5797 touch sub
/conftst
$i.h
5799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5801 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5802 # mode. It turns out that the SunPro C++ compiler does not properly
5803 # handle `-M -o', and we need to detect this. Also, some Intel
5804 # versions had trouble with output in subdirs
5805 am__obj
=sub
/conftest.
${OBJEXT-o}
5806 am__minus_obj
="-o $am__obj"
5809 # This depmode causes a compiler race in universal mode.
5810 test "$am__universal" = false ||
continue
5813 # after this tag, mechanisms are not by side-effect, so they'll
5814 # only be used when explicitly requested
5815 if test "x$enable_dependency_tracking" = xyes
; then
5821 msvisualcpp | msvcmsys
)
5822 # This compiler won't grok `-c -o', but also, the minuso test has
5823 # not run yet. These depmodes are late enough in the game, and
5824 # so weak that their functioning should not be impacted.
5825 am__obj
=conftest.
${OBJEXT-o}
5830 if depmode
=$depmode \
5831 source=sub
/conftest.c object
=$am__obj \
5832 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5833 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5834 >/dev
/null
2>conftest.err
&&
5835 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5836 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5837 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5838 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5839 # icc doesn't choke on unknown options, it will just issue warnings
5840 # or remarks (even with -Werror). So we grep stderr for any message
5841 # that says an option was ignored or not supported.
5842 # When given -MP, icc 7.0 and 7.1 complain thusly:
5843 # icc: Command line warning: ignoring option '-M'; no argument required
5844 # The diagnosis changed in icc 8.0:
5845 # icc: Command line remark: option '-MP' not supported
5846 if (grep 'ignoring option' conftest.err ||
5847 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5848 am_cv_CC_dependencies_compiler_type
=$depmode
5857 am_cv_CC_dependencies_compiler_type
=none
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5862 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5863 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5866 test "x$enable_dependency_tracking" != xno \
5867 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5869 am__fastdepCC_FALSE
='#'
5871 am__fastdepCC_TRUE
='#'
5872 am__fastdepCC_FALSE
=
5876 if test "x$CC" != xcc
; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5878 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5881 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5883 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5884 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5885 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5886 $as_echo_n "(cached) " >&6
5888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5899 # Make sure it works both with $CC and with simple cc.
5900 # We do the test twice because some compilers refuse to overwrite an
5901 # existing .o file with -o, though they will create one.
5902 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5904 if { { case "(($ac_try" in
5905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5909 $as_echo "$ac_try_echo"; } >&5
5910 (eval "$ac_try") 2>&5
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; } &&
5914 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5916 *) ac_try_echo
=$ac_try;;
5918 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_try") 2>&5
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; };
5925 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5926 if test "x$CC" != xcc
; then
5927 # Test first that cc exists at all.
5928 if { ac_try
='cc -c conftest.$ac_ext >&5'
5929 { { case "(($ac_try" in
5930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5934 $as_echo "$ac_try_echo"; } >&5
5935 (eval "$ac_try") 2>&5
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }; }; then
5939 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5941 if { { case "(($ac_try" in
5942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5943 *) ac_try_echo
=$ac_try;;
5945 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946 $as_echo "$ac_try_echo"; } >&5
5947 (eval "$ac_try") 2>&5
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; } &&
5951 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5956 $as_echo "$ac_try_echo"; } >&5
5957 (eval "$ac_try") 2>&5
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; };
5965 # cc exists but doesn't like -o.
5966 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5971 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5973 rm -f core conftest*
5976 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5978 $as_echo "yes" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5983 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5987 # FIXME: we rely on the cache variable name because
5988 # there is no other way.
5990 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5991 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5992 if test "$am_t" != yes; then
5993 # Losing compiler, so override with the script.
5994 # FIXME: It is wrong to rewrite CC.
5995 # But if we don't then we get into trouble of one sort or another.
5996 # A longer-term fix would be to have automake use am__CC in this case,
5997 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5998 CC="$am_aux_dir/compile $CC"
6003 if test x$GCC = xyes; then
6004 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6006 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6009 if test "x$opsys" = "xmingw32"; then
6010 BUILDING_FOR_WINDOWSNT_TRUE=
6011 BUILDING_FOR_WINDOWSNT_FALSE='#'
6013 BUILDING_FOR_WINDOWSNT_TRUE='#'
6014 BUILDING_FOR_WINDOWSNT_FALSE=
6018 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6019 # as we don't use them.
6021 # Avoid gnulib's threadlib module, as we do threads our own way.
6024 # Initialize gnulib right after choosing the compiler.
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6037 if test -z "$CPP"; then
6038 if test "${ac_cv_prog_CPP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 for ac_c_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 # include <limits.h>
6058 # include <assert.h>
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6065 # Broken: fails on valid input.
6068 rm -f conftest.err conftest.$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6080 # Passes both tests.
6084 rm -f conftest.err conftest.$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.
$ac_ext
6089 if $ac_preproc_ok; then :
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6104 for ac_c_preproc_warn_flag
in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6115 # include <limits.h>
6117 # include <assert.h>
6121 if ac_fn_c_try_cpp
"$LINENO"; then :
6124 # Broken: fails on valid input.
6127 rm -f conftest.err conftest.
$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6135 if ac_fn_c_try_cpp
"$LINENO"; then :
6136 # Broken: success on invalid input.
6139 # Passes both tests.
6143 rm -f conftest.err conftest.
$ac_ext
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.err conftest.
$ac_ext
6148 if $ac_preproc_ok; then :
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." "$LINENO" 5; }
6158 ac_cpp
='$CPP $CPPFLAGS'
6159 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166 if test "${ac_cv_path_GREP+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found
=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6173 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6176 test -z "$as_dir" && as_dir
=.
6177 for ac_prog
in grep ggrep
; do
6178 for ac_exec_ext
in '' $ac_executable_extensions; do
6179 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6181 # Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183 case `"$ac_path_GREP" --version 2>&1` in
6185 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6188 $as_echo_n 0123456789 >"conftest.in"
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6196 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6197 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP
="$ac_path_GREP"
6201 ac_path_GREP_max
=$ac_count
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6206 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6209 $ac_path_GREP_found && break 3
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 ac_cv_path_GREP
=$GREP
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223 $as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP
="$ac_cv_path_GREP"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228 $as_echo_n "checking for egrep... " >&6; }
6229 if test "${ac_cv_path_EGREP+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6233 then ac_cv_path_EGREP
="$GREP -E"
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found
=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6239 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6242 test -z "$as_dir" && as_dir
=.
6243 for ac_prog
in egrep; do
6244 for ac_exec_ext
in '' $ac_executable_extensions; do
6245 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6251 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6254 $as_echo_n 0123456789 >"conftest.in"
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6262 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6263 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP
="$ac_path_EGREP"
6267 ac_path_EGREP_max
=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6272 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6275 $ac_path_EGREP_found && break 3
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6284 ac_cv_path_EGREP
=$EGREP
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 $as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP
="$ac_cv_path_EGREP"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6297 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6298 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6312 gl_cv_c_amsterdam_compiler
=yes
6314 gl_cv_c_amsterdam_compiler
=no
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6321 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6322 if test -z "$AR"; then
6323 if test $gl_cv_c_amsterdam_compiler = yes; then
6325 if test -z "$ARFLAGS"; then
6329 if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6331 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_AR+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6337 if test -n "$AR"; then
6338 ac_cv_prog_AR
="$AR" # Let the user override the test.
6340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir
=.
6345 for ac_exec_ext
in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 if test -n "$AR"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6360 $as_echo "$AR" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6368 if test -z "$ac_cv_prog_AR"; then
6370 # Extract the first word of "ar", so it can be a program name with args.
6371 set dummy
ar; ac_word
=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6377 if test -n "$ac_ct_AR"; then
6378 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir
=.
6385 for ac_exec_ext
in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_prog_ac_ct_AR
="ar"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6398 if test -n "$ac_ct_AR"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6400 $as_echo "$ac_ct_AR" >&6; }
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6406 if test "x$ac_ct_AR" = x
; then
6409 case $cross_compiling:$ac_tool_warned in
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413 ac_tool_warned
=yes ;;
6421 if test -z "$ARFLAGS"; then
6426 if test -z "$ARFLAGS"; then
6432 if test -z "$RANLIB"; then
6433 if test $gl_cv_c_amsterdam_compiler = yes; then
6436 if test -n "$ac_tool_prefix"; then
6437 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6438 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$RANLIB"; then
6445 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir
=.
6452 for ac_exec_ext
in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 RANLIB
=$ac_cv_prog_RANLIB
6465 if test -n "$RANLIB"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6467 $as_echo "$RANLIB" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6475 if test -z "$ac_cv_prog_RANLIB"; then
6476 ac_ct_RANLIB
=$RANLIB
6477 # Extract the first word of "ranlib", so it can be a program name with args.
6478 set dummy ranlib
; ac_word
=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$ac_ct_RANLIB"; then
6485 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir
=.
6492 for ac_exec_ext
in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6505 if test -n "$ac_ct_RANLIB"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6507 $as_echo "$ac_ct_RANLIB" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test "x$ac_ct_RANLIB" = x
; then
6516 case $cross_compiling:$ac_tool_warned in
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned
=yes ;;
6522 RANLIB
=$ac_ct_RANLIB
6525 RANLIB
="$ac_cv_prog_RANLIB"
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6533 $as_echo_n "checking for ANSI C header files... " >&6; }
6534 if test "${ac_cv_header_stdc+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6552 if ac_fn_c_try_compile
"$LINENO"; then :
6553 ac_cv_header_stdc
=yes
6555 ac_cv_header_stdc
=no
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 if test $ac_cv_header_stdc = yes; then
6560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567 $EGREP "memchr" >/dev
/null
2>&1; then :
6570 ac_cv_header_stdc
=no
6576 if test $ac_cv_header_stdc = yes; then
6577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 $EGREP "free" >/dev
/null
2>&1; then :
6587 ac_cv_header_stdc
=no
6593 if test $ac_cv_header_stdc = yes; then
6594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6595 if test "$cross_compiling" = yes; then :
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6602 #if ((' ' & 0x0FF) == 0x020)
6603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6606 # define ISLOWER(c) \
6607 (('a' <= (c) && (c) <= 'i') \
6608 || ('j' <= (c) && (c) <= 'r') \
6609 || ('s' <= (c) && (c) <= 'z'))
6610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6618 for (i = 0; i < 256; i++)
6619 if (XOR (islower (i), ISLOWER (i))
6620 || toupper (i) != TOUPPER (i))
6625 if ac_fn_c_try_run
"$LINENO"; then :
6628 ac_cv_header_stdc
=no
6630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6637 $as_echo "$ac_cv_header_stdc" >&6; }
6638 if test $ac_cv_header_stdc = yes; then
6640 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6645 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6646 inttypes.h stdint.h unistd.h
6648 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6649 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6651 eval as_val
=\$
$as_ac_Header
6652 if test "x$as_val" = x
""yes; then :
6653 cat >>confdefs.h
<<_ACEOF
6654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6664 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6671 if test "$MINIX" = yes; then
6673 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6676 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6679 $as_echo "#define _MINIX 1" >>confdefs.h
6682 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6688 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6689 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6695 # define __EXTENSIONS__ 1
6696 $ac_includes_default
6705 if ac_fn_c_try_compile
"$LINENO"; then :
6706 ac_cv_safe_to_define___extensions__
=yes
6708 ac_cv_safe_to_define___extensions__
=no
6710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6713 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6714 test $ac_cv_safe_to_define___extensions__ = yes &&
6715 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6717 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6719 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6721 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6723 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6725 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6728 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6729 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 ac_cv_should_define__xopen_source
=no
6733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6746 if ac_fn_c_try_compile
"$LINENO"; then :
6749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6752 #define _XOPEN_SOURCE 500
6763 if ac_fn_c_try_compile
"$LINENO"; then :
6764 ac_cv_should_define__xopen_source
=yes
6766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6771 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6772 test $ac_cv_should_define__xopen_source = yes &&
6773 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6782 # Check whether --enable-largefile was given.
6783 if test "${enable_largefile+set}" = set; then :
6784 enableval
=$enable_largefile;
6787 if test "$enable_largefile" != no
; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6790 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6791 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6794 ac_cv_sys_largefile_CC
=no
6795 if test "$GCC" != yes; then
6798 # IRIX 6.2 and later do not support large files by default,
6799 # so use the C compiler's -n32 option if that helps.
6800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #include <sys/types.h>
6803 /* Check that off_t can represent 2**63 - 1 correctly.
6804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6805 since some C++ compilers masquerading as C compilers
6806 incorrectly reject 9223372036854775807. */
6807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6809 && LARGE_OFF_T % 2147483647 == 1)
6819 if ac_fn_c_try_compile
"$LINENO"; then :
6822 rm -f core conftest.err conftest.
$ac_objext
6824 if ac_fn_c_try_compile
"$LINENO"; then :
6825 ac_cv_sys_largefile_CC
=' -n32'; break
6827 rm -f core conftest.err conftest.
$ac_objext
6831 rm -f conftest.
$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6835 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6836 if test "$ac_cv_sys_largefile_CC" != no
; then
6837 CC
=$CC$ac_cv_sys_largefile_CC
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6841 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 /* Check that off_t can represent 2**63 - 1 correctly.
6850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6851 since some C++ compilers masquerading as C compilers
6852 incorrectly reject 9223372036854775807. */
6853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6855 && LARGE_OFF_T % 2147483647 == 1)
6865 if ac_fn_c_try_compile
"$LINENO"; then :
6866 ac_cv_sys_file_offset_bits
=no
; break
6868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 #define _FILE_OFFSET_BITS 64
6872 #include <sys/types.h>
6873 /* Check that off_t can represent 2**63 - 1 correctly.
6874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6875 since some C++ compilers masquerading as C compilers
6876 incorrectly reject 9223372036854775807. */
6877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6879 && LARGE_OFF_T % 2147483647 == 1)
6889 if ac_fn_c_try_compile
"$LINENO"; then :
6890 ac_cv_sys_file_offset_bits
=64; break
6892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6893 ac_cv_sys_file_offset_bits
=unknown
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6898 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6899 case $ac_cv_sys_file_offset_bits in #(
6902 cat >>confdefs.h
<<_ACEOF
6903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6908 if test $ac_cv_sys_file_offset_bits = unknown
; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6910 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6911 if test "${ac_cv_sys_large_files+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 /* Check that off_t can represent 2**63 - 1 correctly.
6919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6920 since some C++ compilers masquerading as C compilers
6921 incorrectly reject 9223372036854775807. */
6922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6924 && LARGE_OFF_T % 2147483647 == 1)
6934 if ac_fn_c_try_compile
"$LINENO"; then :
6935 ac_cv_sys_large_files
=no
; break
6937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 #define _LARGE_FILES 1
6941 #include <sys/types.h>
6942 /* Check that off_t can represent 2**63 - 1 correctly.
6943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6944 since some C++ compilers masquerading as C compilers
6945 incorrectly reject 9223372036854775807. */
6946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6948 && LARGE_OFF_T % 2147483647 == 1)
6958 if ac_fn_c_try_compile
"$LINENO"; then :
6959 ac_cv_sys_large_files
=1; break
6961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6962 ac_cv_sys_large_files
=unknown
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6967 $as_echo "$ac_cv_sys_large_files" >&6; }
6968 case $ac_cv_sys_large_files in #(
6971 cat >>confdefs.h
<<_ACEOF
6972 #define _LARGE_FILES $ac_cv_sys_large_files
6980 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6984 case $ac_cv_prog_cc_stdc in #(
6986 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6989 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6990 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6993 ac_cv_prog_cc_c99
=no
6995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6998 #include <stdbool.h>
7003 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7004 #define debug(...) fprintf (stderr, __VA_ARGS__)
7005 #define showlist(...) puts (#__VA_ARGS__)
7006 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7008 test_varargs_macros (void)
7013 debug ("X = %d\n", x);
7014 showlist (The first, second, and third items.);
7015 report (x>y, "x is %d but y is %d", x, y);
7018 // Check long long types.
7019 #define BIG64 18446744073709551615ull
7020 #define BIG32 4294967295ul
7021 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7023 your preprocessor is broken;
7027 your preprocessor is broken;
7029 static long long int bignum = -9223372036854775807LL;
7030 static unsigned long long int ubignum = BIG64;
7032 struct incomplete_array
7040 const wchar_t *name;
7044 typedef const char *ccp;
7047 test_restrict (ccp restrict text)
7049 // See if C++-style comments work.
7050 // Iterate through items via the restricted pointer.
7051 // Also check for declarations in for loops.
7052 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7057 // Check varargs and va_copy.
7059 test_varargs (const char *format, ...)
7062 va_start (args, format);
7064 va_copy (args_copy, args);
7075 str = va_arg (args_copy, const char *);
7078 number = va_arg (args_copy, int);
7081 fnumber = va_arg (args_copy, double);
7096 _Bool success = false;
7099 if (test_restrict ("String literal") == 0)
7101 char *restrict newvar = "Another string";
7104 test_varargs ("s, d' f .", "string", 65, 34.234);
7105 test_varargs_macros ();
7107 // Check flexible array members.
7108 struct incomplete_array *ia =
7109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7111 for (int i = 0; i < ia->datasize; ++i)
7112 ia->data[i] = i * 1.234;
7114 // Check named initializers.
7115 struct named_init ni = {
7117 .name = L"Test wide string",
7118 .average = 543.34343,
7123 int dynamic_array[ni.number];
7124 dynamic_array[ni.number - 1] = 543;
7126 // work around unused variable warnings
7127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7128 || dynamic_array[ni.number - 1] != 543);
7134 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7136 CC
="$ac_save_CC $ac_arg"
7137 if ac_fn_c_try_compile
"$LINENO"; then :
7138 ac_cv_prog_cc_c99
=$ac_arg
7140 rm -f core conftest.err conftest.
$ac_objext
7141 test "x$ac_cv_prog_cc_c99" != "xno" && break
7143 rm -f conftest.
$ac_ext
7148 case "x$ac_cv_prog_cc_c99" in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7151 $as_echo "none needed" >&6; } ;;
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7154 $as_echo "unsupported" >&6; } ;;
7156 CC
="$CC $ac_cv_prog_cc_c99"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7158 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7160 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7161 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7168 ac_cv_prog_cc_c89
=no
7170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7174 #include <sys/types.h>
7175 #include <sys/stat.h>
7176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7177 struct buf { int x; };
7178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7179 static char *e (p, i)
7185 static char *f (char * (*g) (char **, int), char **p, ...)
7190 s = g (p, va_arg (v,int));
7195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7196 function prototypes and stuff, but not '\xHH' hex character constants.
7197 These don't provoke an error unfortunately, instead are silently treated
7198 as 'x'. The following induces an error, until -std is added to get
7199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7200 array size at least. It's necessary to write '\x00'==0 to get something
7201 that's true only with -std. */
7202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7205 inside strings and character constants. */
7207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7209 int test (int i, double x);
7210 struct s1 {int (*f) (int a);};
7211 struct s2 {int (*f) (double a);};
7212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7223 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7226 CC
="$ac_save_CC $ac_arg"
7227 if ac_fn_c_try_compile
"$LINENO"; then :
7228 ac_cv_prog_cc_c89
=$ac_arg
7230 rm -f core conftest.err conftest.
$ac_objext
7231 test "x$ac_cv_prog_cc_c89" != "xno" && break
7233 rm -f conftest.
$ac_ext
7238 case "x$ac_cv_prog_cc_c89" in
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7241 $as_echo "none needed" >&6; } ;;
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7244 $as_echo "unsupported" >&6; } ;;
7246 CC
="$CC $ac_cv_prog_cc_c89"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7250 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7251 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7253 ac_cv_prog_cc_stdc
=no
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7260 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7261 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7265 case $ac_cv_prog_cc_stdc in #(
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7268 $as_echo "unsupported" >&6; } ;; #(
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7271 $as_echo "none needed" >&6; } ;; #(
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7274 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7279 # Code from module alloca-opt:
7280 # Code from module allocator:
7281 # Code from module at-internal:
7282 # Code from module binary-io:
7283 # Code from module c-ctype:
7284 # Code from module c-strcase:
7285 # Code from module careadlinkat:
7286 # Code from module clock-time:
7287 # Code from module close-stream:
7288 # Code from module crypto/md5:
7289 # Code from module crypto/sha1:
7290 # Code from module crypto/sha256:
7291 # Code from module crypto/sha512:
7292 # Code from module dirent:
7293 # Code from module dosname:
7294 # Code from module dtoastr:
7295 # Code from module dtotimespec:
7296 # Code from module dup2:
7297 # Code from module environ:
7298 # Code from module errno:
7299 # Code from module euidaccess:
7300 # Code from module execinfo:
7301 # Code from module extensions:
7303 # Code from module extern-inline:
7304 # Code from module faccessat:
7305 # Code from module fcntl:
7306 # Code from module fcntl-h:
7307 # Code from module fdatasync:
7308 # Code from module fdopendir:
7309 # Code from module filemode:
7310 # Code from module fpending:
7311 # Code from module fstatat:
7312 # Code from module fsync:
7313 # Code from module getdtablesize:
7314 # Code from module getgroups:
7315 # Code from module getloadavg:
7316 # Code from module getopt-gnu:
7317 # Code from module getopt-posix:
7318 # Code from module gettext-h:
7319 # Code from module gettime:
7320 # Code from module gettimeofday:
7321 # Code from module group-member:
7322 # Code from module include_next:
7323 # Code from module intprops:
7324 # Code from module inttypes-incomplete:
7325 # Code from module largefile:
7327 # Code from module lstat:
7328 # Code from module manywarnings:
7329 # Code from module memrchr:
7330 # Code from module mkostemp:
7331 # Code from module mktime:
7332 # Code from module multiarch:
7333 # Code from module nocrash:
7334 # Code from module openat-h:
7335 # Code from module pathmax:
7336 # Code from module pipe2:
7337 # Code from module pselect:
7338 # Code from module pthread_sigmask:
7339 # Code from module putenv:
7340 # Code from module qacl:
7341 # Code from module readlink:
7342 # Code from module readlinkat:
7343 # Code from module root-uid:
7344 # Code from module secure_getenv:
7345 # Code from module sig2str:
7346 # Code from module signal-h:
7347 # Code from module snippet/_Noreturn:
7348 # Code from module snippet/arg-nonnull:
7349 # Code from module snippet/c++defs:
7350 # Code from module snippet/warn-on-use:
7351 # Code from module socklen:
7352 # Code from module ssize_t:
7353 # Code from module stat:
7354 # Code from module stat-time:
7355 # Code from module stdalign:
7356 # Code from module stdarg:
7360 # Code from module stdbool:
7361 # Code from module stddef:
7362 # Code from module stdint:
7363 # Code from module stdio:
7364 # Code from module stdlib:
7365 # Code from module strftime:
7366 # Code from module string:
7367 # Code from module strtoimax:
7368 # Code from module strtoll:
7369 # Code from module strtoull:
7370 # Code from module strtoumax:
7371 # Code from module symlink:
7372 # Code from module sys_select:
7373 # Code from module sys_stat:
7374 # Code from module sys_time:
7375 # Code from module tempname:
7376 # Code from module time:
7377 # Code from module time_r:
7378 # Code from module timer-time:
7379 # Code from module timespec:
7380 # Code from module timespec-add:
7381 # Code from module timespec-sub:
7382 # Code from module u64:
7383 # Code from module unistd:
7384 # Code from module unsetenv:
7385 # Code from module utimens:
7386 # Code from module verify:
7387 # Code from module warnings:
7388 # Code from module xalloc-oversized:
7391 if test "$ac_test_CFLAGS" != set; then
7392 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7393 # if -g3 works and the user does not specify CFLAGS.
7394 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7397 emacs_g3_CFLAGS
='-g3';;
7399 emacs_g3_CFLAGS
='-g3 -O2';;
7401 emacs_g3_CFLAGS
='';;
7403 if test -n "$emacs_g3_CFLAGS"; then
7404 emacs_save_CFLAGS
=$CFLAGS
7405 CFLAGS
=$emacs_g3_CFLAGS
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7407 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7408 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7422 if ac_fn_c_try_link
"$LINENO"; then :
7423 emacs_cv_prog_cc_g3
=yes
7425 emacs_cv_prog_cc_g3
=no
7427 rm -f core conftest.err conftest.
$ac_objext \
7428 conftest
$ac_exeext conftest.
$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7431 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7432 if test $emacs_cv_prog_cc_g3 != yes; then
7433 CFLAGS
=$emacs_save_CFLAGS
7435 if test $opsys = mingw32
; then
7436 CFLAGS
="$CFLAGS -gdwarf-2"
7443 # No optimization flag was inferred for this non-GCC compiler.
7444 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7445 emacs_save_CFLAGS
=$CFLAGS
7446 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7449 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7450 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7464 if ac_fn_c_try_link
"$LINENO"; then :
7465 emacs_cv_prog_cc_o
=yes
7467 emacs_cv_prog_cc_o
=no
7469 rm -f core conftest.err conftest.
$ac_objext \
7470 conftest
$ac_exeext conftest.
$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7473 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7474 if test $emacs_cv_prog_cc_o != yes; then
7475 CFLAGS
=$emacs_save_CFLAGS
7480 # Check whether --enable-gcc-warnings was given.
7481 if test "${enable_gcc_warnings+set}" = set; then :
7482 enableval
=$enable_gcc_warnings; case $enableval in
7484 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7486 gl_gcc_warnings
=$enableval
7493 # Check whether --enable-link-time-optimization was given.
7494 if test "${enable_link_time_optimization+set}" = set; then :
7495 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7497 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7499 if test x
$GCC = xyes
; then
7500 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7501 if test x
$CPUS != x
; then
7507 CFLAGS
="$CFLAGS $LTO"
7508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7519 if ac_fn_c_try_compile
"$LINENO"; then :
7520 ac_lto_supported
=yes
7524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 CFLAGS
="$old_CFLAGS"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7528 $as_echo "$ac_lto_supported" >&6; }
7529 if test "$ac_lto_supported" = "yes"; then
7530 CFLAGS
="$CFLAGS $LTO"
7536 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7537 # ------------------------------------------------
7538 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7539 # Otherwise, run RUN-IF-NOT-FOUND.
7542 # When compiling with GCC, prefer -isystem to -I when including system
7543 # include files, to avoid generating useless diagnostics for the files.
7544 if test "$gl_gcc_warnings" != yes; then
7549 # This, $nw, is the list of warnings we disable.
7552 case $with_x_toolkit in
7553 lucid | athena | motif
)
7554 # Old toolkits mishandle 'const'.
7555 nw
="$nw -Wwrite-strings"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7559 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7560 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7564 gl_save_compiler_FLAGS
="$CFLAGS"
7565 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7577 if ac_fn_c_try_compile
"$LINENO"; then :
7578 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7580 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7583 CFLAGS
="$gl_save_compiler_FLAGS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7587 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7588 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7589 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7591 gl_unknown_warnings_are_errors
=
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7596 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7597 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7601 gl_save_compiler_FLAGS
="$CFLAGS"
7602 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7614 if ac_fn_c_try_compile
"$LINENO"; then :
7615 gl_cv_warn_c__Werror
=yes
7617 gl_cv_warn_c__Werror
=no
7619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 CFLAGS
="$gl_save_compiler_FLAGS"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7624 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7625 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7626 as_fn_append WERROR_CFLAGS
" -Werror"
7634 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7635 nw
="$nw -Woverlength-strings" # Not a problem these days
7636 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7637 nw
="$nw -Wformat-nonliteral" # we do this a lot
7638 nw
="$nw -Wvla" # warnings in gettext.h
7639 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7640 nw
="$nw -Wswitch-default" # Too many warnings for now
7641 nw
="$nw -Winline" # OK to ignore 'inline'
7642 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7643 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7644 # signed overflow has undefined behavior
7645 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7646 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7647 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7649 # Emacs doesn't care about shadowing; see
7650 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7653 # Emacs's use of alloca inhibits protecting the stack.
7654 nw
="$nw -Wstack-protector"
7656 # The following line should be removable at some point.
7657 nw
="$nw -Wsuggest-attribute=pure"
7659 # clang is unduly picky about some things.
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7661 $as_echo_n "checking whether the compiler is clang... " >&6; }
7662 if test "${emacs_cv_clang+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7680 if ac_fn_c_try_compile
"$LINENO"; then :
7685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7688 $as_echo "$emacs_cv_clang" >&6; }
7689 if test $emacs_cv_clang = yes; then
7690 nw
="$nw -Wcast-align"
7695 if test -n "$GCC"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7698 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7699 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7703 gl_save_CFLAGS
="$CFLAGS"
7704 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7716 if ac_fn_c_try_compile
"$LINENO"; then :
7717 gl_cv_cc_nomfi_supported
=yes
7719 gl_cv_cc_nomfi_supported
=no
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7722 CFLAGS
="$gl_save_CFLAGS"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7726 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7728 if test "$gl_cv_cc_nomfi_supported" = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7730 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7731 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7735 gl_save_CFLAGS
="$CFLAGS"
7736 CFLAGS
="$CFLAGS -W -Werror"
7737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7741 typedef struct { int a; int b; } s_t;
7753 if ac_fn_c_try_compile
"$LINENO"; then :
7754 gl_cv_cc_nomfi_needed
=no
7756 gl_cv_cc_nomfi_needed
=yes
7758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 CFLAGS
="$gl_save_CFLAGS"
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7764 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7768 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7769 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7773 gl_save_CFLAGS
="$CFLAGS"
7774 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7786 if ac_fn_c_try_compile
"$LINENO"; then :
7787 gl_cv_cc_uninitialized_supported
=yes
7789 gl_cv_cc_uninitialized_supported
=no
7791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7792 CFLAGS
="$gl_save_CFLAGS"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7796 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7800 # List all gcc warning categories.
7802 for gl_manywarn_item
in \
7806 -Waggressive-loop-optimizations \
7810 -Wbad-function-cast \
7811 -Wbuiltin-macro-redefined \
7817 -Wcoverage-mismatch \
7820 -Wdeprecated-declarations \
7821 -Wdisabled-optimization \
7823 -Wdouble-promotion \
7828 -Wformat-contains-nul \
7829 -Wformat-extra-args \
7830 -Wformat-nonliteral \
7833 -Wformat-zero-length \
7834 -Wfree-nonheap-object \
7835 -Wignored-qualifiers \
7837 -Wimplicit-function-declaration \
7841 -Wint-to-pointer-cast \
7842 -Winvalid-memory-model \
7844 -Wjump-misses-init \
7847 -Wmaybe-uninitialized \
7849 -Wmissing-declarations \
7850 -Wmissing-field-initializers \
7851 -Wmissing-include-dirs \
7852 -Wmissing-parameter-type \
7853 -Wmissing-prototypes \
7860 -Wold-style-declaration \
7861 -Wold-style-definition \
7863 -Woverlength-strings \
7866 -Wpacked-bitfield-compat \
7870 -Wpointer-to-int-cast \
7872 -Wreturn-local-addr \
7876 -Wsizeof-pointer-memaccess \
7880 -Wstrict-prototypes \
7881 -Wsuggest-attribute=const \
7882 -Wsuggest-attribute=format \
7883 -Wsuggest-attribute=noreturn \
7884 -Wsuggest-attribute=pure \
7894 -Wunsafe-loop-optimizations \
7896 -Wunused-but-set-parameter \
7897 -Wunused-but-set-variable \
7900 -Wunused-local-typedefs \
7902 -Wunused-parameter \
7908 -Wvector-operation-performance \
7910 -Wvolatile-register-var \
7914 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7917 # Disable specific options as needed.
7918 if test "$gl_cv_cc_nomfi_needed" = yes; then
7919 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7922 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7923 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7934 *" $gl_warn_item "*)
7937 gl_warn_set
="$gl_warn_set $gl_warn_item"
7945 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7947 case $gl_positive in
7948 -Wno-*) gl_positive
=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7951 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7952 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7953 $as_echo_n "(cached) " >&6
7956 gl_save_compiler_FLAGS
="$CFLAGS"
7957 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $gl_positive"
7958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7969 if ac_fn_c_try_compile
"$LINENO"; then :
7970 eval "$as_gl_Warn=yes"
7972 eval "$as_gl_Warn=no"
7974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7975 CFLAGS
="$gl_save_compiler_FLAGS"
7978 eval ac_res
=\$
$as_gl_Warn
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7980 $as_echo "$ac_res" >&6; }
7981 eval as_val
=\$
$as_gl_Warn
7982 if test "x$as_val" = x
""yes; then :
7983 as_fn_append WARN_CFLAGS
" $w"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7990 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7991 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7995 gl_save_compiler_FLAGS
="$CFLAGS"
7996 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8008 if ac_fn_c_try_compile
"$LINENO"; then :
8009 gl_cv_warn_c__Wno_missing_field_initializers
=yes
8011 gl_cv_warn_c__Wno_missing_field_initializers
=no
8013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 CFLAGS
="$gl_save_compiler_FLAGS"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8018 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8019 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
8020 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8026 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8027 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8031 gl_save_compiler_FLAGS
="$CFLAGS"
8032 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wsign-compare"
8033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8044 if ac_fn_c_try_compile
"$LINENO"; then :
8045 gl_cv_warn_c__Wno_sign_compare
=yes
8047 gl_cv_warn_c__Wno_sign_compare
=no
8049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8050 CFLAGS
="$gl_save_compiler_FLAGS"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8054 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8055 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8056 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8059 # Too many warnings for now
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8062 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8063 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8067 gl_save_compiler_FLAGS
="$CFLAGS"
8068 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtype-limits"
8069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8080 if ac_fn_c_try_compile
"$LINENO"; then :
8081 gl_cv_warn_c__Wno_type_limits
=yes
8083 gl_cv_warn_c__Wno_type_limits
=no
8085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8086 CFLAGS
="$gl_save_compiler_FLAGS"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8090 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8091 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8092 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8095 # Too many warnings for now
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8098 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8099 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8103 gl_save_compiler_FLAGS
="$CFLAGS"
8104 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wswitch"
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8116 if ac_fn_c_try_compile
"$LINENO"; then :
8117 gl_cv_warn_c__Wno_switch
=yes
8119 gl_cv_warn_c__Wno_switch
=no
8121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8122 CFLAGS
="$gl_save_compiler_FLAGS"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8126 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8127 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8128 as_fn_append WARN_CFLAGS
" -Wno-switch"
8131 # Too many warnings for now
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8134 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8135 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8139 gl_save_compiler_FLAGS
="$CFLAGS"
8140 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-parameter"
8141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8152 if ac_fn_c_try_compile
"$LINENO"; then :
8153 gl_cv_warn_c__Wno_unused_parameter
=yes
8155 gl_cv_warn_c__Wno_unused_parameter
=no
8157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 CFLAGS
="$gl_save_compiler_FLAGS"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8162 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8163 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8164 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8167 # Too many warnings for now
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8170 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8171 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8175 gl_save_compiler_FLAGS
="$CFLAGS"
8176 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8188 if ac_fn_c_try_compile
"$LINENO"; then :
8189 gl_cv_warn_c__Wno_format_nonliteral
=yes
8191 gl_cv_warn_c__Wno_format_nonliteral
=no
8193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8194 CFLAGS
="$gl_save_compiler_FLAGS"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8198 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8199 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8200 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8205 # In spite of excluding -Wlogical-op above, it is enabled, as of
8206 # gcc 4.5.0 20090517.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8209 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8210 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8214 gl_save_compiler_FLAGS
="$CFLAGS"
8215 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wlogical-op"
8216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8227 if ac_fn_c_try_compile
"$LINENO"; then :
8228 gl_cv_warn_c__Wno_logical_op
=yes
8230 gl_cv_warn_c__Wno_logical_op
=no
8232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 CFLAGS
="$gl_save_compiler_FLAGS"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8237 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8238 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8239 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8244 # More things that clang is unduly picky about.
8245 if test $emacs_cv_clang = yes; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8248 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8249 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8253 gl_save_compiler_FLAGS
="$CFLAGS"
8254 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wformat-extra-args"
8255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8266 if ac_fn_c_try_compile
"$LINENO"; then :
8267 gl_cv_warn_c__Wno_format_extra_args
=yes
8269 gl_cv_warn_c__Wno_format_extra_args
=no
8271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8272 CFLAGS
="$gl_save_compiler_FLAGS"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8276 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8277 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8278 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8284 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8285 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8289 gl_save_compiler_FLAGS
="$CFLAGS"
8290 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8302 if ac_fn_c_try_compile
"$LINENO"; then :
8303 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8305 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 CFLAGS
="$gl_save_compiler_FLAGS"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8312 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8313 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8314 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8320 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8321 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8325 gl_save_compiler_FLAGS
="$CFLAGS"
8326 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8338 if ac_fn_c_try_compile
"$LINENO"; then :
8339 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8341 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 CFLAGS
="$gl_save_compiler_FLAGS"
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8348 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8349 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8350 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8356 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8357 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8361 gl_save_compiler_FLAGS
="$CFLAGS"
8362 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wunused-value"
8363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8374 if ac_fn_c_try_compile
"$LINENO"; then :
8375 gl_cv_warn_c__Wno_unused_value
=yes
8377 gl_cv_warn_c__Wno_unused_value
=no
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 CFLAGS
="$gl_save_compiler_FLAGS"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8384 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8385 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8386 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8394 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8395 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8399 gl_save_compiler_FLAGS
="$CFLAGS"
8400 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8412 if ac_fn_c_try_compile
"$LINENO"; then :
8413 gl_cv_warn_c__fdiagnostics_show_option
=yes
8415 gl_cv_warn_c__fdiagnostics_show_option
=no
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8418 CFLAGS
="$gl_save_compiler_FLAGS"
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8422 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8423 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8424 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8430 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8431 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8435 gl_save_compiler_FLAGS
="$CFLAGS"
8436 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8448 if ac_fn_c_try_compile
"$LINENO"; then :
8449 gl_cv_warn_c__funit_at_a_time
=yes
8451 gl_cv_warn_c__funit_at_a_time
=no
8453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8454 CFLAGS
="$gl_save_compiler_FLAGS"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8458 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8459 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8460 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8466 $as_echo "#define lint 1" >>confdefs.h
8470 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8473 # We use a slightly smaller set of warning options for lib/.
8474 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8476 nw
="$nw -Wunused-macros"
8480 set x
$WARN_CFLAGS; shift
8484 *" $gl_warn_item "*)
8487 gl_warn_set
="$gl_warn_set $gl_warn_item"
8491 GNULIB_WARN_CFLAGS
=$gl_warn_set
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8502 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8503 rm -f conf$$ conf$$.
file
8505 LN_S_FILEONLY
='cp -p'
8507 if (echo >conf$$.
file) 2>/dev
/null
; then
8508 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8509 LN_S_FILEONLY
='ln -s'
8510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8515 rm -f conf$$ conf$$.
file
8517 if test "$LN_S_FILEONLY" = "ln -s"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8522 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8528 if test "$opsys" = "mingw32"; then
8532 # Extract the first word of "install-info", so it can be a program name with args.
8533 set dummy install-info
; ac_word
=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8539 case $INSTALL_INFO in
8541 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8545 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8548 test -z "$as_dir" && as_dir
=.
8549 for ac_exec_ext
in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8563 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8564 if test -n "$INSTALL_INFO"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8566 $as_echo "$INSTALL_INFO" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8573 # Extract the first word of "gzip", so it can be a program name with args.
8574 set dummy
gzip; ac_word
=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8582 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir
=.
8590 for ac_exec_ext
in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8604 if test -n "$GZIP_PROG"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8606 $as_echo "$GZIP_PROG" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8614 if test $opsys = gnu-linux
; then
8615 # Extract the first word of "paxctl", so it can be a program name with args.
8616 set dummy paxctl
; ac_word
=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8624 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8628 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8631 test -z "$as_dir" && as_dir
=.
8632 for ac_exec_ext
in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 PAXCTL
=$ac_cv_path_PAXCTL
8646 if test -n "$PAXCTL"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8648 $as_echo "$PAXCTL" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8655 if test "X$PAXCTL" != X
; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8657 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8669 if ac_fn_c_try_link
"$LINENO"; then :
8670 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8671 $as_echo "yes" >&6; }
8672 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }; PAXCTL
=""; fi
8675 rm -f core conftest.err conftest.
$ac_objext \
8676 conftest
$ac_exeext conftest.
$ac_ext
8680 ## Need makeinfo >= 4.7 (?) to build the manuals.
8681 # Extract the first word of "makeinfo", so it can be a program name with args.
8682 set dummy makeinfo
; ac_word
=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8690 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8697 test -z "$as_dir" && as_dir
=.
8698 for ac_exec_ext
in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8712 MAKEINFO
=$ac_cv_path_MAKEINFO
8713 if test -n "$MAKEINFO"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8715 $as_echo "$MAKEINFO" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8722 if test "$MAKEINFO" != "no"; then
8724 $MAKEINFO --version 2> /dev/null |
8725 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8731 ## Makeinfo is unusual. For a released Emacs, the manuals are
8732 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8733 ## therefore in the category of "special tools" not normally required, which
8734 ## configure does not have to check for (eg autoconf itself).
8735 ## In a Bazaar checkout on the other hand, the manuals are not included.
8736 ## So makeinfo is a requirement to build from Bazaar, and configure
8737 ## should test for it as it does for any other build requirement.
8738 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8739 ## with pre-built manuals, from a Bazaar checkout.
8742 if test "$MAKEINFO" = "no"; then
8744 if test "x${with_makeinfo}" = "xno"; then
8746 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8747 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8748 source tree does not seem to have pre-built manuals in the \`info' directory.
8749 Either install a suitable version of makeinfo, or re-run configure
8750 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8756 INFO_OPTS
=--no-split
8760 if test $opsys = mingw32
; then
8761 DOCMISC_W32
=efaq-w32
8768 if test x
$GCC = xyes
; then
8769 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8770 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8772 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8773 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8777 late_LDFLAGS
=$LDFLAGS
8778 if test x
$GCC = xyes
; then
8779 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8781 LDFLAGS
="$LDFLAGS -znocombreloc"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8785 $as_echo_n "checking for -znocombreloc... " >&6; }
8786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8797 if ac_fn_c_try_link
"$LINENO"; then :
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799 $as_echo "yes" >&6; }
8801 LDFLAGS
=$late_LDFLAGS
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8805 rm -f core conftest.err conftest.
$ac_objext \
8806 conftest
$ac_exeext conftest.
$ac_ext
8809 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8811 your-opsys-here
) CANNOT_DUMP
=yes ;;
8814 test "$CANNOT_DUMP" = "yes" && \
8816 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8822 UNEXEC_OBJ
=unexelf.o
8824 # MSDOS uses unexcoff.o
8826 UNEXEC_OBJ
=unexaix.o
8832 UNEXEC_OBJ
=unexmacosx.o
8835 UNEXEC_OBJ
=unexhp9k800.o
8838 UNEXEC_OBJ
=unexw32.o
8841 # Use the Solaris dldump() function, called from unexsol.c, to dump
8842 # emacs, instead of the generic ELF dump code found in unexelf.c.
8843 # The resulting binary has a complete symbol table, and is better
8844 # for debugging and other observability tools (debuggers, pstack, etc).
8846 # If you encounter a problem using dldump(), please consider sending
8847 # a message to the OpenSolaris tools-linking mailing list:
8848 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8850 # It is likely that dldump() works with older Solaris too, but this has
8851 # not been tested, so for now this change is for Solaris 10 or newer.
8852 UNEXEC_OBJ
=unexsol.o
8859 ## Let `ld' find image libs and similar things in /usr/local/lib.
8860 ## The system compiler, GCC, has apparently been modified to not
8861 ## look there, contrary to what a stock GCC would do.
8862 ### It's not our place to do this. See bug#10313#17.
8863 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8868 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8869 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8873 ### It's not our place to do this. See bug#10313#17.
8874 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8879 ## Han Boetes <han@boetes.org> says this is necessary,
8880 ## otherwise Emacs dumps core on elf systems.
8881 LD_SWITCH_SYSTEM
="-Z"
8886 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8888 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8889 ## which has not been defined yet. When this was handled with cpp,
8890 ## it was expanded to null when configure sourced the s/*.h file.
8891 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8892 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8893 ## (or somesuch), but because it is supposed to go at the _front_
8894 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8895 ## Compare with the gnu-linux case below, which added to the end
8896 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8897 ## LD_SWITCH_SYSTEM_TEMACS.
8900 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8907 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8908 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8912 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8913 ## With ELF, make sure that all common symbols get allocated to in the
8914 ## data section. Otherwise, the dump of temacs may miss variables in
8915 ## the shared library that have been initialized. For example, with
8916 ## GNU libc, __malloc_initialized would normally be resolved to the
8917 ## shared library's .bss section, which is fatal.
8918 if test "x$GCC" = "xyes"; then
8919 C_SWITCH_MACHINE
="-fno-common"
8921 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8924 UNEXEC_OBJ
=unexalpha.o
8933 ## Some programs in src produce warnings saying certain subprograms
8934 ## are too complex and need a MAXMEM value greater than 2000 for
8935 ## additional optimization. --nils@exp-math.uni-essen.de
8936 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8937 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8938 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8939 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8940 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8946 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8947 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8949 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8951 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8953 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8955 ## Motif needs -lgen.
8956 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8961 ### Make sure subsequent tests use flags consistent with the build flags.
8963 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8964 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8966 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8969 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8971 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8976 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8983 ## Adding -lm confuses the dynamic linker, so omit it.
8986 freebsd | dragonfly
)
8987 SYSTEM_TYPE
=berkeley-unix
8989 gnu-linux | gnu-kfreebsd
)
8991 hpux10-20 | hpux11
)
8995 SYSTEM_TYPE
=windows-nt
8998 SYSTEM_TYPE
=berkeley-unix
9002 SYSTEM_TYPE
=usg-unix-v
9009 cat >>confdefs.h
<<_ACEOF
9010 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9015 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
9016 pre_PKG_CONFIG_LIBS
=$LIBS
9018 # Extract the first word of "pkg-config", so it can be a program name with args.
9019 set dummy pkg-config
; ac_word
=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9027 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9034 test -z "$as_dir" && as_dir
=.
9035 for ac_exec_ext
in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9049 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9050 if test -n "$PKG_CONFIG"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9052 $as_echo "$PKG_CONFIG" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9063 if test "${with_sound}" != "no"; then
9064 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9065 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9067 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9068 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9070 #define WIN32_LEAN_AND_MEAN
9071 #include <windows.h>
9075 eval as_val
=\$
$as_ac_Header
9076 if test "x$as_val" = x
""yes; then :
9077 cat >>confdefs.h
<<_ACEOF
9078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9080 have_sound_header
=yes
9085 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9086 as_fn_error
"OSS sound support requested but not found." "$LINENO" 5
9088 if test "${with_sound}" = "bsd-ossaudio" ||
test "${with_sound}" = "yes"; then
9089 # Emulation library used on NetBSD.
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9091 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9092 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9095 ac_check_lib_save_LIBS
=$LIBS
9096 LIBS
="-lossaudio $LIBS"
9097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9110 return _oss_ioctl ();
9115 if ac_fn_c_try_link
"$LINENO"; then :
9116 ac_cv_lib_ossaudio__oss_ioctl
=yes
9118 ac_cv_lib_ossaudio__oss_ioctl
=no
9120 rm -f core conftest.err conftest.
$ac_objext \
9121 conftest
$ac_exeext conftest.
$ac_ext
9122 LIBS
=$ac_check_lib_save_LIBS
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9125 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9126 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9132 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9133 as_fn_error
"bsd-ossaudio sound support requested but not found." "$LINENO" 5
9137 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9139 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9143 if test "$PKG_CONFIG" = "no" ; then
9146 PKG_CONFIG_MIN_VERSION
=0.9.0
9147 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9149 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9151 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9152 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9153 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9160 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9161 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9163 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9170 ## If we have a custom action on failure, don't print errors, but
9171 ## do set a variable so people can do so. Do it in a subshell
9172 ## to capture any diagnostics in invoking pkg-config.
9173 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9185 if test $succeeded = yes; then
9191 if test $HAVE_ALSA = yes; then
9192 SAVE_CFLAGS
="$CFLAGS"
9194 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9195 LIBS
="$ALSA_LIBS $LIBS"
9196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <asoundlib.h>
9202 snd_lib_error_set_handler (0);
9207 if ac_fn_c_try_compile
"$LINENO"; then :
9208 emacs_alsa_normal
=yes
9210 emacs_alsa_normal
=no
9212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9213 if test "$emacs_alsa_normal" != yes; then
9214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <alsa/asoundlib.h>
9220 snd_lib_error_set_handler (0);
9225 if ac_fn_c_try_compile
"$LINENO"; then :
9226 emacs_alsa_subdir
=yes
9228 emacs_alsa_subdir
=no
9230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9231 if test "$emacs_alsa_subdir" != yes; then
9232 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9234 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9237 CFLAGS
="$SAVE_CFLAGS"
9239 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9240 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9242 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9244 elif test "${with_sound}" = "alsa"; then
9245 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9248 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9250 gnu-linux|freebsd|netbsd|mingw32
)
9252 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9265 for ac_header
in $ac_header_list
9267 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9268 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9270 eval as_val
=\$
$as_ac_Header
9271 if test "x$as_val" = x
""yes; then :
9272 cat >>confdefs.h
<<_ACEOF
9273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9299 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 #include <sys/personality.h>
9306 personality (PER_LINUX32)
9311 if ac_fn_c_try_compile
"$LINENO"; then :
9312 emacs_cv_personality_linux32
=yes
9314 emacs_cv_personality_linux32
=no
9316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9318 $as_echo "$emacs_cv_personality_linux32" >&6; }
9320 if test $emacs_cv_personality_linux32 = yes; then
9322 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9326 for ac_header
in term.h
9328 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9329 if test "x$ac_cv_header_term_h" = x
""yes; then :
9330 cat >>confdefs.h
<<_ACEOF
9331 #define HAVE_TERM_H 1
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9339 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9340 if test "${ac_cv_header_time+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 #include <sys/types.h>
9346 #include <sys/time.h>
9352 if ((struct tm *) 0)
9358 if ac_fn_c_try_compile
"$LINENO"; then :
9359 ac_cv_header_time
=yes
9361 ac_cv_header_time
=no
9363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9366 $as_echo "$ac_cv_header_time" >&6; }
9367 if test $ac_cv_header_time = yes; then
9369 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9373 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9376 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9382 cat >>confdefs.h
<<_ACEOF
9383 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9386 if test $ac_cv_have_decl_sys_siglist != yes; then
9387 # For Tru64, at least:
9388 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9391 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9397 cat >>confdefs.h
<<_ACEOF
9398 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9403 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9404 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <sys/types.h>
9410 #include <sys/wait.h>
9412 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9428 if ac_fn_c_try_compile
"$LINENO"; then :
9429 ac_cv_header_sys_wait_h
=yes
9431 ac_cv_header_sys_wait_h
=no
9433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9436 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9437 if test $ac_cv_header_sys_wait_h = yes; then
9439 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9447 for ac_header
in net
/if.h
9449 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9450 #if HAVE_SYS_SOCKET_H
9451 #include <sys/socket.h>
9454 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9455 cat >>confdefs.h
<<_ACEOF
9456 #define HAVE_NET_IF_H 1
9463 for ac_header
in ifaddrs.h
9465 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9466 #if HAVE_SYS_SOCKET_H
9467 #include <sys/socket.h>
9470 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9471 cat >>confdefs.h
<<_ACEOF
9472 #define HAVE_IFADDRS_H 1
9479 for ac_header
in net
/if_dl.h
9481 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9482 #if HAVE_SYS_SOCKET_H
9483 #include <sys/socket.h>
9486 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9487 cat >>confdefs.h
<<_ACEOF
9488 #define HAVE_NET_IF_DL_H 1
9496 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9497 #if HAVE_SYS_SOCKET_H
9498 #include <sys/socket.h>
9504 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9506 cat >>confdefs.h
<<_ACEOF
9507 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9512 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9513 #if HAVE_SYS_SOCKET_H
9514 #include <sys/socket.h>
9520 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9522 cat >>confdefs.h
<<_ACEOF
9523 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9528 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9529 #if HAVE_SYS_SOCKET_H
9530 #include <sys/socket.h>
9536 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9538 cat >>confdefs.h
<<_ACEOF
9539 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9544 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9545 #if HAVE_SYS_SOCKET_H
9546 #include <sys/socket.h>
9552 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9554 cat >>confdefs.h
<<_ACEOF
9555 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9560 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9561 #if HAVE_SYS_SOCKET_H
9562 #include <sys/socket.h>
9568 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9570 cat >>confdefs.h
<<_ACEOF
9571 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9576 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9577 #if HAVE_SYS_SOCKET_H
9578 #include <sys/socket.h>
9584 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9586 cat >>confdefs.h
<<_ACEOF
9587 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9599 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9601 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9603 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9604 if test "x$testval" != x
; then
9607 ac_enable_autodepend
=no
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9610 $as_echo "$HAVE_GNU_MAKE" >&6; }
9611 if test $HAVE_GNU_MAKE = yes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9613 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9614 SAVE_CFLAGS
="$CFLAGS"
9615 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9627 if ac_fn_c_try_compile
"$LINENO"; then :
9630 ac_enable_autodepend
=no
9632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9633 CFLAGS
="$SAVE_CFLAGS"
9634 test -f deps.d || ac_enable_autodepend
=no
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9637 $as_echo "$ac_enable_autodepend" >&6; }
9639 if test $ac_enable_autodepend = yes; then
9640 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9641 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9642 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9643 deps_frag
=autodeps.mk
9646 deps_frag
=$srcdir/src
/$deps_frag
9652 lisp_frag
=$srcdir/src
/lisp.mk
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9657 $as_echo_n "checking for long file names... " >&6; }
9658 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9661 ac_cv_sys_long_file_names
=yes
9662 # Test for long file names in all the places we know might matter:
9663 # . the current directory, where building will happen
9664 # $prefix/lib where we will be installing things
9665 # $exec_prefix/lib likewise
9666 # $TMPDIR if set, where it might want to write temporary files
9667 # /tmp where it might want to write temporary files
9670 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9671 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9672 # in the usual case where exec_prefix is '${prefix}'.
9674 . |
/* | ?
:[\\/]*) ;; #(
9677 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9678 ac_xdir
=$ac_dir/cf$$
9679 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9680 ac_tf1
=$ac_xdir/conftest9012345
9681 ac_tf2
=$ac_xdir/conftest9012346
9682 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9683 ac_cv_sys_long_file_names
=no
9684 rm -f -r "$ac_xdir" 2>/dev
/null
9685 test $ac_cv_sys_long_file_names = no
&& break
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9689 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9690 if test $ac_cv_sys_long_file_names = yes; then
9692 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9697 #### Choose a window system.
9699 ## We leave window_system equal to none if
9700 ## we end up building without one. Any new window system should
9701 ## set window_system to an appropriate value and add objects to
9702 ## window-system-specific substs.
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9706 $as_echo_n "checking for X... " >&6; }
9709 # Check whether --with-x was given.
9710 if test "${with_x+set}" = set; then :
9714 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9715 if test "x$with_x" = xno
; then
9716 # The user explicitly disabled X.
9719 case $x_includes,$x_libraries in #(
9720 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9721 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9724 # One or both of the vars are not set, and there is no cached value.
9725 ac_x_includes
=no ac_x_libraries
=no
9726 rm -f -r conftest.dir
9727 if mkdir conftest.dir
; then
9729 cat >Imakefile
<<'_ACEOF'
9731 @echo incroot='${INCROOT}'
9733 @echo usrlibdir='${USRLIBDIR}'
9735 @echo libdir='${LIBDIR}'
9737 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9739 for ac_var
in incroot usrlibdir libdir
; do
9740 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9742 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9743 for ac_extension
in a so sl dylib la dll
; do
9744 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9745 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9746 ac_im_usrlibdir
=$ac_im_libdir; break
9749 # Screen out bogus values from the imake configuration. They are
9750 # bogus both because they are the default anyway, and because
9751 # using them would break gcc on systems where it needs fixed includes.
9752 case $ac_im_incroot in
9753 /usr
/include
) ac_x_includes
= ;;
9754 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9756 case $ac_im_usrlibdir in
9757 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9758 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9762 rm -f -r conftest.dir
9765 # Standard set of common directories for X headers.
9766 # Check X11 before X11Rn because it is often a symlink to the current release.
9780 /usr/local/X11/include
9781 /usr/local/X11R7/include
9782 /usr/local/X11R6/include
9783 /usr/local/X11R5/include
9784 /usr/local/X11R4/include
9786 /usr/local/include/X11
9787 /usr/local/include/X11R7
9788 /usr/local/include/X11R6
9789 /usr/local/include/X11R5
9790 /usr/local/include/X11R4
9794 /usr/XFree86/include/X11
9798 /usr/unsupported/include
9800 /usr/local/x11r5/include
9801 /usr/lpp/Xamples/include
9803 /usr/openwin/include
9804 /usr/openwin/share/include'
9806 if test "$ac_x_includes" = no
; then
9807 # Guess where to find include files, by looking for Xlib.h.
9808 # First, try using that file with no special directory specified.
9809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #include <X11/Xlib.h>
9813 if ac_fn_c_try_cpp
"$LINENO"; then :
9814 # We can compile using X headers with no special include directory.
9817 for ac_dir
in $ac_x_header_dirs; do
9818 if test -r "$ac_dir/X11/Xlib.h"; then
9819 ac_x_includes
=$ac_dir
9824 rm -f conftest.err conftest.
$ac_ext
9825 fi # $ac_x_includes = no
9827 if test "$ac_x_libraries" = no
; then
9828 # Check for the libraries.
9829 # See if we find them without any special options.
9830 # Don't add to $LIBS permanently.
9833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <X11/Xlib.h>
9844 if ac_fn_c_try_link
"$LINENO"; then :
9846 # We can link X programs with no special library path.
9850 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9852 # Don't even attempt the hair of trying to link an X program!
9853 for ac_extension
in a so sl dylib la dll
; do
9854 if test -r "$ac_dir/libX11.$ac_extension"; then
9855 ac_x_libraries
=$ac_dir
9861 rm -f core conftest.err conftest.
$ac_objext \
9862 conftest
$ac_exeext conftest.
$ac_ext
9863 fi # $ac_x_libraries = no
9865 case $ac_x_includes,$ac_x_libraries in #(
9867 # Didn't find X, or a directory has "'" in its name.
9868 ac_cv_have_x
="have_x=no";; #(
9870 # Record where we found X for the cache.
9871 ac_cv_have_x
="have_x=yes\
9872 ac_x_includes='$ac_x_includes'\
9873 ac_x_libraries='$ac_x_libraries'"
9879 eval "$ac_cv_have_x"
9882 if test "$have_x" != yes; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9884 $as_echo "$have_x" >&6; }
9887 # If each of the values was on the command line, it overrides each guess.
9888 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9889 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9890 # Update the cache value to reflect the command line values.
9891 ac_cv_have_x
="have_x=yes\
9892 ac_x_includes='$x_includes'\
9893 ac_x_libraries='$x_libraries'"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9895 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9898 if test "$no_x" != yes; then
9902 LD_SWITCH_X_SITE_RPATH
=
9903 if test "${x_libraries}" != NONE
; then
9904 if test -n "${x_libraries}"; then
9905 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9906 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9908 x_default_search_path
=""
9909 x_search_path
=${x_libraries}
9910 if test -z "${x_search_path}"; then
9911 x_search_path
=/usr
/lib
9913 for x_library
in `echo ${x_search_path}: | \
9914 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9916 ${x_library}/X11/%L/%T/%N%C%S:\
9917 ${x_library}/X11/%l/%T/%N%C%S:\
9918 ${x_library}/X11/%T/%N%C%S:\
9919 ${x_library}/X11/%L/%T/%N%S:\
9920 ${x_library}/X11/%l/%T/%N%S:\
9921 ${x_library}/X11/%T/%N%S"
9922 if test x
"${x_default_search_path}" = x
; then
9923 x_default_search_path
=${x_search_path}
9925 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9931 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9932 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9935 if test x
"${x_includes}" = x
; then
9936 bitmapdir
=/usr
/include
/X11
/bitmaps
9938 # accumulate include directories that have X11 bitmap subdirectories
9940 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9941 if test -d "${bmd}/X11/bitmaps"; then
9942 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9944 if test -d "${bmd}/bitmaps"; then
9945 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9948 if test ${bmd_acc} != "dummyval"; then
9949 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9956 tmp_CPPFLAGS
="$CPPFLAGS"
9957 tmp_CFLAGS
="$CFLAGS"
9958 CPPFLAGS
="$CPPFLAGS -x objective-c"
9959 CFLAGS
="$CFLAGS -x objective-c"
9962 if test "${with_ns}" != no
; then
9963 if test "${opsys}" = darwin
; then
9965 ns_appdir
=`pwd`/nextstep
/Emacs.app
9966 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9967 ns_appresdir
=${ns_appdir}/Contents
/Resources
9968 ns_appsrc
=Cocoa
/Emacs.base
9969 elif test -f $GNUSTEP_CONFIG_FILE; then
9971 ns_appdir
=`pwd`/nextstep
/Emacs.app
9972 ns_appbindir
=${ns_appdir}
9973 ns_appresdir
=${ns_appdir}/Resources
9974 ns_appsrc
=GNUstep
/Emacs.base
9975 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9976 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9977 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9978 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9979 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9980 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9981 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9982 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9983 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9984 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9985 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9986 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9988 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9989 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 #include <GNUstepBase/GSConfig.h>
9998 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10007 if ac_fn_c_try_compile
"$LINENO"; then :
10008 emacs_cv_objc_exceptions
=yes
10010 emacs_cv_objc_exceptions
=no
10012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10015 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10016 if test $emacs_cv_objc_exceptions = yes; then
10018 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10020 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10024 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10026 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10030 as_fn_error
"\`--with-ns' was specified, but the include
10031 files are missing or cannot be compiled." "$LINENO" 5
10036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <AppKit/AppKit.h>
10043 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10044 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10047 #error "OSX 10.4 or newer required"
10055 if ac_fn_c_try_compile
"$LINENO"; then :
10056 ns_osx_have_104
=yes
10060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <Foundation/NSObjCRuntime.h>
10072 if ac_fn_c_try_compile
"$LINENO"; then :
10073 ns_have_nsinteger
=yes
10075 ns_have_nsinteger
=no
10077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10078 if test $ns_osx_have_104 = no
; then
10079 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10081 if test $ns_have_nsinteger = yes; then
10083 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10090 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10091 ns_self_contained
=no
10094 if test "${HAVE_NS}" = yes; then
10095 if test "$with_toolkit_scroll_bars" = "no"; then
10096 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10099 window_system
=nextstep
10100 # set up packaging dirs
10101 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10102 ns_self_contained
=yes
10103 prefix
=${ns_appresdir}
10104 exec_prefix
=${ns_appbindir}
10105 libexecdir
="\${ns_appbindir}/libexec"
10106 archlibdir
="\${ns_appbindir}/libexec"
10107 etcdocdir
="\${ns_appresdir}/etc"
10108 etcdir
="\${ns_appresdir}/etc"
10109 infodir
="\${ns_appresdir}/info"
10110 mandir
="\${ns_appresdir}/man"
10111 lispdir
="\${ns_appresdir}/lisp"
10112 leimdir
="\${ns_appresdir}/leim"
10113 INSTALL_ARCH_INDEP_EXTRA
=
10115 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10117 CFLAGS
="$tmp_CFLAGS"
10118 CPPFLAGS
="$tmp_CPPFLAGS"
10133 if test "${with_w32}" != no
; then
10136 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10137 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10140 as_fn_error
"\`--with-w32' was specified, but windows.h
10141 cannot be found." "$LINENO" 5
10147 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10150 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10155 if test "${opsys}" = "mingw32"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10157 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10161 #include <windows.h>
10166 PIMAGE_NT_HEADERS pHeader;
10167 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10172 if ac_fn_c_try_compile
"$LINENO"; then :
10173 emacs_cv_w32api
=yes
10178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10180 $as_echo "$emacs_cv_w32api" >&6; }
10181 if test "${emacs_cv_w32api}" = "no"; then
10182 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10193 if test "${HAVE_W32}" = "yes"; then
10195 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10197 if test -n "$ac_tool_prefix"; then
10198 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10199 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10205 if test -n "$WINDRES"; then
10206 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10209 for as_dir
in $PATH
10212 test -z "$as_dir" && as_dir
=.
10213 for ac_exec_ext
in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 WINDRES
=$ac_cv_prog_WINDRES
10226 if test -n "$WINDRES"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10228 $as_echo "$WINDRES" >&6; }
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10236 if test -z "$ac_cv_prog_WINDRES"; then
10237 ac_ct_WINDRES
=$WINDRES
10238 # Extract the first word of "windres", so it can be a program name with args.
10239 set dummy windres
; ac_word
=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10245 if test -n "$ac_ct_WINDRES"; then
10246 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10249 for as_dir
in $PATH
10252 test -z "$as_dir" && as_dir
=.
10253 for ac_exec_ext
in '' $ac_executable_extensions; do
10254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_prog_ac_ct_WINDRES
="windres"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10266 if test -n "$ac_ct_WINDRES"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10268 $as_echo "$ac_ct_WINDRES" >&6; }
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10274 if test "x$ac_ct_WINDRES" = x
; then
10275 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10277 case $cross_compiling:$ac_tool_warned in
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10281 ac_tool_warned
=yes ;;
10283 WINDRES
=$ac_ct_WINDRES
10286 WINDRES
="$ac_cv_prog_WINDRES"
10289 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10290 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10291 EMACSRES
="emacs.res"
10292 case "$canonical" in
10293 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10294 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10296 UPDATE_MANIFEST
=update-game-score.exe.manifest
10297 if test "${opsys}" = "cygwin"; then
10298 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10299 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10300 # Tell the linker that emacs.res is an object (which we compile from
10301 # the rc file), not a linker script.
10302 W32_RES_LINK
="-Wl,emacs.res"
10304 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10305 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10306 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10307 W32_RES_LINK
="\$(EMACSRES)"
10308 CLIENTRES
="emacsclient.res"
10309 CLIENTW
="emacsclientw\$(EXEEXT)"
10310 FIRSTFILE_OBJ
=firstfile.o
10313 LIBS_ECLIENT
="-lcomctl32"
10314 LIB_WSOCK32
="-lwsock32"
10315 NTLIB
="ntlib.$ac_objext"
10316 XARGS_LIMIT
="-s 10000"
10335 if test "${HAVE_W32}" = "yes"; then
10340 ## $window_system is now set to the window system we will
10348 case "${window_system}" in
10352 term_header
=xterm.h
10353 case "${with_x_toolkit}" in
10354 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10355 motif
) USE_X_TOOLKIT
=MOTIF
;;
10357 term_header
=gtkutil.h
10358 USE_X_TOOLKIT
=none
;;
10359 gtk2
) with_gtk2
=yes
10360 term_header
=gtkutil.h
10361 USE_X_TOOLKIT
=none
;;
10362 gtk3
) with_gtk3
=yes
10363 term_header
=gtkutil.h
10364 USE_X_TOOLKIT
=none
;;
10365 no
) USE_X_TOOLKIT
=none
;;
10366 * ) USE_X_TOOLKIT
=maybe
;;
10370 term_header
=nsterm.h
10373 term_header
=w32term.h
10377 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10378 # Extract the first word of "X", so it can be a program name with args.
10379 set dummy X
; ac_word
=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10385 if test -n "$HAVE_XSERVER"; then
10386 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10389 for as_dir
in $PATH
10392 test -z "$as_dir" && as_dir
=.
10393 for ac_exec_ext
in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395 ac_cv_prog_HAVE_XSERVER
="true"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10406 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10407 if test -n "$HAVE_XSERVER"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10409 $as_echo "$HAVE_XSERVER" >&6; }
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 if test "$HAVE_XSERVER" = true ||
10417 test -n "$DISPLAY" ||
10418 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10419 as_fn_error
"You seem to be running X, but no X development libraries
10420 were found. You should install the relevant development files for X
10421 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10422 sure you have development files for image handling, i.e.
10423 tiff, gif, jpeg, png and xpm.
10424 If you are sure you want Emacs compiled without X window support, pass
10426 to configure." "$LINENO" 5
10430 ### If we're using X11, we should use the X menu package.
10432 case ${HAVE_X11} in
10433 yes ) HAVE_MENUS
=yes ;;
10436 # Does the opsystem file prohibit the use of the GNU malloc?
10437 # Assume not, until told otherwise.
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10441 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10442 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 #include <malloc.h>
10448 static void hook (void) {}
10452 malloc_set_state (malloc_get_state ());
10453 __after_morecore_hook = hook;
10454 __malloc_initialize_hook = hook;
10459 if ac_fn_c_try_link
"$LINENO"; then :
10460 emacs_cv_var_doug_lea_malloc
=yes
10462 emacs_cv_var_doug_lea_malloc
=no
10464 rm -f core conftest.err conftest.
$ac_objext \
10465 conftest
$ac_exeext conftest.
$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10468 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10469 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10474 ## darwin ld insists on the use of malloc routines in the System framework.
10475 darwin|sol2-10
) system_malloc
=yes ;;
10478 if test "${system_malloc}" = "yes"; then
10480 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10483 GNU_MALLOC_reason
="
10484 (The GNU allocators don't work with this system configuration.)"
10488 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10489 VMLIMIT_OBJ
=vm-limit.o
10491 for ac_header
in sys
/vlimit.h
10493 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10494 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_SYS_VLIMIT_H 1
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10504 $as_echo_n "checking for data_start... " >&6; }
10505 if test "${emacs_cv_data_start+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 extern char data_start[]; char ch;
10514 return data_start < &ch;
10519 if ac_fn_c_try_link
"$LINENO"; then :
10520 emacs_cv_data_start
=yes
10522 emacs_cv_data_start
=no
10524 rm -f core conftest.err conftest.
$ac_objext \
10525 conftest
$ac_exeext conftest.
$ac_ext
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10528 $as_echo "$emacs_cv_data_start" >&6; }
10529 if test $emacs_cv_data_start = yes; then
10531 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10538 if test "$doug_lea_malloc" = "yes" ; then
10539 if test "$GNU_MALLOC" = yes ; then
10540 GNU_MALLOC_reason
="
10541 (Using Doug Lea's new malloc from the GNU C Library.)"
10544 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10547 ## Use mmap directly for allocating larger buffers.
10548 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10549 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10550 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10552 gnu
*) REL_ALLOC
=no
;;
10556 if test x
"${REL_ALLOC}" = x
; then
10557 REL_ALLOC
=${GNU_MALLOC}
10560 use_mmap_for_buffers
=no
10562 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10572 for ac_func
in getpagesize
10574 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10575 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10576 cat >>confdefs.h
<<_ACEOF
10577 #define HAVE_GETPAGESIZE 1
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10584 $as_echo_n "checking for working mmap... " >&6; }
10585 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10588 if test "$cross_compiling" = yes; then :
10589 ac_cv_func_mmap_fixed_mapped
=no
10591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 $ac_includes_default
10594 /* malloc might have been renamed as rpl_malloc. */
10597 /* Thanks to Mike Haertel and Jim Avera for this test.
10598 Here is a matrix of mmap possibilities:
10599 mmap private not fixed
10600 mmap private fixed at somewhere currently unmapped
10601 mmap private fixed at somewhere already mapped
10602 mmap shared not fixed
10603 mmap shared fixed at somewhere currently unmapped
10604 mmap shared fixed at somewhere already mapped
10605 For private mappings, we should verify that changes cannot be read()
10606 back from the file, nor mmap's back from the file at a different
10607 address. (There have been systems where private was not correctly
10608 implemented like the infamous i386 svr4.0, and systems where the
10609 VM page cache was not coherent with the file system buffer cache
10610 like early versions of FreeBSD and possibly contemporary NetBSD.)
10611 For shared mappings, we should conversely verify that changes get
10612 propagated back to all the places they're supposed to be.
10614 Grep wants private fixed already mapped.
10615 The main things grep needs to know about mmap are:
10616 * does it exist and is it safe to write into the mmap'd area
10617 * how to use it (BSD variants) */
10620 #include <sys/mman.h>
10622 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10626 /* This mess was copied from the GNU getpagesize.h. */
10627 #ifndef HAVE_GETPAGESIZE
10628 # ifdef _SC_PAGESIZE
10629 # define getpagesize() sysconf(_SC_PAGESIZE)
10630 # else /* no _SC_PAGESIZE */
10631 # ifdef HAVE_SYS_PARAM_H
10632 # include <sys/param.h>
10633 # ifdef EXEC_PAGESIZE
10634 # define getpagesize() EXEC_PAGESIZE
10635 # else /* no EXEC_PAGESIZE */
10637 # define getpagesize() NBPG * CLSIZE
10640 # endif /* no CLSIZE */
10641 # else /* no NBPG */
10643 # define getpagesize() NBPC
10644 # else /* no NBPC */
10646 # define getpagesize() PAGESIZE
10647 # endif /* PAGESIZE */
10648 # endif /* no NBPC */
10649 # endif /* no NBPG */
10650 # endif /* no EXEC_PAGESIZE */
10651 # else /* no HAVE_SYS_PARAM_H */
10652 # define getpagesize() 8192 /* punt totally */
10653 # endif /* no HAVE_SYS_PARAM_H */
10654 # endif /* no _SC_PAGESIZE */
10656 #endif /* no HAVE_GETPAGESIZE */
10661 char *data, *data2, *data3;
10662 const char *cdata2;
10666 pagesize = getpagesize ();
10668 /* First, make a file with some known garbage in it. */
10669 data = (char *) malloc (pagesize);
10672 for (i = 0; i < pagesize; ++i)
10673 *(data + i) = rand ();
10675 fd = creat ("conftest.mmap", 0600);
10678 if (write (fd, data, pagesize) != pagesize)
10682 /* Next, check that the tail of a page is zero-filled. File must have
10683 non-zero length, otherwise we risk SIGBUS for entire page. */
10684 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10688 if (write (fd2, cdata2, 1) != 1)
10690 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10691 if (data2 == MAP_FAILED)
10693 for (i = 0; i < pagesize; ++i)
10697 if (munmap (data2, pagesize))
10700 /* Next, try to mmap the file at a fixed address which already has
10701 something else allocated at it. If we can, also make sure that
10702 we see the same garbage. */
10703 fd = open ("conftest.mmap", O_RDWR);
10706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10709 for (i = 0; i < pagesize; ++i)
10710 if (*(data + i) != *(data2 + i))
10713 /* Finally, make sure that changes to the mapped area do not
10714 percolate back to the file as seen by read(). (This is a bug on
10715 some variants of i386 svr4.0.) */
10716 for (i = 0; i < pagesize; ++i)
10717 *(data2 + i) = *(data2 + i) + 1;
10718 data3 = (char *) malloc (pagesize);
10721 if (read (fd, data3, pagesize) != pagesize)
10723 for (i = 0; i < pagesize; ++i)
10724 if (*(data + i) != *(data3 + i))
10730 if ac_fn_c_try_run
"$LINENO"; then :
10731 ac_cv_func_mmap_fixed_mapped
=yes
10733 ac_cv_func_mmap_fixed_mapped
=no
10735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10736 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10741 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10742 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10744 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10747 rm -f conftest.mmap conftest.txt
10749 if test $use_mmap_for_buffers = yes; then
10751 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10756 LIBS
="$LIBS_SYSTEM $LIBS"
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10759 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10760 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10763 ac_check_lib_save_LIBS
=$LIBS
10764 LIBS
="-ldnet $LIBS"
10765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10778 return dnet_ntoa ();
10783 if ac_fn_c_try_link
"$LINENO"; then :
10784 ac_cv_lib_dnet_dnet_ntoa
=yes
10786 ac_cv_lib_dnet_dnet_ntoa
=no
10788 rm -f core conftest.err conftest.
$ac_objext \
10789 conftest
$ac_exeext conftest.
$ac_ext
10790 LIBS
=$ac_check_lib_save_LIBS
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10793 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10794 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10795 cat >>confdefs.h
<<_ACEOF
10796 #define HAVE_LIBDNET 1
10799 LIBS
="-ldnet $LIBS"
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10805 $as_echo_n "checking for main in -lXbsd... " >&6; }
10806 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10809 ac_check_lib_save_LIBS
=$LIBS
10810 LIBS
="-lXbsd $LIBS"
10811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10823 if ac_fn_c_try_link
"$LINENO"; then :
10824 ac_cv_lib_Xbsd_main
=yes
10826 ac_cv_lib_Xbsd_main
=no
10828 rm -f core conftest.err conftest.
$ac_objext \
10829 conftest
$ac_exeext conftest.
$ac_ext
10830 LIBS
=$ac_check_lib_save_LIBS
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10833 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10834 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10835 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10843 if test "$ac_cv_header_pthread_h"; then
10844 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10845 emacs_pthread_function
=pthread_atfork
10847 emacs_pthread_function
=pthread_self
10849 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10851 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10852 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10853 $as_echo_n "(cached) " >&6
10855 ac_check_lib_save_LIBS
=$LIBS
10856 LIBS
="-lpthread $LIBS"
10857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10866 char $emacs_pthread_function ();
10870 return $emacs_pthread_function ();
10875 if ac_fn_c_try_link
"$LINENO"; then :
10876 eval "$as_ac_Lib=yes"
10878 eval "$as_ac_Lib=no"
10880 rm -f core conftest.err conftest.
$ac_objext \
10881 conftest
$ac_exeext conftest.
$ac_ext
10882 LIBS
=$ac_check_lib_save_LIBS
10884 eval ac_res
=\$
$as_ac_Lib
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887 eval as_val
=\$
$as_ac_Lib
10888 if test "x$as_val" = x
""yes; then :
10893 if test "$HAVE_PTHREAD" = yes; then
10894 case "${canonical}" in
10896 *) LIB_PTHREAD
="-lpthread"
10897 LIBS
="$LIB_PTHREAD $LIBS" ;;
10900 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10906 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10907 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10910 ac_check_lib_save_LIBS
=$LIBS
10911 LIBS
="-lpthreads $LIBS"
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10925 return cma_open ();
10930 if ac_fn_c_try_link
"$LINENO"; then :
10931 ac_cv_lib_pthreads_cma_open
=yes
10933 ac_cv_lib_pthreads_cma_open
=no
10935 rm -f core conftest.err conftest.
$ac_objext \
10936 conftest
$ac_exeext conftest.
$ac_ext
10937 LIBS
=$ac_check_lib_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10940 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10941 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10942 cat >>confdefs.h
<<_ACEOF
10943 #define HAVE_LIBPTHREADS 1
10946 LIBS
="-lpthreads $LIBS"
10951 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10952 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10953 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10954 ## added to LIBS in configure would never contain the pthreads part,
10955 ## but the value used in Makefiles might. FIXME?
10957 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10958 ## be harmless on older versions of X where it happens to exist.
10959 test "$opsys" = "aix4-2" && \
10960 test $ac_cv_lib_pthreads_cma_open = yes && \
10961 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10967 $as_echo_n "checking for -bbigtoc option... " >&6; }
10968 if test "${gdb_cv_bigtoc+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10973 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10974 *) gdb_cv_bigtoc
=-bbigtoc ;;
10977 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10989 if ac_fn_c_try_link
"$LINENO"; then :
10994 rm -f core conftest.err conftest.
$ac_objext \
10995 conftest
$ac_exeext conftest.
$ac_ext
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10999 $as_echo "$gdb_cv_bigtoc" >&6; }
11003 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11004 # used for the tests that follow. We set them back to REAL_CFLAGS and
11005 # REAL_CPPFLAGS later on.
11007 REAL_CFLAGS
="$CFLAGS"
11008 REAL_CPPFLAGS
="$CPPFLAGS"
11010 if test "${HAVE_X11}" = "yes"; then
11011 DEFS
="$C_SWITCH_X_SITE $DEFS"
11012 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11014 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11015 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11017 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11018 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11019 # but it's more convenient here to set LD_RUN_PATH since this
11020 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11021 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11022 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11026 if test "${opsys}" = "gnu-linux"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11028 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11035 XOpenDisplay ("foo");
11040 if ac_fn_c_try_link
"$LINENO"; then :
11041 xgnu_linux_first_failure
=no
11043 xgnu_linux_first_failure
=yes
11045 rm -f core conftest.err conftest.
$ac_objext \
11046 conftest
$ac_exeext conftest.
$ac_ext
11047 if test "${xgnu_linux_first_failure}" = "yes"; then
11048 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11049 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11050 OLD_CPPFLAGS
="$CPPFLAGS"
11052 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11053 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11054 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11055 LIBS
="$LIBS -b i486-linuxaout"
11056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11062 XOpenDisplay ("foo");
11067 if ac_fn_c_try_link
"$LINENO"; then :
11068 xgnu_linux_second_failure
=no
11070 xgnu_linux_second_failure
=yes
11072 rm -f core conftest.err conftest.
$ac_objext \
11073 conftest
$ac_exeext conftest.
$ac_ext
11074 if test "${xgnu_linux_second_failure}" = "yes"; then
11075 # If we get the same failure with -b, there is no use adding -b.
11076 # So take it out. This plays safe.
11077 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11078 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11079 CPPFLAGS
="$OLD_CPPFLAGS"
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11085 $as_echo "yes" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11093 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11094 # header files included from there.
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11096 $as_echo_n "checking for Xkb... " >&6; }
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 #include <X11/Xlib.h>
11100 #include <X11/XKBlib.h>
11104 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11109 if ac_fn_c_try_link
"$LINENO"; then :
11114 rm -f core conftest.err conftest.
$ac_objext \
11115 conftest
$ac_exeext conftest.
$ac_ext
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11117 $as_echo "$emacs_xkb" >&6; }
11118 if test $emacs_xkb = yes; then
11120 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11124 for ac_func
in XrmSetDatabase XScreenResourceString \
11125 XScreenNumberOfScreen
11127 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11129 eval as_val
=\$
$as_ac_var
11130 if test "x$as_val" = x
""yes; then :
11131 cat >>confdefs.h
<<_ACEOF
11132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 if test "${window_system}" = "x11"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11142 $as_echo_n "checking X11 version 6... " >&6; }
11143 if test "${emacs_cv_x11_version_6+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 #include <X11/Xlib.h>
11152 #if XlibSpecificationRelease < 6
11160 if ac_fn_c_try_link
"$LINENO"; then :
11161 emacs_cv_x11_version_6
=yes
11163 emacs_cv_x11_version_6
=no
11165 rm -f core conftest.err conftest.
$ac_objext \
11166 conftest
$ac_exeext conftest.
$ac_ext
11169 if test $emacs_cv_x11_version_6 = yes; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11171 $as_echo "6 or newer" >&6; }
11173 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11176 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11178 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11183 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11189 $as_echo "before 6" >&6; }
11194 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11196 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11197 if test "${with_rsvg}" != "no"; then
11198 RSVG_REQUIRED
=2.11.0
11199 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11204 if test "$PKG_CONFIG" = "no" ; then
11207 PKG_CONFIG_MIN_VERSION
=0.9.0
11208 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11210 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11212 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11213 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11214 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11221 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11222 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11224 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11231 ## If we have a custom action on failure, don't print errors, but
11232 ## do set a variable so people can do so. Do it in a subshell
11233 ## to capture any diagnostics in invoking pkg-config.
11234 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11246 if test $succeeded = yes; then
11255 if test $HAVE_RSVG = yes; then
11257 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11259 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11260 LIBS
="$RSVG_LIBS $LIBS"
11265 HAVE_IMAGEMAGICK
=no
11266 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11267 if test "${with_imagemagick}" != "no"; then
11268 ## 6.2.8 is the earliest version known to work, but earlier versions
11269 ## might work - let us know if you find one.
11270 ## 6.0.7 does not work. See bug#7955.
11271 ## 6.8.2 makes Emacs crash; see Bug#13867.
11272 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11276 if test "$PKG_CONFIG" = "no" ; then
11279 PKG_CONFIG_MIN_VERSION
=0.9.0
11280 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11282 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11284 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11285 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11286 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11293 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11294 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11296 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 IMAGEMAGICK_CFLAGS
=""
11302 IMAGEMAGICK_LIBS
=""
11303 ## If we have a custom action on failure, don't print errors, but
11304 ## do set a variable so people can do so. Do it in a subshell
11305 ## to capture any diagnostics in invoking pkg-config.
11306 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11318 if test $succeeded = yes; then
11319 HAVE_IMAGEMAGICK
=yes
11327 if test $HAVE_IMAGEMAGICK = yes; then
11329 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11331 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11332 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11333 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11337 eval as_val
=\$
$as_ac_var
11338 if test "x$as_val" = x
""yes; then :
11339 cat >>confdefs.h
<<_ACEOF
11340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 gtk_term_header
=$term_header
11356 if test "${opsys}" != "mingw32"; then
11357 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11360 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11365 if test "$PKG_CONFIG" = "no" ; then
11368 PKG_CONFIG_MIN_VERSION
=0.9.0
11369 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11371 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11373 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11374 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11375 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11382 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11383 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11385 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11392 ## If we have a custom action on failure, don't print errors, but
11393 ## do set a variable so people can do so. Do it in a subshell
11394 ## to capture any diagnostics in invoking pkg-config.
11395 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11407 if test $succeeded = yes; then
11413 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11414 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11416 if test "$pkg_check_gtk" = "yes"; then
11418 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11420 GTK_OBJ
=emacsgtkfixed.o
11421 gtk_term_header
=gtkutil.h
11422 USE_GTK_TOOLKIT
="GTK3"
11423 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11424 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11425 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11429 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11433 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11436 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11441 if test "$PKG_CONFIG" = "no" ; then
11444 PKG_CONFIG_MIN_VERSION
=0.9.0
11445 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11449 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11450 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11451 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11458 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11459 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11461 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11468 ## If we have a custom action on failure, don't print errors, but
11469 ## do set a variable so people can do so. Do it in a subshell
11470 ## to capture any diagnostics in invoking pkg-config.
11471 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11478 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11479 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11483 if test $succeeded = yes; then
11489 if test "$pkg_check_gtk" = "no" &&
11490 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11492 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11494 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11498 if test x
"$pkg_check_gtk" = xyes
; then
11502 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11503 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11504 LIBS
="$GTK_LIBS $LIBS"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11506 $as_echo_n "checking whether GTK compiles... " >&6; }
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 /* Check the Gtk and Glib APIs. */
11511 #include <gtk/gtk.h>
11512 #include <glib-object.h>
11514 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11521 GtkSettings *gs = 0;
11522 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11523 strict C prohibits this. Use gtk_main_iteration to test that the
11524 libraries are there. */
11525 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11526 0, 0, 0, G_CALLBACK (callback), 0))
11527 gtk_main_iteration ();
11533 if ac_fn_c_try_link
"$LINENO"; then :
11536 rm -f core conftest.err conftest.
$ac_objext \
11537 conftest
$ac_exeext conftest.
$ac_ext
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11539 $as_echo "$GTK_COMPILES" >&6; }
11540 if test "${GTK_COMPILES}" != "yes"; then
11542 if test "$USE_X_TOOLKIT" != "maybe"; then
11543 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11548 $as_echo "#define USE_GTK 1" >>confdefs.h
11550 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11551 term_header
=$gtk_term_header
11553 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11557 closing open displays. This is no problem if you just use
11558 one display, but if you use more than one and close one of them
11559 Emacs may crash." >&5
11560 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11561 closing open displays. This is no problem if you just use
11562 one display, but if you use more than one and close one of them
11563 Emacs may crash." >&2;}
11572 if test "${HAVE_GTK}" = "yes"; then
11574 if test "$with_toolkit_scroll_bars" != no
; then
11575 with_toolkit_scroll_bars
=yes
11578 HAVE_GTK_FILE_SELECTION
=no
11579 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11580 #include <gtk/gtk.h>
11582 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11583 HAVE_GTK_FILE_SELECTION
=yes
11585 HAVE_GTK_FILE_SELECTION
=no
11588 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11589 for ac_func
in gtk_file_selection_new
11591 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11592 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11593 cat >>confdefs.h
<<_ACEOF
11594 #define HAVE_GTK_FILE_SELECTION_NEW 1
11602 HAVE_GTK_HANDLE_BOX
=no
11603 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11604 #include <gtk/gtk.h>
11606 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11607 HAVE_GTK_HANDLE_BOX
=yes
11609 HAVE_GTK_HANDLE_BOX
=no
11612 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11613 for ac_func
in gtk_handle_box_new
11615 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11616 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11617 cat >>confdefs.h
<<_ACEOF
11618 #define HAVE_GTK_HANDLE_BOX_NEW 1
11626 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11627 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11628 #include <gtk/gtk.h>
11630 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11631 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11633 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11636 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11637 for ac_func
in gtk_tearoff_menu_item_new
11639 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11640 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11641 cat >>confdefs.h
<<_ACEOF
11642 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11650 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11651 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11652 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11653 gtk_orientable_set_orientation \
11654 gtk_window_set_has_resize_grip
11656 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11657 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11658 eval as_val
=\$
$as_ac_var
11659 if test "x$as_val" = x
""yes; then :
11660 cat >>confdefs.h
<<_ACEOF
11661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 term_header
=gtkutil.h
11673 if test "${with_dbus}" = "yes"; then
11677 if test "$PKG_CONFIG" = "no" ; then
11680 PKG_CONFIG_MIN_VERSION
=0.9.0
11681 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11683 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11685 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11686 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11687 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11694 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11695 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11697 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11704 ## If we have a custom action on failure, don't print errors, but
11705 ## do set a variable so people can do so. Do it in a subshell
11706 ## to capture any diagnostics in invoking pkg-config.
11707 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11719 if test $succeeded = yes; then
11725 if test "$HAVE_DBUS" = yes; then
11726 LIBS
="$LIBS $DBUS_LIBS"
11728 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11730 for ac_func
in dbus_watch_get_unix_fd \
11731 dbus_type_is_valid \
11732 dbus_validate_bus_name \
11733 dbus_validate_path \
11734 dbus_validate_interface \
11735 dbus_validate_member
11737 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11739 eval as_val
=\$
$as_ac_var
11740 if test "x$as_val" = x
""yes; then :
11741 cat >>confdefs.h
<<_ACEOF
11742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11748 DBUS_OBJ
=dbusbind.o
11754 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11758 if test "$PKG_CONFIG" = "no" ; then
11761 PKG_CONFIG_MIN_VERSION
=0.9.0
11762 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11764 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11766 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11767 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11768 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11775 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11776 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11778 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 GSETTINGS_CFLAGS
=""
11785 ## If we have a custom action on failure, don't print errors, but
11786 ## do set a variable so people can do so. Do it in a subshell
11787 ## to capture any diagnostics in invoking pkg-config.
11788 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11800 if test $succeeded = yes; then
11806 if test "$HAVE_GSETTINGS" = "yes"; then
11808 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11810 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11811 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11816 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11820 if test "$PKG_CONFIG" = "no" ; then
11823 PKG_CONFIG_MIN_VERSION
=0.9.0
11824 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11826 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11828 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11829 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11830 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11837 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11838 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11840 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11847 ## If we have a custom action on failure, don't print errors, but
11848 ## do set a variable so people can do so. Do it in a subshell
11849 ## to capture any diagnostics in invoking pkg-config.
11850 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11857 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11858 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11862 if test $succeeded = yes; then
11868 if test "$HAVE_GCONF" = yes; then
11870 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11872 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11873 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11877 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11881 if test "$PKG_CONFIG" = "no" ; then
11884 PKG_CONFIG_MIN_VERSION
=0.9.0
11885 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11887 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11889 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11890 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11891 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11898 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11899 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11901 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11908 ## If we have a custom action on failure, don't print errors, but
11909 ## do set a variable so people can do so. Do it in a subshell
11910 ## to capture any diagnostics in invoking pkg-config.
11911 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11923 if test $succeeded = yes; then
11929 if test "$HAVE_GOBJECT" = "yes"; then
11930 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11931 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11933 SAVE_CFLAGS
="$CFLAGS"
11935 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11936 LIBS
="$SETTINGS_LIBS $LIBS"
11937 for ac_func
in g_type_init
11939 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11940 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11941 cat >>confdefs.h
<<_ACEOF
11942 #define HAVE_G_TYPE_INIT 1
11948 CFLAGS
="$SAVE_CFLAGS"
11957 if test "${with_selinux}" = "yes"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11959 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11960 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11963 ac_check_lib_save_LIBS
=$LIBS
11964 LIBS
="-lselinux $LIBS"
11965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11974 char lgetfilecon ();
11978 return lgetfilecon ();
11983 if ac_fn_c_try_link
"$LINENO"; then :
11984 ac_cv_lib_selinux_lgetfilecon
=yes
11986 ac_cv_lib_selinux_lgetfilecon
=no
11988 rm -f core conftest.err conftest.
$ac_objext \
11989 conftest
$ac_exeext conftest.
$ac_ext
11990 LIBS
=$ac_check_lib_save_LIBS
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11993 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11994 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11995 HAVE_LIBSELINUX
=yes
12000 if test "$HAVE_LIBSELINUX" = yes; then
12002 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12004 LIBSELINUX_LIBS
=-lselinux
12010 if test "${with_gnutls}" = "yes" ; then
12014 if test "$PKG_CONFIG" = "no" ; then
12017 PKG_CONFIG_MIN_VERSION
=0.9.0
12018 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12020 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12022 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12023 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12024 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12031 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12032 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12034 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 LIBGNUTLS_CFLAGS
=""
12041 ## If we have a custom action on failure, don't print errors, but
12042 ## do set a variable so people can do so. Do it in a subshell
12043 ## to capture any diagnostics in invoking pkg-config.
12044 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12056 if test $succeeded = yes; then
12062 if test "${HAVE_GNUTLS}" = "yes"; then
12064 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12068 # Windows loads GnuTLS dynamically
12069 if test "${opsys}" = "mingw32"; then
12072 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12073 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12083 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12084 with_file_notification
=no
12087 case $with_file_notification,$opsys in
12088 w32
,* |
yes,mingw32
)
12089 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12090 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12095 if test "$ac_cv_header_windows_h" = yes ; then
12097 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12099 NOTIFY_OBJ
=w32notify.o
12100 NOTIFY_SUMMARY
="yes (w32)"
12104 case $with_file_notification,$NOTIFY_OBJ in
12109 if test "$PKG_CONFIG" = "no" ; then
12110 HAVE_GFILENOTIFY
=no
12112 PKG_CONFIG_MIN_VERSION
=0.9.0
12113 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12115 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12117 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12118 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12119 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12126 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12127 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12129 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 GFILENOTIFY_CFLAGS
=""
12135 GFILENOTIFY_LIBS
=""
12136 ## If we have a custom action on failure, don't print errors, but
12137 ## do set a variable so people can do so. Do it in a subshell
12138 ## to capture any diagnostics in invoking pkg-config.
12139 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12146 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12147 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12151 if test $succeeded = yes; then
12152 HAVE_GFILENOTIFY
=yes
12154 HAVE_GFILENOTIFY
=no
12157 if test "$HAVE_GFILENOTIFY" = "yes"; then
12159 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12161 NOTIFY_OBJ
=gfilenotify.o
12162 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12166 case $with_file_notification,$NOTIFY_OBJ in
12168 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12169 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12174 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12175 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12176 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12180 if test "$ac_cv_func_inotify_init1" = yes; then
12182 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12184 NOTIFY_OBJ
=inotify.o
12185 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12190 case $with_file_notification,$NOTIFY_OBJ in
12191 yes,* | no
,* |
*,?
*) ;;
12192 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12195 if test -n "$NOTIFY_OBJ"; then
12197 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12206 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12207 if test "$with_xaw3d" != no
; then
12208 if test "${emacs_cv_xaw3d+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 #include <X11/Intrinsic.h>
12215 #include <X11/Xaw3d/Simple.h>
12224 if ac_fn_c_try_link
"$LINENO"; then :
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12226 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12227 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12230 ac_check_lib_save_LIBS
=$LIBS
12231 LIBS
="-lXaw3d $LIBS"
12232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12241 char XawScrollbarSetThumb ();
12245 return XawScrollbarSetThumb ();
12250 if ac_fn_c_try_link
"$LINENO"; then :
12251 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12253 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12255 rm -f core conftest.err conftest.
$ac_objext \
12256 conftest
$ac_exeext conftest.
$ac_ext
12257 LIBS
=$ac_check_lib_save_LIBS
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12260 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12261 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12270 rm -f core conftest.err conftest.
$ac_objext \
12271 conftest
$ac_exeext conftest.
$ac_ext
12277 if test $emacs_cv_xaw3d = yes; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12279 $as_echo_n "checking for xaw3d... " >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12281 $as_echo "yes; using Lucid toolkit" >&6; }
12282 USE_X_TOOLKIT
=LUCID
12286 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12290 $as_echo_n "checking for xaw3d... " >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12294 $as_echo_n "checking for libXaw... " >&6; }
12295 if test "${emacs_cv_xaw+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 #include <X11/Intrinsic.h>
12302 #include <X11/Xaw/Simple.h>
12311 if ac_fn_c_try_link
"$LINENO"; then :
12316 rm -f core conftest.err conftest.
$ac_objext \
12317 conftest
$ac_exeext conftest.
$ac_ext
12320 if test $emacs_cv_xaw = yes; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12322 $as_echo "yes; using Lucid toolkit" >&6; }
12323 USE_X_TOOLKIT
=LUCID
12325 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12326 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12328 as_fn_error
"No X toolkit could be found.
12329 If you are sure you want Emacs compiled without an X toolkit, pass
12330 --with-x-toolkit=no
12331 to configure. Otherwise, install the development libraries for the toolkit
12332 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12337 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12340 if test "${USE_X_TOOLKIT}" != "none"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12342 $as_echo_n "checking X11 toolkit version... " >&6; }
12343 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 #include <X11/Intrinsic.h>
12352 #if XtSpecificationRelease < 6
12360 if ac_fn_c_try_link
"$LINENO"; then :
12361 emacs_cv_x11_toolkit_version_6
=yes
12363 emacs_cv_x11_toolkit_version_6
=no
12365 rm -f core conftest.err conftest.
$ac_objext \
12366 conftest
$ac_exeext conftest.
$ac_ext
12369 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12370 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12372 $as_echo "6 or newer" >&6; }
12374 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12376 LIBXTR6
="-lSM -lICE"
12378 ## Use libw.a along with X11R6 Xt.
12379 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12383 $as_echo "before 6" >&6; }
12387 if test x
$HAVE_X11XTR6 = xyes
; then
12388 LIBS
="-lXt -lSM -lICE $LIBS"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12393 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12394 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12397 ac_check_lib_save_LIBS
=$LIBS
12399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12408 char XmuConvertStandardSelection ();
12412 return XmuConvertStandardSelection ();
12417 if ac_fn_c_try_link
"$LINENO"; then :
12418 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12420 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12422 rm -f core conftest.err conftest.
$ac_objext \
12423 conftest
$ac_exeext conftest.
$ac_ext
12424 LIBS
=$ac_check_lib_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12427 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12428 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12429 cat >>confdefs.h
<<_ACEOF
12430 #define HAVE_LIBXMU 1
12437 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12443 ## These systems don't supply Xmu.
12445 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12454 if test "${HAVE_X11}" = "yes"; then
12455 if test "${USE_X_TOOLKIT}" != "none"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12457 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12458 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12461 ac_check_lib_save_LIBS
=$LIBS
12462 LIBS
="-lXext $LIBS"
12463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12472 char XShapeQueryExtension ();
12476 return XShapeQueryExtension ();
12481 if ac_fn_c_try_link
"$LINENO"; then :
12482 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12484 ac_cv_lib_Xext_XShapeQueryExtension
=no
12486 rm -f core conftest.err conftest.
$ac_objext \
12487 conftest
$ac_exeext conftest.
$ac_ext
12488 LIBS
=$ac_check_lib_save_LIBS
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12491 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12492 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12493 cat >>confdefs.h
<<_ACEOF
12494 #define HAVE_LIBXEXT 1
12497 LIBS
="-lXext $LIBS"
12505 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12506 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12507 if test -d /usr
/include
/openmotif
; then
12508 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12509 emacs_cv_openmotif
=yes
12510 case "$canonical" in
12511 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12512 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12515 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12518 emacs_cv_openmotif
=no
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12521 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12522 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12531 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12534 Motif version prior to 2.1.
12540 if ac_fn_c_try_compile
"$LINENO"; then :
12541 emacs_cv_motif_version_2_1
=yes
12543 emacs_cv_motif_version_2_1
=no
12545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12548 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12549 if test $emacs_cv_motif_version_2_1 = yes; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12551 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12552 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12555 ac_check_lib_save_LIBS
=$LIBS
12557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12566 char XpCreateContext ();
12570 return XpCreateContext ();
12575 if ac_fn_c_try_link
"$LINENO"; then :
12576 ac_cv_lib_Xp_XpCreateContext
=yes
12578 ac_cv_lib_Xp_XpCreateContext
=no
12580 rm -f core conftest.err conftest.
$ac_objext \
12581 conftest
$ac_exeext conftest.
$ac_ext
12582 LIBS
=$ac_check_lib_save_LIBS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12585 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12586 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12590 if test x
$emacs_cv_openmotif = xyes
; then
12591 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12595 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12596 if test "${emacs_cv_lesstif+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12599 # We put this in CFLAGS temporarily to precede other -I options
12600 # that might be in CFLAGS temporarily.
12601 # We put this in CPPFLAGS where it precedes the other -I options.
12602 OLD_CPPFLAGS
=$CPPFLAGS
12604 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12605 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12617 if ac_fn_c_try_compile
"$LINENO"; then :
12618 emacs_cv_lesstif
=yes
12620 emacs_cv_lesstif
=no
12622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12625 $as_echo "$emacs_cv_lesstif" >&6; }
12626 if test $emacs_cv_lesstif = yes; then
12627 # Make sure this -I option remains in CPPFLAGS after it is set
12628 # back to REAL_CPPFLAGS.
12629 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12630 # have those other -I options anyway. Ultimately, having this
12631 # directory ultimately in CPPFLAGS will be enough.
12632 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12633 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12636 CPPFLAGS
=$OLD_CPPFLAGS
12639 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12640 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12643 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12650 USE_TOOLKIT_SCROLL_BARS
=no
12651 if test "${with_toolkit_scroll_bars}" != "no"; then
12652 if test "${USE_X_TOOLKIT}" != "none"; then
12653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12654 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12657 USE_TOOLKIT_SCROLL_BARS
=yes
12658 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12659 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12661 USE_TOOLKIT_SCROLL_BARS
=yes
12663 elif test "${HAVE_GTK}" = "yes"; then
12664 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12666 USE_TOOLKIT_SCROLL_BARS
=yes
12667 elif test "${HAVE_NS}" = "yes"; then
12668 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12670 USE_TOOLKIT_SCROLL_BARS
=yes
12671 elif test "${HAVE_W32}" = "yes"; then
12672 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12674 USE_TOOLKIT_SCROLL_BARS
=yes
12678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <X11/Xlib.h>
12682 #include <X11/Xresource.h>
12691 if ac_fn_c_try_compile
"$LINENO"; then :
12694 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12702 if test "${with_xim}" != "no"; then
12704 $as_echo "#define USE_XIM 1" >>confdefs.h
12709 if test "${HAVE_XIM}" != "no"; then
12710 late_CFLAGS
=$CFLAGS
12711 if test "$GCC" = yes; then
12712 CFLAGS
="$CFLAGS --pedantic-errors"
12714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12717 #include <X11/Xlib.h>
12718 #include <X11/Xresource.h>
12727 XPointer *client_data;
12729 /* If we're not using GCC, it's probably not XFree86, and this is
12730 probably right, but we can't use something like --pedantic-errors. */
12731 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12732 char*, XIMProc, XPointer*);
12734 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12740 if ac_fn_c_try_compile
"$LINENO"; then :
12741 emacs_cv_arg6_star
=yes
12743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 if test "$emacs_cv_arg6_star" = yes; then
12745 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12748 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12751 CFLAGS
=$late_CFLAGS
12754 ### Start of font-backend (under any platform) section.
12755 # (nothing here yet -- this is a placeholder)
12756 ### End of font-backend (under any platform) section.
12758 ### Start of font-backend (under X11) section.
12759 if test "${HAVE_X11}" = "yes"; then
12763 if test "$PKG_CONFIG" = "no" ; then
12766 PKG_CONFIG_MIN_VERSION
=0.9.0
12767 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12769 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12771 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12772 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12773 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12780 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12781 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12783 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 FONTCONFIG_CFLAGS
=""
12790 ## If we have a custom action on failure, don't print errors, but
12791 ## do set a variable so people can do so. Do it in a subshell
12792 ## to capture any diagnostics in invoking pkg-config.
12793 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12805 if test $succeeded = yes; then
12812 ## Use -lXft if available, unless `--with-xft=no'.
12814 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12817 if test "x${with_xft}" != "xno"; then
12822 if test "$PKG_CONFIG" = "no" ; then
12825 PKG_CONFIG_MIN_VERSION
=0.9.0
12826 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12828 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12830 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12831 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12832 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12839 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12840 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12842 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12849 ## If we have a custom action on failure, don't print errors, but
12850 ## do set a variable so people can do so. Do it in a subshell
12851 ## to capture any diagnostics in invoking pkg-config.
12852 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12859 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12860 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12864 if test $succeeded = yes; then
12870 ## Because xftfont.c uses XRenderQueryExtension, we also
12871 ## need to link to -lXrender.
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12874 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12875 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS
=$LIBS
12879 LIBS
="-lXrender $LIBS"
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12889 char XRenderQueryExtension ();
12893 return XRenderQueryExtension ();
12898 if ac_fn_c_try_link
"$LINENO"; then :
12899 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12901 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12905 LIBS
=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12908 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12909 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12913 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12914 OLD_CPPFLAGS
="$CPPFLAGS"
12915 OLD_CFLAGS
="$CFLAGS"
12917 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12918 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12919 XFT_LIBS
="-lXrender $XFT_LIBS"
12920 LIBS
="$XFT_LIBS $LIBS"
12921 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12923 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12925 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12926 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12929 ac_check_lib_save_LIBS
=$LIBS
12930 LIBS
="-lXft $XFT_LIBS $LIBS"
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12940 char XftFontOpen ();
12944 return XftFontOpen ();
12949 if ac_fn_c_try_link
"$LINENO"; then :
12950 ac_cv_lib_Xft_XftFontOpen
=yes
12952 ac_cv_lib_Xft_XftFontOpen
=no
12954 rm -f core conftest.err conftest.
$ac_objext \
12955 conftest
$ac_exeext conftest.
$ac_ext
12956 LIBS
=$ac_check_lib_save_LIBS
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12959 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12960 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12968 if test "${HAVE_XFT}" = "yes"; then
12970 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12973 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12975 CPPFLAGS
="$OLD_CPPFLAGS"
12976 CFLAGS
="$OLD_CFLAGS"
12978 fi # "${HAVE_XFT}" = "yes"
12979 fi # "$HAVE_XFT" != no
12980 fi # "x${with_xft}" != "xno"
12982 ## We used to allow building with FreeType and without Xft.
12983 ## However, the ftx font backend driver is not in good shape.
12984 if test "$HAVE_XFT" != "yes"; then
12991 if test "$PKG_CONFIG" = "no" ; then
12994 PKG_CONFIG_MIN_VERSION
=0.9.0
12995 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12997 $as_echo_n "checking for freetype2... " >&6; }
12999 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13000 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13001 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13008 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13009 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13011 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13018 ## If we have a custom action on failure, don't print errors, but
13019 ## do set a variable so people can do so. Do it in a subshell
13020 ## to capture any diagnostics in invoking pkg-config.
13021 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13033 if test $succeeded = yes; then
13040 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13044 if test "${HAVE_FREETYPE}" = "yes"; then
13046 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13048 if test "${with_libotf}" != "no"; then
13052 if test "$PKG_CONFIG" = "no" ; then
13055 PKG_CONFIG_MIN_VERSION
=0.9.0
13056 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13058 $as_echo_n "checking for libotf... " >&6; }
13060 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13061 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13062 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13069 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13070 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13072 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13079 ## If we have a custom action on failure, don't print errors, but
13080 ## do set a variable so people can do so. Do it in a subshell
13081 ## to capture any diagnostics in invoking pkg-config.
13082 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13089 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13090 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13094 if test $succeeded = yes; then
13100 if test "$HAVE_LIBOTF" = "yes"; then
13102 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13105 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13106 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13109 ac_check_lib_save_LIBS
=$LIBS
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13120 char OTF_get_variation_glyphs ();
13124 return OTF_get_variation_glyphs ();
13129 if ac_fn_c_try_link
"$LINENO"; then :
13130 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13132 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13134 rm -f core conftest.err conftest.
$ac_objext \
13135 conftest
$ac_exeext conftest.
$ac_ext
13136 LIBS
=$ac_check_lib_save_LIBS
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13139 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13140 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13141 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13143 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13146 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13148 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13156 if test "${HAVE_LIBOTF}" = yes; then
13157 if test "${with_m17n_flt}" != "no"; then
13161 if test "$PKG_CONFIG" = "no" ; then
13164 PKG_CONFIG_MIN_VERSION
=0.9.0
13165 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13167 $as_echo_n "checking for m17n-flt... " >&6; }
13169 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13170 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13171 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13178 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13179 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13181 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13188 ## If we have a custom action on failure, don't print errors, but
13189 ## do set a variable so people can do so. Do it in a subshell
13190 ## to capture any diagnostics in invoking pkg-config.
13191 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13198 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13199 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13203 if test $succeeded = yes; then
13209 if test "$HAVE_M17N_FLT" = "yes"; then
13211 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13223 ### End of font-backend (under X11) section.
13234 ### Use -lXpm if available, unless `--with-xpm=no'.
13235 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13238 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13239 if test "${with_xpm}" != "no"; then
13240 SAVE_CPPFLAGS
="$CPPFLAGS"
13241 SAVE_LDFLAGS
="$LDFLAGS"
13242 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13243 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13244 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13245 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13247 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13248 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13251 ac_check_lib_save_LIBS
=$LIBS
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13262 char XpmReadFileToImage ();
13266 return XpmReadFileToImage ();
13271 if ac_fn_c_try_link
"$LINENO"; then :
13272 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13274 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13276 rm -f core conftest.err conftest.
$ac_objext \
13277 conftest
$ac_exeext conftest.
$ac_ext
13278 LIBS
=$ac_check_lib_save_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13281 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13282 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13289 if test "${HAVE_XPM}" = "yes"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13291 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 #include "X11/xpm.h"
13295 #ifndef XpmReturnAllocPixels
13296 no_return_alloc_pixels
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13309 if test "${HAVE_XPM}" = "yes"; then
13310 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 CPPFLAGS
="$SAVE_CPPFLAGS"
13317 LDFLAGS
="$SAVE_LDFLAGS"
13322 if test "${HAVE_XPM}" = "yes"; then
13324 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13330 if test "${HAVE_X11}" = "yes"; then
13331 if test "${with_xpm}" != "no"; then
13332 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13333 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13335 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13336 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13339 ac_check_lib_save_LIBS
=$LIBS
13340 LIBS
="-lXpm -lX11 $LIBS"
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13350 char XpmReadFileToPixmap ();
13354 return XpmReadFileToPixmap ();
13359 if ac_fn_c_try_link
"$LINENO"; then :
13360 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13362 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13364 rm -f core conftest.err conftest.
$ac_objext \
13365 conftest
$ac_exeext conftest.
$ac_ext
13366 LIBS
=$ac_check_lib_save_LIBS
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13369 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13370 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13377 if test "${HAVE_XPM}" = "yes"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13379 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include "X11/xpm.h"
13383 #ifndef XpmReturnAllocPixels
13384 no_return_alloc_pixels
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13397 if test "${HAVE_XPM}" = "yes"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13399 $as_echo "yes" >&6; }
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13407 if test "${HAVE_XPM}" = "yes"; then
13409 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13415 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13416 ### slightly different requirements wrt image libraries (it doesn't
13417 ### use -lXpm because it loads the xpm shared library dynamically at
13419 if test "${opsys}" = "mingw32"; then
13420 if test "${with_xpm}" != "no"; then
13421 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13424 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13433 if test "${HAVE_XPM}" = "yes"; then
13435 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13442 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13443 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13446 if test "${opsys}" = "mingw32"; then
13447 if test "${with_jpeg}" != "no"; then
13448 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13449 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13457 if test "${HAVE_JPEG}" = "yes"; then
13458 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include <jpeglib.h>
13463 version=JPEG_LIB_VERSION
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13468 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13472 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13478 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13479 if test "${with_jpeg}" != "no"; then
13480 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13481 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13483 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13484 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13487 ac_check_lib_save_LIBS
=$LIBS
13488 LIBS
="-ljpeg $LIBS"
13489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13498 char jpeg_destroy_compress ();
13502 return jpeg_destroy_compress ();
13507 if ac_fn_c_try_link
"$LINENO"; then :
13508 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13510 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13512 rm -f core conftest.err conftest.
$ac_objext \
13513 conftest
$ac_exeext conftest.
$ac_ext
13514 LIBS
=$ac_check_lib_save_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13517 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13518 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13527 if test "${HAVE_JPEG}" = "yes"; then
13528 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <jpeglib.h>
13533 version=JPEG_LIB_VERSION
13536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13537 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13538 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13542 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13548 if test "${HAVE_JPEG}" = "yes"; then
13554 ### Use -lpng if available, unless `--with-png=no'.
13555 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13558 if test "${opsys}" = "mingw32"; then
13559 if test "${with_png}" != "no"; then
13560 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13561 if test "x$ac_cv_header_png_h" = x
""yes; then :
13569 if test "${HAVE_PNG}" = "yes"; then
13571 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13574 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13575 # include <libpng/png.h>
13581 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13585 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13590 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13591 if test "${with_png}" != "no"; then
13592 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13593 # in /usr/include/libpng.
13594 for ac_header
in png.h libpng
/png.h
13596 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13597 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13598 eval as_val
=\$
$as_ac_Header
13599 if test "x$as_val" = x
""yes; then :
13600 cat >>confdefs.h
<<_ACEOF
13601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13608 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13610 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13611 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13614 ac_check_lib_save_LIBS
=$LIBS
13615 LIBS
="-lpng -lz -lm $LIBS"
13616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13625 char png_get_channels ();
13629 return png_get_channels ();
13634 if ac_fn_c_try_link
"$LINENO"; then :
13635 ac_cv_lib_png_png_get_channels
=yes
13637 ac_cv_lib_png_png_get_channels
=no
13639 rm -f core conftest.err conftest.
$ac_objext \
13640 conftest
$ac_exeext conftest.
$ac_ext
13641 LIBS
=$ac_check_lib_save_LIBS
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13644 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13645 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13652 if test "${HAVE_PNG}" = "yes"; then
13654 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13656 LIBPNG
="-lpng -lz -lm"
13658 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13659 # include <libpng/png.h>
13665 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13669 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13679 if test "${with_zlib}" != "no"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13682 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13683 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13686 ac_func_search_save_LIBS
=$LIBS
13687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13696 char inflateEnd ();
13700 return inflateEnd ();
13705 for ac_lib
in '' z
; do
13706 if test -z "$ac_lib"; then
13707 ac_res
="none required"
13710 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13712 if ac_fn_c_try_link
"$LINENO"; then :
13713 ac_cv_search_inflateEnd
=$ac_res
13715 rm -f core conftest.err conftest.
$ac_objext \
13717 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13721 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13724 ac_cv_search_inflateEnd
=no
13726 rm conftest.
$ac_ext
13727 LIBS
=$ac_func_search_save_LIBS
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13730 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13731 ac_res
=$ac_cv_search_inflateEnd
13732 if test "$ac_res" != no
; then :
13733 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13738 case $ac_cv_search_inflateEnd in
13739 -*) LIBZ
=$ac_cv_search_inflateEnd ;;
13742 if test "${HAVE_ZLIB}" = "yes"; then
13744 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13746 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13747 if test "${opsys}" = "mingw32"; then
13754 ### Use -ltiff if available, unless `--with-tiff=no'.
13755 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13758 if test "${opsys}" = "mingw32"; then
13759 if test "${with_tiff}" != "no"; then
13760 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13761 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13769 if test "${HAVE_TIFF}" = "yes"; then
13771 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13774 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13775 if test "${with_tiff}" != "no"; then
13776 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13777 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13779 # At least one tiff package requires the jpeg library.
13780 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13782 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13783 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13786 ac_check_lib_save_LIBS
=$LIBS
13787 LIBS
="-ltiff $tifflibs $LIBS"
13788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13797 char TIFFGetVersion ();
13801 return TIFFGetVersion ();
13806 if ac_fn_c_try_link
"$LINENO"; then :
13807 ac_cv_lib_tiff_TIFFGetVersion
=yes
13809 ac_cv_lib_tiff_TIFFGetVersion
=no
13811 rm -f core conftest.err conftest.
$ac_objext \
13812 conftest
$ac_exeext conftest.
$ac_ext
13813 LIBS
=$ac_check_lib_save_LIBS
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13816 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13817 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13826 if test "${HAVE_TIFF}" = "yes"; then
13828 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13835 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13836 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13839 if test "${opsys}" = "mingw32"; then
13840 if test "${with_gif}" != "no"; then
13841 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13842 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13850 if test "${HAVE_GIF}" = "yes"; then
13852 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13855 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13856 ||
test "${HAVE_W32}" = "yes"; then
13857 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13858 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13859 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13860 # Earlier versions can crash Emacs.
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13862 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13863 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13866 ac_check_lib_save_LIBS
=$LIBS
13868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13871 /* Override any GCC internal prototype to avoid an error.
13872 Use char because int might match the return type of a GCC
13873 builtin and then its argument prototype would still apply. */
13877 char EGifPutExtensionLast ();
13881 return EGifPutExtensionLast ();
13886 if ac_fn_c_try_link
"$LINENO"; then :
13887 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13889 ac_cv_lib_gif_EGifPutExtensionLast
=no
13891 rm -f core conftest.err conftest.
$ac_objext \
13892 conftest
$ac_exeext conftest.
$ac_ext
13893 LIBS
=$ac_check_lib_save_LIBS
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13896 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13897 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13907 if test "$HAVE_GIF" = yes; then
13909 elif test "$HAVE_GIF" = maybe
; then
13910 # If gif_lib.h but no libgif, try libungif.
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13912 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13913 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13916 ac_check_lib_save_LIBS
=$LIBS
13917 LIBS
="-lungif $LIBS"
13918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply. */
13927 char EGifPutExtensionLast ();
13931 return EGifPutExtensionLast ();
13936 if ac_fn_c_try_link
"$LINENO"; then :
13937 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13939 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13941 rm -f core conftest.err conftest.
$ac_objext \
13942 conftest
$ac_exeext conftest.
$ac_ext
13943 LIBS
=$ac_check_lib_save_LIBS
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13946 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13947 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13953 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13956 if test "${HAVE_GIF}" = "yes"; then
13958 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13964 if test "${HAVE_X11}" = "yes"; then
13967 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13968 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13969 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13970 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13971 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13972 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13973 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13974 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13975 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13976 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13978 if test "X${MISSING}" != X
; then
13979 as_fn_error
"The following required libraries were not found:
13981 Maybe some development libraries/packages are missing?
13982 If you don't want to link with them give
13984 as options to configure" "$LINENO" 5
13988 ### Use -lgpm if available, unless `--with-gpm=no'.
13991 if test "${with_gpm}" != "no"; then
13992 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13993 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13995 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13996 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13999 ac_check_lib_save_LIBS
=$LIBS
14001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14014 return Gpm_Open ();
14019 if ac_fn_c_try_link
"$LINENO"; then :
14020 ac_cv_lib_gpm_Gpm_Open
=yes
14022 ac_cv_lib_gpm_Gpm_Open
=no
14024 rm -f core conftest.err conftest.
$ac_objext \
14025 conftest
$ac_exeext conftest.
$ac_ext
14026 LIBS
=$ac_check_lib_save_LIBS
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14029 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14030 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14038 if test "${HAVE_GPM}" = "yes"; then
14040 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14052 ### Use NeXTstep API to implement GUI.
14053 if test "${HAVE_NS}" = "yes"; then
14055 $as_echo "#define HAVE_NS 1" >>confdefs.h
14057 if test "${NS_IMPL_COCOA}" = "yes"; then
14059 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14062 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14064 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14066 # See also .m.o rule in Makefile.in */
14067 # FIXME: are all these flags really needed? Document here why. */
14068 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14069 ## Extra CFLAGS applied to src/*.m files.
14070 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"
14072 # We also have mouse menus.
14077 if test "${HAVE_W32}" = "yes"; then
14081 ### Use session management (-lSM -lICE) if available
14084 if test "${HAVE_X11}" = "yes"; then
14085 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14086 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14088 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14089 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14092 ac_check_lib_save_LIBS
=$LIBS
14093 LIBS
="-lSM -lICE $LIBS"
14094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14103 char SmcOpenConnection ();
14107 return SmcOpenConnection ();
14112 if ac_fn_c_try_link
"$LINENO"; then :
14113 ac_cv_lib_SM_SmcOpenConnection
=yes
14115 ac_cv_lib_SM_SmcOpenConnection
=no
14117 rm -f core conftest.err conftest.
$ac_objext \
14118 conftest
$ac_exeext conftest.
$ac_ext
14119 LIBS
=$ac_check_lib_save_LIBS
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14122 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14123 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14131 if test "${HAVE_X_SM}" = "yes"; then
14133 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14135 LIBXSM
="-lSM -lICE"
14138 *) LIBS
="$LIBXSM $LIBS" ;;
14144 ### Use XRandr (-lXrandr) if available
14146 if test "${HAVE_X11}" = "yes"; then
14147 XRANDR_REQUIRED
=1.2.2
14148 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14152 if test "$PKG_CONFIG" = "no" ; then
14155 PKG_CONFIG_MIN_VERSION
=0.9.0
14156 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14158 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14160 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14161 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14162 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14169 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14170 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14172 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14179 ## If we have a custom action on failure, don't print errors, but
14180 ## do set a variable so people can do so. Do it in a subshell
14181 ## to capture any diagnostics in invoking pkg-config.
14182 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14194 if test $succeeded = yes; then
14200 if test $HAVE_XRANDR = no
; then
14201 # Test old way in case pkg-config doesn't have it (older machines).
14202 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14203 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14205 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14206 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14209 ac_check_lib_save_LIBS
=$LIBS
14210 LIBS
="-lXrandr $LIBS"
14211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14220 char XRRGetScreenResources ();
14224 return XRRGetScreenResources ();
14229 if ac_fn_c_try_link
"$LINENO"; then :
14230 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14232 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14234 rm -f core conftest.err conftest.
$ac_objext \
14235 conftest
$ac_exeext conftest.
$ac_ext
14236 LIBS
=$ac_check_lib_save_LIBS
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14239 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14240 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14247 if test $HAVE_XRANDR = yes; then
14248 XRANDR_LIBS
=-lXrandr
14252 if test $HAVE_XRANDR = yes; then
14253 SAVE_CFLAGS
="$CFLAGS"
14255 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14256 LIBS
="$XRANDR_LIBS $LIBS"
14257 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14259 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14261 eval as_val
=\$
$as_ac_var
14262 if test "x$as_val" = x
""yes; then :
14263 cat >>confdefs.h
<<_ACEOF
14264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14270 CFLAGS
="$SAVE_CFLAGS"
14274 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14279 ### Use Xinerama (-lXinerama) if available
14281 if test "${HAVE_X11}" = "yes"; then
14282 XINERAMA_REQUIRED
=1.0.2
14283 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14287 if test "$PKG_CONFIG" = "no" ; then
14290 PKG_CONFIG_MIN_VERSION
=0.9.0
14291 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14293 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14295 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14296 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14297 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14304 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14305 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14307 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14314 ## If we have a custom action on failure, don't print errors, but
14315 ## do set a variable so people can do so. Do it in a subshell
14316 ## to capture any diagnostics in invoking pkg-config.
14317 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14329 if test $succeeded = yes; then
14335 if test $HAVE_XINERAMA = no
; then
14336 # Test old way in case pkg-config doesn't have it (older machines).
14337 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14338 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14340 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14341 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14344 ac_check_lib_save_LIBS
=$LIBS
14345 LIBS
="-lXinerama $LIBS"
14346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14349 /* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14355 char XineramaQueryExtension ();
14359 return XineramaQueryExtension ();
14364 if ac_fn_c_try_link
"$LINENO"; then :
14365 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14367 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14369 rm -f core conftest.err conftest.
$ac_objext \
14370 conftest
$ac_exeext conftest.
$ac_ext
14371 LIBS
=$ac_check_lib_save_LIBS
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14374 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14375 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14382 if test $HAVE_XINERAMA = yes; then
14383 XINERAMA_LIBS
=-lXinerama
14387 if test $HAVE_XINERAMA = yes; then
14389 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14395 ### Use libxml (-lxml2) if available
14396 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14398 if test "${with_xml2}" != "no"; then
14399 ### I'm not sure what the version number should be, so I just guessed.
14403 if test "$PKG_CONFIG" = "no" ; then
14406 PKG_CONFIG_MIN_VERSION
=0.9.0
14407 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14409 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14411 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14412 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14413 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14420 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14421 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14423 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14430 ## If we have a custom action on failure, don't print errors, but
14431 ## do set a variable so people can do so. Do it in a subshell
14432 ## to capture any diagnostics in invoking pkg-config.
14433 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14445 if test $succeeded = yes; then
14451 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14452 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14453 SAVE_CPPFLAGS
="$CPPFLAGS"
14454 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14455 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14456 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14457 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14459 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14466 CPPFLAGS
="$SAVE_CPPFLAGS"
14467 if test "${HAVE_LIBXML2}" = "yes"; then
14468 LIBXML2_LIBS
="-lxml2"
14469 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14472 if test "${HAVE_LIBXML2}" = "yes"; then
14473 if test "${opsys}" != "mingw32"; then
14474 LIBS
="$LIBXML2_LIBS $LIBS"
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14476 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14477 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14480 ac_check_lib_save_LIBS
=$LIBS
14481 LIBS
="-lxml2 $LIBS"
14482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14491 char htmlReadMemory ();
14495 return htmlReadMemory ();
14500 if ac_fn_c_try_link
"$LINENO"; then :
14501 ac_cv_lib_xml2_htmlReadMemory
=yes
14503 ac_cv_lib_xml2_htmlReadMemory
=no
14505 rm -f core conftest.err conftest.
$ac_objext \
14506 conftest
$ac_exeext conftest.
$ac_ext
14507 LIBS
=$ac_check_lib_save_LIBS
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14510 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14511 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14520 if test "${HAVE_LIBXML2}" = "yes"; then
14522 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14533 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14534 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14535 if test "${opsys}" = "mingw32"; then
14536 emacs_cv_netdb_declares_h_errno
=yes
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14539 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14540 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14554 if ac_fn_c_try_link
"$LINENO"; then :
14555 emacs_cv_netdb_declares_h_errno
=yes
14557 emacs_cv_netdb_declares_h_errno
=no
14559 rm -f core conftest.err conftest.
$ac_objext \
14560 conftest
$ac_exeext conftest.
$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14563 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14564 if test $emacs_cv_netdb_declares_h_errno = yes; then
14566 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14570 # sqrt and other floating-point functions such as fmod and frexp
14571 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14572 if test "${opsys}" != "mingw32"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14574 $as_echo_n "checking for sqrt in -lm... " >&6; }
14575 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14578 ac_check_lib_save_LIBS
=$LIBS
14580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14598 if ac_fn_c_try_link
"$LINENO"; then :
14599 ac_cv_lib_m_sqrt
=yes
14601 ac_cv_lib_m_sqrt
=no
14603 rm -f core conftest.err conftest.
$ac_objext \
14604 conftest
$ac_exeext conftest.
$ac_ext
14605 LIBS
=$ac_check_lib_save_LIBS
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14608 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14609 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14610 cat >>confdefs.h
<<_ACEOF
14611 #define HAVE_LIBM 1
14620 # Check for mail-locking functions in a "mail" library. Probably this should
14621 # have the same check as for liblockfile below.
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14623 $as_echo_n "checking for maillock in -lmail... " >&6; }
14624 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14627 ac_check_lib_save_LIBS
=$LIBS
14628 LIBS
="-lmail $LIBS"
14629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14632 /* Override any GCC internal prototype to avoid an error.
14633 Use char because int might match the return type of a GCC
14634 builtin and then its argument prototype would still apply. */
14642 return maillock ();
14647 if ac_fn_c_try_link
"$LINENO"; then :
14648 ac_cv_lib_mail_maillock
=yes
14650 ac_cv_lib_mail_maillock
=no
14652 rm -f core conftest.err conftest.
$ac_objext \
14653 conftest
$ac_exeext conftest.
$ac_ext
14654 LIBS
=$ac_check_lib_save_LIBS
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14657 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14658 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14664 if test $have_mail = yes; then
14666 LIBS
="$LIBS_MAIL $LIBS"
14668 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14674 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14675 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14678 ac_check_lib_save_LIBS
=$LIBS
14679 LIBS
="-llockfile $LIBS"
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14693 return maillock ();
14698 if ac_fn_c_try_link
"$LINENO"; then :
14699 ac_cv_lib_lockfile_maillock
=yes
14701 ac_cv_lib_lockfile_maillock
=no
14703 rm -f core conftest.err conftest.
$ac_objext \
14704 conftest
$ac_exeext conftest.
$ac_ext
14705 LIBS
=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14708 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14709 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14715 if test $have_lockfile = yes; then
14716 LIBS_MAIL
=-llockfile
14717 LIBS
="$LIBS_MAIL $LIBS"
14719 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14722 # If we have the shared liblockfile, assume we must use it for mail
14723 # locking (e.g. Debian). If we couldn't link against liblockfile
14724 # (no liblockfile.a installed), ensure that we don't need to.
14725 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14726 set dummy liblockfile.so
; ac_word
=$2
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14728 $as_echo_n "checking for $ac_word... " >&6; }
14729 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14730 $as_echo_n "(cached) " >&6
14732 if test -n "$liblockfile"; then
14733 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14736 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14737 for as_dir
in $as_dummy
14740 test -z "$as_dir" && as_dir
=.
14741 for ac_exec_ext
in '' $ac_executable_extensions; do
14742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14743 ac_cv_prog_liblockfile
="yes"
14744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14754 liblockfile
=$ac_cv_prog_liblockfile
14755 if test -n "$liblockfile"; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14757 $as_echo "$liblockfile" >&6; }
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760 $as_echo "no" >&6; }
14764 if test $ac_cv_prog_liblockfile = yes; then
14765 as_fn_error
"Shared liblockfile found but can't link against it.
14766 This probably means that movemail could lose mail.
14767 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14775 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14776 ## interlock access to the mail spool. The alternative is a lock file named
14777 ## /usr/spool/mail/$USER.lock.
14780 aix4-2
) mail_lock
="lockf" ;;
14782 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14784 ## On GNU/Linux systems, both methods are used by various mail programs.
14785 ## I assume most people are using newer mailers that have heard of flock.
14786 ## Change this if you need to.
14787 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14788 ## configure gets the right answers, and that means *NOT* using flock.
14789 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14790 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14791 ## Debian maintainer hasn't provided a clean fix for Emacs.
14792 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14793 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14794 ## correct logic. -- fx
14795 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14796 ## liblockfile is a Free Software replacement for libmail, used on
14797 ## Debian systems and elsewhere. -rfr.
14800 if test $have_mail = yes ||
test $have_lockfile = yes; then
14801 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14806 mail_lock
="none-needed" ;;
14810 case "$mail_lock" in
14812 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14816 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14821 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14826 for ac_func
in accept4 gethostname \
14827 getrusage get_current_dir_name \
14829 select getpagesize setlocale \
14830 getrlimit setrlimit shutdown getaddrinfo \
14831 strsignal setitimer \
14832 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14833 gai_strerror getline getdelim sync \
14834 difftime posix_memalign \
14835 getpwent endpwent getgrent endgrent \
14837 cfmakeraw cfsetspeed copysign __executable_start log2
14839 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14840 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14841 eval as_val
=\$
$as_ac_var
14842 if test "x$as_val" = x
""yes; then :
14843 cat >>confdefs.h
<<_ACEOF
14844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14851 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14852 ## has a broken `rint' in some library versions including math library
14853 ## version number A.09.05.
14854 ## You can fix the math library by installing patch number PHSS_4630.
14855 ## But we can fix it more reliably for Emacs by just not using rint.
14856 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14859 *) for ac_func
in random rint
14861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14863 eval as_val
=\$
$as_ac_var
14864 if test "x$as_val" = x
""yes; then :
14865 cat >>confdefs.h
<<_ACEOF
14866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14875 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14876 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14877 $as_echo_n "(cached) " >&6
14879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14885 __builtin_unwind_init ();
14890 if ac_fn_c_try_link
"$LINENO"; then :
14891 emacs_cv_func___builtin_unwind_init
=yes
14893 emacs_cv_func___builtin_unwind_init
=no
14895 rm -f core conftest.err conftest.
$ac_objext \
14896 conftest
$ac_exeext conftest.
$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14899 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14900 if test $emacs_cv_func___builtin_unwind_init = yes; then
14902 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14911 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14912 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14913 $as_echo_n "(cached) " >&6
14916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 #include <sys/types.h> /* for off_t */
14923 int (*fp) (FILE *, off_t, int) = fseeko;
14924 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14929 if ac_fn_c_try_link
"$LINENO"; then :
14930 ac_cv_sys_largefile_source
=no
; break
14932 rm -f core conftest.err conftest.
$ac_objext \
14933 conftest
$ac_exeext conftest.
$ac_ext
14934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #define _LARGEFILE_SOURCE 1
14937 #include <sys/types.h> /* for off_t */
14942 int (*fp) (FILE *, off_t, int) = fseeko;
14943 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14948 if ac_fn_c_try_link
"$LINENO"; then :
14949 ac_cv_sys_largefile_source
=1; break
14951 rm -f core conftest.err conftest.
$ac_objext \
14952 conftest
$ac_exeext conftest.
$ac_ext
14953 ac_cv_sys_largefile_source
=unknown
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14958 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14959 case $ac_cv_sys_largefile_source in #(
14962 cat >>confdefs.h
<<_ACEOF
14963 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14969 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14970 # in glibc 2.1.3, but that breaks too many other things.
14971 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14972 if test $ac_cv_sys_largefile_source != unknown
; then
14974 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14980 for ac_func
in grantpt
14982 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14983 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14984 cat >>confdefs.h
<<_ACEOF
14985 #define HAVE_GRANTPT 1
14992 # PTY-related GNU extensions.
14993 for ac_func
in getpt posix_openpt
14995 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14996 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14997 eval as_val
=\$
$as_ac_var
14998 if test "x$as_val" = x
""yes; then :
14999 cat >>confdefs.h
<<_ACEOF
15000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15007 # Check this now, so that we will NOT find the above functions in ncurses.
15008 # That is because we have not set up to link ncurses in lib-src.
15009 # It's better to believe a function is not available
15010 # than to expect to find it in ncurses.
15011 # Also we need tputs and friends to be able to build at all.
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15013 $as_echo_n "checking for library containing tputs... " >&6; }
15014 # Run a test program that contains a call to tputs, a call that is
15015 # never executed. This tests whether a pre-'main' dynamic linker
15016 # works with the library. It's too much trouble to actually call
15017 # tputs in the test program, due to portability hassles. When
15018 # cross-compiling, assume the test program will run if it links.
15020 if test "${opsys}" = "mingw32"; then
15021 msg
='none required'
15023 # Maybe curses should be tried earlier?
15024 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15025 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
15027 if test -z "$tputs_library"; then
15029 msg
='none required'
15031 LIBS_TERMCAP
=-l$tputs_library
15033 LIBS
="$LIBS_TERMCAP $LIBS"
15035 if test "$cross_compiling" = yes; then :
15036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 extern void tputs (const char *, int, int (*)(int));
15040 int main (int argc, char **argv)
15043 tputs (argv[0], 0, 0);
15048 if ac_fn_c_try_link
"$LINENO"; then :
15053 rm -f core conftest.err conftest.
$ac_objext \
15054 conftest
$ac_exeext conftest.
$ac_ext
15056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15059 extern void tputs (const char *, int, int (*)(int));
15060 int main (int argc, char **argv)
15063 tputs (argv[0], 0, 0);
15068 if ac_fn_c_try_run
"$LINENO"; then :
15073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15078 if test "X$msg" != Xno
; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15084 $as_echo "$msg" >&6; }
15085 if test "X$msg" = Xno
; then
15086 as_fn_error
"The required function \`tputs' was not found in any library.
15087 The following libraries were tried (in order):
15088 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15089 Please try installing whichever of these libraries is most appropriate
15090 for your system, together with its header files.
15091 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15094 ## Use termcap instead of terminfo?
15095 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15097 ## FIXME? In the cases below where we unconditionally set
15098 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15099 ## if that was found above to have tputs.
15100 ## Should we use the gnu* logic everywhere?
15102 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15103 ## The ncurses library has been moved out of the System framework in
15104 ## Mac OS X 10.2. So if configure detects it, set the command-line
15105 ## option to use it.
15106 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15108 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15112 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15113 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15114 $as_echo_n "(cached) " >&6
15116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <osreldate.h>
15122 #if __FreeBSD_version < 400000
15130 if ac_fn_c_try_link
"$LINENO"; then :
15131 emacs_cv_freebsd_terminfo
=yes
15133 emacs_cv_freebsd_terminfo
=no
15135 rm -f core conftest.err conftest.
$ac_objext \
15136 conftest
$ac_exeext conftest.
$ac_ext
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15141 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15143 if test $emacs_cv_freebsd_terminfo = yes; then
15144 LIBS_TERMCAP
="-lncurses"
15147 LIBS_TERMCAP
="-ltermcap"
15157 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15159 LIBS_TERMCAP
="-ltermcap"
15163 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15165 ## hpux: Make sure we get select from libc rather than from libcurses
15166 ## because libcurses on HPUX 10.10 has a broken version of select.
15167 ## We used to use -lc -lcurses, but this may be cleaner.
15168 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15169 # set that way, now it uses the default). Isn't this a contradiction?
15170 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15174 TERMCAP_OBJ
=tparam.o
15175 if test $TERMINFO = yes; then
15177 $as_echo "#define TERMINFO 1" >>confdefs.h
15179 TERMCAP_OBJ
=terminfo.o
15181 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15183 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15190 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15191 # On Darwin, res_init appears not to be useful: see bug#562 and
15192 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15195 if test $opsys != darwin
; then
15197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 #include <netinet/in.h>
15200 #include <arpa/nameser.h>
15201 #include <resolv.h>
15210 if ac_fn_c_try_link
"$LINENO"; then :
15215 rm -f core conftest.err conftest.
$ac_objext \
15216 conftest
$ac_exeext conftest.
$ac_ext
15217 if test "$have_res_init" = no
; then
15219 LIBS
="$LIBS -lresolv"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15221 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <netinet/in.h>
15225 #include <arpa/nameser.h>
15226 #include <resolv.h>
15235 if ac_fn_c_try_link
"$LINENO"; then :
15240 rm -f core conftest.err conftest.
$ac_objext \
15241 conftest
$ac_exeext conftest.
$ac_ext
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15243 $as_echo "$have_res_init" >&6; }
15244 if test "$have_res_init" = yes ; then
15250 if test "$have_res_init" = yes; then
15252 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15256 # Do we need the Hesiod library to provide the support routines?
15258 if test "$with_hesiod" != no
; then
15259 # Don't set $LIBS here -- see comments above. FIXME which comments?
15260 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15261 if test "x$ac_cv_func_res_send" = x
""yes; then :
15264 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15265 if test "x$ac_cv_func___res_send" = x
""yes; then :
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15269 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15270 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15273 ac_check_lib_save_LIBS
=$LIBS
15274 LIBS
="-lresolv $LIBS"
15275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15278 /* Override any GCC internal prototype to avoid an error.
15279 Use char because int might match the return type of a GCC
15280 builtin and then its argument prototype would still apply. */
15288 return res_send ();
15293 if ac_fn_c_try_link
"$LINENO"; then :
15294 ac_cv_lib_resolv_res_send
=yes
15296 ac_cv_lib_resolv_res_send
=no
15298 rm -f core conftest.err conftest.
$ac_objext \
15299 conftest
$ac_exeext conftest.
$ac_ext
15300 LIBS
=$ac_check_lib_save_LIBS
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15303 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15304 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15308 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15309 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15310 $as_echo_n "(cached) " >&6
15312 ac_check_lib_save_LIBS
=$LIBS
15313 LIBS
="-lresolv $LIBS"
15314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15323 char __res_send ();
15327 return __res_send ();
15332 if ac_fn_c_try_link
"$LINENO"; then :
15333 ac_cv_lib_resolv___res_send
=yes
15335 ac_cv_lib_resolv___res_send
=no
15337 rm -f core conftest.err conftest.
$ac_objext \
15338 conftest
$ac_exeext conftest.
$ac_ext
15339 LIBS
=$ac_check_lib_save_LIBS
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15342 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15343 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15353 if test "$resolv" = yes ; then
15358 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15359 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15363 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15364 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15367 ac_check_lib_save_LIBS
=$LIBS
15368 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15372 /* Override any GCC internal prototype to avoid an error.
15373 Use char because int might match the return type of a GCC
15374 builtin and then its argument prototype would still apply. */
15378 char hes_getmailhost ();
15382 return hes_getmailhost ();
15387 if ac_fn_c_try_link
"$LINENO"; then :
15388 ac_cv_lib_hesiod_hes_getmailhost
=yes
15390 ac_cv_lib_hesiod_hes_getmailhost
=no
15392 rm -f core conftest.err conftest.
$ac_objext \
15393 conftest
$ac_exeext conftest.
$ac_ext
15394 LIBS
=$ac_check_lib_save_LIBS
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15397 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15398 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15407 if test x
"$hesiod" = xyes
; then
15413 # Do we need libresolv (due to res_init or Hesiod)?
15414 if test "$resolv" = yes && test $opsys != darwin
; then
15421 # These tell us which Kerberos-related libraries to use.
15428 if test "${with_kerberos}" != no
; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15430 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15431 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15432 $as_echo_n "(cached) " >&6
15434 ac_check_lib_save_LIBS
=$LIBS
15435 LIBS
="-lcom_err $LIBS"
15436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15439 /* Override any GCC internal prototype to avoid an error.
15440 Use char because int might match the return type of a GCC
15441 builtin and then its argument prototype would still apply. */
15454 if ac_fn_c_try_link
"$LINENO"; then :
15455 ac_cv_lib_com_err_com_err
=yes
15457 ac_cv_lib_com_err_com_err
=no
15459 rm -f core conftest.err conftest.
$ac_objext \
15460 conftest
$ac_exeext conftest.
$ac_ext
15461 LIBS
=$ac_check_lib_save_LIBS
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15464 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15465 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15471 if test $have_com_err = yes; then
15472 COM_ERRLIB
=-lcom_err
15473 LIBS
="$COM_ERRLIB $LIBS"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15476 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15477 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15480 ac_check_lib_save_LIBS
=$LIBS
15481 LIBS
="-lcrypto $LIBS"
15482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15485 /* Override any GCC internal prototype to avoid an error.
15486 Use char because int might match the return type of a GCC
15487 builtin and then its argument prototype would still apply. */
15491 char mit_des_cbc_encrypt ();
15495 return mit_des_cbc_encrypt ();
15500 if ac_fn_c_try_link
"$LINENO"; then :
15501 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15503 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15505 rm -f core conftest.err conftest.
$ac_objext \
15506 conftest
$ac_exeext conftest.
$ac_ext
15507 LIBS
=$ac_check_lib_save_LIBS
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15510 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15511 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15517 if test $have_crypto = yes; then
15519 LIBS
="$CRYPTOLIB $LIBS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15522 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15523 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15524 $as_echo_n "(cached) " >&6
15526 ac_check_lib_save_LIBS
=$LIBS
15527 LIBS
="-lk5crypto $LIBS"
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15537 char mit_des_cbc_encrypt ();
15541 return mit_des_cbc_encrypt ();
15546 if ac_fn_c_try_link
"$LINENO"; then :
15547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15551 rm -f core conftest.err conftest.
$ac_objext \
15552 conftest
$ac_exeext conftest.
$ac_ext
15553 LIBS
=$ac_check_lib_save_LIBS
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15556 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15557 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15563 if test $have_k5crypto = yes; then
15564 CRYPTOLIB
=-lk5crypto
15565 LIBS
="$CRYPTOLIB $LIBS"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15568 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15569 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15572 ac_check_lib_save_LIBS
=$LIBS
15573 LIBS
="-lkrb5 $LIBS"
15574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15583 char krb5_init_context ();
15587 return krb5_init_context ();
15592 if ac_fn_c_try_link
"$LINENO"; then :
15593 ac_cv_lib_krb5_krb5_init_context
=yes
15595 ac_cv_lib_krb5_krb5_init_context
=no
15597 rm -f core conftest.err conftest.
$ac_objext \
15598 conftest
$ac_exeext conftest.
$ac_ext
15599 LIBS
=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15602 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15603 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15609 if test $have_krb5=yes; then
15611 LIBS
="$KRB5LIB $LIBS"
15613 if test "${with_kerberos5}" = no
; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15615 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15616 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15617 $as_echo_n "(cached) " >&6
15619 ac_check_lib_save_LIBS
=$LIBS
15620 LIBS
="-ldes425 $LIBS"
15621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15630 char des_cbc_encrypt ();
15634 return des_cbc_encrypt ();
15639 if ac_fn_c_try_link
"$LINENO"; then :
15640 ac_cv_lib_des425_des_cbc_encrypt
=yes
15642 ac_cv_lib_des425_des_cbc_encrypt
=no
15644 rm -f core conftest.err conftest.
$ac_objext \
15645 conftest
$ac_exeext conftest.
$ac_ext
15646 LIBS
=$ac_check_lib_save_LIBS
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15649 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15650 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15656 if test $have_des425 = yes; then
15658 LIBS
="$DESLIB $LIBS"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15661 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15662 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15663 $as_echo_n "(cached) " >&6
15665 ac_check_lib_save_LIBS
=$LIBS
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15676 char des_cbc_encrypt ();
15680 return des_cbc_encrypt ();
15685 if ac_fn_c_try_link
"$LINENO"; then :
15686 ac_cv_lib_des_des_cbc_encrypt
=yes
15688 ac_cv_lib_des_des_cbc_encrypt
=no
15690 rm -f core conftest.err conftest.
$ac_objext \
15691 conftest
$ac_exeext conftest.
$ac_ext
15692 LIBS
=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15695 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15696 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15702 if test $have_des = yes; then
15704 LIBS
="$DESLIB $LIBS"
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15708 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15709 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15710 $as_echo_n "(cached) " >&6
15712 ac_check_lib_save_LIBS
=$LIBS
15713 LIBS
="-lkrb4 $LIBS"
15714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply. */
15723 char krb_get_cred ();
15727 return krb_get_cred ();
15732 if ac_fn_c_try_link
"$LINENO"; then :
15733 ac_cv_lib_krb4_krb_get_cred
=yes
15735 ac_cv_lib_krb4_krb_get_cred
=no
15737 rm -f core conftest.err conftest.
$ac_objext \
15738 conftest
$ac_exeext conftest.
$ac_ext
15739 LIBS
=$ac_check_lib_save_LIBS
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15742 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15743 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15749 if test $have_krb4 = yes; then
15751 LIBS
="$KRB4LIB $LIBS"
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15754 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15755 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15758 ac_check_lib_save_LIBS
=$LIBS
15760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15769 char krb_get_cred ();
15773 return krb_get_cred ();
15778 if ac_fn_c_try_link
"$LINENO"; then :
15779 ac_cv_lib_krb_krb_get_cred
=yes
15781 ac_cv_lib_krb_krb_get_cred
=no
15783 rm -f core conftest.err conftest.
$ac_objext \
15784 conftest
$ac_exeext conftest.
$ac_ext
15785 LIBS
=$ac_check_lib_save_LIBS
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15788 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15789 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15795 if test $have_krb = yes; then
15797 LIBS
="$KRB4LIB $LIBS"
15802 if test "${with_kerberos5}" != no
; then
15803 for ac_header
in krb5.h
15805 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15806 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15807 cat >>confdefs.h
<<_ACEOF
15808 #define HAVE_KRB5_H 1
15810 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15812 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15814 cat >>confdefs.h
<<_ACEOF
15815 #define HAVE_KRB5_ERROR_TEXT 1
15820 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15822 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15824 cat >>confdefs.h
<<_ACEOF
15825 #define HAVE_KRB5_ERROR_E_TEXT 1
15836 for ac_header
in krb.h
15838 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15839 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15840 cat >>confdefs.h
<<_ACEOF
15841 #define HAVE_KRB_H 1
15845 for ac_header
in kerberosIV
/krb.h
15847 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15848 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15849 cat >>confdefs.h
<<_ACEOF
15850 #define HAVE_KERBEROSIV_KRB_H 1
15854 for ac_header
in kerberos
/krb.h
15856 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15857 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15858 cat >>confdefs.h
<<_ACEOF
15859 #define HAVE_KERBEROS_KRB_H 1
15875 for ac_header
in com_err.h
15877 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15878 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15879 cat >>confdefs.h
<<_ACEOF
15880 #define HAVE_COM_ERR_H 1
15898 for ac_func
in $ac_func_list
15900 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15901 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15902 eval as_val
=\$
$as_ac_var
15903 if test "x$as_val" = x
""yes; then :
15904 cat >>confdefs.h
<<_ACEOF
15905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15915 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15916 if test "${emacs_cv_localtime_cache+set}" = set; then :
15917 $as_echo_n "(cached) " >&6
15919 if test x
$ac_cv_func_tzset = xyes
; then
15920 if test "$cross_compiling" = yes; then :
15921 # If we have tzset, assume the worst when cross-compiling.
15922 emacs_cv_localtime_cache
=yes
15924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15927 char TZ_GMT0[] = "TZ=GMT0";
15928 char TZ_PST8[] = "TZ=PST8";
15931 time_t now = time ((time_t *) 0);
15932 int hour_GMT0, hour_unset;
15933 if (putenv (TZ_GMT0) != 0)
15935 hour_GMT0 = localtime (&now)->tm_hour;
15937 hour_unset = localtime (&now)->tm_hour;
15938 if (putenv (TZ_PST8) != 0)
15940 if (localtime (&now)->tm_hour == hour_GMT0)
15943 if (localtime (&now)->tm_hour != hour_unset)
15948 if ac_fn_c_try_run
"$LINENO"; then :
15949 emacs_cv_localtime_cache
=no
15951 emacs_cv_localtime_cache
=yes
15953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15958 # If we lack tzset, report that localtime does not cache TZ,
15959 # since we can't invalidate the cache if we don't have tzset.
15960 emacs_cv_localtime_cache
=no
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15964 $as_echo "$emacs_cv_localtime_cache" >&6; }
15965 if test $emacs_cv_localtime_cache = yes; then
15967 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15972 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15973 if test "x$ac_cv_func_socket" = x
""yes; then :
15979 if test $ok_so_far = yes; then
15980 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15981 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15989 if test $ok_so_far = yes; then
15990 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15991 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15999 if test $ok_so_far = yes; then
16001 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16006 *-solaris2.4 |
*-solaris2.4.
*)
16007 : ${ac_cv_func_vfork_works=no};;
16010 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16011 if test "x$ac_cv_type_pid_t" = x
""yes; then :
16015 cat >>confdefs.h
<<_ACEOF
16021 for ac_header
in vfork.h
16023 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16024 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16025 cat >>confdefs.h
<<_ACEOF
16026 #define HAVE_VFORK_H 1
16033 for ac_func
in fork vfork
16035 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16036 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16037 eval as_val
=\$
$as_ac_var
16038 if test "x$as_val" = x
""yes; then :
16039 cat >>confdefs.h
<<_ACEOF
16040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16046 if test "x$ac_cv_func_fork" = xyes
; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16048 $as_echo_n "checking for working fork... " >&6; }
16049 if test "${ac_cv_func_fork_works+set}" = set; then :
16050 $as_echo_n "(cached) " >&6
16052 if test "$cross_compiling" = yes; then :
16053 ac_cv_func_fork_works
=cross
16055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 $ac_includes_default
16062 /* By Ruediger Kuhlmann. */
16063 return fork () < 0;
16069 if ac_fn_c_try_run
"$LINENO"; then :
16070 ac_cv_func_fork_works
=yes
16072 ac_cv_func_fork_works
=no
16074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16080 $as_echo "$ac_cv_func_fork_works" >&6; }
16083 ac_cv_func_fork_works
=$ac_cv_func_fork
16085 if test "x$ac_cv_func_fork_works" = xcross
; then
16087 *-*-amigaos* |
*-*-msdosdjgpp*)
16088 # Override, as these systems have only a dummy fork() stub
16089 ac_cv_func_fork_works
=no
16092 ac_cv_func_fork_works
=yes
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16096 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16098 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16099 if test "x$ac_cv_func_vfork" = xyes
; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16101 $as_echo_n "checking for working vfork... " >&6; }
16102 if test "${ac_cv_func_vfork_works+set}" = set; then :
16103 $as_echo_n "(cached) " >&6
16105 if test "$cross_compiling" = yes; then :
16106 ac_cv_func_vfork_works
=cross
16108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 /* Thanks to Paul Eggert for this test. */
16111 $ac_includes_default
16112 #include <sys/wait.h>
16113 #ifdef HAVE_VFORK_H
16114 # include <vfork.h>
16116 /* On some sparc systems, changes by the child to local and incoming
16117 argument registers are propagated back to the parent. The compiler
16118 is told about this with #include <vfork.h>, but some compilers
16119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16120 static variable whose address is put into a register that is
16121 clobbered by the vfork. */
16124 sparc_address_test (int arg)
16126 sparc_address_test (arg) int arg;
16129 static pid_t child;
16147 pid_t parent = getpid ();
16150 sparc_address_test (0);
16155 /* Here is another test for sparc vfork register problems. This
16156 test uses lots of local variables, at least as many local
16157 variables as main has allocated so far including compiler
16158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16160 reuse the register of parent for one of the local variables,
16161 since it will think that parent can't possibly be used any more
16162 in this routine. Assigning to the local variable will thus
16163 munge parent in the parent process. */
16165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16167 /* Convince the compiler that p..p7 are live; otherwise, it might
16168 use the same hardware register for all 8 local variables. */
16169 if (p != p1 || p != p2 || p != p3 || p != p4
16170 || p != p5 || p != p6 || p != p7)
16173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16174 from child file descriptors. If the child closes a descriptor
16175 before it execs or exits, this munges the parent's descriptor
16176 as well. Test for this by closing stdout in the child. */
16177 _exit(close(fileno(stdout)) != 0);
16182 while (wait(&status) != child)
16185 /* Was there some problem with vforking? */
16188 /* Did the child fail? (This shouldn't happen.) */
16191 /* Did the vfork/compiler bug occur? */
16192 || parent != getpid()
16194 /* Did the file descriptor bug occur? */
16195 || fstat(fileno(stdout), &st) != 0
16200 if ac_fn_c_try_run
"$LINENO"; then :
16201 ac_cv_func_vfork_works
=yes
16203 ac_cv_func_vfork_works
=no
16205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16211 $as_echo "$ac_cv_func_vfork_works" >&6; }
16214 if test "x$ac_cv_func_fork_works" = xcross
; then
16215 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16217 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16220 if test "x$ac_cv_func_vfork_works" = xyes
; then
16222 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16226 $as_echo "#define vfork fork" >>confdefs.h
16229 if test "x$ac_cv_func_fork_works" = xyes
; then
16231 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16236 for ac_func
in snprintf
16238 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16239 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16240 cat >>confdefs.h
<<_ACEOF
16241 #define HAVE_SNPRINTF 1
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16250 $as_echo_n "checking whether GLib is linked in... " >&6; }
16251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16258 g_print ("Hello world");
16263 if ac_fn_c_try_link
"$LINENO"; then :
16268 rm -f core conftest.err conftest.
$ac_objext \
16269 conftest
$ac_exeext conftest.
$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16271 $as_echo "$links_glib" >&6; }
16272 if test "${links_glib}" = "yes"; then
16274 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16276 if test "$HAVE_NS" = no
;then
16277 XGSELOBJ
=xgselect.o
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16283 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16284 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
16287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <langinfo.h>
16293 char* cs = nl_langinfo(CODESET);
16298 if ac_fn_c_try_link
"$LINENO"; then :
16299 emacs_cv_langinfo_codeset
=yes
16301 emacs_cv_langinfo_codeset
=no
16303 rm -f core conftest.err conftest.
$ac_objext \
16304 conftest
$ac_exeext conftest.
$ac_ext
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16308 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16309 if test $emacs_cv_langinfo_codeset = yes; then
16311 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16316 $as_echo_n "checking for mbstate_t... " >&6; }
16317 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16318 $as_echo_n "(cached) " >&6
16320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 $ac_includes_default
16323 # include <wchar.h>
16327 mbstate_t x; return sizeof x;
16332 if ac_fn_c_try_compile
"$LINENO"; then :
16333 ac_cv_type_mbstate_t
=yes
16335 ac_cv_type_mbstate_t
=no
16337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16340 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16341 if test $ac_cv_type_mbstate_t = yes; then
16343 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16347 $as_echo "#define mbstate_t int" >>confdefs.h
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16352 $as_echo_n "checking for C restricted array declarations... " >&6; }
16353 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16354 $as_echo_n "(cached) " >&6
16356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 void fred (int x[__restrict]);
16367 if ac_fn_c_try_compile
"$LINENO"; then :
16368 emacs_cv_c_restrict_arr
=yes
16370 emacs_cv_c_restrict_arr
=no
16372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16375 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16376 if test "$emacs_cv_c_restrict_arr" = yes; then
16378 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16383 if test "${opsys}" != "mingw32"; then
16385 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16390 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16393 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16394 if test "${opsys}" != "mingw32"; then
16396 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16401 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16407 if test "${opsys}" = "mingw32"; then
16408 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16411 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16416 if test "${opsys}" = "mingw32"; then
16417 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16420 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16425 $as_echo "#define subprocesses 1" >>confdefs.h
16429 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16434 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16437 if test "${opsys}" = "mingw32"; then
16439 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16443 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16447 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16451 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16455 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16459 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16467 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16468 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16474 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16481 irix6-5 | sol2
* | unixware
)
16483 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16488 emacs_broken_SIGIO
=no
16491 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
16492 emacs_broken_SIGIO
=yes
16497 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16503 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16511 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16517 darwin | dragonfly | freebsd | netbsd | openbsd
)
16519 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16525 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16526 *) sound_device
="/dev/dsp" ;;
16530 cat >>confdefs.h
<<_ACEOF
16531 #define DEFAULT_SOUND_DEVICE "$sound_device"
16537 darwin | gnu-linux | gnu-kfreebsd
)
16539 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16546 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16548 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16562 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16564 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16566 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16571 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16573 $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
16575 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16577 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16582 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16584 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16586 $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
16588 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16590 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16595 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16599 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16600 if test "x$ac_cv_func_grantpt" = xyes
; then
16602 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16604 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16606 $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) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16608 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16609 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16611 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16613 elif test "x$ac_cv_func_getpt" = xyes
; then
16614 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16616 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16619 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16623 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16629 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16631 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16633 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16638 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16640 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16642 $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
16644 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16646 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16651 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16656 $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, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16664 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16666 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16669 $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
16678 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16679 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16683 gnu-linux | gnu-kfreebsd
)
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16686 $as_echo_n "checking for signals via characters... " >&6; }
16687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16690 #include <linux/version.h>
16691 #if LINUX_VERSION_CODE < 0x20400
16692 # error "Linux version too old"
16703 if ac_fn_c_try_cpp
"$LINENO"; then :
16704 emacs_signals_via_chars
=yes
16706 emacs_signals_via_chars
=no
16708 rm -f conftest.err conftest.
$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16711 $as_echo "$emacs_signals_via_chars" >&6; }
16712 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16722 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16726 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16730 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16739 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16742 gnu | dragonfly | freebsd | netbsd | openbsd
)
16744 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16746 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16750 gnu-linux | gnu-kfreebsd
)
16751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16766 if ac_fn_c_try_cpp
"$LINENO"; then :
16768 $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
16771 rm -f conftest.err conftest.
$ac_ext
16776 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16786 gnu-linux | gnu-kfreebsd
)
16787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16790 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16791 || defined __alpha__ || defined __mips__ || defined __s390__ \
16792 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16793 || defined __ia64__ || defined __sh__
16796 # error "setjmp not known to work on this arch"
16807 if ac_fn_c_try_cpp
"$LINENO"; then :
16808 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16811 rm -f conftest.err conftest.
$ac_ext
16816 if test x
$GCC = xyes
; then
16817 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16821 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16822 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16828 $as_echo_n "checking for _setjmp... " >&6; }
16829 if test "${emacs_cv_func__setjmp+set}" = set; then :
16830 $as_echo_n "(cached) " >&6
16832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <setjmp.h>
16836 # define _longjmp longjmp
16849 if ac_fn_c_try_link
"$LINENO"; then :
16850 emacs_cv_func__setjmp
=yes
16852 emacs_cv_func__setjmp
=no
16854 rm -f core conftest.err conftest.
$ac_objext \
16855 conftest
$ac_exeext conftest.
$ac_ext
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16858 $as_echo "$emacs_cv_func__setjmp" >&6; }
16859 if test $emacs_cv_func__setjmp = yes; then
16861 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16865 $as_echo_n "checking for sigsetjmp... " >&6; }
16866 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16867 $as_echo_n "(cached) " >&6
16869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <setjmp.h>
16877 if (! sigsetjmp (j, 1))
16883 if ac_fn_c_try_link
"$LINENO"; then :
16884 emacs_cv_func_sigsetjmp
=yes
16886 emacs_cv_func_sigsetjmp
=no
16888 rm -f core conftest.err conftest.
$ac_objext \
16889 conftest
$ac_exeext conftest.
$ac_ext
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16892 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16893 if test $emacs_cv_func_sigsetjmp = yes; then
16895 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16903 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16912 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16925 $as_echo "#define USG /**/" >>confdefs.h
16927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16931 # error "_AIX not defined"
16942 if ac_fn_c_try_cpp
"$LINENO"; then :
16946 $as_echo "#define _AIX /**/" >>confdefs.h
16949 rm -f conftest.err conftest.
$ac_ext
16954 $as_echo "#define CYGWIN 1" >>confdefs.h
16960 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16964 gnu-linux | gnu-kfreebsd
)
16965 $as_echo "#define USG /**/" >>confdefs.h
16968 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16973 $as_echo "#define USG /**/" >>confdefs.h
16976 $as_echo "#define HPUX /**/" >>confdefs.h
16981 $as_echo "#define USG /**/" >>confdefs.h
16983 $as_echo "#define USG5_4 /**/" >>confdefs.h
16986 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16991 $as_echo "#define DOS_NT /**/" >>confdefs.h
16994 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16996 if test "x$ac_enable_checking" != "x" ; then
16998 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17004 $as_echo "#define USG /**/" >>confdefs.h
17006 $as_echo "#define USG5_4 /**/" >>confdefs.h
17009 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17014 $as_echo "#define USG /**/" >>confdefs.h
17016 $as_echo "#define USG5_4 /**/" >>confdefs.h
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17022 $as_echo_n "checking for usable FIONREAD... " >&6; }
17023 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17024 $as_echo_n "(cached) " >&6
17028 emacs_cv_usable_FIONREAD
=no
17032 emacs_cv_usable_FIONREAD
=yes
17036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 #include <sys/types.h>
17039 #include <sys/ioctl.h>
17041 # include <sys/filio.h>
17047 int foo = ioctl (0, FIONREAD, &foo);
17052 if ac_fn_c_try_compile
"$LINENO"; then :
17053 emacs_cv_usable_FIONREAD
=yes
17055 emacs_cv_usable_FIONREAD
=no
17057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17062 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17063 if test $emacs_cv_usable_FIONREAD = yes; then
17065 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17068 if test $emacs_broken_SIGIO = no
; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17070 $as_echo_n "checking for usable SIGIO... " >&6; }
17071 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17072 $as_echo_n "(cached) " >&6
17074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17077 #include <signal.h>
17082 int foo = SIGIO | F_SETFL | FASYNC;
17087 if ac_fn_c_try_compile
"$LINENO"; then :
17088 emacs_cv_usable_SIGIO
=yes
17090 emacs_cv_usable_SIGIO
=no
17092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17095 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17096 if test $emacs_cv_usable_SIGIO = yes; then
17098 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17108 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17114 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17120 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17126 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17131 # Set up the CFLAGS for real compilation, so we can substitute it.
17132 CFLAGS
="$REAL_CFLAGS"
17133 CPPFLAGS
="$REAL_CPPFLAGS"
17135 ## Hack to detect a buggy GCC version.
17136 if test "x$GCC" = xyes \
17137 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17138 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17139 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17140 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17143 version
=$PACKAGE_VERSION
17145 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17147 cat >>confdefs.h
<<_ACEOF
17148 #define COPYRIGHT "$copyright"
17153 ### Specify what sort of things we'll be editing into Makefile and config.h.
17154 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17180 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17181 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17182 ## end of LIBX_BASE, but nothing ever set it.
17187 ## Used in lwlib/Makefile.in.
17196 if test -n "${term_header}"; then
17198 cat >>confdefs.h
<<_ACEOF
17199 #define TERM_HEADER "${term_header}"
17205 cat >>confdefs.h
<<_ACEOF
17206 #define EMACS_CONFIGURATION "${canonical}"
17210 cat >>confdefs.h
<<_ACEOF
17211 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17218 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17226 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17228 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17231 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17233 if test "$HAVE_XFT" = "yes"; then
17234 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17235 elif test "$HAVE_FREETYPE" = "yes"; then
17236 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17246 if test "${USE_X_TOOLKIT}" != "none" ; then
17247 WIDGET_OBJ
=widget.o
17249 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17251 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17253 $as_echo "#define USE_LUCID 1" >>confdefs.h
17255 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17257 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17262 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17263 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17267 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17268 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17269 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17273 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17274 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17277 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17283 case "$USE_X_TOOLKIT" in
17284 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17285 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17286 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17290 if test "${opsys}" != "mingw32"; then
17291 if test "$USE_X_TOOLKIT" = "none"; then
17292 LIBXT_OTHER
="\$(LIBXSM)"
17293 OLDXMENU_TARGET
="really-oldXMenu"
17295 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17296 OLDXMENU_TARGET
="really-lwlib"
17301 ## The X Menu stuff is present in the X10 distribution, but missing
17302 ## from X11. If we have X10, just use the installed library;
17303 ## otherwise, use our own copy.
17304 if test "${HAVE_X11}" = "yes" ; then
17306 $as_echo "#define HAVE_X11 1" >>confdefs.h
17309 if test "$USE_X_TOOLKIT" = "none"; then
17310 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17312 OLDXMENU
="\${lwlibdir}/liblw.a"
17314 LIBXMENU
="\$(OLDXMENU)"
17315 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17316 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17318 ## For a syntactically valid Makefile; not actually used for anything.
17319 ## See comments in src/Makefile.in.
17321 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17322 if test "${HAVE_X_WINDOWS}" = "yes"; then
17331 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17344 if test "${HAVE_MENUS}" = "yes" ; then
17346 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17350 if test "${GNU_MALLOC}" = "yes" ; then
17352 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17357 if test "${REL_ALLOC}" = "yes" ; then
17359 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17362 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17366 if test "$opsys" = "cygwin"; then
17367 CYGWIN_OBJ
="sheap.o cygw32.o"
17368 ## Cygwin differs because of its unexec().
17370 POST_ALLOC_OBJ
=lastfile.o
17371 elif test "$opsys" = "mingw32"; then
17374 POST_ALLOC_OBJ
=lastfile.o
17377 PRE_ALLOC_OBJ
=lastfile.o
17384 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17385 # it temporarily reverts them to their pre-pkg-config values,
17386 # because gnulib needs to work with both src (which uses the
17387 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17388 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17389 # and it therefore needs to run in an environment where LIBS does not
17390 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17391 # for some package unrelated to lib-src.
17392 SAVE_CFLAGS
=$CFLAGS
17394 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17395 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17407 LIBC_FATAL_STDERR_
=1
17408 export LIBC_FATAL_STDERR_
17410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17411 # for constant arguments. Useless!
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17413 $as_echo_n "checking for working alloca.h... " >&6; }
17414 if test "${ac_cv_working_alloca_h+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <alloca.h>
17423 char *p = (char *) alloca (2 * sizeof (int));
17429 if ac_fn_c_try_link
"$LINENO"; then :
17430 ac_cv_working_alloca_h
=yes
17432 ac_cv_working_alloca_h
=no
17434 rm -f core conftest.err conftest.
$ac_objext \
17435 conftest
$ac_exeext conftest.
$ac_ext
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17438 $as_echo "$ac_cv_working_alloca_h" >&6; }
17439 if test $ac_cv_working_alloca_h = yes; then
17441 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17446 $as_echo_n "checking for alloca... " >&6; }
17447 if test "${ac_cv_func_alloca_works+set}" = set; then :
17448 $as_echo_n "(cached) " >&6
17450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17453 # define alloca __builtin_alloca
17456 # include <malloc.h>
17457 # define alloca _alloca
17459 # ifdef HAVE_ALLOCA_H
17460 # include <alloca.h>
17465 # ifndef alloca /* predefined by HP cc +Olibcalls */
17476 char *p = (char *) alloca (1);
17482 if ac_fn_c_try_link
"$LINENO"; then :
17483 ac_cv_func_alloca_works
=yes
17485 ac_cv_func_alloca_works
=no
17487 rm -f core conftest.err conftest.
$ac_objext \
17488 conftest
$ac_exeext conftest.
$ac_ext
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17491 $as_echo "$ac_cv_func_alloca_works" >&6; }
17493 if test $ac_cv_func_alloca_works = yes; then
17495 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17499 # that cause trouble. Some versions do not even contain alloca or
17500 # contain a buggy version. If you still want to use their alloca,
17501 # use ar to extract alloca.o from them instead of compiling alloca.c.
17507 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17509 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17513 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17514 if test "${ac_cv_os_cray+set}" = set; then :
17515 $as_echo_n "(cached) " >&6
17517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #if defined CRAY && ! defined CRAY2
17526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17527 $EGREP "webecray" >/dev
/null
2>&1; then :
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17536 $as_echo "$ac_cv_os_cray" >&6; }
17537 if test $ac_cv_os_cray = yes; then
17538 for ac_func
in _getb67 GETB67 getb67
; do
17539 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17540 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17541 eval as_val
=\$
$as_ac_var
17542 if test "x$as_val" = x
""yes; then :
17544 cat >>confdefs.h
<<_ACEOF
17545 #define CRAY_STACKSEG_END $ac_func
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17555 $as_echo_n "checking stack direction for C alloca... " >&6; }
17556 if test "${ac_cv_c_stack_direction+set}" = set; then :
17557 $as_echo_n "(cached) " >&6
17559 if test "$cross_compiling" = yes; then :
17560 ac_cv_c_stack_direction
=0
17562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 $ac_includes_default
17566 find_stack_direction (int *addr, int depth)
17568 int dir, dummy = 0;
17571 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17572 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17573 return dir + dummy;
17577 main (int argc, char **argv)
17579 return find_stack_direction (0, argc + !argv + 20) < 0;
17582 if ac_fn_c_try_run
"$LINENO"; then :
17583 ac_cv_c_stack_direction
=1
17585 ac_cv_c_stack_direction
=-1
17587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17593 $as_echo "$ac_cv_c_stack_direction" >&6; }
17594 cat >>confdefs.h
<<_ACEOF
17595 #define STACK_DIRECTION $ac_cv_c_stack_direction
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17605 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17606 if test "${ac_cv_c_bigendian+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17609 ac_cv_c_bigendian
=unknown
17610 # See if we're dealing with a universal compiler.
17611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #ifndef __APPLE_CC__
17614 not a universal capable compiler
17619 if ac_fn_c_try_compile
"$LINENO"; then :
17621 # Check for potential -arch flags. It is not universal unless
17622 # there are at least two -arch flags with different values.
17625 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17626 if test -n "$ac_prev"; then
17628 i?
86 | x86_64 | ppc | ppc64
)
17629 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17632 ac_cv_c_bigendian
=universal
17638 elif test "x$ac_word" = "x-arch"; then
17643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17644 if test $ac_cv_c_bigendian = unknown
; then
17645 # See if sys/param.h defines the BYTE_ORDER macro.
17646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 #include <sys/types.h>
17649 #include <sys/param.h>
17654 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17655 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17657 bogus endian macros
17664 if ac_fn_c_try_compile
"$LINENO"; then :
17665 # It does; now see whether it defined to BIG_ENDIAN or not.
17666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 #include <sys/types.h>
17669 #include <sys/param.h>
17674 #if BYTE_ORDER != BIG_ENDIAN
17682 if ac_fn_c_try_compile
"$LINENO"; then :
17683 ac_cv_c_bigendian
=yes
17685 ac_cv_c_bigendian
=no
17687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17691 if test $ac_cv_c_bigendian = unknown
; then
17692 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695 #include <limits.h>
17700 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17701 bogus endian macros
17708 if ac_fn_c_try_compile
"$LINENO"; then :
17709 # It does; now see whether it defined to _BIG_ENDIAN or not.
17710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712 #include <limits.h>
17717 #ifndef _BIG_ENDIAN
17725 if ac_fn_c_try_compile
"$LINENO"; then :
17726 ac_cv_c_bigendian
=yes
17728 ac_cv_c_bigendian
=no
17730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17734 if test $ac_cv_c_bigendian = unknown
; then
17735 # Compile a test program.
17736 if test "$cross_compiling" = yes; then :
17737 # Try to guess by grepping values from an object file.
17738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 short int ascii_mm[] =
17741 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17742 short int ascii_ii[] =
17743 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17744 int use_ascii (int i) {
17745 return ascii_mm[i] + ascii_ii[i];
17747 short int ebcdic_ii[] =
17748 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17749 short int ebcdic_mm[] =
17750 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17751 int use_ebcdic (int i) {
17752 return ebcdic_mm[i] + ebcdic_ii[i];
17759 return use_ascii (foo) == use_ebcdic (foo);
17764 if ac_fn_c_try_compile
"$LINENO"; then :
17765 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17766 ac_cv_c_bigendian
=yes
17768 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17769 if test "$ac_cv_c_bigendian" = unknown
; then
17770 ac_cv_c_bigendian
=no
17772 # finding both strings is unlikely to happen, but who knows?
17773 ac_cv_c_bigendian
=unknown
17777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781 $ac_includes_default
17786 /* Are we little or big endian? From Harbison&Steele. */
17790 char c[sizeof (long int)];
17793 return u.c[sizeof (long int) - 1] == 1;
17799 if ac_fn_c_try_run
"$LINENO"; then :
17800 ac_cv_c_bigendian
=no
17802 ac_cv_c_bigendian
=yes
17804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17811 $as_echo "$ac_cv_c_bigendian" >&6; }
17812 case $ac_cv_c_bigendian in #(
17814 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17820 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17824 as_fn_error
"unknown endianness
17825 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17837 GNULIB_EUIDACCESS
=0;
17838 GNULIB_FACCESSAT
=0;
17841 GNULIB_FDATASYNC
=0;
17843 GNULIB_FTRUNCATE
=0;
17845 GNULIB_GETDOMAINNAME
=0;
17846 GNULIB_GETDTABLESIZE
=0;
17847 GNULIB_GETGROUPS
=0;
17848 GNULIB_GETHOSTNAME
=0;
17850 GNULIB_GETLOGIN_R
=0;
17851 GNULIB_GETPAGESIZE
=0;
17852 GNULIB_GETUSERSHELL
=0;
17853 GNULIB_GROUP_MEMBER
=0;
17865 GNULIB_READLINKAT
=0;
17867 GNULIB_SETHOSTNAME
=0;
17870 GNULIB_SYMLINKAT
=0;
17871 GNULIB_TTYNAME_R
=0;
17872 GNULIB_UNISTD_H_NONBLOCKING
=0;
17873 GNULIB_UNISTD_H_SIGPIPE
=0;
17888 HAVE_GETDTABLESIZE
=1;
17890 HAVE_GETHOSTNAME
=1;
17892 HAVE_GETPAGESIZE
=1;
17893 HAVE_GROUP_MEMBER
=1;
17903 HAVE_SETHOSTNAME
=1;
17909 HAVE_DECL_ENVIRON
=1;
17910 HAVE_DECL_FCHDIR
=1;
17911 HAVE_DECL_FDATASYNC
=1;
17912 HAVE_DECL_GETDOMAINNAME
=1;
17913 HAVE_DECL_GETLOGIN_R
=1;
17914 HAVE_DECL_GETPAGESIZE
=1;
17915 HAVE_DECL_GETUSERSHELL
=1;
17916 HAVE_DECL_SETHOSTNAME
=1;
17917 HAVE_DECL_TTYNAME_R
=1;
17919 HAVE_SYS_PARAM_H
=0;
17924 REPLACE_FCHOWNAT
=0;
17925 REPLACE_FTRUNCATE
=0;
17927 REPLACE_GETDOMAINNAME
=0;
17928 REPLACE_GETLOGIN_R
=0;
17929 REPLACE_GETGROUPS
=0;
17930 REPLACE_GETPAGESIZE
=0;
17939 REPLACE_READLINK
=0;
17943 REPLACE_TTYNAME_R
=0;
17945 REPLACE_UNLINKAT
=0;
17948 UNISTD_H_HAVE_WINSOCK2_H
=0;
17949 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17955 GNULIB_REWINDDIR
=0;
17958 GNULIB_FDOPENDIR
=0;
17960 GNULIB_ALPHASORT
=0;
17966 HAVE_DECL_FDOPENDIR
=1;
17971 REPLACE_CLOSEDIR
=0;
17973 REPLACE_FDOPENDIR
=0;
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17978 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17979 if test "${gl_cv_have_include_next+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17982 rm -rf conftestd1a conftestd1b conftestd2
17983 mkdir conftestd1a conftestd1b conftestd2
17984 cat <<EOF > conftestd1a/conftest.h
17985 #define DEFINED_IN_CONFTESTD1
17986 #include_next <conftest.h>
17987 #ifdef DEFINED_IN_CONFTESTD2
17990 #error "include_next doesn't work"
17993 cat <<EOF > conftestd1b/conftest.h
17994 #define DEFINED_IN_CONFTESTD1
17996 #include_next <conftest.h>
17997 #ifdef DEFINED_IN_CONFTESTD2
18000 #error "include_next doesn't work"
18003 cat <<EOF > conftestd2/conftest.h
18004 #ifndef DEFINED_IN_CONFTESTD1
18005 #error "include_next test doesn't work"
18007 #define DEFINED_IN_CONFTESTD2
18009 gl_save_CPPFLAGS
="$CPPFLAGS"
18010 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013 #include <conftest.h>
18015 if ac_fn_c_try_compile
"$LINENO"; then :
18016 gl_cv_have_include_next
=yes
18018 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18021 #include <conftest.h>
18023 if ac_fn_c_try_compile
"$LINENO"; then :
18024 gl_cv_have_include_next
=buggy
18026 gl_cv_have_include_next
=no
18028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18032 CPPFLAGS
="$gl_save_CPPFLAGS"
18033 rm -rf conftestd1a conftestd1b conftestd2
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18037 $as_echo "$gl_cv_have_include_next" >&6; }
18038 PRAGMA_SYSTEM_HEADER
=
18039 if test $gl_cv_have_include_next = yes; then
18040 INCLUDE_NEXT
=include_next
18041 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18042 if test -n "$GCC"; then
18043 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18046 if test $gl_cv_have_include_next = buggy
; then
18047 INCLUDE_NEXT
=include
18048 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18050 INCLUDE_NEXT
=include
18051 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18058 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18059 if test "${gl_cv_pragma_columns+set}" = set; then :
18060 $as_echo_n "(cached) " >&6
18062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18071 $EGREP "choke me" >/dev
/null
2>&1; then :
18072 gl_cv_pragma_columns
=yes
18074 gl_cv_pragma_columns
=no
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18081 $as_echo "$gl_cv_pragma_columns" >&6; }
18082 if test $gl_cv_pragma_columns = yes; then
18083 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18093 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18094 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18099 /* On HP-UX before 11.23, strtold returns a struct instead of
18100 long double. Reject implementations like that, by requiring
18101 compatibility with the C99 prototype. */
18102 #include <stdlib.h>
18103 static long double (*p) (char const *, char **) = strtold;
18105 test (char const *nptr, char **endptr)
18108 r = strtold (nptr, endptr);
18114 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18119 if ac_fn_c_try_link
"$LINENO"; then :
18120 gl_cv_func_c99_strtold
=yes
18122 gl_cv_func_c99_strtold
=no
18124 rm -f core conftest.err conftest.
$ac_objext \
18125 conftest
$ac_exeext conftest.
$ac_ext
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18128 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18129 if test $gl_cv_func_c99_strtold = yes; then
18131 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18143 $as_echo_n "checking if environ is properly declared... " >&6; }
18144 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18151 #include <unistd.h>
18153 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18154 #include <stdlib.h>
18156 extern struct { int foo; } environ;
18165 if ac_fn_c_try_compile
"$LINENO"; then :
18166 gt_cv_var_environ_declaration
=no
18168 gt_cv_var_environ_declaration
=yes
18170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18174 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18175 if test $gt_cv_var_environ_declaration = yes; then
18177 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18182 if test $gt_cv_var_environ_declaration != yes; then
18183 HAVE_DECL_ENVIRON
=0
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18189 $as_echo_n "checking for complete errno.h... " >&6; }
18190 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18198 #if !defined ETXTBSY
18201 #if !defined ENOMSG
18207 #if !defined ENOLINK
18210 #if !defined EPROTO
18213 #if !defined EMULTIHOP
18216 #if !defined EBADMSG
18219 #if !defined EOVERFLOW
18222 #if !defined ENOTSUP
18225 #if !defined ENETRESET
18228 #if !defined ECONNABORTED
18231 #if !defined ESTALE
18234 #if !defined EDQUOT
18237 #if !defined ECANCELED
18240 #if !defined EOWNERDEAD
18243 #if !defined ENOTRECOVERABLE
18246 #if !defined EILSEQ
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252 $EGREP "booboo" >/dev
/null
2>&1; then :
18253 gl_cv_header_errno_h_complete
=no
18255 gl_cv_header_errno_h_complete
=yes
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18262 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18263 if test $gl_cv_header_errno_h_complete = yes; then
18274 if test $gl_cv_have_include_next = yes; then
18275 gl_cv_next_errno_h
='<'errno.h
'>'
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18278 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18279 if test "${gl_cv_next_errno_h+set}" = set; then :
18280 $as_echo_n "(cached) " >&6
18283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18289 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18290 *) gl_absname_cpp
="$ac_cpp" ;;
18295 gl_dirsep_regex
='[/\\]'
18298 gl_dirsep_regex
='\/'
18301 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18303 gl_header_literal_regex
=`echo 'errno.h' \
18304 | sed -e "$gl_make_literal_regex_sed"`
18305 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18311 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18312 sed -n "$gl_absolute_header_sed"`'"'
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18317 $as_echo "$gl_cv_next_errno_h" >&6; }
18319 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18321 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18323 gl_next_as_first_directive
='<'errno.h
'>'
18325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18326 gl_next_as_first_directive
=$gl_cv_next_errno_h
18328 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18336 if test -n "$ERRNO_H"; then
18337 GL_GENERATE_ERRNO_H_TRUE
=
18338 GL_GENERATE_ERRNO_H_FALSE
='#'
18340 GL_GENERATE_ERRNO_H_TRUE
='#'
18341 GL_GENERATE_ERRNO_H_FALSE
=
18345 if test -n "$ERRNO_H"; then
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18347 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18348 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18349 $as_echo_n "(cached) " >&6
18352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362 $EGREP "yes" >/dev
/null
2>&1; then :
18363 gl_cv_header_errno_h_EMULTIHOP
=yes
18365 gl_cv_header_errno_h_EMULTIHOP
=no
18369 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 #define _XOPEN_SOURCE_EXTENDED 1
18380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18381 $EGREP "yes" >/dev
/null
2>&1; then :
18382 gl_cv_header_errno_h_EMULTIHOP
=hidden
18386 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18387 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18388 #define _XOPEN_SOURCE_EXTENDED 1
18390 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18392 #include <stdlib.h>
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18402 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18403 case $gl_cv_header_errno_h_EMULTIHOP in
18405 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18408 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18416 if test -n "$ERRNO_H"; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18418 $as_echo_n "checking for ENOLINK value... " >&6; }
18419 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18433 $EGREP "yes" >/dev
/null
2>&1; then :
18434 gl_cv_header_errno_h_ENOLINK
=yes
18436 gl_cv_header_errno_h_ENOLINK
=no
18440 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18444 #define _XOPEN_SOURCE_EXTENDED 1
18451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18452 $EGREP "yes" >/dev
/null
2>&1; then :
18453 gl_cv_header_errno_h_ENOLINK
=hidden
18457 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18458 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18459 #define _XOPEN_SOURCE_EXTENDED 1
18461 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18463 #include <stdlib.h>
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18473 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18474 case $gl_cv_header_errno_h_ENOLINK in
18476 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18479 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18487 if test -n "$ERRNO_H"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18489 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18490 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18504 $EGREP "yes" >/dev
/null
2>&1; then :
18505 gl_cv_header_errno_h_EOVERFLOW
=yes
18507 gl_cv_header_errno_h_EOVERFLOW
=no
18511 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18515 #define _XOPEN_SOURCE_EXTENDED 1
18522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18523 $EGREP "yes" >/dev
/null
2>&1; then :
18524 gl_cv_header_errno_h_EOVERFLOW
=hidden
18528 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18529 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18530 #define _XOPEN_SOURCE_EXTENDED 1
18532 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18534 #include <stdlib.h>
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18544 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18545 case $gl_cv_header_errno_h_EOVERFLOW in
18547 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18550 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18567 GNULIB_NONBLOCKING
=0;
18579 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18580 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18584 cat >>confdefs.h
<<_ACEOF
18590 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18591 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18597 cat >>confdefs.h
<<_ACEOF
18598 #define HAVE_DECL_FDATASYNC $ac_have_decl
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18604 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18605 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 #include <sys/types.h>
18612 #include <sys/stat.h>
18616 struct stat s; s.st_dm_mode;
18621 if ac_fn_c_try_compile
"$LINENO"; then :
18622 ac_cv_struct_st_dm_mode
=yes
18624 ac_cv_struct_st_dm_mode
=no
18626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18629 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18631 if test $ac_cv_struct_st_dm_mode = yes; then
18633 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18638 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18639 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18645 cat >>confdefs.h
<<_ACEOF
18646 #define HAVE_DECL_STRMODE $ac_have_decl
18664 GNULIB_UTIMENSAT
=0;
18678 REPLACE_FUTIMENS
=0;
18684 REPLACE_UTIMENSAT
=0;
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18688 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18689 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18692 rm -f conftest.sym conftest.
file
18693 echo >conftest.
file
18694 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18695 if test "$cross_compiling" = yes; then :
18697 # Guess yes on glibc systems.
18698 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18699 # If we don't know, assume the worst.
18700 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 $ac_includes_default
18711 /* Linux will dereference the symlink and fail, as required by
18712 POSIX. That is better in the sense that it means we will not
18713 have to compile and use the lstat wrapper. */
18714 return lstat ("conftest.sym/", &sbuf) == 0;
18720 if ac_fn_c_try_run
"$LINENO"; then :
18721 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18723 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18730 # If the 'ln -s' command failed, then we probably don't even
18731 # have an lstat function.
18732 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18734 rm -f conftest.sym conftest.
file
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18738 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18739 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18742 cat >>confdefs.h
<<_ACEOF
18743 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18756 GNULIB_CALLOC_POSIX
=0;
18757 GNULIB_CANONICALIZE_FILE_NAME
=0;
18758 GNULIB_GETLOADAVG
=0;
18759 GNULIB_GETSUBOPT
=0;
18761 GNULIB_MALLOC_POSIX
=0;
18765 GNULIB_MKOSTEMPS
=0;
18768 GNULIB_POSIX_OPENPT
=0;
18770 GNULIB_PTSNAME_R
=0;
18774 GNULIB_REALLOC_POSIX
=0;
18777 GNULIB_SECURE_GETENV
=0;
18782 GNULIB_SYSTEM_POSIX
=0;
18788 HAVE_CANONICALIZE_FILE_NAME
=1;
18789 HAVE_DECL_GETLOADAVG
=1;
18797 HAVE_POSIX_OPENPT
=1;
18805 HAVE_SECURE_GETENV
=1;
18807 HAVE_DECL_SETENV
=1;
18811 HAVE_STRUCT_RANDOM_DATA
=1;
18812 HAVE_SYS_LOADAVG_H
=0;
18814 HAVE_DECL_UNSETENV
=1;
18816 REPLACE_CANONICALIZE_FILE_NAME
=0;
18821 REPLACE_PTSNAME_R
=0;
18823 REPLACE_RANDOM_R
=0;
18825 REPLACE_REALPATH
=0;
18828 REPLACE_UNSETENV
=0;
18846 if test $gl_cv_have_include_next = yes; then
18847 gl_cv_next_getopt_h
='<'getopt.h
'>'
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18850 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18851 if test "${gl_cv_next_getopt_h+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18855 if test $ac_cv_header_getopt_h = yes; then
18858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18860 #include <getopt.h>
18864 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18865 *) gl_absname_cpp
="$ac_cpp" ;;
18870 gl_dirsep_regex
='[/\\]'
18873 gl_dirsep_regex
='\/'
18876 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18878 gl_header_literal_regex
=`echo 'getopt.h' \
18879 | sed -e "$gl_make_literal_regex_sed"`
18880 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18886 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18887 sed -n "$gl_absolute_header_sed"`'"'
18889 gl_cv_next_getopt_h
='<'getopt.h
'>'
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18895 $as_echo "$gl_cv_next_getopt_h" >&6; }
18897 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18899 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18901 gl_next_as_first_directive
='<'getopt.h
'>'
18903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18904 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18906 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18911 if test $ac_cv_header_getopt_h = yes; then
18920 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18921 for ac_header
in getopt.h
18923 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18924 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18925 cat >>confdefs.h
<<_ACEOF
18926 #define HAVE_GETOPT_H 1
18930 gl_replace_getopt
=yes
18937 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18938 for ac_func
in getopt_long_only
18940 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18941 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18942 cat >>confdefs.h
<<_ACEOF
18943 #define HAVE_GETOPT_LONG_ONLY 1
18947 gl_replace_getopt
=yes
18953 if test -z "$gl_replace_getopt"; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18955 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18956 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18957 $as_echo_n "(cached) " >&6
18960 if test $cross_compiling = no
; then
18961 if test "$cross_compiling" = yes; then :
18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18964 as_fn_error
"cannot run test program while cross compiling
18965 See \`config.log' for more details." "$LINENO" 5; }
18967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18970 #include <unistd.h>
18971 #include <stdlib.h>
18972 #include <string.h>
18977 static char program[] = "program";
18978 static char a[] = "-a";
18979 static char foo[] = "foo";
18980 static char bar[] = "bar";
18981 char *argv[] = { program, a, foo, bar, NULL };
18984 c = getopt (4, argv, "ab");
18987 c = getopt (4, argv, "ab");
18990 if (!(optind == 2))
18996 if ac_fn_c_try_run
"$LINENO"; then :
18997 gl_cv_func_getopt_posix
=maybe
18999 gl_cv_func_getopt_posix
=no
19001 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19002 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19005 if test $gl_cv_func_getopt_posix = maybe
; then
19006 if test "$cross_compiling" = yes; then :
19007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19009 as_fn_error
"cannot run test program while cross compiling
19010 See \`config.log' for more details." "$LINENO" 5; }
19012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19015 #include <unistd.h>
19016 #include <stdlib.h>
19017 #include <string.h>
19022 static char program[] = "program";
19023 static char donald[] = "donald";
19024 static char p[] = "-p";
19025 static char billy[] = "billy";
19026 static char duck[] = "duck";
19027 static char a[] = "-a";
19028 static char bar[] = "bar";
19029 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19032 c = getopt (7, argv, "+abp:q:");
19035 if (!(strcmp (argv[0], "program") == 0))
19037 if (!(strcmp (argv[1], "donald") == 0))
19039 if (!(strcmp (argv[2], "-p") == 0))
19041 if (!(strcmp (argv[3], "billy") == 0))
19043 if (!(strcmp (argv[4], "duck") == 0))
19045 if (!(strcmp (argv[5], "-a") == 0))
19047 if (!(strcmp (argv[6], "bar") == 0))
19049 if (!(optind == 1))
19055 if ac_fn_c_try_run
"$LINENO"; then :
19056 gl_cv_func_getopt_posix
=maybe
19058 gl_cv_func_getopt_posix
=no
19060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19065 if test $gl_cv_func_getopt_posix = maybe
; then
19066 if test "$cross_compiling" = yes; then :
19067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19069 as_fn_error
"cannot run test program while cross compiling
19070 See \`config.log' for more details." "$LINENO" 5; }
19072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19075 #include <unistd.h>
19076 #include <stdlib.h>
19077 #include <string.h>
19082 static char program[] = "program";
19083 static char ab[] = "-ab";
19084 char *argv[3] = { program, ab, NULL };
19085 if (getopt (2, argv, "ab:") != 'a')
19087 if (getopt (2, argv, "ab:") != '?')
19097 if ac_fn_c_try_run
"$LINENO"; then :
19098 gl_cv_func_getopt_posix
=yes
19100 gl_cv_func_getopt_posix
=no
19102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19109 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19110 *) gl_cv_func_getopt_posix
="guessing yes";;
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19116 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19117 case "$gl_cv_func_getopt_posix" in
19118 *no
) gl_replace_getopt
=yes ;;
19122 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19124 $as_echo_n "checking for working GNU getopt function... " >&6; }
19125 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19126 $as_echo_n "(cached) " >&6
19128 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19129 # optstring is necessary for programs like m4 that have POSIX-mandated
19130 # semantics for supporting options interspersed with files.
19131 # Also, since getopt_long is a GNU extension, we require optind=0.
19132 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19133 # so take care to revert to the correct (non-)export state.
19134 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19135 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19136 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19137 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19138 *) gl_had_POSIXLY_CORRECT
= ;;
19141 export POSIXLY_CORRECT
19142 if test "$cross_compiling" = yes; then :
19143 gl_cv_func_getopt_gnu
="guessing no"
19146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 #include <getopt.h>
19149 #include <stddef.h>
19150 #include <string.h>
19152 #include <stdlib.h>
19153 #if defined __MACH__ && defined __APPLE__
19154 /* Avoid a crash on Mac OS X. */
19155 #include <mach/mach.h>
19156 #include <mach/mach_error.h>
19157 #include <mach/thread_status.h>
19158 #include <mach/exception.h>
19159 #include <mach/task.h>
19160 #include <pthread.h>
19161 /* The exception port on which our thread listens. */
19162 static mach_port_t our_exception_port;
19163 /* The main function of the thread listening for exceptions of type
19166 mach_exception_thread (void *arg)
19168 /* Buffer for a message to be received. */
19170 mach_msg_header_t head;
19171 mach_msg_body_t msgh_body;
19174 mach_msg_return_t retval;
19175 /* Wait for a message on the exception port. */
19176 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19177 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19178 if (retval != MACH_MSG_SUCCESS)
19183 nocrash_init (void)
19185 mach_port_t self = mach_task_self ();
19186 /* Allocate a port on which the thread shall listen for exceptions. */
19187 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19189 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19190 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19191 MACH_MSG_TYPE_MAKE_SEND)
19193 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19195 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19196 /* Create the thread listening on the exception port. */
19197 pthread_attr_t attr;
19199 if (pthread_attr_init (&attr) == 0
19200 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19201 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19202 pthread_attr_destroy (&attr);
19203 /* Replace the exception port info for these exceptions with our own.
19204 Note that we replace the exception port for the entire task, not only
19205 for a particular thread. This has the effect that when our exception
19206 port gets the message, the thread specific exception port has already
19207 been asked, and we don't need to bother about it.
19208 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19209 task_set_exception_ports (self, mask, our_exception_port,
19210 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19215 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19216 /* Avoid a crash on native Windows. */
19217 #define WIN32_LEAN_AND_MEAN
19218 #include <windows.h>
19219 #include <winerror.h>
19221 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19223 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19225 case EXCEPTION_ACCESS_VIOLATION:
19226 case EXCEPTION_IN_PAGE_ERROR:
19227 case EXCEPTION_STACK_OVERFLOW:
19228 case EXCEPTION_GUARD_PAGE:
19229 case EXCEPTION_PRIV_INSTRUCTION:
19230 case EXCEPTION_ILLEGAL_INSTRUCTION:
19231 case EXCEPTION_DATATYPE_MISALIGNMENT:
19232 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19233 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19236 return EXCEPTION_CONTINUE_SEARCH;
19239 nocrash_init (void)
19241 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19244 /* Avoid a crash on POSIX systems. */
19245 #include <signal.h>
19246 /* A POSIX signal handler. */
19248 exception_handler (int sig)
19253 nocrash_init (void)
19256 signal (SIGSEGV, exception_handler);
19259 signal (SIGBUS, exception_handler);
19273 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19274 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19275 OSF/1 5.1, Solaris 10. */
19277 static char conftest[] = "conftest";
19278 static char plus[] = "-+";
19279 char *argv[3] = { conftest, plus, NULL };
19281 if (getopt (2, argv, "+a") != '?')
19284 /* This code succeeds on glibc 2.8, mingw,
19285 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19286 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19288 static char program[] = "program";
19289 static char p[] = "-p";
19290 static char foo[] = "foo";
19291 static char bar[] = "bar";
19292 char *argv[] = { program, p, foo, bar, NULL };
19295 if (getopt (4, argv, "p::") != 'p')
19297 else if (optarg != NULL)
19299 else if (getopt (4, argv, "p::") != -1)
19301 else if (optind != 2)
19304 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19306 static char program[] = "program";
19307 static char foo[] = "foo";
19308 static char p[] = "-p";
19309 char *argv[] = { program, foo, p, NULL };
19311 if (getopt (3, argv, "-p") != 1)
19313 else if (getopt (3, argv, "-p") != 'p')
19316 /* This code fails on glibc 2.11. */
19318 static char program[] = "program";
19319 static char b[] = "-b";
19320 static char a[] = "-a";
19321 char *argv[] = { program, b, a, NULL };
19322 optind = opterr = 0;
19323 if (getopt (3, argv, "+:a:b") != 'b')
19325 else if (getopt (3, argv, "+:a:b") != ':')
19328 /* This code dumps core on glibc 2.14. */
19330 static char program[] = "program";
19331 static char w[] = "-W";
19332 static char dummy[] = "dummy";
19333 char *argv[] = { program, w, dummy, NULL };
19334 optind = opterr = 1;
19335 if (getopt (3, argv, "W;") != 'W')
19344 if ac_fn_c_try_run
"$LINENO"; then :
19345 gl_cv_func_getopt_gnu
=yes
19347 gl_cv_func_getopt_gnu
=no
19349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19350 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19353 case $gl_had_POSIXLY_CORRECT in
19355 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19356 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19361 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19362 if test "$gl_cv_func_getopt_gnu" != yes; then
19363 gl_replace_getopt
=yes
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19366 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19367 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19368 $as_echo_n "(cached) " >&6
19370 if test "$cross_compiling" = yes; then :
19372 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19373 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379 #include <getopt.h>
19380 #include <stddef.h>
19381 #include <string.h>
19386 static const struct option long_options[] =
19388 { "xtremely-",no_argument, NULL, 1003 },
19389 { "xtra", no_argument, NULL, 1001 },
19390 { "xtreme", no_argument, NULL, 1002 },
19391 { "xtremely", no_argument, NULL, 1003 },
19392 { NULL, 0, NULL, 0 }
19394 /* This code fails on OpenBSD 5.0. */
19396 static char program[] = "program";
19397 static char xtremel[] = "--xtremel";
19398 char *argv[] = { program, xtremel, NULL };
19400 optind = 1; opterr = 0;
19401 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19410 if ac_fn_c_try_run
"$LINENO"; then :
19411 gl_cv_func_getopt_long_gnu
=yes
19413 gl_cv_func_getopt_long_gnu
=no
19415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19416 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19422 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19423 case "$gl_cv_func_getopt_long_gnu" in
19425 *) gl_replace_getopt
=yes ;;
19436 if test -n "$gl_replace_getopt"; then
19440 if test $REPLACE_GETOPT = 1; then
19444 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19450 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19451 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19457 cat >>confdefs.h
<<_ACEOF
19458 #define HAVE_DECL_GETENV $ac_have_decl
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19467 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19468 if test "${ac_cv_c_restrict+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19471 ac_cv_c_restrict
=no
19472 # The order here caters to the fact that C++ does not require restrict.
19473 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 typedef int * int_ptr;
19477 int foo (int_ptr $ac_kw ip) {
19484 int * $ac_kw t = s;
19491 if ac_fn_c_try_compile
"$LINENO"; then :
19492 ac_cv_c_restrict
=$ac_kw
19494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19495 test "$ac_cv_c_restrict" != no
&& break
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19500 $as_echo "$ac_cv_c_restrict" >&6; }
19502 case $ac_cv_c_restrict in
19504 no
) $as_echo "#define restrict /**/" >>confdefs.h
19506 *) cat >>confdefs.h
<<_ACEOF
19507 #define restrict $ac_cv_c_restrict
19513 GNULIB_GETTIMEOFDAY
=0;
19514 HAVE_GETTIMEOFDAY
=1;
19515 HAVE_STRUCT_TIMEVAL
=1;
19517 REPLACE_GETTIMEOFDAY
=0;
19518 REPLACE_STRUCT_TIMEVAL
=0;
19535 if test $gl_cv_have_include_next = yes; then
19536 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19539 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19540 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19541 $as_echo_n "(cached) " >&6
19544 if test $ac_cv_header_sys_time_h = yes; then
19547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19549 #include <sys/time.h>
19553 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19554 *) gl_absname_cpp
="$ac_cpp" ;;
19559 gl_dirsep_regex
='[/\\]'
19562 gl_dirsep_regex
='\/'
19565 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19567 gl_header_literal_regex
=`echo 'sys/time.h' \
19568 | sed -e "$gl_make_literal_regex_sed"`
19569 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19570 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19575 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19576 sed -n "$gl_absolute_header_sed"`'"'
19578 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19584 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19586 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19588 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19590 gl_next_as_first_directive
='<'sys
/time.h
'>'
19592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19593 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19595 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19601 if test $ac_cv_header_sys_time_h != yes; then
19609 if test $ac_cv_header_sys_socket_h != yes; then
19610 for ac_header
in winsock2.h
19612 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19613 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19614 cat >>confdefs.h
<<_ACEOF
19615 #define HAVE_WINSOCK2_H 1
19623 if test "$ac_cv_header_winsock2_h" = yes; then
19625 UNISTD_H_HAVE_WINSOCK2_H
=1
19626 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19633 $as_echo_n "checking for struct timeval... " >&6; }
19634 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19635 $as_echo_n "(cached) " >&6
19637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639 #if HAVE_SYS_TIME_H
19640 #include <sys/time.h>
19643 #if HAVE_WINSOCK2_H
19644 # include <winsock2.h>
19650 static struct timeval x; x.tv_sec = x.tv_usec;
19655 if ac_fn_c_try_compile
"$LINENO"; then :
19656 gl_cv_sys_struct_timeval
=yes
19658 gl_cv_sys_struct_timeval
=no
19660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19664 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19665 if test $gl_cv_sys_struct_timeval != yes; then
19666 HAVE_STRUCT_TIMEVAL
=0
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19669 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19670 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19671 $as_echo_n "(cached) " >&6
19673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 #if HAVE_SYS_TIME_H
19676 #include <sys/time.h>
19679 #if HAVE_WINSOCK2_H
19680 # include <winsock2.h>
19686 static struct timeval x;
19687 typedef int verify_tv_sec_type[
19688 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19695 if ac_fn_c_try_compile
"$LINENO"; then :
19696 gl_cv_sys_struct_timeval_tv_sec
=yes
19698 gl_cv_sys_struct_timeval_tv_sec
=no
19700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19704 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19705 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19706 REPLACE_STRUCT_TIMEVAL
=1
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19717 $as_echo_n "checking for unsigned long long int... " >&6; }
19718 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19719 $as_echo_n "(cached) " >&6
19721 ac_cv_type_unsigned_long_long_int
=yes
19722 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19726 /* For now, do not test the preprocessor; as of 2007 there are too many
19727 implementations with broken preprocessors. Perhaps this can
19728 be revisited in 2012. In the meantime, code should not expect
19729 #if to work with literals wider than 32 bits. */
19730 /* Test literals. */
19731 long long int ll = 9223372036854775807ll;
19732 long long int nll = -9223372036854775807LL;
19733 unsigned long long int ull = 18446744073709551615ULL;
19734 /* Test constant expressions. */
19735 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19737 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19743 /* Test availability of runtime routines for shift and division. */
19744 long long int llmax = 9223372036854775807ll;
19745 unsigned long long int ullmax = 18446744073709551615ull;
19746 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19747 | (llmax / ll) | (llmax % ll)
19748 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19749 | (ullmax / ull) | (ullmax % ull));
19755 if ac_fn_c_try_link
"$LINENO"; then :
19758 ac_cv_type_unsigned_long_long_int
=no
19760 rm -f core conftest.err conftest.
$ac_objext \
19761 conftest
$ac_exeext conftest.
$ac_ext
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19765 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19766 if test $ac_cv_type_unsigned_long_long_int = yes; then
19768 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19775 $as_echo_n "checking for long long int... " >&6; }
19776 if test "${ac_cv_type_long_long_int+set}" = set; then :
19777 $as_echo_n "(cached) " >&6
19779 ac_cv_type_long_long_int
=yes
19780 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19781 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19782 if test $ac_cv_type_long_long_int = yes; then
19783 if test "$cross_compiling" = yes; then :
19786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19788 #include <limits.h>
19791 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19792 # define LLONG_MAX (HALF - 1 + HALF)
19797 long long int n = 1;
19801 long long int m = n << i;
19804 if (LLONG_MAX / 2 < m)
19812 if ac_fn_c_try_run
"$LINENO"; then :
19815 ac_cv_type_long_long_int
=no
19817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19825 $as_echo "$ac_cv_type_long_long_int" >&6; }
19826 if test $ac_cv_type_long_long_int = yes; then
19828 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19837 gl_cv_c_multiarch
=no
19838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840 #ifndef __APPLE_CC__
19841 not a universal capable compiler
19846 if ac_fn_c_try_compile
"$LINENO"; then :
19850 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19851 if test -n "$prev"; then
19853 i?
86 | x86_64 | ppc | ppc64
)
19854 if test -z "$arch" ||
test "$arch" = "$word"; then
19857 gl_cv_c_multiarch
=yes
19863 if test "x$word" = "x-arch"; then
19870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19871 if test $gl_cv_c_multiarch = yes; then
19872 APPLE_UNIVERSAL_BUILD
=1
19874 APPLE_UNIVERSAL_BUILD
=0
19881 if test $ac_cv_type_long_long_int = yes; then
19882 HAVE_LONG_LONG_INT
=1
19884 HAVE_LONG_LONG_INT
=0
19888 if test $ac_cv_type_unsigned_long_long_int = yes; then
19889 HAVE_UNSIGNED_LONG_LONG_INT
=1
19891 HAVE_UNSIGNED_LONG_LONG_INT
=0
19896 if test $ac_cv_header_wchar_h = yes; then
19903 if test $ac_cv_header_inttypes_h = yes; then
19910 if test $ac_cv_header_sys_types_h = yes; then
19926 if test $gl_cv_have_include_next = yes; then
19927 gl_cv_next_stdint_h
='<'stdint.h
'>'
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19930 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19931 if test "${gl_cv_next_stdint_h+set}" = set; then :
19932 $as_echo_n "(cached) " >&6
19935 if test $ac_cv_header_stdint_h = yes; then
19938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <stdint.h>
19944 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19945 *) gl_absname_cpp
="$ac_cpp" ;;
19950 gl_dirsep_regex
='[/\\]'
19953 gl_dirsep_regex
='\/'
19956 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19958 gl_header_literal_regex
=`echo 'stdint.h' \
19959 | sed -e "$gl_make_literal_regex_sed"`
19960 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19961 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19966 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19967 sed -n "$gl_absolute_header_sed"`'"'
19969 gl_cv_next_stdint_h
='<'stdint.h
'>'
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19975 $as_echo "$gl_cv_next_stdint_h" >&6; }
19977 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19979 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19981 gl_next_as_first_directive
='<'stdint.h
'>'
19983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19984 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19986 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19991 if test $ac_cv_header_stdint_h = yes; then
19998 if test $ac_cv_header_stdint_h = yes; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20000 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20001 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20002 $as_echo_n "(cached) " >&6
20004 gl_cv_header_working_stdint_h
=no
20005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20009 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20010 #include <stdint.h>
20011 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20012 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20013 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20018 included before <wchar.h>. */
20019 #include <stddef.h>
20020 #include <signal.h>
20022 # include <stdio.h>
20024 # include <wchar.h>
20029 int8_t a1 = INT8_MAX;
20030 int8_t a1min = INT8_MIN;
20033 int16_t a2 = INT16_MAX;
20034 int16_t a2min = INT16_MIN;
20037 int32_t a3 = INT32_MAX;
20038 int32_t a3min = INT32_MIN;
20041 int64_t a4 = INT64_MAX;
20042 int64_t a4min = INT64_MIN;
20045 uint8_t b1 = UINT8_MAX;
20047 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20050 uint16_t b2 = UINT16_MAX;
20053 uint32_t b3 = UINT32_MAX;
20056 uint64_t b4 = UINT64_MAX;
20058 int_least8_t c1 = INT8_C (0x7f);
20059 int_least8_t c1max = INT_LEAST8_MAX;
20060 int_least8_t c1min = INT_LEAST8_MIN;
20061 int_least16_t c2 = INT16_C (0x7fff);
20062 int_least16_t c2max = INT_LEAST16_MAX;
20063 int_least16_t c2min = INT_LEAST16_MIN;
20064 int_least32_t c3 = INT32_C (0x7fffffff);
20065 int_least32_t c3max = INT_LEAST32_MAX;
20066 int_least32_t c3min = INT_LEAST32_MIN;
20067 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20068 int_least64_t c4max = INT_LEAST64_MAX;
20069 int_least64_t c4min = INT_LEAST64_MIN;
20070 uint_least8_t d1 = UINT8_C (0xff);
20071 uint_least8_t d1max = UINT_LEAST8_MAX;
20072 uint_least16_t d2 = UINT16_C (0xffff);
20073 uint_least16_t d2max = UINT_LEAST16_MAX;
20074 uint_least32_t d3 = UINT32_C (0xffffffff);
20075 uint_least32_t d3max = UINT_LEAST32_MAX;
20076 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20077 uint_least64_t d4max = UINT_LEAST64_MAX;
20078 int_fast8_t e1 = INT_FAST8_MAX;
20079 int_fast8_t e1min = INT_FAST8_MIN;
20080 int_fast16_t e2 = INT_FAST16_MAX;
20081 int_fast16_t e2min = INT_FAST16_MIN;
20082 int_fast32_t e3 = INT_FAST32_MAX;
20083 int_fast32_t e3min = INT_FAST32_MIN;
20084 int_fast64_t e4 = INT_FAST64_MAX;
20085 int_fast64_t e4min = INT_FAST64_MIN;
20086 uint_fast8_t f1 = UINT_FAST8_MAX;
20087 uint_fast16_t f2 = UINT_FAST16_MAX;
20088 uint_fast32_t f3 = UINT_FAST32_MAX;
20089 uint_fast64_t f4 = UINT_FAST64_MAX;
20091 intptr_t g = INTPTR_MAX;
20092 intptr_t gmin = INTPTR_MIN;
20095 uintptr_t h = UINTPTR_MAX;
20097 intmax_t i = INTMAX_MAX;
20098 uintmax_t j = UINTMAX_MAX;
20100 #include <limits.h> /* for CHAR_BIT */
20101 #define TYPE_MINIMUM(t) \
20102 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20103 #define TYPE_MAXIMUM(t) \
20104 ((t) ((t) 0 < (t) -1 \
20106 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20109 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20110 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20112 /* Detect bug in FreeBSD 6.0 / ia64. */
20113 int check_SIG_ATOMIC:
20114 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20115 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20117 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20119 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20120 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20122 /* Detect bug in mingw. */
20124 WINT_MIN == TYPE_MINIMUM (wint_t)
20125 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20128 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20130 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20131 int check_UINT16_C:
20132 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20134 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20136 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20139 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20142 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20145 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20147 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20148 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20149 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20150 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20151 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20152 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20153 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20154 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20155 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20156 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20157 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20168 if ac_fn_c_try_compile
"$LINENO"; then :
20169 if test "$cross_compiling" = yes; then :
20170 gl_cv_header_working_stdint_h
=yes
20173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20177 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20178 #include <stdint.h>
20181 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20182 included before <wchar.h>. */
20183 #include <stddef.h>
20184 #include <signal.h>
20186 # include <stdio.h>
20188 # include <wchar.h>
20193 #include <string.h>
20194 #define MVAL(macro) MVAL1(macro)
20195 #define MVAL1(expression) #expression
20196 static const char *macro_values[] =
20230 for (mv = macro_values; *mv != NULL; mv++)
20232 const char *value = *mv;
20233 /* Test whether it looks like a cast expression. */
20234 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20235 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20236 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20237 || strncmp (value, "((int)"/*)*/, 6) == 0
20238 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20239 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20240 return mv - macro_values + 1;
20248 if ac_fn_c_try_run
"$LINENO"; then :
20249 gl_cv_header_working_stdint_h
=yes
20251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20261 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20263 if test "$gl_cv_header_working_stdint_h" = yes; then
20266 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20268 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20269 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20270 eval as_val
=\$
$as_ac_Header
20271 if test "x$as_val" = x
""yes; then :
20272 cat >>confdefs.h
<<_ACEOF
20273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20280 if test $ac_cv_header_sys_inttypes_h = yes; then
20281 HAVE_SYS_INTTYPES_H
=1
20283 HAVE_SYS_INTTYPES_H
=0
20286 if test $ac_cv_header_sys_bitypes_h = yes; then
20287 HAVE_SYS_BITYPES_H
=1
20289 HAVE_SYS_BITYPES_H
=0
20295 if test $APPLE_UNIVERSAL_BUILD = 0; then
20298 for gltype
in ptrdiff_t size_t
; do
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20300 $as_echo_n "checking for bit size of $gltype... " >&6; }
20301 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20302 $as_echo_n "(cached) " >&6
20304 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20305 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20306 included before <wchar.h>. */
20307 #include <stddef.h>
20308 #include <signal.h>
20310 # include <stdio.h>
20312 # include <wchar.h>
20315 #include <limits.h>"; then :
20321 eval gl_cv_bitsizeof_
${gltype}=\
$result
20324 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20326 $as_echo "$ac_res" >&6; }
20327 eval result
=\
$gl_cv_bitsizeof_${gltype}
20328 if test $result = unknown
; then
20331 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20332 cat >>confdefs.h
<<_ACEOF
20333 #define BITSIZEOF_${GLTYPE} $result
20336 eval BITSIZEOF_
${GLTYPE}=\
$result
20343 for gltype
in sig_atomic_t wchar_t wint_t
; do
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20345 $as_echo_n "checking for bit size of $gltype... " >&6; }
20346 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20347 $as_echo_n "(cached) " >&6
20349 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20350 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20351 included before <wchar.h>. */
20352 #include <stddef.h>
20353 #include <signal.h>
20355 # include <stdio.h>
20357 # include <wchar.h>
20360 #include <limits.h>"; then :
20366 eval gl_cv_bitsizeof_
${gltype}=\
$result
20369 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20371 $as_echo "$ac_res" >&6; }
20372 eval result
=\
$gl_cv_bitsizeof_${gltype}
20373 if test $result = unknown
; then
20376 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20377 cat >>confdefs.h
<<_ACEOF
20378 #define BITSIZEOF_${GLTYPE} $result
20381 eval BITSIZEOF_
${GLTYPE}=\
$result
20387 for gltype
in sig_atomic_t wchar_t wint_t
; do
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20389 $as_echo_n "checking whether $gltype is signed... " >&6; }
20390 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20391 $as_echo_n "(cached) " >&6
20393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h. */
20396 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20397 included before <wchar.h>. */
20398 #include <stddef.h>
20399 #include <signal.h>
20401 # include <stdio.h>
20403 # include <wchar.h>
20406 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20415 if ac_fn_c_try_compile
"$LINENO"; then :
20420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20421 eval gl_cv_type_
${gltype}_signed
=\
$result
20424 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20426 $as_echo "$ac_res" >&6; }
20427 eval result
=\
$gl_cv_type_${gltype}_signed
20428 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20429 if test "$result" = yes; then
20430 cat >>confdefs.h
<<_ACEOF
20431 #define HAVE_SIGNED_${GLTYPE} 1
20434 eval HAVE_SIGNED_
${GLTYPE}=1
20436 eval HAVE_SIGNED_
${GLTYPE}=0
20441 gl_cv_type_ptrdiff_t_signed
=yes
20442 gl_cv_type_size_t_signed
=no
20443 if test $APPLE_UNIVERSAL_BUILD = 0; then
20446 for gltype
in ptrdiff_t size_t
; do
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20448 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20449 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20450 $as_echo_n "(cached) " >&6
20452 eval gl_cv_type_
${gltype}_suffix
=no
20453 eval result
=\
$gl_cv_type_${gltype}_signed
20454 if test "$result" = yes; then
20459 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20461 '') gltype1
='int';;
20462 l
) gltype1
='long int';;
20463 ll
) gltype1
='long long int';;
20464 i64
) gltype1
='__int64';;
20465 u
) gltype1
='unsigned int';;
20466 ul
) gltype1
='unsigned long int';;
20467 ull
) gltype1
='unsigned long long int';;
20468 ui64
)gltype1
='unsigned __int64';;
20470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20473 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20474 included before <wchar.h>. */
20475 #include <stddef.h>
20476 #include <signal.h>
20478 # include <stdio.h>
20480 # include <wchar.h>
20483 extern $gltype foo;
20484 extern $gltype1 foo;
20493 if ac_fn_c_try_compile
"$LINENO"; then :
20494 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20497 eval result
=\
$gl_cv_type_${gltype}_suffix
20498 test "$result" != no
&& break
20501 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20503 $as_echo "$ac_res" >&6; }
20504 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20505 eval result
=\
$gl_cv_type_${gltype}_suffix
20506 test "$result" = no
&& result
=
20507 eval ${GLTYPE}_SUFFIX
=\
$result
20508 cat >>confdefs.h
<<_ACEOF
20509 #define ${GLTYPE}_SUFFIX $result
20518 for gltype
in sig_atomic_t wchar_t wint_t
; do
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20520 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20521 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20522 $as_echo_n "(cached) " >&6
20524 eval gl_cv_type_
${gltype}_suffix
=no
20525 eval result
=\
$gl_cv_type_${gltype}_signed
20526 if test "$result" = yes; then
20531 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20533 '') gltype1
='int';;
20534 l
) gltype1
='long int';;
20535 ll
) gltype1
='long long int';;
20536 i64
) gltype1
='__int64';;
20537 u
) gltype1
='unsigned int';;
20538 ul
) gltype1
='unsigned long int';;
20539 ull
) gltype1
='unsigned long long int';;
20540 ui64
)gltype1
='unsigned __int64';;
20542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20545 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20546 included before <wchar.h>. */
20547 #include <stddef.h>
20548 #include <signal.h>
20550 # include <stdio.h>
20552 # include <wchar.h>
20555 extern $gltype foo;
20556 extern $gltype1 foo;
20565 if ac_fn_c_try_compile
"$LINENO"; then :
20566 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20569 eval result
=\
$gl_cv_type_${gltype}_suffix
20570 test "$result" != no
&& break
20573 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20575 $as_echo "$ac_res" >&6; }
20576 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20577 eval result
=\
$gl_cv_type_${gltype}_suffix
20578 test "$result" = no
&& result
=
20579 eval ${GLTYPE}_SUFFIX
=\
$result
20580 cat >>confdefs.h
<<_ACEOF
20581 #define ${GLTYPE}_SUFFIX $result
20588 if test $BITSIZEOF_WINT_T -lt 32; then
20589 BITSIZEOF_WINT_T
=32
20595 if test -n "$STDINT_H"; then
20596 GL_GENERATE_STDINT_H_TRUE
=
20597 GL_GENERATE_STDINT_H_FALSE
='#'
20599 GL_GENERATE_STDINT_H_TRUE
='#'
20600 GL_GENERATE_STDINT_H_FALSE
=
20609 GNULIB_STRTOIMAX
=0;
20610 GNULIB_STRTOUMAX
=0;
20611 HAVE_DECL_IMAXABS
=1;
20612 HAVE_DECL_IMAXDIV
=1;
20613 HAVE_DECL_STRTOIMAX
=1;
20614 HAVE_DECL_STRTOUMAX
=1;
20615 REPLACE_STRTOIMAX
=0;
20616 INT32_MAX_LT_INTMAX_MAX
=1;
20617 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20618 PRI_MACROS_BROKEN
=0;
20619 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20620 UINT32_MAX_LT_UINTMAX_MAX
=1;
20621 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20637 if test $gl_cv_have_include_next = yes; then
20638 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20641 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20642 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20643 $as_echo_n "(cached) " >&6
20646 if test $ac_cv_header_inttypes_h = yes; then
20649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h. */
20651 #include <inttypes.h>
20655 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20656 *) gl_absname_cpp
="$ac_cpp" ;;
20661 gl_dirsep_regex
='[/\\]'
20664 gl_dirsep_regex
='\/'
20667 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20669 gl_header_literal_regex
=`echo 'inttypes.h' \
20670 | sed -e "$gl_make_literal_regex_sed"`
20671 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20672 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20677 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20678 sed -n "$gl_absolute_header_sed"`'"'
20680 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20686 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20688 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20690 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20692 gl_next_as_first_directive
='<'inttypes.h
'>'
20694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20695 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20697 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20712 $as_echo_n "checking for 64-bit off_t... " >&6; }
20713 if test "${gl_cv_type_off_t_64+set}" = set; then :
20714 $as_echo_n "(cached) " >&6
20716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20717 /* end confdefs.h. */
20718 #include <sys/types.h>
20719 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20729 if ac_fn_c_try_compile
"$LINENO"; then :
20730 gl_cv_type_off_t_64
=yes
20732 gl_cv_type_off_t_64
=no
20734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20738 $as_echo "$gl_cv_type_off_t_64" >&6; }
20739 if test $gl_cv_type_off_t_64 = no
; then
20740 WINDOWS_64_BIT_OFF_T
=1
20742 WINDOWS_64_BIT_OFF_T
=0
20744 WINDOWS_64_BIT_ST_SIZE
=1
20747 WINDOWS_64_BIT_OFF_T
=0
20748 WINDOWS_64_BIT_ST_SIZE
=0
20761 GNULIB_RAWMEMCHR
=0;
20764 GNULIB_STRCHRNUL
=0;
20772 GNULIB_STRCASESTR
=0;
20779 GNULIB_MBSCASECMP
=0;
20780 GNULIB_MBSNCASECMP
=0;
20781 GNULIB_MBSPCASECMP
=0;
20782 GNULIB_MBSCASESTR
=0;
20789 GNULIB_STRERROR_R
=0;
20790 GNULIB_STRSIGNAL
=0;
20791 GNULIB_STRVERSCMP
=0;
20796 HAVE_DECL_MEMMEM
=1;
20798 HAVE_DECL_MEMRCHR
=1;
20803 HAVE_DECL_STRDUP
=1;
20804 HAVE_DECL_STRNDUP
=1;
20805 HAVE_DECL_STRNLEN
=1;
20809 HAVE_DECL_STRTOK_R
=1;
20810 HAVE_DECL_STRERROR_R
=1;
20811 HAVE_DECL_STRSIGNAL
=1;
20818 REPLACE_STRCASESTR
=0;
20819 REPLACE_STRCHRNUL
=0;
20820 REPLACE_STRERROR
=0;
20821 REPLACE_STRERROR_R
=0;
20825 REPLACE_STRSIGNAL
=0;
20826 REPLACE_STRTOK_R
=0;
20827 UNDEFINE_STRTOK_R
=0;
20829 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20830 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20836 cat >>confdefs.h
<<_ACEOF
20837 #define HAVE_DECL_MEMRCHR $ac_have_decl
20844 GNULIB_NANOSLEEP
=0;
20848 HAVE_DECL_LOCALTIME_R
=1;
20852 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20853 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20854 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20855 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20857 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20858 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20864 cat >>confdefs.h
<<_ACEOF
20865 #define HAVE_DECL_ALARM $ac_have_decl
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20883 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20884 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20885 $as_echo_n "(cached) " >&6
20888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890 #include <sys/select.h>
20899 if ac_fn_c_try_compile
"$LINENO"; then :
20900 gl_cv_header_sys_select_h_selfcontained
=yes
20902 gl_cv_header_sys_select_h_selfcontained
=no
20904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20905 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20907 /* end confdefs.h. */
20908 #include <sys/select.h>
20912 int memset; int bzero;
20918 if ac_fn_c_try_compile
"$LINENO"; then :
20919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20921 #include <sys/select.h>
20927 #define memset nonexistent_memset
20932 void *memset (void *, int, unsigned long);
20934 #define bzero nonexistent_bzero
20939 void bzero (void *, unsigned long);
20948 if ac_fn_c_try_link
"$LINENO"; then :
20951 gl_cv_header_sys_select_h_selfcontained
=no
20953 rm -f core conftest.err conftest.
$ac_objext \
20954 conftest
$ac_exeext conftest.
$ac_ext
20957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20962 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20972 if test $gl_cv_have_include_next = yes; then
20973 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20976 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20977 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20981 if test $ac_cv_header_sys_select_h = yes; then
20984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20986 #include <sys/select.h>
20990 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20991 *) gl_absname_cpp
="$ac_cpp" ;;
20996 gl_dirsep_regex
='[/\\]'
20999 gl_dirsep_regex
='\/'
21002 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21004 gl_header_literal_regex
=`echo 'sys/select.h' \
21005 | sed -e "$gl_make_literal_regex_sed"`
21006 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21007 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21012 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21013 sed -n "$gl_absolute_header_sed"`'"'
21015 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21021 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21023 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
21025 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21027 gl_next_as_first_directive
='<'sys
/select.h
'>'
21029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21030 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
21032 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21037 if test $ac_cv_header_sys_select_h = yes; then
21038 HAVE_SYS_SELECT_H
=1
21040 HAVE_SYS_SELECT_H
=0
21047 if test $ac_cv_header_sys_socket_h != yes; then
21048 for ac_header
in winsock2.h
21050 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21051 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21052 cat >>confdefs.h
<<_ACEOF
21053 #define HAVE_WINSOCK2_H 1
21061 if test "$ac_cv_header_winsock2_h" = yes; then
21063 UNISTD_H_HAVE_WINSOCK2_H
=1
21064 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21076 GNULIB_PTHREAD_SIGMASK
=0;
21078 GNULIB_SIGNAL_H_SIGPIPE
=0;
21079 GNULIB_SIGPROCMASK
=0;
21080 GNULIB_SIGACTION
=0;
21081 HAVE_POSIX_SIGNALBLOCKING
=1;
21082 HAVE_PTHREAD_SIGMASK
=1;
21087 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21089 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21091 HAVE_SIGHANDLER_T
=1;
21092 REPLACE_PTHREAD_SIGMASK
=0;
21101 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21102 #include <signal.h>
21103 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21104 #include <sys/types.h>
21107 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21109 cat >>confdefs.h
<<_ACEOF
21110 #define HAVE_SIGSET_T 1
21113 gl_cv_type_sigset_t
=yes
21115 gl_cv_type_sigset_t
=no
21118 if test $gl_cv_type_sigset_t != yes; then
21124 if test $ac_cv_header_sys_socket_h = no
; then
21125 for ac_header
in ws2tcpip.h
21127 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21129 cat >>confdefs.h
<<_ACEOF
21130 #define HAVE_WS2TCPIP_H 1
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21140 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21141 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21142 $as_echo_n "(cached) " >&6
21144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21147 #include <stdbool.h>
21149 "error: bool is not defined"
21152 "error: false is not defined"
21155 "error: false is not 0"
21158 "error: true is not defined"
21161 "error: true is not 1"
21163 #ifndef __bool_true_false_are_defined
21164 "error: __bool_true_false_are_defined is not defined"
21167 struct s { _Bool s: 1; _Bool t; } s;
21169 char a[true == 1 ? 1 : -1];
21170 char b[false == 0 ? 1 : -1];
21171 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21172 char d[(bool) 0.5 == true ? 1 : -1];
21173 /* See body of main program for 'e'. */
21174 char f[(_Bool) 0.0 == false ? 1 : -1];
21176 char h[sizeof (_Bool)];
21177 char i[sizeof s.t];
21178 enum { j = false, k = true, l = false * true, m = true * 256 };
21179 /* The following fails for
21180 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21182 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21183 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21184 /* Catch a bug in an HP-UX C compiler. See
21185 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21186 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21198 /* Refer to every declared value, to avoid compiler optimizations. */
21199 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21200 + !m + !n + !o + !p + !q + !pq);
21206 if ac_fn_c_try_compile
"$LINENO"; then :
21207 ac_cv_header_stdbool_h
=yes
21209 ac_cv_header_stdbool_h
=no
21211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21214 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21215 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21216 if test "x$ac_cv_type__Bool" = x
""yes; then :
21218 cat >>confdefs.h
<<_ACEOF
21219 #define HAVE__BOOL 1
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21232 $as_echo_n "checking for wchar_t... " >&6; }
21233 if test "${gt_cv_c_wchar_t+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238 #include <stddef.h>
21239 wchar_t foo = (wchar_t)'\0';
21248 if ac_fn_c_try_compile
"$LINENO"; then :
21249 gt_cv_c_wchar_t
=yes
21253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21256 $as_echo "$gt_cv_c_wchar_t" >&6; }
21257 if test $gt_cv_c_wchar_t = yes; then
21259 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21272 GNULIB_FPRINTF_POSIX
=0;
21288 GNULIB_OBSTACK_PRINTF
=0;
21289 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21294 GNULIB_PRINTF_POSIX
=0;
21303 GNULIB_SPRINTF_POSIX
=0;
21304 GNULIB_STDIO_H_NONBLOCKING
=0;
21305 GNULIB_STDIO_H_SIGPIPE
=0;
21307 GNULIB_VASPRINTF
=0;
21312 GNULIB_VFPRINTF_POSIX
=0;
21314 GNULIB_VPRINTF_POSIX
=0;
21315 GNULIB_VSNPRINTF
=0;
21316 GNULIB_VSPRINTF_POSIX
=0;
21317 HAVE_DECL_FPURGE
=1;
21318 HAVE_DECL_FSEEKO
=1;
21319 HAVE_DECL_FTELLO
=1;
21320 HAVE_DECL_GETDELIM
=1;
21321 HAVE_DECL_GETLINE
=1;
21322 HAVE_DECL_OBSTACK_PRINTF
=1;
21323 HAVE_DECL_SNPRINTF
=1;
21324 HAVE_DECL_VSNPRINTF
=1;
21345 REPLACE_GETDELIM
=0;
21347 REPLACE_OBSTACK_PRINTF
=0;
21353 REPLACE_RENAMEAT
=0;
21354 REPLACE_SNPRINTF
=0;
21356 REPLACE_STDIO_READ_FUNCS
=0;
21357 REPLACE_STDIO_WRITE_FUNCS
=0;
21359 REPLACE_VASPRINTF
=0;
21360 REPLACE_VDPRINTF
=0;
21361 REPLACE_VFPRINTF
=0;
21363 REPLACE_VSNPRINTF
=0;
21364 REPLACE_VSPRINTF
=0;
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21367 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21368 if test "${ac_cv_struct_tm+set}" = set; then :
21369 $as_echo_n "(cached) " >&6
21371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373 #include <sys/types.h>
21380 int *p = &tm.tm_sec;
21386 if ac_fn_c_try_compile
"$LINENO"; then :
21387 ac_cv_struct_tm
=time.h
21389 ac_cv_struct_tm
=sys
/time.h
21391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21394 $as_echo "$ac_cv_struct_tm" >&6; }
21395 if test $ac_cv_struct_tm = sys
/time.h
; then
21397 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21401 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21402 #include <$ac_cv_struct_tm>
21405 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21407 cat >>confdefs.h
<<_ACEOF
21408 #define HAVE_STRUCT_TM_TM_ZONE 1
21414 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21416 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21419 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21421 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21427 cat >>confdefs.h
<<_ACEOF
21428 #define HAVE_DECL_TZNAME $ac_have_decl
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21432 $as_echo_n "checking for tzname... " >&6; }
21433 if test "${ac_cv_var_tzname+set}" = set; then :
21434 $as_echo_n "(cached) " >&6
21436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21439 #if !HAVE_DECL_TZNAME
21440 extern char *tzname[];
21446 return tzname[0][0];
21451 if ac_fn_c_try_link
"$LINENO"; then :
21452 ac_cv_var_tzname
=yes
21454 ac_cv_var_tzname
=no
21456 rm -f core conftest.err conftest.
$ac_objext \
21457 conftest
$ac_exeext conftest.
$ac_ext
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21460 $as_echo "$ac_cv_var_tzname" >&6; }
21461 if test $ac_cv_var_tzname = yes; then
21463 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21469 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21471 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21473 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21489 if test $gl_cv_have_include_next = yes; then
21490 gl_cv_next_string_h
='<'string.h
'>'
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21493 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21494 if test "${gl_cv_next_string_h+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21499 /* end confdefs.h. */
21500 #include <string.h>
21504 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21505 *) gl_absname_cpp
="$ac_cpp" ;;
21510 gl_dirsep_regex
='[/\\]'
21513 gl_dirsep_regex
='\/'
21516 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21518 gl_header_literal_regex
=`echo 'string.h' \
21519 | sed -e "$gl_make_literal_regex_sed"`
21520 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21521 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21526 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21527 sed -n "$gl_absolute_header_sed"`'"'
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21532 $as_echo "$gl_cv_next_string_h" >&6; }
21534 NEXT_STRING_H
=$gl_cv_next_string_h
21536 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21538 gl_next_as_first_directive
='<'string.h
'>'
21540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21541 gl_next_as_first_directive
=$gl_cv_next_string_h
21543 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21553 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21554 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21560 cat >>confdefs.h
<<_ACEOF
21561 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21566 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21567 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21573 cat >>confdefs.h
<<_ACEOF
21574 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21580 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21581 if test "${ac_cv_header_stat_broken+set}" = set; then :
21582 $as_echo_n "(cached) " >&6
21584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h. */
21586 #include <sys/types.h>
21587 #include <sys/stat.h>
21589 #if defined S_ISBLK && defined S_IFDIR
21590 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21593 #if defined S_ISBLK && defined S_IFCHR
21594 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21597 #if defined S_ISLNK && defined S_IFREG
21598 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21601 #if defined S_ISSOCK && defined S_IFREG
21602 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21606 if ac_fn_c_try_compile
"$LINENO"; then :
21607 ac_cv_header_stat_broken
=no
21609 ac_cv_header_stat_broken
=yes
21611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21614 $as_echo "$ac_cv_header_stat_broken" >&6; }
21615 if test $ac_cv_header_stat_broken = yes; then
21617 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21626 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21627 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21628 $as_echo_n "(cached) " >&6
21630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21637 static struct timespec x; x.tv_sec = x.tv_nsec;
21642 if ac_fn_c_try_compile
"$LINENO"; then :
21643 gl_cv_sys_struct_timespec_in_time_h
=yes
21645 gl_cv_sys_struct_timespec_in_time_h
=no
21647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21650 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21652 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21653 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21654 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21655 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21656 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21659 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21660 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21661 $as_echo_n "(cached) " >&6
21663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21665 #include <sys/time.h>
21670 static struct timespec x; x.tv_sec = x.tv_nsec;
21675 if ac_fn_c_try_compile
"$LINENO"; then :
21676 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21678 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21683 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21684 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21688 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21689 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h. */
21694 #include <pthread.h>
21699 static struct timespec x; x.tv_sec = x.tv_nsec;
21704 if ac_fn_c_try_compile
"$LINENO"; then :
21705 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21707 gl_cv_sys_struct_timespec_in_pthread_h
=no
21709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21712 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21713 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21714 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21733 if test $gl_cv_have_include_next = yes; then
21734 gl_cv_next_time_h
='<'time.h
'>'
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21737 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21738 if test "${gl_cv_next_time_h+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21748 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21749 *) gl_absname_cpp
="$ac_cpp" ;;
21754 gl_dirsep_regex
='[/\\]'
21757 gl_dirsep_regex
='\/'
21760 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21762 gl_header_literal_regex
=`echo 'time.h' \
21763 | sed -e "$gl_make_literal_regex_sed"`
21764 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21765 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21770 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21771 sed -n "$gl_absolute_header_sed"`'"'
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21776 $as_echo "$gl_cv_next_time_h" >&6; }
21778 NEXT_TIME_H
=$gl_cv_next_time_h
21780 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21782 gl_next_as_first_directive
='<'time.h
'>'
21784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21785 gl_next_as_first_directive
=$gl_cv_next_time_h
21787 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21802 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21803 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21809 cat >>confdefs.h
<<_ACEOF
21810 #define HAVE_DECL_UNSETENV $ac_have_decl
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21815 $as_echo_n "checking whether the utimes function works... " >&6; }
21816 if test "${gl_cv_func_working_utimes+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21820 if test "$cross_compiling" = yes; then :
21821 gl_cv_func_working_utimes
=no
21823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h. */
21826 #include <sys/types.h>
21827 #include <sys/stat.h>
21829 #include <sys/time.h>
21831 #include <unistd.h>
21832 #include <stdlib.h>
21837 inorder (time_t a, time_t b, time_t c)
21839 return a <= b && b <= c;
21846 char const *file = "conftest.utimes";
21847 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21849 /* Test whether utimes() essentially works. */
21852 FILE *f = fopen (file, "w");
21855 else if (fclose (f) != 0)
21857 else if (utimes (file, timeval) != 0)
21859 else if (lstat (file, &sbuf) != 0)
21861 else if (!(sbuf.st_atime == timeval[0].tv_sec
21862 && sbuf.st_mtime == timeval[1].tv_sec))
21864 if (unlink (file) != 0)
21868 /* Test whether utimes() with a NULL argument sets the file's timestamp
21869 to the current time. Use 'fstat' as well as 'time' to
21870 determine the "current" time, to accommodate NFS file systems
21871 if there is a time skew between the host and the NFS server. */
21873 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21879 struct stat st0, st1, st2;
21880 if (time (&t0) == (time_t) -1)
21882 else if (fstat (fd, &st0) != 0)
21884 else if (utimes (file, timeval) != 0)
21886 else if (utimes (file, NULL) != 0)
21888 else if (fstat (fd, &st1) != 0)
21890 else if (write (fd, "\n", 1) != 1)
21892 else if (fstat (fd, &st2) != 0)
21894 else if (time (&t2) == (time_t) -1)
21898 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21899 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21900 if (! (st1.st_atime == st1.st_mtime))
21902 if (! (m_ok_POSIX || m_ok_NFS))
21905 if (close (fd) != 0)
21908 if (unlink (file) != 0)
21912 /* Test whether utimes() with a NULL argument works on read-only files. */
21914 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21917 else if (close (fd) != 0)
21919 else if (utimes (file, NULL) != 0)
21921 if (unlink (file) != 0)
21929 if ac_fn_c_try_run
"$LINENO"; then :
21930 gl_cv_func_working_utimes
=yes
21932 gl_cv_func_working_utimes
=no
21934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21940 $as_echo "$gl_cv_func_working_utimes" >&6; }
21942 if test $gl_cv_func_working_utimes = yes; then
21944 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21953 $as_echo_n "checking for struct utimbuf... " >&6; }
21954 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21955 $as_echo_n "(cached) " >&6
21957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #if HAVE_SYS_TIME_H
21960 #include <sys/time.h>
21963 #ifdef HAVE_UTIME_H
21970 static struct utimbuf x; x.actime = x.modtime;
21975 if ac_fn_c_try_compile
"$LINENO"; then :
21976 gl_cv_sys_struct_utimbuf
=yes
21978 gl_cv_sys_struct_utimbuf
=no
21980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21983 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21985 if test $gl_cv_sys_struct_utimbuf = yes; then
21987 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22002 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22003 if test "${ac_cv_type_getgroups+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22006 if test "$cross_compiling" = yes; then :
22007 ac_cv_type_getgroups
=cross
22009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22010 /* end confdefs.h. */
22011 /* Thanks to Mike Rendell for this test. */
22012 $ac_includes_default
22015 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22020 gid_t gidset[NGID];
22022 union { gid_t gval; long int lval; } val;
22025 for (i = 0; i < NGID; i++)
22026 gidset[i] = val.gval;
22027 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22029 /* Exit non-zero if getgroups seems to require an array of ints. This
22030 happens when gid_t is short int but getgroups modifies an array
22032 return n > 0 && gidset[n] != val.gval;
22035 if ac_fn_c_try_run
"$LINENO"; then :
22036 ac_cv_type_getgroups
=gid_t
22038 ac_cv_type_getgroups
=int
22040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22041 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22044 if test $ac_cv_type_getgroups = cross
; then
22045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22046 /* end confdefs.h. */
22047 #include <unistd.h>
22050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22051 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22052 ac_cv_type_getgroups
=gid_t
22054 ac_cv_type_getgroups
=int
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22061 $as_echo "$ac_cv_type_getgroups" >&6; }
22063 cat >>confdefs.h
<<_ACEOF
22064 #define GETGROUPS_T $ac_cv_type_getgroups
22075 GL_COND_LIBTOOL_TRUE
=
22076 GL_COND_LIBTOOL_FALSE
='#'
22078 GL_COND_LIBTOOL_TRUE
='#'
22079 GL_COND_LIBTOOL_FALSE
=
22082 gl_cond_libtool
=false
22095 gl_source_base
='lib'
22098 if test $ac_cv_func_alloca_works = no
; then
22102 # Define an additional variable used in the Makefile substitution.
22103 if test $ac_cv_working_alloca_h = yes; then
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22105 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22106 if test "${gl_cv_rpl_alloca+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22113 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22119 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22120 gl_cv_rpl_alloca
=yes
22122 gl_cv_rpl_alloca
=no
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22129 $as_echo "$gl_cv_rpl_alloca" >&6; }
22130 if test $gl_cv_rpl_alloca = yes; then
22132 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22142 if test -n "$ALLOCA_H"; then
22143 GL_GENERATE_ALLOCA_H_TRUE
=
22144 GL_GENERATE_ALLOCA_H_FALSE
='#'
22146 GL_GENERATE_ALLOCA_H_TRUE
='#'
22147 GL_GENERATE_ALLOCA_H_FALSE
=
22155 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22156 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22158 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22159 # programs in the package would end up linked with that potentially-shared
22160 # library, inducing unnecessary run-time overhead.
22163 gl_saved_libs
=$LIBS
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22165 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22166 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22169 ac_func_search_save_LIBS
=$LIBS
22170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22173 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22179 char clock_gettime ();
22183 return clock_gettime ();
22188 for ac_lib
in '' rt posix4
; do
22189 if test -z "$ac_lib"; then
22190 ac_res
="none required"
22193 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22195 if ac_fn_c_try_link
"$LINENO"; then :
22196 ac_cv_search_clock_gettime
=$ac_res
22198 rm -f core conftest.err conftest.
$ac_objext \
22200 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22204 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22207 ac_cv_search_clock_gettime
=no
22209 rm conftest.
$ac_ext
22210 LIBS
=$ac_func_search_save_LIBS
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22213 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22214 ac_res
=$ac_cv_search_clock_gettime
22215 if test "$ac_res" != no
; then :
22216 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22217 test "$ac_cv_search_clock_gettime" = "none required" ||
22218 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22221 for ac_func
in clock_gettime clock_settime
22223 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22224 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22225 eval as_val
=\$
$as_ac_var
22226 if test "x$as_val" = x
""yes; then :
22227 cat >>confdefs.h
<<_ACEOF
22228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22234 LIBS
=$gl_saved_libs
22241 cat >>confdefs.h
<<_ACEOF
22242 #define GNULIB_CLOSE_STREAM 1
22274 if test $gl_cv_have_include_next = yes; then
22275 gl_cv_next_dirent_h
='<'dirent.h
'>'
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22278 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22279 if test "${gl_cv_next_dirent_h+set}" = set; then :
22280 $as_echo_n "(cached) " >&6
22283 if test $ac_cv_header_dirent_h = yes; then
22286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288 #include <dirent.h>
22292 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22293 *) gl_absname_cpp
="$ac_cpp" ;;
22298 gl_dirsep_regex
='[/\\]'
22301 gl_dirsep_regex
='\/'
22304 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22306 gl_header_literal_regex
=`echo 'dirent.h' \
22307 | sed -e "$gl_make_literal_regex_sed"`
22308 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22314 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22315 sed -n "$gl_absolute_header_sed"`'"'
22317 gl_cv_next_dirent_h
='<'dirent.h
'>'
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22323 $as_echo "$gl_cv_next_dirent_h" >&6; }
22325 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22327 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22329 gl_next_as_first_directive
='<'dirent.h
'>'
22331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22332 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22334 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22339 if test $ac_cv_header_dirent_h = yes; then
22354 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22357 if test $HAVE_DUP2 = 1; then
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22359 $as_echo_n "checking whether dup2 works... " >&6; }
22360 if test "${gl_cv_func_dup2_works+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22363 if test "$cross_compiling" = yes; then :
22365 mingw
*) # on this platform, dup2 always returns 0 for success
22366 gl_cv_func_dup2_works
="guessing no" ;;
22367 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22368 gl_cv_func_dup2_works
="guessing no" ;;
22369 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22370 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22371 gl_cv_func_dup2_works
="guessing no" ;;
22372 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22373 gl_cv_func_dup2_works
="guessing no" ;;
22374 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22375 gl_cv_func_dup2_works
="guessing no" ;;
22376 *) gl_cv_func_dup2_works
="guessing yes" ;;
22379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22382 #include <unistd.h>
22390 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22393 if (dup2 (1, 1) == 0)
22396 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22400 if (dup2 (0, 0) != -1)
22402 /* Many gnulib modules require POSIX conformance of EBADF. */
22403 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22405 /* Flush out a cygwin core dump. */
22406 if (dup2 (2, -1) != -1 || errno != EBADF)
22415 if ac_fn_c_try_run
"$LINENO"; then :
22416 gl_cv_func_dup2_works
=yes
22418 gl_cv_func_dup2_works
=no
22420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22427 $as_echo "$gl_cv_func_dup2_works" >&6; }
22428 case "$gl_cv_func_dup2_works" in
22437 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22446 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22478 EXECINFO_H
='execinfo.h'
22480 if test $ac_cv_header_execinfo_h = yes; then
22481 gl_saved_libs
=$LIBS
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22483 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22484 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22487 ac_func_search_save_LIBS
=$LIBS
22488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22491 /* Override any GCC internal prototype to avoid an error.
22492 Use char because int might match the return type of a GCC
22493 builtin and then its argument prototype would still apply. */
22497 char backtrace_symbols_fd ();
22501 return backtrace_symbols_fd ();
22506 for ac_lib
in '' execinfo
; do
22507 if test -z "$ac_lib"; then
22508 ac_res
="none required"
22511 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22513 if ac_fn_c_try_link
"$LINENO"; then :
22514 ac_cv_search_backtrace_symbols_fd
=$ac_res
22516 rm -f core conftest.err conftest.
$ac_objext \
22518 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22522 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22525 ac_cv_search_backtrace_symbols_fd
=no
22527 rm conftest.
$ac_ext
22528 LIBS
=$ac_func_search_save_LIBS
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22531 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22532 ac_res
=$ac_cv_search_backtrace_symbols_fd
22533 if test "$ac_res" != no
; then :
22534 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22535 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22536 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22539 LIBS
=$gl_saved_libs
22540 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22543 if test -n "$EXECINFO_H"; then
22552 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22558 if test -n "$EXECINFO_H"; then
22559 GL_GENERATE_EXECINFO_H_TRUE
=
22560 GL_GENERATE_EXECINFO_H_FALSE
='#'
22562 GL_GENERATE_EXECINFO_H_TRUE
='#'
22563 GL_GENERATE_EXECINFO_H_FALSE
=
22574 if test $ac_cv_func_faccessat = no
; then
22578 if test $HAVE_FACCESSAT = 0; then
22587 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22590 for ac_func
in access
22592 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22593 if test "x$ac_cv_func_access" = x
""yes; then :
22594 cat >>confdefs.h
<<_ACEOF
22595 #define HAVE_ACCESS 1
22605 cat >>confdefs.h
<<_ACEOF
22606 #define GNULIB_FACCESSAT 1
22626 if test $ac_cv_func_fcntl = no
; then
22630 if test $ac_cv_func_fcntl = no
; then
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22638 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22639 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22642 if test "$cross_compiling" = yes; then :
22643 # Guess that it works on glibc systems
22644 case $host_os in #((
22645 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
22646 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
22649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22650 /* end confdefs.h. */
22659 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22660 if (errno != EINVAL) result |= 2;
22667 if ac_fn_c_try_run
"$LINENO"; then :
22668 gl_cv_func_fcntl_f_dupfd_works
=yes
22670 gl_cv_func_fcntl_f_dupfd_works
=no
22672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22673 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22678 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22679 case $gl_cv_func_fcntl_f_dupfd_works in
22684 if test $ac_cv_func_fcntl = no
; then
22691 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22696 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22697 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22698 $as_echo_n "(cached) " >&6
22700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22704 #ifndef F_DUPFD_CLOEXEC
22716 if ac_fn_c_try_compile
"$LINENO"; then :
22717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22721 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22722 it to support the semantics on older kernels that failed with EINVAL. */
22734 if ac_fn_c_try_compile
"$LINENO"; then :
22735 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22737 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22741 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22746 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22747 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22751 if test $ac_cv_func_fcntl = no
; then
22761 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22770 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22795 if test $gl_cv_have_include_next = yes; then
22796 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22799 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22800 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22805 /* end confdefs.h. */
22810 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22811 *) gl_absname_cpp
="$ac_cpp" ;;
22816 gl_dirsep_regex
='[/\\]'
22819 gl_dirsep_regex
='\/'
22822 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22824 gl_header_literal_regex
=`echo 'fcntl.h' \
22825 | sed -e "$gl_make_literal_regex_sed"`
22826 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22832 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22833 sed -n "$gl_absolute_header_sed"`'"'
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22838 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22840 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22842 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22844 gl_next_as_first_directive
='<'fcntl.h
'>'
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22847 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22849 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22868 if test $ac_cv_have_decl_fdatasync = no
; then
22869 HAVE_DECL_FDATASYNC
=0
22870 for ac_func
in fdatasync
22872 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22873 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22874 cat >>confdefs.h
<<_ACEOF
22875 #define HAVE_FDATASYNC 1
22881 if test $ac_cv_func_fdatasync = no
; then
22885 gl_saved_libs
=$LIBS
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22887 $as_echo_n "checking for library containing fdatasync... " >&6; }
22888 if test "${ac_cv_search_fdatasync+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22891 ac_func_search_save_LIBS
=$LIBS
22892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22905 return fdatasync ();
22910 for ac_lib
in '' rt posix4
; do
22911 if test -z "$ac_lib"; then
22912 ac_res
="none required"
22915 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22917 if ac_fn_c_try_link
"$LINENO"; then :
22918 ac_cv_search_fdatasync
=$ac_res
22920 rm -f core conftest.err conftest.
$ac_objext \
22922 if test "${ac_cv_search_fdatasync+set}" = set; then :
22926 if test "${ac_cv_search_fdatasync+set}" = set; then :
22929 ac_cv_search_fdatasync
=no
22931 rm conftest.
$ac_ext
22932 LIBS
=$ac_func_search_save_LIBS
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22935 $as_echo "$ac_cv_search_fdatasync" >&6; }
22936 ac_res
=$ac_cv_search_fdatasync
22937 if test "$ac_res" != no
; then :
22938 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22939 test "$ac_cv_search_fdatasync" = "none required" ||
22940 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22943 LIBS
=$gl_saved_libs
22946 if test $HAVE_FDATASYNC = 0; then
22955 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22974 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22975 #include <dirent.h>
22978 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22984 cat >>confdefs.h
<<_ACEOF
22985 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22987 if test $ac_have_decl = 1; then :
22990 HAVE_DECL_FDOPENDIR
=0
22994 if test $ac_cv_func_fdopendir = no
; then
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22998 $as_echo_n "checking whether fdopendir works... " >&6; }
22999 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23002 if test "$cross_compiling" = yes; then :
23004 # Guess yes on glibc systems.
23005 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
23006 # If we don't know, assume the worst.
23007 *) gl_cv_func_fdopendir_works
="guessing no" ;;
23011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23012 /* end confdefs.h. */
23014 #include <dirent.h>
23016 #include <unistd.h>
23017 #if !HAVE_DECL_FDOPENDIR
23019 # ifdef __cplusplus
23022 DIR *fdopendir (int);
23029 int fd = open ("conftest.c", O_RDONLY);
23030 if (fd < 0) result |= 1;
23031 if (fdopendir (fd)) result |= 2;
23032 if (close (fd)) result |= 4;
23038 if ac_fn_c_try_run
"$LINENO"; then :
23039 gl_cv_func_fdopendir_works
=yes
23041 gl_cv_func_fdopendir_works
=no
23043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23049 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23050 case "$gl_cv_func_fdopendir_works" in
23053 REPLACE_FDOPENDIR
=1
23058 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
23067 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
23083 cat >>confdefs.h
<<_ACEOF
23084 #define GNULIB_FDOPENDIR 1
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23095 $as_echo_n "checking for __fpending... " >&6; }
23096 if test "${gl_cv_func___fpending+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23101 /* end confdefs.h. */
23103 #if HAVE_STDIO_EXT_H
23104 # include <stdio_ext.h>
23110 return ! __fpending (stdin);
23115 if ac_fn_c_try_link
"$LINENO"; then :
23116 gl_cv_func___fpending
=yes
23118 gl_cv_func___fpending
=no
23120 rm -f core conftest.err conftest.
$ac_objext \
23121 conftest
$ac_exeext conftest.
$ac_ext
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23125 $as_echo "$gl_cv_func___fpending" >&6; }
23127 if test $gl_cv_func___fpending = no
; then
23136 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23140 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23141 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23148 'fp->_IO_write_ptr - fp->_IO_write_base' \
23150 '# traditional Unix' \
23151 'fp->_ptr - fp->_base' \
23154 'fp->_p - fp->_bf._base' \
23156 '# SCO, Unixware' \
23157 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23160 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23163 'fp->__bufp - fp->__buffer' \
23165 '# old glibc iostream?' \
23166 'fp->_pptr - fp->_pbase' \
23169 'fp->_ptr - fp->_buffer' \
23172 'fp->_ptr - fp->_buf' \
23175 'fp->wp - fp->buf' \
23178 '(*fp)->_ptr - (*fp)->_base' \
23180 '# e.g., DGUX R4.11; the info is not available' \
23184 # Skip each embedded comment.
23185 case "$ac_expr" in '#'*) continue;; esac
23187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h. */
23193 FILE *fp = stdin; (void) ($ac_expr);
23198 if ac_fn_c_try_compile
"$LINENO"; then :
23202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23203 test "$fp_done" = yes && break
23206 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23211 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23213 cat >>confdefs.h
<<_ACEOF
23214 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23225 if test $ac_cv_func_fstatat = no
; then
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23229 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23230 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23231 $as_echo_n "(cached) " >&6
23233 if test "$cross_compiling" = yes; then :
23235 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23236 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23241 /* end confdefs.h. */
23244 #include <sys/stat.h>
23249 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23253 if ac_fn_c_try_run
"$LINENO"; then :
23254 gl_cv_func_fstatat_zero_flag
=yes
23256 gl_cv_func_fstatat_zero_flag
=no
23258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23265 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23267 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23269 *) REPLACE_FSTATAT
=1
23270 case $gl_cv_func_fstatat_zero_flag in
23273 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23281 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23290 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23307 if test $ac_cv_func_fsync = no
; then
23311 if test $HAVE_FSYNC = 0; then
23320 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23337 # Persuade glibc <stdlib.h> to declare getloadavg().
23342 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23343 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23345 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23346 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23349 gl_func_getloadavg_done
=no
23351 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23352 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23353 # to get the right answer into the cache.
23354 # For kstat on solaris, we need to test for libelf and libkvm to force the
23355 # definition of SVR4 below.
23356 if test $gl_func_getloadavg_done = no
; then
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23358 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23359 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23362 ac_check_lib_save_LIBS
=$LIBS
23364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23367 /* Override any GCC internal prototype to avoid an error.
23368 Use char because int might match the return type of a GCC
23369 builtin and then its argument prototype would still apply. */
23377 return elf_begin ();
23382 if ac_fn_c_try_link
"$LINENO"; then :
23383 ac_cv_lib_elf_elf_begin
=yes
23385 ac_cv_lib_elf_elf_begin
=no
23387 rm -f core conftest.err conftest.
$ac_objext \
23388 conftest
$ac_exeext conftest.
$ac_ext
23389 LIBS
=$ac_check_lib_save_LIBS
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23392 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23393 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23398 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23399 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23402 ac_check_lib_save_LIBS
=$LIBS
23404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h. */
23407 /* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
23417 return kvm_open ();
23422 if ac_fn_c_try_link
"$LINENO"; then :
23423 ac_cv_lib_kvm_kvm_open
=yes
23425 ac_cv_lib_kvm_kvm_open
=no
23427 rm -f core conftest.err conftest.
$ac_objext \
23428 conftest
$ac_exeext conftest.
$ac_ext
23429 LIBS
=$ac_check_lib_save_LIBS
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23432 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23433 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23437 # Check for the 4.4BSD definition of getloadavg.
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23439 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23440 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23441 $as_echo_n "(cached) " >&6
23443 ac_check_lib_save_LIBS
=$LIBS
23444 LIBS
="-lutil $LIBS"
23445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h. */
23448 /* Override any GCC internal prototype to avoid an error.
23449 Use char because int might match the return type of a GCC
23450 builtin and then its argument prototype would still apply. */
23454 char getloadavg ();
23458 return getloadavg ();
23463 if ac_fn_c_try_link
"$LINENO"; then :
23464 ac_cv_lib_util_getloadavg
=yes
23466 ac_cv_lib_util_getloadavg
=no
23468 rm -f core conftest.err conftest.
$ac_objext \
23469 conftest
$ac_exeext conftest.
$ac_ext
23470 LIBS
=$ac_check_lib_save_LIBS
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23473 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23474 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23475 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23480 if test $gl_func_getloadavg_done = no
; then
23481 # There is a commonly available library for RS/6000 AIX.
23482 # Since it is not a standard part of AIX, it might be installed locally.
23483 gl_getloadavg_LIBS
=$LIBS
23484 LIBS
="-L/usr/local/lib $LIBS"
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23486 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23487 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23490 ac_check_lib_save_LIBS
=$LIBS
23491 LIBS
="-lgetloadavg $LIBS"
23492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23495 /* Override any GCC internal prototype to avoid an error.
23496 Use char because int might match the return type of a GCC
23497 builtin and then its argument prototype would still apply. */
23501 char getloadavg ();
23505 return getloadavg ();
23510 if ac_fn_c_try_link
"$LINENO"; then :
23511 ac_cv_lib_getloadavg_getloadavg
=yes
23513 ac_cv_lib_getloadavg_getloadavg
=no
23515 rm -f core conftest.err conftest.
$ac_objext \
23516 conftest
$ac_exeext conftest.
$ac_ext
23517 LIBS
=$ac_check_lib_save_LIBS
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23520 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23521 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23522 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23524 LIBS
=$gl_getloadavg_LIBS
23529 # Set up the replacement function if necessary.
23530 if test $gl_func_getloadavg_done = no
; then
23533 # Solaris has libkstat which does not require root.
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23535 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23536 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23537 $as_echo_n "(cached) " >&6
23539 ac_check_lib_save_LIBS
=$LIBS
23540 LIBS
="-lkstat $LIBS"
23541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23544 /* Override any GCC internal prototype to avoid an error.
23545 Use char because int might match the return type of a GCC
23546 builtin and then its argument prototype would still apply. */
23550 char kstat_open ();
23554 return kstat_open ();
23559 if ac_fn_c_try_link
"$LINENO"; then :
23560 ac_cv_lib_kstat_kstat_open
=yes
23562 ac_cv_lib_kstat_kstat_open
=no
23564 rm -f core conftest.err conftest.
$ac_objext \
23565 conftest
$ac_exeext conftest.
$ac_ext
23566 LIBS
=$ac_check_lib_save_LIBS
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23569 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23570 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23571 cat >>confdefs.h
<<_ACEOF
23572 #define HAVE_LIBKSTAT 1
23575 LIBS
="-lkstat $LIBS"
23579 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23581 # AIX has libperfstat which does not require root
23582 if test $gl_func_getloadavg_done = no
; then
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23584 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23585 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23586 $as_echo_n "(cached) " >&6
23588 ac_check_lib_save_LIBS
=$LIBS
23589 LIBS
="-lperfstat $LIBS"
23590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23591 /* end confdefs.h. */
23593 /* Override any GCC internal prototype to avoid an error.
23594 Use char because int might match the return type of a GCC
23595 builtin and then its argument prototype would still apply. */
23599 char perfstat_cpu_total ();
23603 return perfstat_cpu_total ();
23608 if ac_fn_c_try_link
"$LINENO"; then :
23609 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23611 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23613 rm -f core conftest.err conftest.
$ac_objext \
23614 conftest
$ac_exeext conftest.
$ac_ext
23615 LIBS
=$ac_check_lib_save_LIBS
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23618 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23619 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23620 cat >>confdefs.h
<<_ACEOF
23621 #define HAVE_LIBPERFSTAT 1
23624 LIBS
="-lperfstat $LIBS"
23628 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23631 if test $gl_func_getloadavg_done = no
; then
23632 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23633 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23634 gl_func_getloadavg_done
=yes
23636 $as_echo "#define DGUX 1" >>confdefs.h
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23639 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23640 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23641 $as_echo_n "(cached) " >&6
23643 ac_check_lib_save_LIBS
=$LIBS
23645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23648 /* Override any GCC internal prototype to avoid an error.
23649 Use char because int might match the return type of a GCC
23650 builtin and then its argument prototype would still apply. */
23654 char dg_sys_info ();
23658 return dg_sys_info ();
23663 if ac_fn_c_try_link
"$LINENO"; then :
23664 ac_cv_lib_dgc_dg_sys_info
=yes
23666 ac_cv_lib_dgc_dg_sys_info
=no
23668 rm -f core conftest.err conftest.
$ac_objext \
23669 conftest
$ac_exeext conftest.
$ac_ext
23670 LIBS
=$ac_check_lib_save_LIBS
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23673 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23674 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23675 cat >>confdefs.h
<<_ACEOF
23676 #define HAVE_LIBDGC 1
23691 if test "x$gl_save_LIBS" = x
; then
23692 GETLOADAVG_LIBS
=$LIBS
23694 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23699 # Test whether the system declares getloadavg. Solaris has the function
23700 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23701 for ac_header
in sys
/loadavg.h
23703 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23704 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23705 cat >>confdefs.h
<<_ACEOF
23706 #define HAVE_SYS_LOADAVG_H 1
23713 if test $ac_cv_header_sys_loadavg_h = yes; then
23714 HAVE_SYS_LOADAVG_H
=1
23716 HAVE_SYS_LOADAVG_H
=0
23718 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23719 # include <sys/loadavg.h>
23721 #include <stdlib.h>
23723 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23726 HAVE_DECL_GETLOADAVG
=0
23730 if test $HAVE_GETLOADAVG = 0; then
23739 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23742 # Figure out what our getloadavg.c needs.
23746 # On HPUX9, an unprivileged user can get load averages this way.
23747 if test $gl_func_getloadavg_done = no
; then
23748 for ac_func
in pstat_getdynamic
23750 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23751 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23752 cat >>confdefs.h
<<_ACEOF
23753 #define HAVE_PSTAT_GETDYNAMIC 1
23755 gl_func_getloadavg_done
=yes
23761 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23762 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23763 # Irix 4.0.5F has the header but not the library.
23764 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23765 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23766 gl_func_getloadavg_done
=yes
23768 $as_echo "#define SVR4 1" >>confdefs.h
23772 if test $gl_func_getloadavg_done = no
; then
23773 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23774 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23775 gl_func_getloadavg_done
=yes
23777 $as_echo "#define UMAX 1" >>confdefs.h
23780 $as_echo "#define UMAX4_3 1" >>confdefs.h
23787 if test $gl_func_getloadavg_done = no
; then
23788 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23789 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23790 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23797 if test $gl_func_getloadavg_done = no
; then
23798 for ac_header
in mach
/mach.h
23800 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23801 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23802 cat >>confdefs.h
<<_ACEOF
23803 #define HAVE_MACH_MACH_H 1
23812 for ac_header
in nlist.h
23814 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23815 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23816 cat >>confdefs.h
<<_ACEOF
23817 #define HAVE_NLIST_H 1
23819 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23821 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23823 cat >>confdefs.h
<<_ACEOF
23824 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23831 /* end confdefs.h. */
23837 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23838 x.n_un.n_name = "";
23846 if ac_fn_c_try_link
"$LINENO"; then :
23848 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23851 rm -f core conftest.err conftest.
$ac_objext \
23852 conftest
$ac_exeext conftest.
$ac_ext
23864 GNULIB_GETLOADAVG
=1
23875 if test $REPLACE_GETOPT = 1; then
23884 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23894 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23899 GNULIB_GL_UNISTD_H_GETOPT
=1
23909 if test -n "$gl_replace_getopt"; then
23913 if test $REPLACE_GETOPT = 1; then
23917 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23923 if test $REPLACE_GETOPT = 1; then
23932 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23942 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23947 GNULIB_GL_UNISTD_H_GETOPT
=1
23961 gl_gettimeofday_timezone
=void
23962 if test $ac_cv_func_gettimeofday != yes; then
23963 HAVE_GETTIMEOFDAY
=0
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23969 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23970 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23971 $as_echo_n "(cached) " >&6
23973 if test "$cross_compiling" = yes; then :
23974 # When cross-compiling:
23976 # Guess all is fine on glibc systems.
23977 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23978 # If we don't know, assume the worst.
23979 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23985 #include <string.h>
23986 #include <sys/time.h>
23988 #include <stdlib.h>
23996 struct tm saved_lt;
23998 lt = localtime (&t);
24000 gettimeofday (&tv, NULL);
24001 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24007 if ac_fn_c_try_run
"$LINENO"; then :
24008 gl_cv_func_gettimeofday_clobber
=no
24010 gl_cv_func_gettimeofday_clobber
=yes
24012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24018 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24020 case "$gl_cv_func_gettimeofday_clobber" in
24022 REPLACE_GETTIMEOFDAY
=1
24025 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24028 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24032 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24038 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24039 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24040 $as_echo_n "(cached) " >&6
24042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 #include <sys/time.h>
24046 int gettimeofday (struct timeval *restrict, void *restrict);
24051 /* glibc uses struct timezone * rather than the POSIX void *
24052 if _GNU_SOURCE is defined. However, since the only portable
24053 use of gettimeofday uses NULL as the second parameter, and
24054 since the glibc definition is actually more typesafe, it is
24055 not worth wrapping this to get a compliant signature. */
24056 int (*f) (struct timeval *restrict, void *restrict)
24059 return !(x | c.tv_sec | c.tv_usec);
24065 if ac_fn_c_try_compile
"$LINENO"; then :
24066 gl_cv_func_gettimeofday_posix_signature
=yes
24068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24069 /* end confdefs.h. */
24070 #include <sys/time.h>
24071 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24081 if ac_fn_c_try_compile
"$LINENO"; then :
24082 gl_cv_func_gettimeofday_posix_signature
=almost
24084 gl_cv_func_gettimeofday_posix_signature
=no
24086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24091 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24092 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
24093 gl_gettimeofday_timezone
='struct timezone'
24094 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24095 REPLACE_GETTIMEOFDAY
=1
24097 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24098 REPLACE_GETTIMEOFDAY
=1
24103 cat >>confdefs.h
<<_ACEOF
24104 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24108 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
24117 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
24120 for ac_header
in sys
/timeb.h
24122 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24123 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
24124 cat >>confdefs.h
<<_ACEOF
24125 #define HAVE_SYS_TIMEB_H 1
24132 for ac_func
in _ftime
24134 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
24135 if test "x$ac_cv_func__ftime" = x
""yes; then :
24136 cat >>confdefs.h
<<_ACEOF
24137 #define HAVE__FTIME 1
24150 GNULIB_GETTIMEOFDAY
=1
24161 if test $ac_cv_func_lstat = yes; then
24163 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24172 if test $REPLACE_LSTAT = 1; then
24181 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24201 if test $ac_cv_have_decl_memrchr = no
; then
24202 HAVE_DECL_MEMRCHR
=0
24205 for ac_func
in memrchr
24207 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24208 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24209 cat >>confdefs.h
<<_ACEOF
24210 #define HAVE_MEMRCHR 1
24217 if test $ac_cv_func_memrchr = no
; then
24226 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24247 if test $ac_cv_func_mkostemp != yes; then
24251 if test $HAVE_MKOSTEMP = 0; then
24260 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24267 cat >>confdefs.h
<<_ACEOF
24268 #define GNULIB_MKOSTEMP 1
24289 if test $APPLE_UNIVERSAL_BUILD = 1; then
24290 # A universal build on Apple Mac OS X platforms.
24291 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24292 # But we need a configuration result that is valid in both modes.
24293 gl_cv_func_working_mktime
=no
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24296 $as_echo_n "checking for working mktime... " >&6; }
24297 if test "${gl_cv_func_working_mktime+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24300 if test "$cross_compiling" = yes; then :
24301 gl_cv_func_working_mktime
=no
24303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24304 /* end confdefs.h. */
24305 /* Test program from Paul Eggert and Tony Leneis. */
24306 #include <limits.h>
24307 #include <stdlib.h>
24310 #ifdef HAVE_UNISTD_H
24311 # include <unistd.h>
24314 #if HAVE_DECL_ALARM
24315 # include <signal.h>
24318 /* Work around redefinition to rpl_putenv by other config tests. */
24321 static time_t time_t_max;
24322 static time_t time_t_min;
24324 /* Values we'll use to set the TZ environment variable. */
24325 static char *tz_strings[] = {
24326 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24327 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24329 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24331 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24332 Based on a problem report from Andreas Jaeger. */
24334 spring_forward_gap ()
24336 /* glibc (up to about 1998-10-07) failed this test. */
24339 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24340 instead of "TZ=America/Vancouver" in order to detect the bug even
24341 on systems that don't support the Olson extension, or don't have the
24342 full zoneinfo tables installed. */
24343 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24352 return mktime (&tm) != (time_t) -1;
24356 mktime_test1 (time_t now)
24359 return ! (lt = localtime (&now)) || mktime (lt) == now;
24363 mktime_test (time_t now)
24365 return (mktime_test1 (now)
24366 && mktime_test1 ((time_t) (time_t_max - now))
24367 && mktime_test1 ((time_t) (time_t_min + now)));
24373 /* Based on code from Ariel Faigon. */
24383 return tm.tm_mon == 2 && tm.tm_mday == 31;
24387 bigtime_test (int j)
24391 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24392 now = mktime (&tm);
24393 if (now != (time_t) -1)
24395 struct tm *lt = localtime (&now);
24397 && lt->tm_year == tm.tm_year
24398 && lt->tm_mon == tm.tm_mon
24399 && lt->tm_mday == tm.tm_mday
24400 && lt->tm_hour == tm.tm_hour
24401 && lt->tm_min == tm.tm_min
24402 && lt->tm_sec == tm.tm_sec
24403 && lt->tm_yday == tm.tm_yday
24404 && lt->tm_wday == tm.tm_wday
24405 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24406 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24415 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24416 ignoring leap seconds. */
24417 unsigned long int answer = 2527315200UL;
24421 tm.tm_year = 2050 - 1900;
24424 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24427 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24428 instead of "TZ=America/Vancouver" in order to detect the bug even
24429 on systems that don't support the Olson extension, or don't have the
24430 full zoneinfo tables installed. */
24431 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24435 /* Check that the result is either a failure, or close enough
24436 to the correct answer that we can assume the discrepancy is
24437 due to leap seconds. */
24438 return (t == (time_t) -1
24439 || (0 < t && answer - 120 <= t && t <= answer + 120));
24448 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24449 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24451 #if HAVE_DECL_ALARM
24452 /* This test makes some buggy mktime implementations loop.
24453 Give up after 60 seconds; a mktime slower than that
24454 isn't worth using anyway. */
24455 signal (SIGALRM, SIG_DFL);
24459 time_t_max = (! time_t_signed
24461 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24463 time_t_min = (! time_t_signed
24465 : time_t_signed_magnitude
24469 delta = time_t_max / 997; /* a suitable prime number */
24470 for (i = 0; i < N_STRINGS; i++)
24473 putenv (tz_strings[i]);
24475 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24476 if (! mktime_test (t))
24478 if ((result & 2) == 0
24479 && ! (mktime_test ((time_t) 1)
24480 && mktime_test ((time_t) (60 * 60))
24481 && mktime_test ((time_t) (60 * 60 * 24))))
24484 for (j = 1; (result & 4) == 0; j <<= 1)
24486 if (! bigtime_test (j))
24488 if (INT_MAX / 2 < j)
24491 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24494 if (! irix_6_4_bug ())
24496 if (! spring_forward_gap ())
24498 if (! year_2050_test ())
24503 if ac_fn_c_try_run
"$LINENO"; then :
24504 gl_cv_func_working_mktime
=yes
24506 gl_cv_func_working_mktime
=no
24508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24515 $as_echo "$gl_cv_func_working_mktime" >&6; }
24517 if test $gl_cv_func_working_mktime = no
; then
24523 if test $REPLACE_MKTIME = 1; then
24532 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24554 if test $ac_cv_func_pipe2 != yes; then
24574 if test $ac_cv_func_pselect = yes; then
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24576 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24577 if test "${gl_cv_sig_pselect+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24582 #include <sys/select.h>
24587 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24588 struct timespec const *restrict,
24589 sigset_t const *restrict) = pselect;
24595 if ac_fn_c_try_link
"$LINENO"; then :
24596 gl_cv_sig_pselect
=yes
24598 gl_cv_sig_pselect
=no
24600 rm -f core conftest.err conftest.
$ac_objext \
24601 conftest
$ac_exeext conftest.
$ac_ext
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24604 $as_echo "$gl_cv_sig_pselect" >&6; }
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24607 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24608 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24612 if test "$cross_compiling" = yes; then :
24615 # Guess yes on glibc systems.
24616 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24617 # If we don't know, assume the worst.
24618 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24625 #include <sys/types.h>
24626 #include <sys/time.h>
24627 #if HAVE_SYS_SELECT_H
24628 # include <sys/select.h>
24630 #include <unistd.h>
24642 struct timespec timeout;
24643 timeout.tv_sec = 0;
24644 timeout.tv_nsec = 5000;
24645 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24651 if ac_fn_c_try_run
"$LINENO"; then :
24652 gl_cv_func_pselect_detects_ebadf
=yes
24654 gl_cv_func_pselect_detects_ebadf
=no
24656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24663 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24664 case $gl_cv_func_pselect_detects_ebadf in
24666 *) REPLACE_PSELECT
=1 ;;
24670 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24674 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24683 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24701 LIB_PTHREAD_SIGMASK
=
24706 if test "$gl_threads_api" = posix
; then
24707 if test $ac_cv_func_pthread_sigmask = yes; then
24710 if test -n "$LIBMULTITHREAD"; then
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24712 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24713 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24716 gl_save_LIBS
="$LIBS"
24717 LIBS
="$LIBS $LIBMULTITHREAD"
24718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720 #include <pthread.h>
24721 #include <signal.h>
24726 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24732 if ac_fn_c_try_link
"$LINENO"; then :
24733 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24735 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24737 rm -f core conftest.err conftest.
$ac_objext \
24738 conftest
$ac_exeext conftest.
$ac_ext
24739 LIBS
="$gl_save_LIBS"
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24743 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24744 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24745 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24747 HAVE_PTHREAD_SIGMASK
=0
24750 HAVE_PTHREAD_SIGMASK
=0
24754 if test $ac_cv_func_pthread_sigmask = yes; then
24755 REPLACE_PTHREAD_SIGMASK
=1
24757 HAVE_PTHREAD_SIGMASK
=0
24764 if test $HAVE_PTHREAD_SIGMASK = 1; then
24767 if test -z "$LIB_PTHREAD_SIGMASK"; then
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24769 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24770 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24771 $as_echo_n "(cached) " >&6
24774 if test "$cross_compiling" = yes; then :
24777 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24778 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24780 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24787 #include <pthread.h>
24788 #include <signal.h>
24789 #include <stddef.h>
24793 sigemptyset (&set);
24794 return pthread_sigmask (1729, &set, NULL) != 0;
24797 if ac_fn_c_try_run
"$LINENO"; then :
24798 gl_cv_func_pthread_sigmask_in_libc_works
=no
24800 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24809 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24810 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24812 REPLACE_PTHREAD_SIGMASK
=1
24814 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24821 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24822 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24823 $as_echo_n "(cached) " >&6
24826 gl_save_LIBS
="$LIBS"
24827 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24828 if test "$cross_compiling" = yes; then :
24831 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24833 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24838 /* end confdefs.h. */
24840 #include <pthread.h>
24841 #include <signal.h>
24842 #include <stddef.h>
24846 sigemptyset (&set);
24847 if (pthread_sigmask (1729, &set, NULL) == -1)
24852 if ac_fn_c_try_run
"$LINENO"; then :
24853 gl_cv_func_pthread_sigmask_return_works
=yes
24855 gl_cv_func_pthread_sigmask_return_works
=no
24857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24861 LIBS
="$gl_save_LIBS"
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24865 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24866 case "$gl_cv_func_pthread_sigmask_return_works" in
24868 REPLACE_PTHREAD_SIGMASK
=1
24870 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24876 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24877 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24883 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24885 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24887 gl_save_LIBS
="$LIBS"
24888 LIBS
="$LIBS $LIBMULTITHREAD"
24889 if test "$cross_compiling" = yes; then :
24892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24893 /* end confdefs.h. */
24895 #include <pthread.h>
24896 #include <signal.h>
24898 #include <stdlib.h>
24899 #include <unistd.h>
24900 static volatile int sigint_occurred;
24902 sigint_handler (int sig)
24909 int pid = getpid ();
24911 signal (SIGINT, sigint_handler);
24912 sigemptyset (&set);
24913 sigaddset (&set, SIGINT);
24914 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24916 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24917 if (!(system (command) == 0))
24920 if (!(sigint_occurred == 0))
24922 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24924 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24929 if ac_fn_c_try_run
"$LINENO"; then :
24932 gl_cv_func_pthread_sigmask_unblock_works
=no
24934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24938 LIBS
="$gl_save_LIBS"
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24942 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24943 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24945 REPLACE_PTHREAD_SIGMASK
=1
24947 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24953 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24962 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24965 if test $HAVE_PTHREAD_SIGMASK = 1; then
24967 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24977 GNULIB_PTHREAD_SIGMASK
=1
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24986 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24987 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24990 if test "$cross_compiling" = yes; then :
24992 # Guess yes on glibc systems.
24993 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24994 # If we don't know, assume the worst.
24995 *) gl_cv_func_svid_putenv
="guessing no" ;;
24999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25000 /* end confdefs.h. */
25001 $ac_includes_default
25006 /* Put it in env. */
25007 if (putenv ("CONFTEST_putenv=val"))
25010 /* Try to remove it. */
25011 if (putenv ("CONFTEST_putenv"))
25014 /* Make sure it was deleted. */
25015 if (getenv ("CONFTEST_putenv") != 0)
25024 if ac_fn_c_try_run
"$LINENO"; then :
25025 gl_cv_func_svid_putenv
=yes
25027 gl_cv_func_svid_putenv
=no
25029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25036 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25037 case "$gl_cv_func_svid_putenv" in
25044 if test $REPLACE_PUTENV = 1; then
25053 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
25056 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25057 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
25063 cat >>confdefs.h
<<_ACEOF
25064 #define HAVE_DECL__PUTENV $ac_have_decl
25081 # Check whether --enable-acl was given.
25082 if test "${enable_acl+set}" = set; then :
25083 enableval
=$enable_acl;
25091 if test "x$enable_acl" != "xno"; then
25092 for ac_header
in sys
/acl.h
25094 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25095 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
25096 cat >>confdefs.h
<<_ACEOF
25097 #define HAVE_SYS_ACL_H 1
25104 if test $ac_cv_header_sys_acl_h = yes; then
25107 if test $use_acl = 0; then
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25109 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25110 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25113 ac_func_search_save_LIBS
=$LIBS
25114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25117 /* Override any GCC internal prototype to avoid an error.
25118 Use char because int might match the return type of a GCC
25119 builtin and then its argument prototype would still apply. */
25123 char acl_get_file ();
25127 return acl_get_file ();
25132 for ac_lib
in '' acl pacl
; do
25133 if test -z "$ac_lib"; then
25134 ac_res
="none required"
25137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25139 if ac_fn_c_try_link
"$LINENO"; then :
25140 ac_cv_search_acl_get_file
=$ac_res
25142 rm -f core conftest.err conftest.
$ac_objext \
25144 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25148 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25151 ac_cv_search_acl_get_file
=no
25153 rm conftest.
$ac_ext
25154 LIBS
=$ac_func_search_save_LIBS
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25157 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25158 ac_res
=$ac_cv_search_acl_get_file
25159 if test "$ac_res" != no
; then :
25160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25161 if test "$ac_cv_search_acl_get_file" != "none required"; then
25162 LIB_ACL
=$ac_cv_search_acl_get_file
25164 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25165 acl_free acl_from_mode acl_from_text \
25166 acl_delete_def_file acl_extended_file \
25167 acl_delete_fd_np acl_delete_file_np \
25168 acl_copy_ext_native acl_create_entry_np \
25169 acl_to_short_text acl_free_text
25171 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25173 eval as_val
=\$
$as_ac_var
25174 if test "x$as_val" = x
""yes; then :
25175 cat >>confdefs.h
<<_ACEOF
25176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25182 # If the acl_get_file bug is detected, don't enable the ACL support.
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25185 $as_echo_n "checking for working acl_get_file... " >&6; }
25186 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25189 if test "$cross_compiling" = yes; then :
25190 gl_cv_func_working_acl_get_file
=cross-compiling
25192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25193 /* end confdefs.h. */
25194 #include <sys/types.h>
25195 #include <sys/acl.h>
25201 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25209 if ac_fn_c_try_run
"$LINENO"; then :
25210 gl_cv_func_working_acl_get_file
=yes
25212 gl_cv_func_working_acl_get_file
=no
25214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25220 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25222 if test $gl_cv_func_working_acl_get_file = yes; then :
25226 if test $use_acl = 1; then
25227 for ac_header
in acl
/libacl.h
25229 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25230 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25231 cat >>confdefs.h
<<_ACEOF
25232 #define HAVE_ACL_LIBACL_H 1
25247 for ac_func
in acl_entries
25249 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25250 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25251 cat >>confdefs.h
<<_ACEOF
25252 #define HAVE_ACL_ENTRIES 1
25257 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25264 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25265 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25269 /* end confdefs.h. */
25270 #include <sys/types.h>
25271 #include <sys/acl.h>
25272 int type = ACL_FIRST_ENTRY;
25281 if ac_fn_c_try_compile
"$LINENO"; then :
25282 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25284 gl_cv_acl_ACL_FIRST_ENTRY
=no
25286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25289 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25290 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25292 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25296 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25297 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25302 #include <sys/types.h>
25303 #include <sys/acl.h>
25304 int type = ACL_TYPE_EXTENDED;
25313 if ac_fn_c_try_compile
"$LINENO"; then :
25314 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25316 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25321 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25322 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25324 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25335 if test $use_acl = 0; then
25336 for ac_func
in facl
25338 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25339 if test "x$ac_cv_func_facl" = x
""yes; then :
25340 cat >>confdefs.h
<<_ACEOF
25341 #define HAVE_FACL 1
25347 if test $ac_cv_func_facl = yes; then
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25349 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25350 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25353 ac_func_search_save_LIBS
=$LIBS
25354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25363 char acl_trivial ();
25367 return acl_trivial ();
25372 for ac_lib
in '' sec
; do
25373 if test -z "$ac_lib"; then
25374 ac_res
="none required"
25377 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25379 if ac_fn_c_try_link
"$LINENO"; then :
25380 ac_cv_search_acl_trivial
=$ac_res
25382 rm -f core conftest.err conftest.
$ac_objext \
25384 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25388 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25391 ac_cv_search_acl_trivial
=no
25393 rm conftest.
$ac_ext
25394 LIBS
=$ac_func_search_save_LIBS
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25397 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25398 ac_res
=$ac_cv_search_acl_trivial
25399 if test "$ac_res" != no
; then :
25400 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25401 if test "$ac_cv_search_acl_trivial" != "none required"; then
25402 LIB_ACL
=$ac_cv_search_acl_trivial
25407 for ac_func
in acl_trivial
25409 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25410 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25411 cat >>confdefs.h
<<_ACEOF
25412 #define HAVE_ACL_TRIVIAL 1
25422 if test $use_acl = 0; then
25423 for ac_func
in getacl
25425 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25426 if test "x$ac_cv_func_getacl" = x
""yes; then :
25427 cat >>confdefs.h
<<_ACEOF
25428 #define HAVE_GETACL 1
25434 if test $ac_cv_func_getacl = yes; then
25437 for ac_header
in aclv.h
25439 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25441 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25442 cat >>confdefs.h
<<_ACEOF
25443 #define HAVE_ACLV_H 1
25452 if test $use_acl = 0; then
25453 for ac_func
in aclx_get
25455 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25456 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25457 cat >>confdefs.h
<<_ACEOF
25458 #define HAVE_ACLX_GET 1
25464 if test $ac_cv_func_aclx_get = yes; then
25469 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25470 for ac_func
in statacl
25472 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25473 if test "x$ac_cv_func_statacl" = x
""yes; then :
25474 cat >>confdefs.h
<<_ACEOF
25475 #define HAVE_STATACL 1
25481 if test $ac_cv_func_statacl = yes; then
25486 if test $use_acl = 0; then
25487 for ac_func
in aclsort
25489 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25490 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25491 cat >>confdefs.h
<<_ACEOF
25492 #define HAVE_ACLSORT 1
25498 if test $ac_cv_func_aclsort = yes; then
25505 if test "x$enable_acl$use_acl" = "xyes0"; then
25506 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25507 elif test "x$enable_acl$use_acl" = "xauto0"; then
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25509 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25511 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25516 cat >>confdefs.h
<<_ACEOF
25517 #define USE_ACL $use_acl
25526 if test $ac_cv_func_readlink = no
; then
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25530 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25531 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h. */
25536 #include <unistd.h>
25537 /* Cause compilation failure if original declaration has wrong type. */
25538 ssize_t readlink (const char *, char *, size_t);
25547 if ac_fn_c_try_compile
"$LINENO"; then :
25548 gl_cv_decl_readlink_works
=yes
25550 gl_cv_decl_readlink_works
=no
25552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25555 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25557 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25558 if test "${gl_cv_func_readlink_works+set}" = set; then :
25559 $as_echo_n "(cached) " >&6
25561 # We have readlink, so assume ln -s works.
25562 ln -s conftest.no-such conftest.link
25563 ln -s conftest.link conftest.lnk2
25564 if test "$cross_compiling" = yes; then :
25566 # Guess yes on glibc systems.
25567 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25568 # If we don't know, assume the worst.
25569 *) gl_cv_func_readlink_works
="guessing no" ;;
25573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25575 #include <unistd.h>
25581 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25586 if ac_fn_c_try_run
"$LINENO"; then :
25587 gl_cv_func_readlink_works
=yes
25589 gl_cv_func_readlink_works
=no
25591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25595 rm -f conftest.link conftest.lnk2
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25598 $as_echo "$gl_cv_func_readlink_works" >&6; }
25599 case "$gl_cv_func_readlink_works" in
25601 if test "$gl_cv_decl_readlink_works" != yes; then
25607 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25614 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25623 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25644 if test $ac_cv_func_readlinkat = no
; then
25648 if test $HAVE_READLINKAT = 0; then
25657 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25665 GNULIB_READLINKAT
=1
25672 for ac_func
in sig2str
25674 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25675 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25676 cat >>confdefs.h
<<_ACEOF
25677 #define HAVE_SIG2STR 1
25684 if test $ac_cv_func_sig2str = no
; then
25693 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25710 if test $gl_cv_have_include_next = yes; then
25711 gl_cv_next_signal_h
='<'signal.h
'>'
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25714 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25715 if test "${gl_cv_next_signal_h+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25721 #include <signal.h>
25725 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25726 *) gl_absname_cpp
="$ac_cpp" ;;
25731 gl_dirsep_regex
='[/\\]'
25734 gl_dirsep_regex
='\/'
25737 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25739 gl_header_literal_regex
=`echo 'signal.h' \
25740 | sed -e "$gl_make_literal_regex_sed"`
25741 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25742 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25747 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25748 sed -n "$gl_absolute_header_sed"`'"'
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25753 $as_echo "$gl_cv_next_signal_h" >&6; }
25755 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25757 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25759 gl_next_as_first_directive
='<'signal.h
'>'
25761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25762 gl_next_as_first_directive
=$gl_cv_next_signal_h
25764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25770 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25771 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25772 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25773 #include <signal.h>
25776 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25779 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25788 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25789 #include <signal.h>
25792 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25795 HAVE_SIGHANDLER_T
=0
25801 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25802 /* <sys/types.h> is not needed according to POSIX, but the
25803 <sys/socket.h> in i386-unknown-freebsd4.10 and
25804 powerpc-apple-darwin5.5 required it. */
25805 #include <sys/types.h>
25806 #if HAVE_SYS_SOCKET_H
25807 # include <sys/socket.h>
25808 #elif HAVE_WS2TCPIP_H
25809 # include <ws2tcpip.h>
25813 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25817 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25818 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25821 # Systems have either "struct sockaddr *" or
25822 # "void *" as the second argument to getpeername
25823 gl_cv_socklen_t_equiv
=
25824 for arg2
in "struct sockaddr" void
; do
25825 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h. */
25828 #include <sys/types.h>
25829 #include <sys/socket.h>
25831 int getpeername (int, $arg2 *, $t *);
25836 getpeername (0, 0, &len);
25841 if ac_fn_c_try_compile
"$LINENO"; then :
25842 gl_cv_socklen_t_equiv
="$t"
25844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25845 test "$gl_cv_socklen_t_equiv" != "" && break
25847 test "$gl_cv_socklen_t_equiv" != "" && break
25852 if test "$gl_cv_socklen_t_equiv" = ""; then
25853 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25856 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25858 cat >>confdefs.h
<<_ACEOF
25859 #define socklen_t $gl_cv_socklen_t_equiv
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25866 $as_echo_n "checking for ssize_t... " >&6; }
25867 if test "${gt_cv_ssize_t+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25871 /* end confdefs.h. */
25872 #include <sys/types.h>
25876 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25882 if ac_fn_c_try_compile
"$LINENO"; then :
25887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25890 $as_echo "$gt_cv_ssize_t" >&6; }
25891 if test $gt_cv_ssize_t = no
; then
25893 $as_echo "#define ssize_t int" >>confdefs.h
25901 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>
25902 #include <sys/stat.h>
25904 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25906 cat >>confdefs.h
<<_ACEOF
25907 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25911 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25912 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25913 $as_echo_n "(cached) " >&6
25915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25918 #include <sys/types.h>
25919 #include <sys/stat.h>
25920 #if HAVE_SYS_TIME_H
25921 # include <sys/time.h>
25924 struct timespec ts;
25937 if ac_fn_c_try_compile
"$LINENO"; then :
25938 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25940 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25945 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25946 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25948 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25952 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>
25953 #include <sys/stat.h>
25955 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25957 cat >>confdefs.h
<<_ACEOF
25958 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25963 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25964 #include <sys/stat.h>
25966 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25968 cat >>confdefs.h
<<_ACEOF
25969 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25974 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>
25975 #include <sys/stat.h>
25977 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25979 cat >>confdefs.h
<<_ACEOF
25980 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25996 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>
25997 #include <sys/stat.h>
25999 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
26001 cat >>confdefs.h
<<_ACEOF
26002 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26007 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26008 #include <sys/stat.h>
26010 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
26012 cat >>confdefs.h
<<_ACEOF
26013 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26018 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>
26019 #include <sys/stat.h>
26021 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
26023 cat >>confdefs.h
<<_ACEOF
26024 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26037 $as_echo_n "checking for working stdalign.h... " >&6; }
26038 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26043 #include <stdalign.h>
26044 #include <stddef.h>
26046 /* Test that alignof yields a result consistent with offsetof.
26047 This catches GCC bug 52023
26048 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26050 template <class t> struct alignof_helper { char a; t b; };
26051 # define ao(type) offsetof (alignof_helper<type>, b)
26053 # define ao(type) offsetof (struct { char a; type b; }, b)
26055 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26056 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26057 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26059 /* Test _Alignas only on platforms where gnulib can help. */
26061 ((defined __cplusplus && 201103 <= __cplusplus) \
26062 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26063 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26064 struct alignas_test { char c; char alignas (8) alignas_8; };
26065 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26077 if ac_fn_c_try_compile
"$LINENO"; then :
26078 gl_cv_header_working_stdalign_h
=yes
26080 gl_cv_header_working_stdalign_h
=no
26082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26085 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26087 if test $gl_cv_header_working_stdalign_h = yes; then
26090 STDALIGN_H
='stdalign.h'
26094 if test -n "$STDALIGN_H"; then
26095 GL_GENERATE_STDALIGN_H_TRUE
=
26096 GL_GENERATE_STDALIGN_H_FALSE
='#'
26098 GL_GENERATE_STDALIGN_H_TRUE
='#'
26099 GL_GENERATE_STDALIGN_H_FALSE
=
26105 NEXT_STDARG_H
='<stdarg.h>'
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26107 $as_echo_n "checking for va_copy... " >&6; }
26108 if test "${gl_cv_func_va_copy+set}" = set; then :
26109 $as_echo_n "(cached) " >&6
26112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26113 /* end confdefs.h. */
26114 #include <stdarg.h>
26120 void (*func) (va_list, va_list) = va_copy;
26127 if ac_fn_c_try_compile
"$LINENO"; then :
26128 gl_cv_func_va_copy
=yes
26130 gl_cv_func_va_copy
=no
26132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26136 $as_echo "$gl_cv_func_va_copy" >&6; }
26137 if test $gl_cv_func_va_copy = no
; then
26138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26140 #if defined _AIX && !defined __GNUC__
26145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26146 $EGREP "vaccine" >/dev
/null
2>&1; then :
26153 if test $gl_aixcc = yes; then
26163 if test $gl_cv_have_include_next = yes; then
26164 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26167 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26168 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h. */
26174 #include <stdarg.h>
26178 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26179 *) gl_absname_cpp
="$ac_cpp" ;;
26184 gl_dirsep_regex
='[/\\]'
26187 gl_dirsep_regex
='\/'
26190 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26192 gl_header_literal_regex
=`echo 'stdarg.h' \
26193 | sed -e "$gl_make_literal_regex_sed"`
26194 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26195 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26200 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26201 sed -n "$gl_absolute_header_sed"`'"'
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26206 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26208 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26210 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26212 gl_next_as_first_directive
='<'stdarg.h
'>'
26214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26215 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26217 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26222 if test "$gl_cv_next_stdarg_h" = '""'; then
26223 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26224 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26228 saved_as_echo_n
="$as_echo_n"
26230 if test "${gl_cv_func___va_copy+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h. */
26236 #include <stdarg.h>
26249 if ac_fn_c_try_compile
"$LINENO"; then :
26250 gl_cv_func___va_copy
=yes
26252 gl_cv_func___va_copy
=no
26254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26257 as_echo_n
="$saved_as_echo_n"
26259 if test $gl_cv_func___va_copy = yes; then
26261 $as_echo "#define va_copy __va_copy" >>confdefs.h
26266 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26272 if test -n "$STDARG_H"; then
26273 GL_GENERATE_STDARG_H_TRUE
=
26274 GL_GENERATE_STDARG_H_FALSE
='#'
26276 GL_GENERATE_STDARG_H_TRUE
='#'
26277 GL_GENERATE_STDARG_H_FALSE
=
26285 # Define two additional variables used in the Makefile substitution.
26287 if test "$ac_cv_header_stdbool_h" = yes; then
26290 STDBOOL_H
='stdbool.h'
26293 if test -n "$STDBOOL_H"; then
26294 GL_GENERATE_STDBOOL_H_TRUE
=
26295 GL_GENERATE_STDBOOL_H_FALSE
='#'
26297 GL_GENERATE_STDBOOL_H_TRUE
='#'
26298 GL_GENERATE_STDBOOL_H_FALSE
=
26302 if test "$ac_cv_type__Bool" = yes; then
26313 if test $gt_cv_c_wchar_t = no
; then
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26318 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26319 if test "${gl_cv_decl_null_works+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26323 /* end confdefs.h. */
26324 #include <stddef.h>
26325 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26335 if ac_fn_c_try_compile
"$LINENO"; then :
26336 gl_cv_decl_null_works
=yes
26338 gl_cv_decl_null_works
=no
26340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26343 $as_echo "$gl_cv_decl_null_works" >&6; }
26344 if test $gl_cv_decl_null_works = no
; then
26349 if test -n "$STDDEF_H"; then
26350 GL_GENERATE_STDDEF_H_TRUE
=
26351 GL_GENERATE_STDDEF_H_FALSE
='#'
26353 GL_GENERATE_STDDEF_H_TRUE
='#'
26354 GL_GENERATE_STDDEF_H_FALSE
=
26357 if test -n "$STDDEF_H"; then
26366 if test $gl_cv_have_include_next = yes; then
26367 gl_cv_next_stddef_h
='<'stddef.h
'>'
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26370 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26371 if test "${gl_cv_next_stddef_h+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h. */
26377 #include <stddef.h>
26381 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26382 *) gl_absname_cpp
="$ac_cpp" ;;
26387 gl_dirsep_regex
='[/\\]'
26390 gl_dirsep_regex
='\/'
26393 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26395 gl_header_literal_regex
=`echo 'stddef.h' \
26396 | sed -e "$gl_make_literal_regex_sed"`
26397 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26398 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26403 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26404 sed -n "$gl_absolute_header_sed"`'"'
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26409 $as_echo "$gl_cv_next_stddef_h" >&6; }
26411 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26413 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26415 gl_next_as_first_directive
='<'stddef.h
'>'
26417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26418 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26420 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26438 if test $gl_cv_have_include_next = yes; then
26439 gl_cv_next_stdio_h
='<'stdio.h
'>'
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26442 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26443 if test "${gl_cv_next_stdio_h+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h. */
26453 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26454 *) gl_absname_cpp
="$ac_cpp" ;;
26459 gl_dirsep_regex
='[/\\]'
26462 gl_dirsep_regex
='\/'
26465 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26467 gl_header_literal_regex
=`echo 'stdio.h' \
26468 | sed -e "$gl_make_literal_regex_sed"`
26469 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26470 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26475 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26476 sed -n "$gl_absolute_header_sed"`'"'
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26481 $as_echo "$gl_cv_next_stdio_h" >&6; }
26483 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26485 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26487 gl_next_as_first_directive
='<'stdio.h
'>'
26489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26490 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26492 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26501 cat >>confdefs.h
<<_ACEOF
26502 #define GNULIB_FSCANF 1
26509 cat >>confdefs.h
<<_ACEOF
26510 #define GNULIB_SCANF 1
26546 if test $gl_cv_have_include_next = yes; then
26547 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26550 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26551 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26556 /* end confdefs.h. */
26557 #include <stdlib.h>
26561 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26562 *) gl_absname_cpp
="$ac_cpp" ;;
26567 gl_dirsep_regex
='[/\\]'
26570 gl_dirsep_regex
='\/'
26573 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26575 gl_header_literal_regex
=`echo 'stdlib.h' \
26576 | sed -e "$gl_make_literal_regex_sed"`
26577 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26578 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26583 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26584 sed -n "$gl_absolute_header_sed"`'"'
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26589 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26591 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26593 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26595 gl_next_as_first_directive
='<'stdlib.h
'>'
26597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26598 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26600 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26610 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26618 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26630 if test "$ac_cv_have_decl_strtoimax" != yes; then
26631 HAVE_DECL_STRTOIMAX
=0
26634 if test $ac_cv_func_strtoimax = yes; then
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26637 $as_echo_n "checking whether strtoimax works... " >&6; }
26638 if test "${gl_cv_func_strtoimax+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26641 if test "$cross_compiling" = yes; then :
26643 # Guess no on AIX 5.
26644 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26645 # Guess yes otherwise.
26646 *) gl_cv_func_strtoimax
="guessing yes" ;;
26650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26654 #include <string.h>
26655 #include <inttypes.h>
26658 if (sizeof (intmax_t) > sizeof (int))
26660 const char *s = "4294967295";
26664 res = strtoimax (s, &p, 10);
26665 if (p != s + strlen (s))
26669 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26674 const char *s = "2147483647";
26678 res = strtoimax (s, &p, 10);
26679 if (p != s + strlen (s))
26683 if (res != 2147483647)
26690 if ac_fn_c_try_run
"$LINENO"; then :
26691 gl_cv_func_strtoimax
=yes
26693 gl_cv_func_strtoimax
=no
26695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26702 $as_echo "$gl_cv_func_strtoimax" >&6; }
26703 case "$gl_cv_func_strtoimax" in
26704 *no
) REPLACE_STRTOIMAX
=1 ;;
26710 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26719 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26722 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26723 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26729 cat >>confdefs.h
<<_ACEOF
26730 #define HAVE_DECL_STRTOLL $ac_have_decl
26751 if test "$ac_cv_have_decl_strtoumax" != yes; then
26752 HAVE_DECL_STRTOUMAX
=0
26755 if test $ac_cv_func_strtoumax = no
; then
26764 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26767 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26768 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26774 cat >>confdefs.h
<<_ACEOF
26775 #define HAVE_DECL_STRTOULL $ac_have_decl
26794 if test $ac_cv_func_symlink = no
; then
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26798 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26799 if test "${gl_cv_func_symlink_works+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26802 if test "$cross_compiling" = yes; then :
26804 # Guess yes on glibc systems.
26805 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26806 # If we don't know, assume the worst.
26807 *) gl_cv_func_symlink_works
="guessing no" ;;
26811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26813 #include <unistd.h>
26819 if (!symlink ("a", "conftest.link/"))
26821 if (symlink ("conftest.f", "conftest.lnk2"))
26823 else if (!symlink ("a", "conftest.lnk2/"))
26831 if ac_fn_c_try_run
"$LINENO"; then :
26832 gl_cv_func_symlink_works
=yes
26834 gl_cv_func_symlink_works
=no
26836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26840 rm -f conftest.f conftest.link conftest.lnk2
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26843 $as_echo "$gl_cv_func_symlink_works" >&6; }
26844 case "$gl_cv_func_symlink_works" in
26852 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26861 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26879 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26880 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26881 $as_echo_n "(cached) " >&6
26884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h. */
26886 #include <sys/select.h>
26895 if ac_fn_c_try_compile
"$LINENO"; then :
26896 gl_cv_header_sys_select_h_selfcontained
=yes
26898 gl_cv_header_sys_select_h_selfcontained
=no
26900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26901 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26903 /* end confdefs.h. */
26904 #include <sys/select.h>
26908 int memset; int bzero;
26914 if ac_fn_c_try_compile
"$LINENO"; then :
26915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h. */
26917 #include <sys/select.h>
26923 #define memset nonexistent_memset
26928 void *memset (void *, int, unsigned long);
26930 #define bzero nonexistent_bzero
26935 void bzero (void *, unsigned long);
26944 if ac_fn_c_try_link
"$LINENO"; then :
26947 gl_cv_header_sys_select_h_selfcontained
=no
26949 rm -f core conftest.err conftest.
$ac_objext \
26950 conftest
$ac_exeext conftest.
$ac_ext
26953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26958 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26968 if test $gl_cv_have_include_next = yes; then
26969 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26972 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26973 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26974 $as_echo_n "(cached) " >&6
26977 if test $ac_cv_header_sys_select_h = yes; then
26980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26981 /* end confdefs.h. */
26982 #include <sys/select.h>
26986 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26987 *) gl_absname_cpp
="$ac_cpp" ;;
26992 gl_dirsep_regex
='[/\\]'
26995 gl_dirsep_regex
='\/'
26998 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27000 gl_header_literal_regex
=`echo 'sys/select.h' \
27001 | sed -e "$gl_make_literal_regex_sed"`
27002 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27003 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27008 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27009 sed -n "$gl_absolute_header_sed"`'"'
27011 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27017 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27019 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
27021 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27023 gl_next_as_first_directive
='<'sys
/select.h
'>'
27025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27026 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
27028 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
27033 if test $ac_cv_header_sys_select_h = yes; then
27034 HAVE_SYS_SELECT_H
=1
27036 HAVE_SYS_SELECT_H
=0
27043 if test $ac_cv_header_sys_socket_h != yes; then
27044 for ac_header
in winsock2.h
27046 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27047 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
27048 cat >>confdefs.h
<<_ACEOF
27049 #define HAVE_WINSOCK2_H 1
27057 if test "$ac_cv_header_winsock2_h" = yes; then
27059 UNISTD_H_HAVE_WINSOCK2_H
=1
27060 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27084 if test $gl_cv_have_include_next = yes; then
27085 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27088 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27089 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27093 if test $ac_cv_header_sys_stat_h = yes; then
27096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27098 #include <sys/stat.h>
27102 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27103 *) gl_absname_cpp
="$ac_cpp" ;;
27108 gl_dirsep_regex
='[/\\]'
27111 gl_dirsep_regex
='\/'
27114 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27116 gl_header_literal_regex
=`echo 'sys/stat.h' \
27117 | sed -e "$gl_make_literal_regex_sed"`
27118 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27124 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27125 sed -n "$gl_absolute_header_sed"`'"'
27127 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27133 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27135 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27137 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27139 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27142 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27144 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27156 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27158 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27162 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27163 #include <sys/stat.h>
27165 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27169 $as_echo "#define nlink_t int" >>confdefs.h
27190 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27192 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27198 cat >>confdefs.h
<<_ACEOF
27199 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27202 if test $ac_cv_have_decl_localtime_r = no
; then
27203 HAVE_DECL_LOCALTIME_R
=0
27207 if test $ac_cv_func_localtime_r = yes; then
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27210 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27211 if test "${gl_cv_time_r_posix+set}" = set; then :
27212 $as_echo_n "(cached) " >&6
27214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27215 /* end confdefs.h. */
27220 /* We don't need to append 'restrict's to the argument types,
27221 even though the POSIX signature has the 'restrict's,
27222 since C99 says they can't affect type compatibility. */
27223 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27225 /* Check the return type is a pointer.
27226 On HP-UX 10 it is 'int'. */
27227 *localtime_r (0, 0);
27233 if ac_fn_c_try_compile
"$LINENO"; then :
27234 gl_cv_time_r_posix
=yes
27236 gl_cv_time_r_posix
=no
27238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27242 $as_echo "$gl_cv_time_r_posix" >&6; }
27243 if test $gl_cv_time_r_posix = yes; then
27244 REPLACE_LOCALTIME_R
=0
27246 REPLACE_LOCALTIME_R
=1
27252 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27261 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27285 gl_saved_libs
=$LIBS
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27287 $as_echo_n "checking for library containing timer_settime... " >&6; }
27288 if test "${ac_cv_search_timer_settime+set}" = set; then :
27289 $as_echo_n "(cached) " >&6
27291 ac_func_search_save_LIBS
=$LIBS
27292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27301 char timer_settime ();
27305 return timer_settime ();
27310 for ac_lib
in '' rt posix4
; do
27311 if test -z "$ac_lib"; then
27312 ac_res
="none required"
27315 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27317 if ac_fn_c_try_link
"$LINENO"; then :
27318 ac_cv_search_timer_settime
=$ac_res
27320 rm -f core conftest.err conftest.
$ac_objext \
27322 if test "${ac_cv_search_timer_settime+set}" = set; then :
27326 if test "${ac_cv_search_timer_settime+set}" = set; then :
27329 ac_cv_search_timer_settime
=no
27331 rm conftest.
$ac_ext
27332 LIBS
=$ac_func_search_save_LIBS
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27335 $as_echo "$ac_cv_search_timer_settime" >&6; }
27336 ac_res
=$ac_cv_search_timer_settime
27337 if test "$ac_res" != no
; then :
27338 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27339 test "$ac_cv_search_timer_settime" = "none required" ||
27340 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27344 /* end confdefs.h. */
27346 #include <features.h>
27347 #ifdef __GNU_LIBRARY__
27348 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27349 && !defined __UCLIBC__
27350 Thread emulation available
27355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27356 $EGREP "Thread" >/dev
/null
2>&1; then :
27357 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27361 for ac_func
in timer_settime
27363 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27364 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27365 cat >>confdefs.h
<<_ACEOF
27366 #define HAVE_TIMER_SETTIME 1
27372 LIBS
=$gl_saved_libs
27387 if test $gl_cv_have_include_next = yes; then
27388 gl_cv_next_unistd_h
='<'unistd.h
'>'
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27391 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27392 if test "${gl_cv_next_unistd_h+set}" = set; then :
27393 $as_echo_n "(cached) " >&6
27396 if test $ac_cv_header_unistd_h = yes; then
27399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h. */
27401 #include <unistd.h>
27405 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27406 *) gl_absname_cpp
="$ac_cpp" ;;
27411 gl_dirsep_regex
='[/\\]'
27414 gl_dirsep_regex
='\/'
27417 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27419 gl_header_literal_regex
=`echo 'unistd.h' \
27420 | sed -e "$gl_make_literal_regex_sed"`
27421 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27422 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27427 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27428 sed -n "$gl_absolute_header_sed"`'"'
27430 gl_cv_next_unistd_h
='<'unistd.h
'>'
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27436 $as_echo "$gl_cv_next_unistd_h" >&6; }
27438 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27440 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27442 gl_next_as_first_directive
='<'unistd.h
'>'
27444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27445 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27447 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27452 if test $ac_cv_header_unistd_h = yes; then
27468 if test $ac_cv_have_decl_unsetenv = no
; then
27469 HAVE_DECL_UNSETENV
=0
27471 for ac_func
in unsetenv
27473 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27474 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27475 cat >>confdefs.h
<<_ACEOF
27476 #define HAVE_UNSETENV 1
27482 if test $ac_cv_func_unsetenv = no
; then
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27487 $as_echo_n "checking for unsetenv() return type... " >&6; }
27488 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27489 $as_echo_n "(cached) " >&6
27491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27495 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27496 #include <stdlib.h>
27501 int unsetenv (const char *name);
27511 if ac_fn_c_try_compile
"$LINENO"; then :
27512 gt_cv_func_unsetenv_ret
='int'
27514 gt_cv_func_unsetenv_ret
='void'
27516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27519 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27520 if test $gt_cv_func_unsetenv_ret = 'void'; then
27522 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27528 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27529 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27530 $as_echo_n "(cached) " >&6
27532 if test "$cross_compiling" = yes; then :
27534 # Guess yes on glibc systems.
27535 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27536 # If we don't know, assume the worst.
27537 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27544 #include <stdlib.h>
27546 extern char **environ;
27552 char entry1[] = "a=1";
27553 char entry2[] = "b=2";
27554 char *env[] = { entry1, entry2, NULL };
27555 if (putenv ((char *) "a=1")) return 1;
27556 if (putenv (entry2)) return 2;
27559 if (getenv ("a")) return 3;
27560 if (!unsetenv ("") || errno != EINVAL) return 4;
27563 if (!getenv ("a")) return 5;
27566 if (getenv ("a")) return 6;
27572 if ac_fn_c_try_run
"$LINENO"; then :
27573 gl_cv_func_unsetenv_works
=yes
27575 gl_cv_func_unsetenv_works
=no
27577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27583 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27584 case "$gl_cv_func_unsetenv_works" in
27592 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27601 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27625 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27627 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27628 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27629 $as_echo_n "(cached) " >&6
27631 touch conftest.
file
27632 if test "$cross_compiling" = yes; then :
27634 # Guess yes on glibc systems.
27635 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27636 # If we don't know, assume the worst.
27637 *) gl_cv_func_futimesat_works
="guessing no" ;;
27641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27642 /* end confdefs.h. */
27644 #include <stddef.h>
27645 #include <sys/times.h>
27651 int fd = open ("conftest.file", O_RDWR);
27652 if (fd < 0) return 1;
27653 if (futimesat (fd, NULL, NULL)) return 2;
27659 if ac_fn_c_try_run
"$LINENO"; then :
27660 gl_cv_func_futimesat_works
=yes
27662 gl_cv_func_futimesat_works
=no
27664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27668 rm -f conftest.
file
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27671 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27672 case "$gl_cv_func_futimesat_works" in
27676 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27682 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27683 gl_gnulib_enabled_dosname
=false
27684 gl_gnulib_enabled_euidaccess
=false
27685 gl_gnulib_enabled_getdtablesize
=false
27686 gl_gnulib_enabled_getgroups
=false
27687 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27688 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27689 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27690 gl_gnulib_enabled_pathmax
=false
27691 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27692 gl_gnulib_enabled_secure_getenv
=false
27693 gl_gnulib_enabled_stat
=false
27694 gl_gnulib_enabled_strtoll
=false
27695 gl_gnulib_enabled_strtoull
=false
27696 gl_gnulib_enabled_tempname
=false
27697 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27698 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27700 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27709 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27711 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27714 func_gl_gnulib_m4code_dosname
()
27716 if ! $gl_gnulib_enabled_dosname; then
27717 gl_gnulib_enabled_dosname
=true
27720 func_gl_gnulib_m4code_euidaccess
()
27722 if ! $gl_gnulib_enabled_euidaccess; then
27728 for ac_func
in euidaccess
27730 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27731 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27732 cat >>confdefs.h
<<_ACEOF
27733 #define HAVE_EUIDACCESS 1
27739 if test $ac_cv_func_euidaccess = no
; then
27743 if test $HAVE_EUIDACCESS = 0; then
27752 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27756 for ac_header
in libgen.h
27758 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27759 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27760 cat >>confdefs.h
<<_ACEOF
27761 #define HAVE_LIBGEN_H 1
27769 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27770 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27775 # If we don't yet have getgroups, see if it's in -lbsd.
27776 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27778 if test $ac_cv_func_getgroups = no
; then
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27780 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27781 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27782 $as_echo_n "(cached) " >&6
27784 ac_check_lib_save_LIBS
=$LIBS
27786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27787 /* end confdefs.h. */
27789 /* Override any GCC internal prototype to avoid an error.
27790 Use char because int might match the return type of a GCC
27791 builtin and then its argument prototype would still apply. */
27799 return getgroups ();
27804 if ac_fn_c_try_link
"$LINENO"; then :
27805 ac_cv_lib_bsd_getgroups
=yes
27807 ac_cv_lib_bsd_getgroups
=no
27809 rm -f core conftest.err conftest.
$ac_objext \
27810 conftest
$ac_exeext conftest.
$ac_ext
27811 LIBS
=$ac_check_lib_save_LIBS
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27814 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27815 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27816 GETGROUPS_LIB
=-lbsd
27821 # Run the program to test the functionality of the system-supplied
27822 # getgroups function only if there is such a function.
27823 if test $ac_cv_func_getgroups = yes; then
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27825 $as_echo_n "checking for working getgroups... " >&6; }
27826 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27827 $as_echo_n "(cached) " >&6
27829 if test "$cross_compiling" = yes; then :
27830 case "$host_os" in # ((
27831 # Guess yes on glibc systems.
27832 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27833 # If we don't know, assume the worst.
27834 *) ac_cv_func_getgroups_works
="guessing no" ;;
27838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27839 /* end confdefs.h. */
27840 $ac_includes_default
27844 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27845 return getgroups (0, 0) == -1;
27851 if ac_fn_c_try_run
"$LINENO"; then :
27852 ac_cv_func_getgroups_works
=yes
27854 ac_cv_func_getgroups_works
=no
27856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27863 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27865 ac_cv_func_getgroups_works
=no
27867 case "$ac_cv_func_getgroups_works" in
27870 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27877 # Solaris 9 and 10 need -lgen to get the eaccess function.
27878 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27879 # programs in the package would end up linked with that potentially-shared
27880 # library, inducing unnecessary run-time overhead.
27883 gl_saved_libs
=$LIBS
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27885 $as_echo_n "checking for library containing eaccess... " >&6; }
27886 if test "${ac_cv_search_eaccess+set}" = set; then :
27887 $as_echo_n "(cached) " >&6
27889 ac_func_search_save_LIBS
=$LIBS
27890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27891 /* end confdefs.h. */
27893 /* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27908 for ac_lib
in '' gen
; do
27909 if test -z "$ac_lib"; then
27910 ac_res
="none required"
27913 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27915 if ac_fn_c_try_link
"$LINENO"; then :
27916 ac_cv_search_eaccess
=$ac_res
27918 rm -f core conftest.err conftest.
$ac_objext \
27920 if test "${ac_cv_search_eaccess+set}" = set; then :
27924 if test "${ac_cv_search_eaccess+set}" = set; then :
27927 ac_cv_search_eaccess
=no
27929 rm conftest.
$ac_ext
27930 LIBS
=$ac_func_search_save_LIBS
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27933 $as_echo "$ac_cv_search_eaccess" >&6; }
27934 ac_res
=$ac_cv_search_eaccess
27935 if test "$ac_res" != no
; then :
27936 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27937 test "$ac_cv_search_eaccess" = "none required" ||
27938 LIB_EACCESS
=$ac_cv_search_eaccess
27941 for ac_func
in eaccess
27943 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27944 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27945 cat >>confdefs.h
<<_ACEOF
27946 #define HAVE_EACCESS 1
27952 LIBS
=$gl_saved_libs
27960 GNULIB_EUIDACCESS
=1
27966 gl_gnulib_enabled_euidaccess
=true
27967 if test $HAVE_EUIDACCESS = 0; then
27968 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27970 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27971 if test $HAVE_EUIDACCESS = 0; then
27972 func_gl_gnulib_m4code_stat
27976 func_gl_gnulib_m4code_getdtablesize
()
27978 if ! $gl_gnulib_enabled_getdtablesize; then
27982 if test $ac_cv_func_getdtablesize != yes; then
27983 HAVE_GETDTABLESIZE
=0
27986 if test $HAVE_GETDTABLESIZE = 0; then
27995 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
28004 GNULIB_GETDTABLESIZE
=1
28010 gl_gnulib_enabled_getdtablesize
=true
28013 func_gl_gnulib_m4code_getgroups
()
28015 if ! $gl_gnulib_enabled_getgroups; then
28021 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
28022 if test "x$ac_cv_func_getgroups" = x
""yes; then :
28027 # If we don't yet have getgroups, see if it's in -lbsd.
28028 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28030 if test $ac_cv_func_getgroups = no
; then
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28032 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28033 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28034 $as_echo_n "(cached) " >&6
28036 ac_check_lib_save_LIBS
=$LIBS
28038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28039 /* end confdefs.h. */
28041 /* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28051 return getgroups ();
28056 if ac_fn_c_try_link
"$LINENO"; then :
28057 ac_cv_lib_bsd_getgroups
=yes
28059 ac_cv_lib_bsd_getgroups
=no
28061 rm -f core conftest.err conftest.
$ac_objext \
28062 conftest
$ac_exeext conftest.
$ac_ext
28063 LIBS
=$ac_check_lib_save_LIBS
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28066 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28067 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
28068 GETGROUPS_LIB
=-lbsd
28073 # Run the program to test the functionality of the system-supplied
28074 # getgroups function only if there is such a function.
28075 if test $ac_cv_func_getgroups = yes; then
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28077 $as_echo_n "checking for working getgroups... " >&6; }
28078 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28079 $as_echo_n "(cached) " >&6
28081 if test "$cross_compiling" = yes; then :
28082 case "$host_os" in # ((
28083 # Guess yes on glibc systems.
28084 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
28085 # If we don't know, assume the worst.
28086 *) ac_cv_func_getgroups_works
="guessing no" ;;
28090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28091 /* end confdefs.h. */
28092 $ac_includes_default
28096 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28097 return getgroups (0, 0) == -1;
28103 if ac_fn_c_try_run
"$LINENO"; then :
28104 ac_cv_func_getgroups_works
=yes
28106 ac_cv_func_getgroups_works
=no
28108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28115 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28117 ac_cv_func_getgroups_works
=no
28119 case "$ac_cv_func_getgroups_works" in
28122 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28128 if test $ac_cv_func_getgroups != yes; then
28131 if test "$ac_cv_type_getgroups" != gid_t \
28132 ||
{ case "$ac_cv_func_getgroups_works" in
28137 REPLACE_GETGROUPS
=1
28139 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28143 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28144 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28145 $as_echo_n "(cached) " >&6
28147 if test "$cross_compiling" = yes; then :
28149 # Guess yes on glibc systems.
28150 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28151 # If we don't know, assume the worst.
28152 *) gl_cv_func_getgroups_works
="guessing no" ;;
28156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28157 /* end confdefs.h. */
28158 $ac_includes_default
28162 int size = getgroups (0, 0);
28163 gid_t *list = malloc (size * sizeof *list);
28164 return getgroups (-1, list) != -1;
28169 if ac_fn_c_try_run
"$LINENO"; then :
28170 gl_cv_func_getgroups_works
=yes
28172 gl_cv_func_getgroups_works
=no
28174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28180 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28181 case "$gl_cv_func_getgroups_works" in
28183 *) REPLACE_GETGROUPS
=1 ;;
28187 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28189 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28198 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28212 gl_gnulib_enabled_getgroups
=true
28215 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28217 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28220 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28223 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28225 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28231 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28232 if test "x$ac_cv_func_group_member" = x
""yes; then :
28236 HAVE_GROUP_MEMBER
=0
28241 if test $HAVE_GROUP_MEMBER = 0; then
28250 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28261 GNULIB_GROUP_MEMBER
=1
28267 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28268 if test $HAVE_GROUP_MEMBER = 0; then
28269 func_gl_gnulib_m4code_getgroups
28271 if test $HAVE_GROUP_MEMBER = 0; then
28272 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28276 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28278 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28279 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28282 func_gl_gnulib_m4code_pathmax
()
28284 if ! $gl_gnulib_enabled_pathmax; then
28288 gl_gnulib_enabled_pathmax
=true
28291 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28293 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28294 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28297 func_gl_gnulib_m4code_secure_getenv
()
28299 if ! $gl_gnulib_enabled_secure_getenv; then
28305 if test $ac_cv_func_secure_getenv = no
; then
28306 HAVE_SECURE_GETENV
=0
28309 if test $HAVE_SECURE_GETENV = 0; then
28318 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28321 for ac_func
in __secure_getenv
28323 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28324 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28325 cat >>confdefs.h
<<_ACEOF
28326 #define HAVE___SECURE_GETENV 1
28332 if test $ac_cv_func___secure_getenv = no
; then
28333 for ac_func
in issetugid
28335 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28336 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28337 cat >>confdefs.h
<<_ACEOF
28338 #define HAVE_ISSETUGID 1
28352 GNULIB_SECURE_GETENV
=1
28358 gl_gnulib_enabled_secure_getenv
=true
28361 func_gl_gnulib_m4code_stat
()
28363 if ! $gl_gnulib_enabled_stat; then
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28368 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28369 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28370 $as_echo_n "(cached) " >&6
28372 if test "$cross_compiling" = yes; then :
28374 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28375 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h. */
28380 #include <sys/stat.h>
28385 struct stat st; return stat (".", &st) != stat ("./", &st);
28390 if ac_fn_c_try_run
"$LINENO"; then :
28391 gl_cv_func_stat_dir_slash
=yes
28393 gl_cv_func_stat_dir_slash
=no
28395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28401 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28403 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28404 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28405 $as_echo_n "(cached) " >&6
28408 # Assume that if we have lstat, we can also check symlinks.
28409 if test $ac_cv_func_lstat = yes; then
28410 ln -s conftest.tmp conftest.lnk
28412 if test "$cross_compiling" = yes; then :
28414 # Guess yes on glibc systems.
28415 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28416 # If we don't know, assume the worst.
28417 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28422 /* end confdefs.h. */
28423 #include <sys/stat.h>
28430 if (!stat ("conftest.tmp/", &st))
28433 if (!stat ("conftest.lnk/", &st))
28442 if ac_fn_c_try_run
"$LINENO"; then :
28443 gl_cv_func_stat_file_slash
=yes
28445 gl_cv_func_stat_file_slash
=no
28447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28451 rm -f conftest.tmp conftest.lnk
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28454 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28455 case $gl_cv_func_stat_dir_slash in
28456 *no
) REPLACE_STAT
=1
28458 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28461 case $gl_cv_func_stat_file_slash in
28462 *no
) REPLACE_STAT
=1
28464 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28468 if test $REPLACE_STAT = 1; then
28477 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28492 gl_gnulib_enabled_stat
=true
28493 if test $REPLACE_STAT = 1; then
28494 func_gl_gnulib_m4code_dosname
28496 if test $REPLACE_STAT = 1; then
28497 func_gl_gnulib_m4code_pathmax
28501 func_gl_gnulib_m4code_strtoll
()
28503 if ! $gl_gnulib_enabled_strtoll; then
28507 if test "$ac_cv_type_long_long_int" = yes; then
28508 for ac_func
in strtoll
28510 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28511 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28512 cat >>confdefs.h
<<_ACEOF
28513 #define HAVE_STRTOLL 1
28519 if test $ac_cv_func_strtoll = no
; then
28524 if test $HAVE_STRTOLL = 0; then
28533 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28550 gl_gnulib_enabled_strtoll
=true
28553 func_gl_gnulib_m4code_strtoull
()
28555 if ! $gl_gnulib_enabled_strtoull; then
28559 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28560 for ac_func
in strtoull
28562 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28563 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28564 cat >>confdefs.h
<<_ACEOF
28565 #define HAVE_STRTOULL 1
28571 if test $ac_cv_func_strtoull = no
; then
28576 if test $HAVE_STRTOULL = 0; then
28585 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28602 gl_gnulib_enabled_strtoull
=true
28605 func_gl_gnulib_m4code_tempname
()
28607 if ! $gl_gnulib_enabled_tempname; then
28613 gl_gnulib_enabled_tempname
=true
28614 func_gl_gnulib_m4code_secure_getenv
28617 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28619 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28620 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28623 if test $HAVE_FACCESSAT = 0; then
28624 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28626 if test $HAVE_FACCESSAT = 0; then
28627 func_gl_gnulib_m4code_dosname
28629 if test $HAVE_FACCESSAT = 0; then
28630 func_gl_gnulib_m4code_euidaccess
28632 if test $HAVE_FACCESSAT = 0; then
28633 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28635 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
28636 func_gl_gnulib_m4code_getdtablesize
28638 if test $HAVE_FDOPENDIR = 0; then
28639 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28641 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28642 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28644 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28645 func_gl_gnulib_m4code_dosname
28647 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28648 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28650 if test $REPLACE_GETOPT = 1; then
28651 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28653 if test $REPLACE_LSTAT = 1; then
28654 func_gl_gnulib_m4code_dosname
28656 if test $REPLACE_LSTAT = 1; then
28657 func_gl_gnulib_m4code_stat
28659 if test $HAVE_MKOSTEMP = 0; then
28660 func_gl_gnulib_m4code_tempname
28662 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28663 func_gl_gnulib_m4code_stat
28665 if test $HAVE_READLINKAT = 0; then
28666 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28668 if test $HAVE_READLINKAT = 0; then
28669 func_gl_gnulib_m4code_dosname
28671 if test $HAVE_READLINKAT = 0; then
28672 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28674 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28675 func_gl_gnulib_m4code_strtoll
28677 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28678 func_gl_gnulib_m4code_strtoull
28681 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28682 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28683 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28685 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28686 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28689 if $gl_gnulib_enabled_dosname; then
28690 gl_GNULIB_ENABLED_dosname_TRUE
=
28691 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28693 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28694 gl_GNULIB_ENABLED_dosname_FALSE
=
28697 if $gl_gnulib_enabled_euidaccess; then
28698 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28699 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28701 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28702 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28705 if $gl_gnulib_enabled_getdtablesize; then
28706 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
28707 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
28709 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
28710 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
28713 if $gl_gnulib_enabled_getgroups; then
28714 gl_GNULIB_ENABLED_getgroups_TRUE
=
28715 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28717 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28718 gl_GNULIB_ENABLED_getgroups_FALSE
=
28721 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28722 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28723 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28725 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28726 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28729 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28730 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28731 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28733 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28734 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28737 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28738 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28739 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28741 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28742 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28745 if $gl_gnulib_enabled_pathmax; then
28746 gl_GNULIB_ENABLED_pathmax_TRUE
=
28747 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28749 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28750 gl_GNULIB_ENABLED_pathmax_FALSE
=
28753 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28754 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28755 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28757 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28758 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28761 if $gl_gnulib_enabled_secure_getenv; then
28762 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
28763 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
28765 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
28766 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
28769 if $gl_gnulib_enabled_stat; then
28770 gl_GNULIB_ENABLED_stat_TRUE
=
28771 gl_GNULIB_ENABLED_stat_FALSE
='#'
28773 gl_GNULIB_ENABLED_stat_TRUE
='#'
28774 gl_GNULIB_ENABLED_stat_FALSE
=
28777 if $gl_gnulib_enabled_strtoll; then
28778 gl_GNULIB_ENABLED_strtoll_TRUE
=
28779 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28781 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28782 gl_GNULIB_ENABLED_strtoll_FALSE
=
28785 if $gl_gnulib_enabled_strtoull; then
28786 gl_GNULIB_ENABLED_strtoull_TRUE
=
28787 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28789 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28790 gl_GNULIB_ENABLED_strtoull_FALSE
=
28793 if $gl_gnulib_enabled_tempname; then
28794 gl_GNULIB_ENABLED_tempname_TRUE
=
28795 gl_GNULIB_ENABLED_tempname_FALSE
='#'
28797 gl_GNULIB_ENABLED_tempname_TRUE
='#'
28798 gl_GNULIB_ENABLED_tempname_FALSE
=
28801 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28802 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28803 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28805 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28806 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28809 # End of code from modules
28830 gl_source_base
='tests'
28831 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
28833 gl_module_indicator_condition
=$gltests_WITNESS
28844 LIBGNU_LIBDEPS
="$gl_libdeps"
28846 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28849 CFLAGS
=$SAVE_CFLAGS
28852 if test "${opsys}" = "mingw32"; then
28853 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28854 # Remove unneeded switches from the value of CC that goes to Makefiles
28855 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28859 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28862 ## The -headerpad option tells ld (see man page) to leave room at the
28863 ## end of the header for adding load commands. Needed for dumping.
28864 ## 0x690 is the total size of 30 segment load commands (at 56
28865 ## each); under Cocoa 31 commands are required.
28866 if test "$HAVE_NS" = "yes"; then
28867 libs_nsgui
="-framework AppKit"
28868 if test "$NS_IMPL_COCOA" = "yes"; then
28869 libs_nsgui
="$libs_nsgui -framework IOKit"
28871 headerpad_extra
=6C8
28874 headerpad_extra
=690
28876 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28878 ## This is here because src/Makefile.in did some extra fiddling around
28879 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28880 ## LD_SWITCH_SYSTEM_TEMACS instead,
28881 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28882 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28885 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28886 ## find X at run-time.
28887 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28888 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28889 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28890 ## had different values in configure (in ac_link) and src/Makefile.in.
28891 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28892 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28895 ## MinGW64 does not prepend an underscore to symbols, so we must
28896 ## pass a different -entry switch to linker. FIXME: It is better
28897 ## to make the entry points the same by changing unexw32.c.
28898 case "$canonical" in
28899 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28900 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28904 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28906 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28909 if test x
$ac_enable_profiling != x
; then
28911 *freebsd | gnu-linux
) ;;
28912 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28918 ## MinGW-specific post-link processing of temacs.
28919 TEMACS_POST_LINK
=":"
28922 if test "${opsys}" = "mingw32"; then
28923 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28924 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28925 ## Preload heap size of temacs.exe in MB.
28926 case "$canonical" in
28927 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28928 *) EMACS_HEAPSIZE
=27 ;;
28936 ## Common for all window systems
28937 if test "$window_system" != "none"; then
28939 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28941 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28948 #### Report on what we decided to do.
28949 #### Report GTK as a toolkit, even if it doesn't use Xt.
28950 #### It makes printing result more understandable as using GTK sets
28951 #### toolkit_scroll_bars to yes by default.
28952 if test "${HAVE_GTK}" = "yes"; then
28953 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28956 if test $USE_ACL -ne 0; then
28957 acl_summary
="yes $LIB_ACL"
28963 Configured for \`${canonical}'.
28965 Where should the build process find the source code? ${srcdir}
28966 What compiler should emacs be built with? ${CC} ${CFLAGS}
28967 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28968 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28969 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28970 What window system should Emacs use? ${window_system}
28971 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28973 if test -n "${x_includes}"; then
28974 echo " Where do we find X Windows header files? ${x_includes}"
28976 echo " Where do we find X Windows header files? Standard dirs"
28978 if test -n "${x_libraries}"; then
28979 echo " Where do we find X Windows libraries? ${x_libraries}"
28981 echo " Where do we find X Windows libraries? Standard dirs"
28984 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28985 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28986 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28987 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28988 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28989 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28990 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28991 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28993 echo " Does Emacs support sound? ${HAVE_SOUND}"
28995 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28996 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28997 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28998 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28999 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29000 echo " Does Emacs use access control lists? ${acl_summary}"
29001 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29002 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29003 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29005 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29006 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29007 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29008 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29009 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29011 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29014 if test -n "${EMACSDATA}"; then
29015 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29017 if test -n "${EMACSDOC}"; then
29018 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29023 if test "$HAVE_NS" = "yes"; then
29025 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29026 The installed application will go to nextstep/Emacs.app and can be
29027 run or moved from there."
29028 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29029 echo "The application will be fully self-contained."
29031 echo "The lisp resources for the application will be installed under ${prefix}.
29032 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29033 to run if these resources are not installed."
29038 if test "${opsys}" = "cygwin"; then
29040 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29041 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29047 # Remove any trailing slashes in these variables.
29048 test "${prefix}" != NONE
&&
29049 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29050 test "${exec_prefix}" != NONE
&&
29051 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29053 if test "$HAVE_NS" = "yes"; then
29054 if test "$NS_IMPL_GNUSTEP" = yes; then
29055 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"
29057 ns_check_file
=Resources
/Info-gnustep.plist
29059 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"
29061 ns_check_file
=Contents
/Info.plist
29066 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 nt/Makefile"
29068 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 nt/Makefile"
29071 opt_makefile
=test
/automated
/Makefile
29073 if test -f "$srcdir/$opt_makefile.in"; then
29074 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29075 ac_config_files
="$ac_config_files test/automated/Makefile"
29080 opt_makefile
=admin
/unidata
/Makefile
29082 if test -f "$srcdir/$opt_makefile.in"; then
29083 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
29084 ac_config_files
="$ac_config_files admin/unidata/Makefile"
29089 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29093 ac_config_commands
="$ac_config_commands src/epaths.h"
29096 ac_config_commands
="$ac_config_commands src/.gdbinit"
29099 cat >confcache
<<\_ACEOF
29100 # This file is a shell script that caches the results of configure
29101 # tests run on this system so they can be shared between configure
29102 # scripts and configure runs, see configure's option --config-cache.
29103 # It is not useful on other systems. If it contains results you don't
29104 # want to keep, you may remove or edit it.
29106 # config.status only pays attention to the cache file if you give it
29107 # the --recheck option to rerun configure.
29109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29111 # following values.
29115 # The following way of writing the cache mishandles newlines in values,
29116 # but we know of no workaround that is simple, portable, and efficient.
29117 # So, we kill variables containing newlines.
29118 # Ultrix sh set writes to stderr and can't be redirected directly,
29119 # and sets the high bit in the cache file unless we assign to the vars.
29121 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29122 eval ac_val
=\$
$ac_var
29126 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29130 _ | IFS | as_nl
) ;; #(
29131 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29132 *) { eval $ac_var=; unset $ac_var;} ;;
29138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29139 *${as_nl}ac_space
=\
*)
29140 # `set' does not quote correctly, so add quotes: double-quote
29141 # substitution turns \\\\ into \\, and sed turns \\ into \.
29144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29147 # `set' quotes correctly as required by POSIX, so do not add quotes.
29148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29161 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29162 if test -w "$cache_file"; then
29163 test "x$cache_file" != "x/dev/null" &&
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29165 $as_echo "$as_me: updating cache $cache_file" >&6;}
29166 cat confcache
>$cache_file
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29169 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29174 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29175 # Let make expand exec_prefix.
29176 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29178 DEFS
=-DHAVE_CONFIG_H
29182 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29183 # 1. Remove the extension, and $U if already installed.
29184 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29185 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29187 # will be set to the directory where LIBOBJS objects are built.
29188 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29189 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29191 LIBOBJS
=$ac_libobjs
29193 LTLIBOBJS
=$ac_ltlibobjs
29196 if test -n "$EXEEXT"; then
29198 am__EXEEXT_FALSE
='#'
29200 am__EXEEXT_TRUE
='#'
29204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29205 as_fn_error
"conditional \"AMDEP\" was never defined.
29206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29209 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29212 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29213 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29216 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29217 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29220 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29221 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29225 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29226 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29229 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29230 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29233 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29234 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29237 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29238 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29241 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29242 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29245 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29246 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29249 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29250 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29253 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29254 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29257 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29258 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29261 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29262 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29265 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29266 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29269 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29270 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29273 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29274 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29277 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29278 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29281 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29282 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29285 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29286 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29289 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29290 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29293 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29294 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29297 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29298 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29301 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29302 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29305 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29306 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29309 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29310 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29313 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29314 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29320 if test -n "$gl_LIBOBJS"; then
29321 # Remove the extension.
29322 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29323 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29324 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29325 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29328 gl_LIBOBJS
=$gl_libobjs
29330 gl_LTLIBOBJS
=$gl_ltlibobjs
29336 if test -n "$gltests_LIBOBJS"; then
29337 # Remove the extension.
29338 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29339 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29340 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29341 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29344 gltests_LIBOBJS
=$gltests_libobjs
29346 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29350 : ${CONFIG_STATUS=./config.status}
29352 ac_clean_files_save
=$ac_clean_files
29353 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29355 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29357 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29359 # Generated by $as_me.
29360 # Run this file to recreate the current configuration.
29361 # Compiler output produced by configure, useful for debugging
29362 # configure, is in config.log if it exists.
29365 ac_cs_recheck=false
29368 SHELL=\${CONFIG_SHELL-$SHELL}
29371 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29372 ## -------------------- ##
29373 ## M4sh Initialization. ##
29374 ## -------------------- ##
29376 # Be more Bourne compatible
29377 DUALCASE
=1; export DUALCASE
# for MKS sh
29378 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29382 # is contrary to our usage. Disable this feature.
29383 alias -g '${1+"$@"}'='"$@"'
29384 setopt NO_GLOB_SUBST
29386 case `(set -o) 2>/dev/null` in #(
29398 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29399 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29402 # Prefer a ksh shell builtin over an external printf program on Solaris,
29403 # but without wasting forks for bash or zsh.
29404 if test -z "$BASH_VERSION$ZSH_VERSION" \
29405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29406 as_echo='print
-r --'
29407 as_echo_n='print
-rn --'
29408 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29409 as_echo='printf %s
\n'
29410 as_echo_n='printf %s
'
29412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29413 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29414 as_echo_n='/usr
/ucb
/echo -n'
29416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29417 as_echo_n_body='eval
29421 expr "X$arg" : "X\\(.*\\)$as_nl";
29422 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29424 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29426 export as_echo_n_body
29427 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29429 export as_echo_body
29430 as_echo='sh
-c $as_echo_body as_echo
'
29433 # The user is always right.
29434 if test "${PATH_SEPARATOR+set}" != set; then
29436 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29437 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29444 # We need space, tab and new line, in precisely that order. Quoting is
29445 # there to prevent editors from complaining about space-tab.
29446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29447 # splitting by setting IFS to empty value.)
29450 # Find who we are. Look in the path if we contain no directory separator.
29452 *[\\/]* ) as_myself=$0 ;;
29453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29454 for as_dir in $PATH
29457 test -z "$as_dir" && as_dir=.
29458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29464 # We did not find ourselves, most probably we were run as `sh COMMAND'
29465 # in which case we are not to be found in the path.
29466 if test "x$as_myself" = x
; then
29469 if test ! -f "$as_myself"; then
29470 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29474 # Unset variables that we do not need and which cause bugs (e.g. in
29475 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29476 # suppresses any "Segmentation fault" message there. '((' could
29477 # trigger a bug in pdksh 5.2.14.
29478 for as_var
in BASH_ENV ENV MAIL MAILPATH
29479 do eval test x\
${$as_var+set} = xset \
29480 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29493 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29496 # as_fn_error ERROR [LINENO LOG_FD]
29497 # ---------------------------------
29498 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29499 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29500 # script with status $?, using 1 if that was 0.
29503 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29505 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29506 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29508 $as_echo "$as_me: error: $1" >&2
29509 as_fn_exit
$as_status
29513 # as_fn_set_status STATUS
29514 # -----------------------
29515 # Set $? to STATUS, without forking.
29516 as_fn_set_status
()
29519 } # as_fn_set_status
29521 # as_fn_exit STATUS
29522 # -----------------
29523 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29527 as_fn_set_status
$1
29533 # Portably unset VAR.
29536 { eval $1=; unset $1;}
29538 as_unset
=as_fn_unset
29539 # as_fn_append VAR VALUE
29540 # ----------------------
29541 # Append the text in VALUE to the end of the definition contained in VAR. Take
29542 # advantage of any shell optimizations that allow amortized linear growth over
29543 # repeated appends, instead of the typical quadratic growth present in naive
29545 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29546 eval 'as_fn_append ()
29557 # as_fn_arith ARG...
29558 # ------------------
29559 # Perform arithmetic evaluation on the ARGs, and store the result in the
29560 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29561 # must be portable across $(()) and expr.
29562 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29563 eval 'as_fn_arith ()
29570 as_val
=`expr "$@" || test $? -eq 1`
29575 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29576 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29582 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29583 as_basename
=basename
29588 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29594 as_me
=`$as_basename -- "$0" ||
29595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29596 X"$0" : 'X\(//\)$' \| \
29597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29599 sed '/^.*\/\([^/][^/]*\)\/*$/{
29613 # Avoid depending upon Character Ranges.
29614 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29615 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29616 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29617 as_cr_digits
='0123456789'
29618 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29620 ECHO_C
= ECHO_N
= ECHO_T
=
29621 case `echo -n x` in #(((((
29623 case `echo 'xy\c'` in
29624 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29626 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29633 rm -f conf$$ conf$$.exe conf$$.
file
29634 if test -d conf$$.dir
; then
29635 rm -f conf$$.dir
/conf$$.
file
29638 mkdir conf$$.dir
2>/dev
/null
29640 if (echo >conf$$.
file) 2>/dev
/null
; then
29641 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29643 # ... but there are two gotchas:
29644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29646 # In both cases, we have to default to `cp -p'.
29647 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29649 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29657 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29658 rmdir conf$$.dir
2>/dev
/null
29663 # Create "$as_dir" as a directory, including parents if necessary.
29668 -*) as_dir
=.
/$as_dir;;
29670 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29674 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29675 *) as_qdir
=$as_dir;;
29677 as_dirs
="'$as_qdir' $as_dirs"
29678 as_dir
=`$as_dirname -- "$as_dir" ||
29679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29680 X"$as_dir" : 'X\(//\)[^/]' \| \
29681 X"$as_dir" : 'X\(//\)$' \| \
29682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29683 $as_echo X"$as_dir" |
29684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29688 /^X\(\/\/\)[^/].*/{
29701 test -d "$as_dir" && break
29703 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29704 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29708 if mkdir
-p .
2>/dev
/null
; then
29709 as_mkdir_p
='mkdir -p "$as_dir"'
29711 test -d .
/-p && rmdir .
/-p
29715 if test -x / >/dev
/null
2>&1; then
29716 as_test_x
='test -x'
29718 if ls -dL / >/dev
/null
2>&1; then
29725 if test -d "$1"; then
29731 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29732 ???[sx]*):;;*)false;;esac;fi
29736 as_executable_p
=$as_test_x
29738 # Sed expression to map a string onto a valid CPP name.
29739 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29741 # Sed expression to map a string onto a valid variable name.
29742 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29746 ## ----------------------------------- ##
29747 ## Main body of $CONFIG_STATUS script. ##
29748 ## ----------------------------------- ##
29750 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29753 # Save the log message, to keep $0 and so on meaningful, and to
29754 # report actual input values of CONFIG_FILES etc. instead of their
29755 # values after options handling.
29757 This file was extended by emacs $as_me 24.3.50, which was
29758 generated by GNU Autoconf 2.65. Invocation command line was
29760 CONFIG_FILES = $CONFIG_FILES
29761 CONFIG_HEADERS = $CONFIG_HEADERS
29762 CONFIG_LINKS = $CONFIG_LINKS
29763 CONFIG_COMMANDS = $CONFIG_COMMANDS
29766 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29771 case $ac_config_files in *"
29772 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29775 case $ac_config_headers in *"
29776 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29781 # Files that config.status was made for.
29782 config_files="$ac_config_files"
29783 config_headers="$ac_config_headers"
29784 config_commands="$ac_config_commands"
29788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29790 \`$as_me' instantiates files and other configuration actions
29791 from templates according to the current configuration. Unless the files
29792 and actions are specified as TAGs, all are instantiated by default.
29794 Usage: $0 [OPTION]... [TAG]...
29796 -h, --help print this help, then exit
29797 -V, --version print version number and configuration settings, then exit
29798 --config print configuration, then exit
29799 -q, --quiet, --silent
29800 do not print progress messages
29801 -d, --debug don't remove temporary files
29802 --recheck update $as_me by reconfiguring in the same conditions
29803 --file=FILE[:TEMPLATE]
29804 instantiate the configuration file FILE
29805 --header=FILE[:TEMPLATE]
29806 instantiate the configuration header FILE
29808 Configuration files:
29811 Configuration headers:
29814 Configuration commands:
29817 Report bugs to the package provider."
29820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29821 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29823 emacs config.status 24.3.50
29824 configured by $0, generated by GNU Autoconf 2.65,
29825 with options \\"\$ac_cs_config\\"
29827 Copyright (C) 2009 Free Software Foundation, Inc.
29828 This config.status script is free software; the Free Software Foundation
29829 gives unlimited permission to copy, distribute and modify it."
29836 test -n "\$AWK" || AWK=awk
29839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29840 # The default lists apply if the user does not specify any file.
29846 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29847 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29858 # Handling of the options.
29859 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29861 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29862 $as_echo "$ac_cs_version"; exit ;;
29863 --config |
--confi |
--conf |
--con |
--co |
--c )
29864 $as_echo "$ac_cs_config"; exit ;;
29865 --debug |
--debu |
--deb |
--de |
--d |
-d )
29867 --file |
--fil |
--fi |
--f )
29870 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29872 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29873 ac_need_defaults
=false
;;
29874 --header |
--heade |
--head |
--hea )
29877 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29879 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29880 ac_need_defaults
=false
;;
29882 # Conflict between --help and --header
29883 as_fn_error
"ambiguous option: \`$1'
29884 Try \`$0 --help' for more information.";;
29885 --help |
--hel |
-h )
29886 $as_echo "$ac_cs_usage"; exit ;;
29887 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29888 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29891 # This is an error.
29892 -*) as_fn_error
"unrecognized option: \`$1'
29893 Try \`$0 --help' for more information." ;;
29895 *) as_fn_append ac_config_targets
" $1"
29896 ac_need_defaults
=false
;;
29902 ac_configure_extra_args
=
29904 if $ac_cs_silent; then
29906 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29911 if \$ac_cs_recheck; then
29912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29915 CONFIG_SHELL='$SHELL'
29916 export CONFIG_SHELL
29921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29926 ## Running $as_me. ##
29932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29937 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29943 # Handling of arguments.
29944 for ac_config_target
in $ac_config_targets
29946 case $ac_config_target in
29947 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29948 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29949 "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" ;;
29950 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29951 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29952 "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" ;;
29953 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29954 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29955 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29956 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29957 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29958 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29959 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29960 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29961 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29962 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29963 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29964 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29965 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29966 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29967 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29968 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29969 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
29970 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
29972 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29977 # If the user did not use the arguments to specify the items to instantiate,
29978 # then the envvar interface is used. Set only those that are not.
29979 # We use the long form for the default assignment because of an extremely
29980 # bizarre bug on SunOS 4.1.3.
29981 if $ac_need_defaults; then
29982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29987 # Have a temporary directory for convenience. Make it in the build tree
29988 # simply because there is no reason against having it here, and in addition,
29989 # creating and moving files from /tmp can sometimes cause problems.
29990 # Hook for its removal unless debugging.
29991 # Note that there is a small window in which the directory will not be cleaned:
29992 # after its creation but before its name has been assigned to `$tmp'.
29996 trap 'exit_status=$?
29997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29999 trap 'as_fn_exit 1' 1 2 13 15
30001 # Create a (secure) tmp directory for tmp files.
30004 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30005 test -n "$tmp" && test -d "$tmp"
30008 tmp
=.
/conf$$
-$RANDOM
30009 (umask 077 && mkdir
"$tmp")
30010 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30012 # Set up the scripts for CONFIG_FILES section.
30013 # No need to generate them if there are no CONFIG_FILES.
30014 # This happens for instance with `./config.status config.h'.
30015 if test -n "$CONFIG_FILES"; then
30017 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30018 ac_cs_awk_getline
=:
30019 ac_cs_awk_pipe_init
=
30020 ac_cs_awk_read_file
='
30021 while ((getline aline < (F[key])) > 0)
30024 ac_cs_awk_pipe_fini
=
30026 ac_cs_awk_getline
=false
30027 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30028 ac_cs_awk_read_file
='
30030 print "cat " F[key] " &&"
30031 '$ac_cs_awk_pipe_init
30032 # The final `:' finishes the AND list.
30033 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30035 ac_cr
=`echo X | tr X '\015'`
30036 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30037 # But we know of no other shell where ac_cr would be empty at this
30038 # point, so we can use a bashism as a fallback.
30039 if test "x$ac_cr" = x
; then
30040 eval ac_cr
=\$
\'\\r
\'
30042 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30043 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30046 ac_cs_awk_cr
=$ac_cr
30049 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30052 # Create commands to substitute file output variables.
30054 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30055 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30056 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30059 } >conf$
$files.sh
&&
30060 . .
/conf$
$files.sh ||
30061 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30062 rm -f conf$
$files.sh
30065 echo "cat >conf$$subs.awk <<_ACEOF" &&
30066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30068 } >conf$$subs.sh ||
30069 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30070 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30072 for ac_last_try in false false false false false :; do
30073 . ./conf$$subs.sh ||
30074 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30076 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30077 if test $ac_delim_n = $ac_delim_num; then
30079 elif $ac_last_try; then
30080 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30082 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30085 rm -f conf$$subs.sh
30087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30088 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30092 s/^/S["/; s
/!.
*/"]=/
30102 s/\(.\{148\}\)..*/\1/
30104 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30109 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30116 s/\(.\{148\}\)..*/\1/
30118 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30122 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30127 ' <conf$$subs.awk | sed '
30132 ' >>$CONFIG_STATUS || ac_write_fail=1
30133 rm -f conf$$subs.awk
30134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30136 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30137 for (key in S) S_is_set[key] = 1
30139 \$ac_cs_awk_pipe_init
30143 nfields = split(line, field, "@
")
30145 len = length(field[1])
30146 for (i = 2; i < nfields; i++) {
30148 keylen = length(key)
30149 if (S_is_set[key]) {
30151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30152 len += length(value) + length(field[++i])
30157 if (nfields == 3 && !substed) {
30159 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30160 \$ac_cs_awk_read_file
30166 \$ac_cs_awk_pipe_fini
30169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30170 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30171 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30174 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30175 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30180 # trailing colons and then remove the whole line if VPATH becomes empty
30181 # (actually we leave an empty line to preserve line numbers).
30182 if test "x
$srcdir" = x.; then
30183 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30184 s/:*\$(srcdir):*/:/
30185 s/:*\${srcdir}:*/:/
30187 s/^\([^=]*=[ ]*\):*/\1/
30193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30194 fi # test -n "$CONFIG_FILES"
30196 # Set up the scripts for CONFIG_HEADERS section.
30197 # No need to generate them if there are no CONFIG_HEADERS.
30198 # This happens for instance with `./config.status Makefile'.
30199 if test -n "$CONFIG_HEADERS"; then
30200 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30204 # Transform confdefs.h into an awk script `defines.awk', embedded as
30205 # here-document in config.status, that substitutes the proper values into
30206 # config.h.in to produce config.h.
30208 # Create a delimiter string that does not exist in confdefs.h, to ease
30209 # handling of long lines.
30211 for ac_last_try in false false :; do
30212 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30213 if test -z "$ac_t"; then
30215 elif $ac_last_try; then
30216 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30218 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30222 # For the awk script, D is an array of macro values keyed by name,
30223 # likewise P contains macro parameters if any. Preserve backslash
30224 # newline sequences.
30226 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30228 s/.\{148\}/&'"$ac_delim"'/g
30231 s/^[ ]*#[ ]*define[ ][ ]*/ /
30238 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30240 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30245 D["\
1"]=" \
3\\\\\\n
"\\/p
30247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30252 s/.\{148\}/&'"$ac_delim"'/g
30257 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30260 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30262 ' <confdefs.h | sed '
30263 s/'"$ac_delim"'/"\\\
30264 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30267 for (key in D) D_is_set[key] = 1
30270 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30272 split(line, arg, " ")
30273 if (arg[1] == "#") {
30277 defundef
= substr
(arg
[1], 2)
30280 split(mac1
, mac2
, "(") #)
30282 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30283 if (D_is_set
[macro
]) {
30284 # Preserve the white space surrounding the "#".
30285 print prefix
"define", macro P
[macro
] D
[macro
]
30288 # Replace #undef with comments. This is necessary, for example,
30289 # in the case of _POSIX_SOURCE, which is predefined and required
30290 # on some systems where configure will not decide to define it.
30291 if (defundef
== "undef") {
30292 print
"/*", prefix defundef
, macro
, "*/"
30300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30301 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30302 fi # test -n "$CONFIG_HEADERS"
30305 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30310 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30312 case $ac_mode$ac_tag in
30314 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30315 :[FH
]-) ac_tag
=-:-;;
30316 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30333 -) ac_f
="$tmp/stdin";;
30334 *) # Look for the file first in the build tree, then in the source tree
30335 # (if the path is not absolute). The absolute path cannot be DOS-style,
30336 # because $ac_f cannot contain `:'.
30340 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30342 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30344 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30345 as_fn_append ac_file_inputs
" '$ac_f'"
30348 # Let's still pretend it is `configure' which instantiates (i.e., don't
30349 # use $as_me), people would be surprised to read:
30350 # /* config.h. Generated by config.status. */
30351 configure_input
='Generated from '`
30352 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30354 if test x
"$ac_file" != x-
; then
30355 configure_input
="$ac_file. $configure_input"
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30357 $as_echo "$as_me: creating $ac_file" >&6;}
30359 # Neutralize special characters interpreted by sed in replacement strings.
30360 case $configure_input in #(
30361 *\
&* |
*\|
* |
*\\* )
30362 ac_sed_conf_input
=`$as_echo "$configure_input" |
30363 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30364 *) ac_sed_conf_input
=$configure_input;;
30368 *:-:* |
*:-) cat >"$tmp/stdin" \
30369 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30374 ac_dir
=`$as_dirname -- "$ac_file" ||
30375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30376 X"$ac_file" : 'X\(//\)[^/]' \| \
30377 X"$ac_file" : 'X\(//\)$' \| \
30378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30379 $as_echo X"$ac_file" |
30380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30384 /^X\(\/\/\)[^/].*/{
30397 as_dir
="$ac_dir"; as_fn_mkdir_p
30401 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30403 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30404 # A ".." for each directory in $ac_dir_suffix.
30405 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30406 case $ac_top_builddir_sub in
30407 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30408 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30411 ac_abs_top_builddir
=$ac_pwd
30412 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30413 # for backward compatibility:
30414 ac_top_builddir
=$ac_top_build_prefix
30417 .
) # We are building in place.
30419 ac_top_srcdir
=$ac_top_builddir_sub
30420 ac_abs_top_srcdir
=$ac_pwd ;;
30421 [\\/]* | ?
:[\\/]* ) # Absolute name.
30422 ac_srcdir
=$srcdir$ac_dir_suffix;
30423 ac_top_srcdir
=$srcdir
30424 ac_abs_top_srcdir
=$srcdir ;;
30425 *) # Relative name.
30426 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30427 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30428 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30430 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30440 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30441 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30443 ac_MKDIR_P
=$MKDIR_P
30445 [\\/$
]* | ?
:[\\/]* ) ;;
30446 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30451 # If the template does not know about datarootdir, expand it.
30452 # FIXME: This hack should be removed a few years after 2.60.
30453 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30464 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30465 *datarootdir
*) ac_datarootdir_seen
=yes;;
30466 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30468 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 ac_datarootdir_hack='
30472 s&@datadir@&$datadir&g
30473 s&@docdir@&$docdir&g
30474 s&@infodir@&$infodir&g
30475 s&@localedir@&$localedir&g
30476 s&@mandir@&$mandir&g
30477 s&\\\${datarootdir}&$datarootdir&g' ;;
30481 # Neutralize VPATH when `$srcdir' = `.'.
30482 # Shell code in configure.ac might set extrasub.
30483 # FIXME: do we really want to maintain this feature?
30484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30485 ac_sed_extra="$ac_vpsub
30488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30490 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30491 s|@configure_input@|
$ac_sed_conf_input|
;t t
30492 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30493 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30494 s
&@srcdir@
&$ac_srcdir&;t t
30495 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30496 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30497 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30498 s
&@builddir@
&$ac_builddir&;t t
30499 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30500 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30501 s
&@INSTALL@
&$ac_INSTALL&;t t
30502 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30503 $ac_datarootdir_hack
30505 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30506 if $ac_cs_awk_getline; then
30507 $AWK -f "$tmp/subs.
awk"
30509 $AWK -f "$tmp/subs.
awk" | $SHELL
30511 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30514 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30517 which seems to be undefined. Please make sure it is defined." >&5
30518 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30519 which seems to be undefined. Please make sure it is defined." >&2;}
30523 -) cat "$tmp/out" && rm -f "$tmp/out";;
30524 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30526 || as_fn_error "could not create $ac_file" "$LINENO" 5
30532 if test x"$ac_file" != x-; then
30534 $as_echo "/* $configure_input */" \
30535 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30536 } >"$tmp/config.h" \
30537 || as_fn_error "could not create $ac_file" "$LINENO" 5
30538 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30540 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30543 mv "$tmp/config.h" "$ac_file" \
30544 || as_fn_error "could not create $ac_file" "$LINENO" 5
30547 $as_echo "/* $configure_input */" \
30548 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30549 || as_fn_error "could not create -" "$LINENO" 5
30551 # Compute "$ac_file"'s index
in $config_headers.
30554 for _am_header
in $config_headers :; do
30555 case $_am_header in
30556 $_am_arg |
$_am_arg:* )
30559 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30562 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30563 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30564 X"$_am_arg" : 'X\(//\)[^/]' \| \
30565 X"$_am_arg" : 'X\(//\)$' \| \
30566 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30567 $as_echo X"$_am_arg" |
30568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30572 /^X\(\/\/\)[^/].*/{
30584 s/.*/./; q'`/stamp-h
$_am_stamp_count
30587 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30588 $as_echo "$as_me: executing $ac_file commands" >&6;}
30593 case $ac_file$ac_mode in
30594 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30595 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30596 # are listed without --file. Let's play safe and only enable the eval
30597 # if we detect the quoting.
30598 case $CONFIG_FILES in
30599 *\'*) eval set x
"$CONFIG_FILES" ;;
30600 *) set x
$CONFIG_FILES ;;
30605 # Strip MF so we end up with the name of the file.
30606 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30607 # Check whether this is an Automake generated Makefile or not.
30608 # We used to match only the files named `Makefile.in', but
30609 # some people rename them; so instead we look at the file content.
30610 # Grep'ing the first line is not enough: some people post-process
30611 # each Makefile.in and add a new line on top of each file to say so.
30612 # Grep'ing the whole file is not good either: AIX grep has a line
30613 # limit of 2048, but all sed's we know have understand at least 4000.
30614 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30615 dirpart
=`$as_dirname -- "$mf" ||
30616 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30617 X"$mf" : 'X\(//\)[^/]' \| \
30618 X"$mf" : 'X\(//\)$' \| \
30619 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30625 /^X\(\/\/\)[^/].*/{
30641 # Extract the definition of DEPDIR, am__include, and am__quote
30642 # from the Makefile without running `make'.
30643 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30644 test -z "$DEPDIR" && continue
30645 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30646 test -z "am__include" && continue
30647 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30648 # When using ansi2knr, U may be empty or an underscore; expand it
30649 U
=`sed -n 's/^U = //p' < "$mf"`
30650 # Find all dependency output files, they are included files with
30651 # $(DEPDIR) in their names. We invoke sed twice because it is the
30652 # simplest approach to changing $(DEPDIR) to its actual value in the
30654 for file in `sed -n "
30655 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30656 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30657 # Make sure the directory exists.
30658 test -f "$dirpart/$file" && continue
30659 fdir
=`$as_dirname -- "$file" ||
30660 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30661 X"$file" : 'X\(//\)[^/]' \| \
30662 X"$file" : 'X\(//\)$' \| \
30663 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30664 $as_echo X"$file" |
30665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30669 /^X\(\/\/\)[^/].*/{
30682 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30683 # echo "creating $dirpart/$file"
30684 echo '# dummy' > "$dirpart/$file"
30690 if test "${opsys}" = "mingw32"; then
30691 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30693 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30697 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30698 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30708 ac_clean_files
=$ac_clean_files_save
30710 test $ac_write_fail = 0 ||
30711 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30714 # configure is writing to config.log, and then calls config.status.
30715 # config.status does its own redirection, appending to config.log.
30716 # Unfortunately, on DOS this fails, as config.log is still kept open
30717 # by configure, so config.status won't be able to write to it; its
30718 # output is simply discarded. So we exec the FD to /dev/null,
30719 # effectively closing config.log, so it can be properly (re)opened and
30720 # appended to by config.status. When coming back to configure, we
30721 # need to make the FD available again.
30722 if test "$no_create" != yes; then
30724 ac_config_status_args
=
30725 test "$silent" = yes &&
30726 ac_config_status_args
="$ac_config_status_args --quiet"
30728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30731 # would make configure fail if this is the last instruction.
30732 $ac_cs_success || as_fn_exit $?
30734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}