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
611 LD_SWITCH_SYSTEM_TEMACS
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
617 gl_GNULIB_ENABLED_tempname_FALSE
618 gl_GNULIB_ENABLED_tempname_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_secure_getenv_FALSE
626 gl_GNULIB_ENABLED_secure_getenv_TRUE
627 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
629 gl_GNULIB_ENABLED_pathmax_FALSE
630 gl_GNULIB_ENABLED_pathmax_TRUE
631 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
633 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
635 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
637 gl_GNULIB_ENABLED_getgroups_FALSE
638 gl_GNULIB_ENABLED_getgroups_TRUE
639 gl_GNULIB_ENABLED_getdtablesize_FALSE
640 gl_GNULIB_ENABLED_getdtablesize_TRUE
641 gl_GNULIB_ENABLED_euidaccess_FALSE
642 gl_GNULIB_ENABLED_euidaccess_TRUE
643 gl_GNULIB_ENABLED_dosname_FALSE
644 gl_GNULIB_ENABLED_dosname_TRUE
645 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
652 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
658 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 WINDOWS_64_BIT_ST_SIZE
661 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
676 REPLACE_STDIO_WRITE_FUNCS
677 REPLACE_STDIO_READ_FUNCS
686 REPLACE_OBSTACK_PRINTF
711 HAVE_DECL_OBSTACK_PRINTF
717 GNULIB_VSPRINTF_POSIX
721 GNULIB_VFPRINTF_POSIX
728 GNULIB_STDIO_H_SIGPIPE
729 GNULIB_STDIO_H_NONBLOCKING
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
770 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 GL_GENERATE_STDDEF_H_FALSE
773 GL_GENERATE_STDDEF_H_TRUE
778 GL_GENERATE_STDBOOL_H_FALSE
779 GL_GENERATE_STDBOOL_H_TRUE
781 GL_GENERATE_STDARG_H_FALSE
782 GL_GENERATE_STDARG_H_TRUE
784 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 GL_GENERATE_STDALIGN_H_FALSE
787 GL_GENERATE_STDALIGN_H_TRUE
789 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
795 REPLACE_PTHREAD_SIGMASK
797 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
798 HAVE_STRUCT_SIGACTION_SA_SIGACTION
804 HAVE_POSIX_SIGNALBLOCKING
807 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_PTHREAD_SIGMASK
811 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
825 HAVE_DECL_LOCALTIME_R
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
931 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_SIG_ATOMIC_T
937 APPLE_UNIVERSAL_BUILD
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
946 HAVE_UNSIGNED_LONG_LONG_INT
949 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 REPLACE_STRUCT_TIMEVAL
957 GNULIB_GL_UNISTD_H_GETOPT
960 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
976 REPLACE_CANONICALIZE_FILE_NAME
981 HAVE_STRUCT_RANDOM_DATA
1003 HAVE_DECL_GETLOADAVG
1004 HAVE_CANONICALIZE_FILE_NAME
1015 GNULIB_SECURE_GETENV
1018 GNULIB_REALLOC_POSIX
1035 GNULIB_CANONICALIZE_FILE_NAME
1073 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1084 GL_GENERATE_EXECINFO_H_FALSE
1085 GL_GENERATE_EXECINFO_H_TRUE
1094 GL_GENERATE_ERRNO_H_FALSE
1095 GL_GENERATE_ERRNO_H_TRUE
1097 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1100 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1103 PRAGMA_SYSTEM_HEADER
1104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1127 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1128 UNISTD_H_HAVE_WINSOCK2_H
1149 REPLACE_GETDOMAINNAME
1160 HAVE_DECL_SETHOSTNAME
1161 HAVE_DECL_GETUSERSHELL
1162 HAVE_DECL_GETPAGESIZE
1163 HAVE_DECL_GETLOGIN_R
1164 HAVE_DECL_GETDOMAINNAME
1203 GNULIB_UNISTD_H_SIGPIPE
1204 GNULIB_UNISTD_H_NONBLOCKING
1230 GNULIB_GETDTABLESIZE
1231 GNULIB_GETDOMAINNAME
1248 GL_GENERATE_ALLOCA_H_FALSE
1249 GL_GENERATE_ALLOCA_H_TRUE
1252 GL_COND_LIBTOOL_FALSE
1253 GL_COND_LIBTOOL_TRUE
1284 x_default_search_path
1380 INSTALL_ARCH_INDEP_EXTRA
1382 LD_SWITCH_X_SITE_RPATH
1414 BUILDING_FOR_WINDOWSNT_FALSE
1415 BUILDING_FOR_WINDOWSNT_TRUE
1451 INSTALL_STRIP_PROGRAM
1493 program_transform_name
1504 ac_subst_files
='deps_frag
1507 enable_option_checking
1530 with_toolkit_scroll_bars
1541 with_file_notification
1544 with_pkg_config_prog
1547 enable_ns_self_contained
1548 enable_locallisppath
1550 enable_check_lisp_object_type
1553 enable_gtk_deprecation_warnings
1554 enable_dependency_tracking
1557 enable_link_time_optimization
1561 ac_precious_vars
='build_alias
1573 # Initialize some variables set by options.
1575 ac_init_version
=false
1576 ac_unrecognized_opts
=
1577 ac_unrecognized_sep
=
1578 # The variables have the same names as the options, with
1579 # dashes changed to underlines.
1580 cache_file
=/dev
/null
1587 program_transform_name
=s
,x
,x
,
1595 # Installation directory options.
1596 # These are left unexpanded so users can "make install exec_prefix=/foo"
1597 # and all the variables that are supposed to be based on exec_prefix
1598 # by default will actually change.
1599 # Use braces instead of parens because sh, perl, etc. also accept them.
1600 # (The list follows the same order as the GNU Coding Standards.)
1601 bindir
='${exec_prefix}/bin'
1602 sbindir
='${exec_prefix}/sbin'
1603 libexecdir
='${exec_prefix}/libexec'
1604 datarootdir
='${prefix}/share'
1605 datadir
='${datarootdir}'
1606 sysconfdir
='${prefix}/etc'
1607 sharedstatedir
='${prefix}/com'
1608 localstatedir
='${prefix}/var'
1609 includedir
='${prefix}/include'
1610 oldincludedir
='/usr/include'
1611 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1612 infodir
='${datarootdir}/info'
1617 libdir
='${exec_prefix}/lib'
1618 localedir
='${datarootdir}/locale'
1619 mandir
='${datarootdir}/man'
1625 # If the previous option needs an argument, assign it.
1626 if test -n "$ac_prev"; then
1627 eval $ac_prev=\
$ac_option
1633 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1637 # Accept the important Cygnus configure options, so we can diagnose typos.
1639 case $ac_dashdash$ac_option in
1643 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1645 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1646 bindir
=$ac_optarg ;;
1648 -build |
--build |
--buil |
--bui |
--bu)
1649 ac_prev
=build_alias
;;
1650 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1651 build_alias
=$ac_optarg ;;
1653 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1654 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1655 ac_prev
=cache_file
;;
1656 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1657 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1658 cache_file
=$ac_optarg ;;
1660 --config-cache |
-C)
1661 cache_file
=config.cache
;;
1663 -datadir |
--datadir |
--datadi |
--datad)
1665 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1666 datadir
=$ac_optarg ;;
1668 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1669 |
--dataroo |
--dataro |
--datar)
1670 ac_prev
=datarootdir
;;
1671 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1672 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1673 datarootdir
=$ac_optarg ;;
1675 -disable-* |
--disable-*)
1676 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1677 # Reject names that are not valid shell variable names.
1678 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1679 as_fn_error
"invalid feature name: $ac_useropt"
1680 ac_useropt_orig
=$ac_useropt
1681 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1684 "enable_
$ac_useropt"
1686 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1687 ac_unrecognized_sep
=', ';;
1689 eval enable_
$ac_useropt=no
;;
1691 -docdir |
--docdir |
--docdi |
--doc |
--do)
1693 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1694 docdir
=$ac_optarg ;;
1696 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1698 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1699 dvidir
=$ac_optarg ;;
1701 -enable-* |
--enable-*)
1702 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1703 # Reject names that are not valid shell variable names.
1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1705 as_fn_error
"invalid feature name: $ac_useropt"
1706 ac_useropt_orig
=$ac_useropt
1707 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708 case $ac_user_opts in
1710 "enable_
$ac_useropt"
1712 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1713 ac_unrecognized_sep
=', ';;
1715 eval enable_
$ac_useropt=\
$ac_optarg ;;
1717 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1718 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1719 |
--exec |
--exe |
--ex)
1720 ac_prev
=exec_prefix
;;
1721 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1722 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1723 |
--exec=* |
--exe=* |
--ex=*)
1724 exec_prefix
=$ac_optarg ;;
1726 -gas |
--gas |
--ga |
--g)
1727 # Obsolete; use --with-gas.
1730 -help |
--help |
--hel |
--he |
-h)
1731 ac_init_help
=long
;;
1732 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1733 ac_init_help
=recursive
;;
1734 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1735 ac_init_help
=short
;;
1737 -host |
--host |
--hos |
--ho)
1738 ac_prev
=host_alias
;;
1739 -host=* |
--host=* |
--hos=* |
--ho=*)
1740 host_alias
=$ac_optarg ;;
1742 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1744 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1746 htmldir
=$ac_optarg ;;
1748 -includedir |
--includedir |
--includedi |
--included |
--include \
1749 |
--includ |
--inclu |
--incl |
--inc)
1750 ac_prev
=includedir
;;
1751 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1752 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1753 includedir
=$ac_optarg ;;
1755 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1757 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1758 infodir
=$ac_optarg ;;
1760 -libdir |
--libdir |
--libdi |
--libd)
1762 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1763 libdir
=$ac_optarg ;;
1765 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1766 |
--libexe |
--libex |
--libe)
1767 ac_prev
=libexecdir
;;
1768 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1769 |
--libexe=* |
--libex=* |
--libe=*)
1770 libexecdir
=$ac_optarg ;;
1772 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1773 ac_prev
=localedir
;;
1774 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1775 localedir
=$ac_optarg ;;
1777 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1778 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1779 ac_prev
=localstatedir
;;
1780 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1781 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1782 localstatedir
=$ac_optarg ;;
1784 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1786 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1787 mandir
=$ac_optarg ;;
1789 -nfp |
--nfp |
--nf)
1790 # Obsolete; use --without-fp.
1793 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1794 |
--no-cr |
--no-c |
-n)
1797 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1798 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1801 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1802 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1803 |
--oldin |
--oldi |
--old |
--ol |
--o)
1804 ac_prev
=oldincludedir
;;
1805 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1806 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1807 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1808 oldincludedir
=$ac_optarg ;;
1810 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1812 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1813 prefix
=$ac_optarg ;;
1815 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1816 |
--program-pre |
--program-pr |
--program-p)
1817 ac_prev
=program_prefix
;;
1818 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1819 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1820 program_prefix
=$ac_optarg ;;
1822 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1823 |
--program-suf |
--program-su |
--program-s)
1824 ac_prev
=program_suffix
;;
1825 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1826 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1827 program_suffix
=$ac_optarg ;;
1829 -program-transform-name |
--program-transform-name \
1830 |
--program-transform-nam |
--program-transform-na \
1831 |
--program-transform-n |
--program-transform- \
1832 |
--program-transform |
--program-transfor \
1833 |
--program-transfo |
--program-transf \
1834 |
--program-trans |
--program-tran \
1835 |
--progr-tra |
--program-tr |
--program-t)
1836 ac_prev
=program_transform_name
;;
1837 -program-transform-name=* |
--program-transform-name=* \
1838 |
--program-transform-nam=* |
--program-transform-na=* \
1839 |
--program-transform-n=* |
--program-transform-=* \
1840 |
--program-transform=* |
--program-transfor=* \
1841 |
--program-transfo=* |
--program-transf=* \
1842 |
--program-trans=* |
--program-tran=* \
1843 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1844 program_transform_name
=$ac_optarg ;;
1846 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1848 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1849 pdfdir
=$ac_optarg ;;
1851 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1853 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1856 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1857 |
-silent |
--silent |
--silen |
--sile |
--sil)
1860 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1862 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1864 sbindir
=$ac_optarg ;;
1866 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1867 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1868 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1870 ac_prev
=sharedstatedir
;;
1871 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1872 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1873 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1875 sharedstatedir
=$ac_optarg ;;
1877 -site |
--site |
--sit)
1879 -site=* |
--site=* |
--sit=*)
1882 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1884 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1885 srcdir
=$ac_optarg ;;
1887 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1888 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1889 ac_prev
=sysconfdir
;;
1890 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1891 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1892 sysconfdir
=$ac_optarg ;;
1894 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1895 ac_prev
=target_alias
;;
1896 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1897 target_alias
=$ac_optarg ;;
1899 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1902 -version |
--version |
--versio |
--versi |
--vers |
-V)
1903 ac_init_version
=: ;;
1906 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1907 # Reject names that are not valid shell variable names.
1908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1909 as_fn_error
"invalid package name: $ac_useropt"
1910 ac_useropt_orig
=$ac_useropt
1911 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1912 case $ac_user_opts in
1916 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1917 ac_unrecognized_sep
=', ';;
1919 eval with_
$ac_useropt=\
$ac_optarg ;;
1921 -without-* |
--without-*)
1922 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1923 # Reject names that are not valid shell variable names.
1924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1925 as_fn_error
"invalid package name: $ac_useropt"
1926 ac_useropt_orig
=$ac_useropt
1927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1928 case $ac_user_opts in
1932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1933 ac_unrecognized_sep
=', ';;
1935 eval with_
$ac_useropt=no
;;
1938 # Obsolete; use --with-x.
1941 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1942 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1943 ac_prev
=x_includes
;;
1944 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1945 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1946 x_includes
=$ac_optarg ;;
1948 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1949 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1950 ac_prev
=x_libraries
;;
1951 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1952 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1953 x_libraries
=$ac_optarg ;;
1955 -*) as_fn_error
"unrecognized option: \`$ac_option'
1956 Try \`$0 --help' for more information."
1960 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1961 # Reject names that are not valid shell variable names.
1962 case $ac_envvar in #(
1963 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1964 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1966 eval $ac_envvar=\
$ac_optarg
1967 export $ac_envvar ;;
1970 # FIXME: should be removed in autoconf 3.0.
1971 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1972 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1973 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1974 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1980 if test -n "$ac_prev"; then
1981 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1982 as_fn_error
"missing argument to $ac_option"
1985 if test -n "$ac_unrecognized_opts"; then
1986 case $enable_option_checking in
1988 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1989 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1993 # Check all directory arguments for consistency.
1994 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1995 datadir sysconfdir sharedstatedir localstatedir includedir \
1996 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1997 libdir localedir mandir
1999 eval ac_val
=\$
$ac_var
2000 # Remove trailing slashes.
2003 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2004 eval $ac_var=\
$ac_val;;
2006 # Be sure to have absolute directory names.
2008 [\\/$
]* | ?
:[\\/]* ) continue;;
2009 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2011 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2014 # There might be people who depend on the old broken behavior: `$host'
2015 # used to hold the argument of --host etc.
2016 # FIXME: To remove some day.
2019 target
=$target_alias
2021 # FIXME: To remove some day.
2022 if test "x$host_alias" != x
; then
2023 if test "x$build_alias" = x
; then
2024 cross_compiling
=maybe
2025 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2026 If a cross compiler is detected then cross compile mode will be used." >&2
2027 elif test "x$build_alias" != "x$host_alias"; then
2033 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2035 test "$silent" = yes && exec 6>/dev
/null
2038 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2039 ac_ls_di
=`ls -di .` &&
2040 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2041 as_fn_error
"working directory cannot be determined"
2042 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2043 as_fn_error
"pwd does not report name of working directory"
2046 # Find the source files, if location was not specified.
2047 if test -z "$srcdir"; then
2048 ac_srcdir_defaulted
=yes
2049 # Try the directory containing this script, then the parent directory.
2050 ac_confdir
=`$as_dirname -- "$as_myself" ||
2051 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2052 X"$as_myself" : 'X\(//\)[^/]' \| \
2053 X"$as_myself" : 'X\(//\)$' \| \
2054 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2055 $as_echo X"$as_myself" |
2056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2074 if test ! -r "$srcdir/$ac_unique_file"; then
2078 ac_srcdir_defaulted
=no
2080 if test ! -r "$srcdir/$ac_unique_file"; then
2081 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2082 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2084 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2086 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2088 # When building in place, set srcdir=.
2089 if test "$ac_abs_confdir" = "$ac_pwd"; then
2092 # Remove unnecessary trailing slashes from srcdir.
2093 # Double slashes in file names in object file debugging info
2094 # mess up M-x gdb in Emacs.
2096 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2098 for ac_var
in $ac_precious_vars; do
2099 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2100 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2101 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2102 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2106 # Report the --help message.
2108 if test "$ac_init_help" = "long"; then
2109 # Omit some internal or obsolete options to make the list less imposing.
2110 # This message is too long to be a string in the A/UX 3.1 sh.
2112 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2114 Usage: $0 [OPTION]... [VAR=VALUE]...
2116 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2117 VAR=VALUE. See below for descriptions of some of the useful variables.
2119 Defaults for the options are specified in brackets.
2122 -h, --help display this help and exit
2123 --help=short display options specific to this package
2124 --help=recursive display the short help of all the included packages
2125 -V, --version display version information and exit
2126 -q, --quiet, --silent do not print \`checking...' messages
2127 --cache-file=FILE cache test results in FILE [disabled]
2128 -C, --config-cache alias for \`--cache-file=config.cache'
2129 -n, --no-create do not create output files
2130 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2132 Installation directories:
2133 --prefix=PREFIX install architecture-independent files in PREFIX
2134 [$ac_default_prefix]
2135 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2138 By default, \`make install' will install all the files in
2139 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2140 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2141 for instance \`--prefix=\$HOME'.
2143 For better control, use the options below.
2145 Fine tuning of the installation directories:
2146 --bindir=DIR user executables [EPREFIX/bin]
2147 --sbindir=DIR system admin executables [EPREFIX/sbin]
2148 --libexecdir=DIR program executables [EPREFIX/libexec]
2149 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2150 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2151 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2152 --libdir=DIR object code libraries [EPREFIX/lib]
2153 --includedir=DIR C header files [PREFIX/include]
2154 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2155 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2156 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2157 --infodir=DIR info documentation [DATAROOTDIR/info]
2158 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2159 --mandir=DIR man documentation [DATAROOTDIR/man]
2160 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2161 --htmldir=DIR html documentation [DOCDIR]
2162 --dvidir=DIR dvi documentation [DOCDIR]
2163 --pdfdir=DIR pdf documentation [DOCDIR]
2164 --psdir=DIR ps documentation [DOCDIR]
2170 --program-prefix=PREFIX prepend PREFIX to installed program names
2171 --program-suffix=SUFFIX append SUFFIX to installed program names
2172 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2175 --x-includes=DIR X include files are
in DIR
2176 --x-libraries=DIR X library files are
in DIR
2179 --build=BUILD configure
for building on BUILD
[guessed
]
2180 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2184 if test -n "$ac_init_help"; then
2185 case $ac_init_help in
2186 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2191 --disable-option-checking ignore unrecognized
--enable/--with options
2192 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2193 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2194 --disable-ns-self-contained
2195 disable self contained build under NeXTstep
2196 --enable-locallisppath=PATH
2197 directories Emacs should search
for lisp files
2198 specific to this site
2199 --enable-checking[=LIST
]
2200 enable expensive run-time checks. With LIST
, enable
2201 only specific categories of checks. Categories are
:
2202 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2203 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2204 --enable-check-lisp-object-type
2205 enable compile
time checks
for the Lisp_Object data
2206 type. This is useful
for development
for catching
2207 certain types of bugs.
2208 --enable-profiling build emacs with low-level
, gprof profiling support.
2209 Mainly useful
for debugging Emacs itself. May not
2210 work on all platforms. Stops profiler.el working.
2211 --enable-autodepend automatically generate dependencies to .h-files.
2212 Requires GNU Make and Gcc. Enabled
if GNU Make and
2214 --enable-gtk-deprecation-warnings
2215 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2216 --disable-dependency-tracking speeds up one-time build
2217 --enable-dependency-tracking do not reject slow dependency extractors
2218 --disable-largefile omit support
for large files
2219 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2220 intended
for developers
, and may generate false
2221 alarms when used with older or non-GNU development
2223 --enable-link-time-optimization
2224 build emacs with link-time optimization. This is
2225 supported only
for GCC since
4.5.0.
2226 --disable-acl do not support ACLs
2229 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2230 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2231 --without-all omit almost all features and build small executable
2232 with minimal dependencies
2233 --without-pop don
't support POP mail retrieval with movemail
2234 --with-kerberos support Kerberos-authenticated POP
2235 --with-kerberos5 support Kerberos version 5 authenticated POP
2236 --with-hesiod support Hesiod to get the POP server host
2237 --with-mmdf support MMDF mailboxes
2238 --with-mail-unlink unlink, rather than empty, mail spool after reading
2239 --with-mailhost=HOSTNAME
2240 string giving default POP mail host
2241 --with-sound=VALUE compile with sound support (VALUE one of: yes,
2242 ossaudio, alsa, no; default yes). Only for
2243 GNU/Linux, FreeBSD, NetBSD, MinGW.
2244 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2245 gtk3, lucid or athena, motif, no)
2246 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2247 --without-xpm don't compile with XPM image support
2248 --without-jpeg don
't compile with JPEG image support
2249 --without-tiff don't compile with TIFF image support
2250 --without-gif don
't compile with GIF image support
2251 --without-png don't compile with PNG image support
2252 --without-rsvg don
't compile with SVG image support
2253 --without-xml2 don't compile with XML parsing support
2254 --without-imagemagick don
't compile with ImageMagick image support
2255 --without-xft don't use XFT
for anti aliased fonts
2256 --without-libotf don
't use libotf for OpenType font support
2257 --without-m17n-flt don't use m17n-flt
for text shaping
2258 --without-toolkit-scroll-bars
2259 don
't use Motif or Xaw3d scroll bars
2260 --without-xaw3d don't use Xaw3d
2261 --without-xim don
't use X11 XIM
2262 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2263 --with-w32 use native MS Windows GUI in a Cygwin build
2264 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
2266 --without-dbus don
't compile with D-Bus support
2267 --without-gconf don't compile with GConf support
2268 --without-gsettings don
't compile with GSettings support
2269 --without-selinux don't compile with SELinux support
2270 --without-gnutls don
't use -lgnutls for SSL/TLS support
2271 --with-file-notification=LIB
2272 use a file notification library (LIB one of: yes,
2273 gfile, inotify, w32, no)
2274 --without-makeinfo don't require makeinfo
for building manuals
2275 --without-compress-info don
't compress the installed Info pages
2276 --with-pkg-config-prog=FILENAME
2277 file name of pkg-config for finding GTK and librsvg
2278 --with-gameuser=USER user for shared game score files
2279 --with-gnustep-conf=FILENAME
2280 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2281 or /etc/GNUstep/GNUstep.conf
2282 --with-x use the X Window System
2284 Some influential environment variables:
2285 CC C compiler command
2286 CFLAGS C compiler flags
2287 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2288 nonstandard directory <lib dir>
2289 LIBS libraries to pass to the linker, e.g. -l<library>
2290 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2291 you have headers in a nonstandard directory <include dir>
2293 XMKMF Path to xmkmf, Makefile generator for X Window System
2295 Use these variables to override the choices made by `configure' or to
help
2296 it to
find libraries and programs with nonstandard names
/locations.
2298 Report bugs to the package provider.
2303 if test "$ac_init_help" = "recursive"; then
2304 # If there are subdirs, report their specific --help.
2305 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2306 test -d "$ac_dir" ||
2307 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2312 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2314 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2315 # A ".." for each directory in $ac_dir_suffix.
2316 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2317 case $ac_top_builddir_sub in
2318 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2319 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2322 ac_abs_top_builddir
=$ac_pwd
2323 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2324 # for backward compatibility:
2325 ac_top_builddir
=$ac_top_build_prefix
2328 .
) # We are building in place.
2330 ac_top_srcdir
=$ac_top_builddir_sub
2331 ac_abs_top_srcdir
=$ac_pwd ;;
2332 [\\/]* | ?
:[\\/]* ) # Absolute name.
2333 ac_srcdir
=$srcdir$ac_dir_suffix;
2334 ac_top_srcdir
=$srcdir
2335 ac_abs_top_srcdir
=$srcdir ;;
2337 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2338 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2339 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2341 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2343 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2344 # Check for guested configure.
2345 if test -f "$ac_srcdir/configure.gnu"; then
2347 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2348 elif test -f "$ac_srcdir/configure"; then
2350 $SHELL "$ac_srcdir/configure" --help=recursive
2352 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2354 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2358 test -n "$ac_init_help" && exit $ac_status
2359 if $ac_init_version; then
2361 emacs configure
24.3.50
2362 generated by GNU Autoconf
2.65
2364 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2365 This configure
script is free software
; the Free Software Foundation
2366 gives unlimited permission to copy
, distribute and modify it.
2371 ## ------------------------ ##
2372 ## Autoconf initialization. ##
2373 ## ------------------------ ##
2375 # ac_fn_c_try_compile LINENO
2376 # --------------------------
2377 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_compile
()
2380 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2381 rm -f conftest.
$ac_objext
2382 if { { ac_try
="$ac_compile"
2384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_compile") 2>conftest.err
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest.$ac_objext; then :
2403 $as_echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2409 as_fn_set_status $ac_retval
2411 } # ac_fn_c_try_compile
2413 # ac_fn_c_try_cpp LINENO
2414 # ----------------------
2415 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 if { { ac_try="$ac_cpp conftest.$ac_ext"
2421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2422 *) ac_try_echo
=$ac_try;;
2424 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2428 if test -s conftest.err
; then
2429 grep -v '^ *+' conftest.err
>conftest.er1
2430 cat conftest.er1
>&5
2431 mv -f conftest.er1 conftest.err
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } >/dev
/null
&& {
2435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2436 test ! -s conftest.err
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2446 as_fn_set_status
$ac_retval
2450 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2451 # -------------------------------------------------------
2452 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2453 # the include files in INCLUDES and setting the cache variable VAR
2455 ac_fn_c_check_header_mongrel
()
2457 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2458 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2468 # Is the header compilable?
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2470 $as_echo_n "checking $2 usability... " >&6; }
2471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2476 if ac_fn_c_try_compile
"$LINENO"; then :
2477 ac_header_compiler
=yes
2479 ac_header_compiler
=no
2481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2483 $as_echo "$ac_header_compiler" >&6; }
2485 # Is the header present?
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2487 $as_echo_n "checking $2 presence... " >&6; }
2488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2492 if ac_fn_c_try_cpp
"$LINENO"; then :
2493 ac_header_preproc
=yes
2495 ac_header_preproc
=no
2497 rm -f conftest.err conftest.
$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2499 $as_echo "$ac_header_preproc" >&6; }
2501 # So? What about this header?
2502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2505 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2507 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2511 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2513 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2515 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2517 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2527 eval "$3=\$ac_header_compiler"
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2535 } # ac_fn_c_check_header_mongrel
2537 # ac_fn_c_try_run LINENO
2538 # ----------------------
2539 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2540 # that executables *can* be run.
2543 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2544 if { { ac_try
="$ac_link"
2546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551 (eval "$ac_link") 2>&5
2553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2555 { { case "(($ac_try" in
2556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2557 *) ac_try_echo
=$ac_try;;
2559 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_try") 2>&5
2563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564 test $ac_status = 0; }; }; then :
2567 $as_echo "$as_me: program exited with status $ac_status" >&5
2568 $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.
$ac_ext >&5
2571 ac_retval
=$ac_status
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2575 as_fn_set_status
$ac_retval
2579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2580 # -------------------------------------------------------
2581 # Tests whether HEADER exists and can be compiled using the include files in
2582 # INCLUDES, setting the cache variable VAR accordingly.
2583 ac_fn_c_check_header_compile
()
2585 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2596 if ac_fn_c_try_compile
"$LINENO"; then :
2601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2608 } # ac_fn_c_check_header_compile
2610 # ac_fn_c_try_link LINENO
2611 # -----------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2616 rm -f conftest.
$ac_objext conftest
$ac_exeext
2617 if { { ac_try
="$ac_link"
2619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_c_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 as_fn_set_status $ac_retval
2654 } # ac_fn_c_try_link
2656 # ac_fn_c_check_decl LINENO SYMBOL VAR
2657 # ------------------------------------
2658 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2659 ac_fn_c_check_decl ()
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2663 $as_echo_n "checking whether $2 is declared... " >&6; }
2664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2665 $as_echo_n "(cached) " >&6
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2681 if ac_fn_c_try_compile "$LINENO"; then :
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 } # ac_fn_c_check_decl
2695 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2696 # ----------------------------------------------
2697 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2698 ac_fn_c_check_header_preproc ()
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 if ac_fn_c_try_cpp "$LINENO"; then :
2715 rm -f conftest.err conftest.$ac_ext
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2722 } # ac_fn_c_check_header_preproc
2724 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2725 # ----------------------------------------------------
2726 # Tries to find if the field MEMBER exists in type AGGR, after including
2727 # INCLUDES, setting cache variable VAR accordingly.
2728 ac_fn_c_check_member ()
2730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2732 $as_echo_n "checking for $2.$3... " >&6; }
2733 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2734 $as_echo_n "(cached) " >&6
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2749 if ac_fn_c_try_compile "$LINENO"; then :
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2759 if (sizeof ac_aggr.$3)
2765 if ac_fn_c_try_compile "$LINENO"; then :
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2779 } # ac_fn_c_check_member
2781 # ac_fn_c_check_func LINENO FUNC VAR
2782 # ----------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_c_check_func ()
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2790 $as_echo_n "(cached) " >&6
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2796 #define $2 innocuous_$2
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char $2 (); below.
2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801 <limits.h> exists even on freestanding compilers. */
2804 # include <limits.h>
2806 # include <assert.h>
2811 /* Override any GCC internal prototype to avoid an error.
2812 Use char because int might match the return type of a GCC
2813 builtin and then its argument prototype would still apply. */
2818 /* The GNU C library defines this for functions which it implements
2819 to always fail with ENOSYS. Some functions are actually named
2820 something starting with __ and the normal name is an alias. */
2821 #if defined __stub_$2 || defined __stub___$2
2833 if ac_fn_c_try_link "$LINENO"; then :
2838 rm -f core conftest.err conftest.$ac_objext \
2839 conftest$ac_exeext conftest.$ac_ext
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2846 } # ac_fn_c_check_func
2848 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2849 # -------------------------------------------
2850 # Tests whether TYPE exists after having included INCLUDES, setting cache
2851 # variable VAR accordingly.
2852 ac_fn_c_check_type ()
2854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2856 $as_echo_n "checking for $2... " >&6; }
2857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2858 $as_echo_n "(cached) " >&6
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2886 if ac_fn_c_try_compile "$LINENO"; then :
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2897 $as_echo "$ac_res" >&6; }
2898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2900 } # ac_fn_c_check_type
2902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2903 # --------------------------------------------
2904 # Tries to find the compile-time value of EXPR in a program that includes
2905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2907 ac_fn_c_compute_int ()
2909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910 if test "$cross_compiling" = yes; then
2911 # Depending upon the size, compute the lo and hi bounds.
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2918 static int test_array [1 - 2 * !(($2) >= 0)];
2925 if ac_fn_c_try_compile "$LINENO"; then :
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2941 if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_hi=$ac_mid; break
2944 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2945 if test $ac_lo -le $ac_mid; then
2949 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2960 static int test_array [1 - 2 * !(($2) < 0)];
2967 if ac_fn_c_try_compile "$LINENO"; then :
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2976 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2983 if ac_fn_c_try_compile "$LINENO"; then :
2984 ac_lo=$ac_mid; break
2986 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2987 if test $ac_mid -le $ac_hi; then
2991 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 # Binary search between lo and hi bounds.
3002 while test "x$ac_lo" != "x$ac_hi"; do
3003 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3017 if ac_fn_c_try_compile "$LINENO"; then :
3020 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3032 static long int longval () { return $2; }
3033 static unsigned long int ulongval () { return $2; }
3040 FILE *f = fopen ("conftest.val", "w");
3045 long int i = longval ();
3048 fprintf (f, "%ld", i);
3052 unsigned long int i = ulongval ();
3055 fprintf (f, "%lu", i);
3057 /* Do not output a trailing newline, as this causes \r\n confusion
3058 on some platforms. */
3059 return ferror (f) || fclose (f) != 0;
3065 if ac_fn_c_try_run "$LINENO"; then :
3066 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3071 conftest.$ac_objext conftest.beam conftest.$ac_ext
3075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3076 as_fn_set_status $ac_retval
3078 } # ac_fn_c_compute_int
3079 cat >config.log <<_ACEOF
3080 This file contains any messages produced by compilers while
3081 running configure, to aid debugging if configure makes a mistake.
3083 It was created by emacs $as_me 24.3.50, which was
3084 generated by GNU Autoconf 2.65. Invocation command line was
3096 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3097 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3098 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3099 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3100 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3102 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3103 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3105 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3106 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3107 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3108 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3109 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3110 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3111 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 $as_echo "PATH: $as_dir"
3136 # Keep a trace of the command line.
3137 # Strip out --no-create and --no-recursion so they do not pile up.
3138 # Strip out --silent because we don't want to record it for future runs.
3139 # Also quote any args containing shell meta-characters.
3140 # Make two passes to allow for proper duplicate-argument suppression.
3144 ac_must_keep_next=false
3150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3152 | -silent | --silent | --silen | --sile | --sil)
3155 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3160 as_fn_append ac_configure_args1 " '$ac_arg'"
3161 if test $ac_must_keep_next = true; then
3162 ac_must_keep_next=false # Got value, back to normal.
3165 *=* | --config-cache | -C | -disable-* | --disable-* \
3166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3168 | -with-* | --with-* | -without-* | --without-* | --x)
3169 case "$ac_configure_args0 " in
3170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3173 -* ) ac_must_keep_next=true ;;
3176 as_fn_append ac_configure_args " '$ac_arg'"
3181 { ac_configure_args0=; unset ac_configure_args0;}
3182 { ac_configure_args1=; unset ac_configure_args1;}
3184 # When interrupted or exit'd, cleanup temporary files, and complete
3185 # config.log. We remove comments because anyway the quotes in there
3186 # would cause problems or look ugly.
3187 # WARNING: Use '\'' to represent an apostrophe within the trap.
3188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3189 trap 'exit_status=$?
3190 # Save into config.log some information that might help in debugging.
3195 ## ---------------- ##
3196 ## Cache variables. ##
3197 ## ---------------- ##
3200 # The following way of writing the cache mishandles newlines in values,
3202 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3203 eval ac_val=\$$ac_var
3207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3211 _ | IFS | as_nl) ;; #(
3212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3213 *) { eval $ac_var=; unset $ac_var;} ;;
3218 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3219 *${as_nl}ac_space=\ *)
3221 "s/'\''/'\''\\\\'\'''\''/g;
3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3233 ## ----------------- ##
3234 ## Output variables. ##
3235 ## ----------------- ##
3238 for ac_var in $ac_subst_vars
3240 eval ac_val=\$$ac_var
3242 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3244 $as_echo "$ac_var='\''$ac_val'\''"
3248 if test -n "$ac_subst_files"; then
3250 ## ------------------- ##
3251 ## File substitutions. ##
3252 ## ------------------- ##
3255 for ac_var in $ac_subst_files
3257 eval ac_val=\$$ac_var
3259 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3261 $as_echo "$ac_var='\''$ac_val'\''"
3266 if test -s confdefs.h; then
3276 test "$ac_signal" != 0 &&
3277 $as_echo "$as_me: caught signal $ac_signal"
3278 $as_echo "$as_me: exit $exit_status"
3280 rm -f core *.core core.conftest.* &&
3281 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3284 for ac_signal in 1 2 13 15; do
3285 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3289 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3290 rm -f -r conftest* confdefs.h
3292 $as_echo "/* confdefs.h */" > confdefs.h
3294 # Predefined preprocessor variables.
3296 cat >>confdefs.h <<_ACEOF
3297 #define PACKAGE_NAME "$PACKAGE_NAME"
3300 cat >>confdefs.h <<_ACEOF
3301 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_STRING "$PACKAGE_STRING"
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_URL "$PACKAGE_URL"
3321 # Let the site file select an alternate cache file if it wants to.
3322 # Prefer an explicitly selected file to automatically selected ones.
3325 if test -n "$CONFIG_SITE"; then
3326 ac_site_file1=$CONFIG_SITE
3327 elif test "x$prefix" != xNONE; then
3328 ac_site_file1=$prefix/share/config.site
3329 ac_site_file2=$prefix/etc/config.site
3331 ac_site_file1=$ac_default_prefix/share/config.site
3332 ac_site_file2=$ac_default_prefix/etc/config.site
3334 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3336 test "x$ac_site_file" = xNONE && continue
3337 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3339 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3340 sed 's/^/| /' "$ac_site_file" >&5
3345 if test -r "$cache_file"; then
3346 # Some versions of bash will fail to source /dev/null (special files
3347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3350 $as_echo "$as_me: loading cache $cache_file" >&6;}
3352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3353 *) . "./$cache_file";;
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3358 $as_echo "$as_me: creating cache $cache_file" >&6;}
3362 as_fn_append ac_header_list " sys/systeminfo.h"
3363 as_fn_append ac_header_list " coff.h"
3364 as_fn_append ac_header_list " pty.h"
3365 as_fn_append ac_header_list " sys/resource.h"
3366 as_fn_append ac_header_list " sys/utsname.h"
3367 as_fn_append ac_header_list " pwd.h"
3368 as_fn_append ac_header_list " utmp.h"
3369 as_fn_append ac_header_list " util.h"
3370 as_fn_append ac_header_list " sys/socket.h"
3371 as_fn_append ac_header_list " stdlib.h"
3372 as_fn_append ac_header_list " unistd.h"
3373 as_fn_append ac_header_list " sys/param.h"
3374 as_fn_append ac_header_list " pthread.h"
3375 as_fn_append ac_header_list " malloc/malloc.h"
3376 as_fn_append ac_header_list " maillock.h"
3377 as_fn_append ac_header_list " sys/un.h"
3378 as_fn_append ac_func_list " tzset"
3379 as_fn_append ac_func_list " readlinkat"
3380 as_fn_append ac_header_list " dirent.h"
3381 as_fn_append ac_header_list " execinfo.h"
3382 as_fn_append ac_func_list " faccessat"
3383 as_fn_append ac_func_list " fcntl"
3384 as_fn_append ac_func_list " fdopendir"
3385 as_fn_append ac_header_list " stdio_ext.h"
3386 as_fn_append ac_func_list " __fpending"
3387 as_fn_append ac_func_list " fstatat"
3388 as_fn_append ac_func_list " fsync"
3389 gl_getopt_required=GNU
3390 as_fn_append ac_header_list " getopt.h"
3391 as_fn_append ac_func_list " gettimeofday"
3392 as_fn_append ac_func_list " nanotime"
3393 as_fn_append ac_header_list " sys/time.h"
3394 as_fn_append ac_header_list " wchar.h"
3395 as_fn_append ac_header_list " stdint.h"
3396 as_fn_append ac_header_list " inttypes.h"
3397 as_fn_append ac_func_list " lstat"
3398 as_fn_append ac_func_list " mkostemp"
3399 as_fn_append ac_func_list " pipe2"
3400 as_fn_append ac_header_list " sys/select.h"
3401 as_fn_append ac_func_list " pselect"
3402 as_fn_append ac_func_list " pthread_sigmask"
3403 as_fn_append ac_func_list " readlink"
3404 as_fn_append ac_func_list " strtoimax"
3405 as_fn_append ac_func_list " strtoumax"
3406 as_fn_append ac_func_list " symlink"
3407 as_fn_append ac_header_list " sys/stat.h"
3408 as_fn_append ac_func_list " localtime_r"
3409 as_fn_append ac_header_list " utime.h"
3410 as_fn_append ac_func_list " futimes"
3411 as_fn_append ac_func_list " futimesat"
3412 as_fn_append ac_func_list " futimens"
3413 as_fn_append ac_func_list " utimensat"
3414 as_fn_append ac_func_list " lutimes"
3415 as_fn_append ac_func_list " getdtablesize"
3416 as_fn_append ac_func_list " secure_getenv"
3417 # Check that the precious variables saved in the cache have kept the same
3419 ac_cache_corrupted=false
3420 for ac_var in $ac_precious_vars; do
3421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3422 eval ac_new_set=\$ac_env_${ac_var}_set
3423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3424 eval ac_new_val=\$ac_env_${ac_var}_value
3425 case $ac_old_set,$ac_new_set in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3428 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3429 ac_cache_corrupted=: ;;
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3432 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3433 ac_cache_corrupted=: ;;
3436 if test "x$ac_old_val" != "x$ac_new_val"; then
3437 # differences in whitespace do not lead to failure.
3438 ac_old_val_w=`echo x
$ac_old_val`
3439 ac_new_val_w=`echo x
$ac_new_val`
3440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3443 ac_cache_corrupted=:
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3447 eval $ac_var=\$ac_old_val
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3450 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3455 # Pass precious variables to config.status.
3456 if test "$ac_new_set" = set; then
3458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3459 *) ac_arg=$ac_var=$ac_new_val ;;
3461 case " $ac_configure_args " in
3462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3467 if $ac_cache_corrupted; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3472 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3474 ## -------------------- ##
3475 ## Main body of script. ##
3476 ## -------------------- ##
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 emacs_config_options="$@"
3487 ## Add some environment variables, if they were passed via the environment
3488 ## rather than on the command-line.
3489 for var in CFLAGS CPPFLAGS LDFLAGS; do
3490 case "$emacs_config_options" in
3491 *$var=*) continue ;;
3494 test x"$val" = x && continue
3495 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3498 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3502 for ac_dir in build-aux "$srcdir"/build-aux; do
3503 for ac_t in install-sh install.sh shtool; do
3504 if test -f "$ac_dir/$ac_t"; then
3506 ac_install_sh="$ac_aux_dir/$ac_t -c"
3511 if test -z "$ac_aux_dir"; then
3512 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3515 # These three variables are undocumented and unsupported,
3516 # and are intended to be withdrawn in a future Autoconf release.
3517 # They can cause serious problems if a builder's source tree is in a directory
3518 # whose full name contains unusual characters.
3519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3524 am__api_version='1.11'
3526 # Find a good install program. We prefer a C program (faster),
3527 # so one script is as good as another. But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if test "${ac_cv_path_install+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595 rm -rf conftest.one conftest.two conftest.dir
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620 $as_echo_n "checking whether build environment is sane... " >&6; }
3623 echo timestamp > conftest.file
3624 # Reject unsafe characters in $srcdir or the absolute working directory
3625 # name. Accept space and tab only in the latter.
3629 *[\\\"\#\$\&\'\`$am_lf]*)
3630 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3633 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3634 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3637 # Do `set' in a subshell so we don't clobber the current shell's
3638 # arguments. Must try -L first in case configure is actually a
3639 # symlink; some systems play weird games with the mod time of symlinks
3640 # (eg FreeBSD returns the mod time of the symlink's containing
3643 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3646 set X
`ls -t "$srcdir/configure" conftest.file`
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
3656 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3657 alias in your environment" "$LINENO" 5
3660 test "$2" = conftest.
file
3666 as_fn_error
"newly created file is older than distributed files!
3667 Check your system clock" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 test "$program_prefix" != NONE
&&
3672 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3673 # Use a double $ so make ignores it.
3674 test "$program_suffix" != NONE
&&
3675 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3676 # Double any \ or $.
3677 # By default was `s,x,x', remove it if useless.
3678 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3679 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3681 # expand $ac_aux_dir to an absolute path
3682 am_aux_dir
=`cd $ac_aux_dir && pwd`
3684 if test x
"${MISSING+set}" != xset
; then
3687 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3689 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3692 # Use eval to expand $SHELL
3693 if eval "$MISSING --run true"; then
3694 am_missing_run
="$MISSING --run "
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3701 if test x
"${install_sh}" != xset
; then
3704 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3706 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3710 # Installed binaries are usually stripped using `strip' when the user
3711 # run `make install-strip'. However `strip' might not be the right
3712 # tool to use in cross-compilation environments, therefore Automake
3713 # will honor the `STRIP' environment variable to overrule this program.
3714 if test "$cross_compiling" != no
; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3717 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_STRIP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$STRIP"; then
3724 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir
=.
3731 for ac_exec_ext
in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 STRIP
=$ac_cv_prog_STRIP
3744 if test -n "$STRIP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3746 $as_echo "$STRIP" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3754 if test -z "$ac_cv_prog_STRIP"; then
3756 # Extract the first word of "strip", so it can be a program name with args.
3757 set dummy strip
; ac_word
=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$ac_ct_STRIP"; then
3764 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir
=.
3771 for ac_exec_ext
in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_ac_ct_STRIP
="strip"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3784 if test -n "$ac_ct_STRIP"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3786 $as_echo "$ac_ct_STRIP" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 if test "x$ac_ct_STRIP" = x
; then
3795 case $cross_compiling:$ac_tool_warned in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned
=yes ;;
3804 STRIP
="$ac_cv_prog_STRIP"
3808 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3812 if test -z "$MKDIR_P"; then
3813 if test "${ac_cv_path_mkdir+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3817 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3820 test -z "$as_dir" && as_dir
=.
3821 for ac_prog
in mkdir gmkdir
; do
3822 for ac_exec_ext
in '' $ac_executable_extensions; do
3823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3825 'mkdir (GNU coreutils) '* | \
3826 'mkdir (coreutils) '* | \
3827 'mkdir (fileutils) '4.1*)
3828 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3838 test -d .
/--version && rmdir .
/--version
3839 if test "${ac_cv_path_mkdir+set}" = set; then
3840 MKDIR_P
="$ac_cv_path_mkdir -p"
3842 # As a last resort, use the slow shell script. Don't cache a
3843 # value for MKDIR_P within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the value is a relative name.
3846 MKDIR_P
="$ac_install_sh -d"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3850 $as_echo "$MKDIR_P" >&6; }
3854 [\\/$
]* | ?
:[\\/]*) ;;
3855 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3858 for ac_prog
in gawk mawk nawk
awk
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy
$ac_prog; ac_word
=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_AWK+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$AWK"; then
3868 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir
=.
3875 for ac_exec_ext
in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_AWK
="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$AWK"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3890 $as_echo "$AWK" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$AWK" && break
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3903 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3905 $as_echo_n "(cached) " >&6
3907 cat >conftest.
make <<\_ACEOF
3910 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3915 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3917 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3921 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 SET_MAKE
="MAKE=${MAKE-make}"
3931 rm -rf .tst
2>/dev
/null
3932 mkdir .tst
2>/dev
/null
3933 if test -d .tst
; then
3938 rmdir .tst
2>/dev
/null
3940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3942 # is not polluted with repeated "-I."
3943 am__isrc
=' -I$(srcdir)'
3944 # test to see if srcdir already configured
3945 if test -f $srcdir/config.status
; then
3946 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3950 # test whether we have cygpath
3951 if test -z "$CYGPATH_W"; then
3952 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3953 CYGPATH_W
='cygpath -w'
3960 # Define the identity of the package.
3965 cat >>confdefs.h
<<_ACEOF
3966 #define PACKAGE "$PACKAGE"
3970 cat >>confdefs.h
<<_ACEOF
3971 #define VERSION "$VERSION"
3974 # Some tools Automake needs.
3976 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3979 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3982 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3985 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3988 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3990 # We need awk for the "check" target. The system "awk" is bad on
3992 # Always define AMTAR for backward compatibility.
3994 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3996 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4005 lispdir
='${datadir}/emacs/${version}/lisp'
4006 leimdir
='${datadir}/emacs/${version}/leim'
4007 standardlisppath
='${lispdir}:${leimdir}'
4008 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4009 '${datadir}/emacs/site-lisp'
4010 lisppath
='${locallisppath}:${standardlisppath}'
4011 etcdir
='${datadir}/emacs/${version}/etc'
4012 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4013 docdir
='${datadir}/emacs/${version}/etc'
4014 gamedir
='${localstatedir}/games/emacs'
4017 # Check whether --with-all was given.
4018 if test "${with_all+set}" = set; then :
4019 withval
=$with_all; with_features
=$withval
4028 # Check whether --with-pop was given.
4029 if test "${with_pop+set}" = set; then :
4032 with_pop
=$with_features
4035 if test "$with_pop" = yes; then
4036 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4041 # Check whether --with-kerberos was given.
4042 if test "${with_kerberos+set}" = set; then :
4043 withval
=$with_kerberos;
4048 if test "$with_kerberos" != no
; then
4049 $as_echo "#define KERBEROS 1" >>confdefs.h
4054 # Check whether --with-kerberos5 was given.
4055 if test "${with_kerberos5+set}" = set; then :
4056 withval
=$with_kerberos5;
4061 if test "${with_kerberos5}" != no
; then
4062 if test "${with_kerberos}" = no
; then
4064 $as_echo "#define KERBEROS 1" >>confdefs.h
4068 $as_echo "#define KERBEROS5 1" >>confdefs.h
4073 # Check whether --with-hesiod was given.
4074 if test "${with_hesiod+set}" = set; then :
4075 withval
=$with_hesiod;
4080 if test "$with_hesiod" != no
; then
4082 $as_echo "#define HESIOD 1" >>confdefs.h
4087 # Check whether --with-mmdf was given.
4088 if test "${with_mmdf+set}" = set; then :
4094 if test "$with_mmdf" != no
; then
4096 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4101 # Check whether --with-mail-unlink was given.
4102 if test "${with_mail_unlink+set}" = set; then :
4103 withval
=$with_mail_unlink;
4108 if test "$with_mail_unlink" != no
; then
4110 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4115 # Check whether --with-mailhost was given.
4116 if test "${with_mailhost+set}" = set; then :
4117 withval
=$with_mailhost;
4118 cat >>confdefs.h
<<_ACEOF
4119 #define MAILHOST "$withval"
4126 # Check whether --with-sound was given.
4127 if test "${with_sound+set}" = set; then :
4128 withval
=$with_sound; case "${withval}" in
4129 yes|no|ossaudio|alsa
) val
=$withval ;;
4130 *) as_fn_error
"\`--with-sound=$withval' is invalid;
4131 this option's value should be \`yes', \`no', \`ossaudio', or \`alsa'." "$LINENO" 5
4137 with_sound
=$with_features
4142 # Check whether --with-x-toolkit was given.
4143 if test "${with_x_toolkit+set}" = set; then :
4144 withval
=$with_x_toolkit; case "${withval}" in
4145 y | ye |
yes ) val
=gtk
;;
4147 l | lu | luc | luci | lucid
) val
=lucid
;;
4148 a |
at | ath | athe | athen | athena
) val
=athena
;;
4149 m | mo | mot | moti | motif
) val
=motif
;;
4150 g | gt | gtk
) val
=gtk
;;
4154 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4155 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4156 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4157 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4166 # Check whether --with-wide-int was given.
4167 if test "${with_wide_int+set}" = set; then :
4168 withval
=$with_wide_int;
4173 if test "$with_wide_int" = yes; then
4175 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4180 # Check whether --with-xpm was given.
4181 if test "${with_xpm+set}" = set; then :
4184 with_xpm
=$with_features
4188 # Check whether --with-jpeg was given.
4189 if test "${with_jpeg+set}" = set; then :
4192 with_jpeg
=$with_features
4196 # Check whether --with-tiff was given.
4197 if test "${with_tiff+set}" = set; then :
4200 with_tiff
=$with_features
4204 # Check whether --with-gif was given.
4205 if test "${with_gif+set}" = set; then :
4208 with_gif
=$with_features
4212 # Check whether --with-png was given.
4213 if test "${with_png+set}" = set; then :
4216 with_png
=$with_features
4220 # Check whether --with-rsvg was given.
4221 if test "${with_rsvg+set}" = set; then :
4224 with_rsvg
=$with_features
4228 # Check whether --with-xml2 was given.
4229 if test "${with_xml2+set}" = set; then :
4232 with_xml2
=$with_features
4236 # Check whether --with-imagemagick was given.
4237 if test "${with_imagemagick+set}" = set; then :
4238 withval
=$with_imagemagick;
4240 with_imagemagick
=$with_features
4245 # Check whether --with-xft was given.
4246 if test "${with_xft+set}" = set; then :
4249 with_xft
=$with_features
4253 # Check whether --with-libotf was given.
4254 if test "${with_libotf+set}" = set; then :
4255 withval
=$with_libotf;
4257 with_libotf
=$with_features
4261 # Check whether --with-m17n-flt was given.
4262 if test "${with_m17n_flt+set}" = set; then :
4263 withval
=$with_m17n_flt;
4265 with_m17n_flt
=$with_features
4270 # Check whether --with-toolkit-scroll-bars was given.
4271 if test "${with_toolkit_scroll_bars+set}" = set; then :
4272 withval
=$with_toolkit_scroll_bars;
4274 with_toolkit_scroll_bars
=$with_features
4278 # Check whether --with-xaw3d was given.
4279 if test "${with_xaw3d+set}" = set; then :
4280 withval
=$with_xaw3d;
4282 with_xaw3d
=$with_features
4286 # Check whether --with-xim was given.
4287 if test "${with_xim+set}" = set; then :
4290 with_xim
=$with_features
4294 # Check whether --with-ns was given.
4295 if test "${with_ns+set}" = set; then :
4302 # Check whether --with-w32 was given.
4303 if test "${with_w32+set}" = set; then :
4311 # Check whether --with-gpm was given.
4312 if test "${with_gpm+set}" = set; then :
4315 with_gpm
=$with_features
4319 # Check whether --with-dbus was given.
4320 if test "${with_dbus+set}" = set; then :
4323 with_dbus
=$with_features
4327 # Check whether --with-gconf was given.
4328 if test "${with_gconf+set}" = set; then :
4329 withval
=$with_gconf;
4331 with_gconf
=$with_features
4335 # Check whether --with-gsettings was given.
4336 if test "${with_gsettings+set}" = set; then :
4337 withval
=$with_gsettings;
4339 with_gsettings
=$with_features
4343 # Check whether --with-selinux was given.
4344 if test "${with_selinux+set}" = set; then :
4345 withval
=$with_selinux;
4347 with_selinux
=$with_features
4351 # Check whether --with-gnutls was given.
4352 if test "${with_gnutls+set}" = set; then :
4353 withval
=$with_gnutls;
4355 with_gnutls
=$with_features
4360 # Check whether --with-file-notification was given.
4361 if test "${with_file_notification+set}" = set; then :
4362 withval
=$with_file_notification; case "${withval}" in
4363 y | ye |
yes ) val
=yes ;;
4365 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4366 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4367 w | w3 | w32
) val
=w32
;;
4368 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4369 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4370 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4371 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4374 with_file_notification
=$val
4377 with_file_notification
=$with_features
4381 ## For the times when you want to build Emacs but don't have
4382 ## a suitable makeinfo, and can live without the manuals.
4384 # Check whether --with-makeinfo was given.
4385 if test "${with_makeinfo+set}" = set; then :
4386 withval
=$with_makeinfo;
4388 with_makeinfo
=$with_features
4392 ## Makefile.in needs the cache file name.
4395 ## This is an option because I do not know if all info/man support
4396 ## compressed files, nor how to test if they do so.
4398 # Check whether --with-compress-info was given.
4399 if test "${with_compress_info+set}" = set; then :
4400 withval
=$with_compress_info;
4402 with_compress_info
=$with_features
4405 if test $with_compress_info = yes; then
4413 # Check whether --with-pkg-config-prog was given.
4414 if test "${with_pkg_config_prog+set}" = set; then :
4415 withval
=$with_pkg_config_prog;
4418 if test "X${with_pkg_config_prog}" != X
; then
4419 if test "${with_pkg_config_prog}" != yes; then
4420 PKG_CONFIG
="${with_pkg_config_prog}"
4425 # Check whether --with-gameuser was given.
4426 if test "${with_gameuser+set}" = set; then :
4427 withval
=$with_gameuser;
4430 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4431 && gameuser
="${with_gameuser}"
4432 test "X$gameuser" = X
&& gameuser
=games
4435 # Check whether --with-gnustep-conf was given.
4436 if test "${with_gnustep_conf+set}" = set; then :
4437 withval
=$with_gnustep_conf;
4440 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4441 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4442 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4443 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4445 # Check whether --enable-ns-self-contained was given.
4446 if test "${enable_ns_self_contained+set}" = set; then :
4447 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4449 EN_NS_SELF_CONTAINED
=yes
4453 # Check whether --enable-locallisppath was given.
4454 if test "${enable_locallisppath+set}" = set; then :
4455 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4457 elif test "${enableval}" != "yes"; then
4458 locallisppath
=${enableval}
4463 # Check whether --enable-checking was given.
4464 if test "${enable_checking+set}" = set; then :
4465 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4468 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4469 for check
in $ac_checking_flags
4472 # these set all the flags to specific states
4473 yes) ac_enable_checking
=1 ;;
4474 no
) ac_enable_checking
= ;
4475 ac_gc_check_stringbytes
= ;
4476 ac_gc_check_string_overrun
= ;
4477 ac_gc_check_string_free_list
= ;
4478 ac_xmalloc_overrun
= ;
4479 ac_gc_check_cons_list
= ;
4481 all
) ac_enable_checking
=1 ;
4482 ac_gc_check_stringbytes
=1 ;
4483 ac_gc_check_string_overrun
=1 ;
4484 ac_gc_check_string_free_list
=1 ;
4485 ac_xmalloc_overrun
=1 ;
4486 ac_gc_check_cons_list
=1 ;
4487 ac_glyphs_debug
=1 ;;
4488 # these enable particular checks
4489 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4490 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4491 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4492 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4493 conslist
) ac_gc_check_cons_list
=1 ;;
4494 glyphs
) ac_glyphs_debug
=1 ;;
4495 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4500 if test x
$ac_enable_checking != x
; then
4502 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4505 if test x
$ac_gc_check_stringbytes != x
; then
4507 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4510 if test x
$ac_gc_check_string_overrun != x
; then
4512 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4515 if test x
$ac_gc_check_string_free_list != x
; then
4517 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4520 if test x
$ac_xmalloc_overrun != x
; then
4522 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4525 if test x
$ac_gc_check_cons_list != x
; then
4527 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4530 if test x
$ac_glyphs_debug != x
; then
4532 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4536 # Check whether --enable-check-lisp-object-type was given.
4537 if test "${enable_check_lisp_object_type+set}" = set; then :
4538 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4540 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4547 # Check whether --enable-profiling was given.
4548 if test "${enable_profiling+set}" = set; then :
4549 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4552 if test x
$ac_enable_profiling != x
; then
4553 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4559 # Check whether --enable-autodepend was given.
4560 if test "${enable_autodepend+set}" = set; then :
4561 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4563 ac_enable_autodepend
=yes
4567 # Check whether --enable-gtk-deprecation-warnings was given.
4568 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4569 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4573 #### Make srcdir absolute, if it isn't already. It's important to
4574 #### avoid running the file name through pwd unnecessarily, since pwd can
4575 #### give you automounter prefixes, which can go away. We do all this
4576 #### so Emacs can find its files when run uninstalled.
4577 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4580 [\\/]* | ?
:[\\/]*) ;;
4582 ## We may be able to use the $PWD environment variable to make this
4583 ## absolute. But sometimes PWD is inaccurate.
4584 ## Note: we used to use $PWD at the end instead of `pwd`,
4585 ## but that tested only for a well-formed and valid PWD,
4586 ## it did not object when PWD was well-formed and valid but just wrong.
4587 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4591 srcdir
=`(cd "$srcdir"; pwd)`
4594 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4597 ### Canonicalize the configuration name.
4599 # Make sure we can run config.sub.
4600 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4601 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4604 $as_echo_n "checking build system type... " >&6; }
4605 if test "${ac_cv_build+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 ac_build_alias
=$build_alias
4609 test "x$ac_build_alias" = x
&&
4610 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4611 test "x$ac_build_alias" = x
&&
4612 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4613 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4614 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4618 $as_echo "$ac_cv_build" >&6; }
4619 case $ac_cv_build in
4621 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4624 ac_save_IFS
=$IFS; IFS
='-'
4630 # Remember, the first character of IFS is used to create $*,
4631 # except with old shells:
4634 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4638 $as_echo_n "checking host system type... " >&6; }
4639 if test "${ac_cv_host+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4642 if test "x$host_alias" = x
; then
4643 ac_cv_host
=$ac_cv_build
4645 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4646 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4651 $as_echo "$ac_cv_host" >&6; }
4654 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4657 ac_save_IFS
=$IFS; IFS
='-'
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4667 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4671 configuration
=${host_alias-${build_alias-$host}}
4675 ### If you add support for a new configuration, add code to this
4676 ### switch statement to recognize your configuration name and select
4677 ### the appropriate operating system file.
4679 ### You would hope that you could choose an s/*.h
4680 ### file based on the operating system portion. However, it turns out
4681 ### that each s/*.h file is pretty manufacturer-specific.
4682 ### So we basically have to have a special case for each
4683 ### configuration name.
4685 ### As far as handling version numbers on operating systems is
4686 ### concerned, make sure things will fail in a fixable way. If
4687 ### /etc/MACHINES doesn't say anything about version numbers, be
4688 ### prepared to handle anything reasonably. If version numbers
4689 ### matter, be sure /etc/MACHINES says something about it.
4691 opsys
='' unported
=no
4692 case "${canonical}" in
4694 ## GNU/Linux and similar ports
4709 ## FreeBSD kernel + glibc based userland
4724 ## Apple Darwin / Mac OS X
4726 case "${canonical}" in
4733 ## Use fink packages if available.
4734 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4735 ## if test -d /sw/include && test -d /sw/lib; then
4736 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4737 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4746 ## HP 9000 series 700 and 800, running HP/UX
4747 hppa
*-hp-hpux10.2
* )
4750 hppa
*-hp-hpux1[1-9]* )
4752 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4756 rs6000-ibm-aix4.
[23]* )
4759 powerpc-ibm-aix4.
[23]* )
4762 rs6000-ibm-aix
[56]* )
4765 powerpc-ibm-aix
[56]* )
4769 ## Silicon Graphics machines
4773 # Without defining _LANGUAGE_C, things get masked out in the headers
4774 # so that, for instance, grepping for `free' in stdlib.h fails and
4775 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4776 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4781 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4782 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4783 case "${canonical}" in
4785 amd64-
*-*|x86_64-
*-*) ;;
4789 case "${canonical}" in
4790 *-sunos5.6
* |
*-solaris2.6
* )
4794 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4796 emacs_check_sunpro_c
=yes
4798 *-sunos5* |
*-solaris* )
4800 emacs_check_sunpro_c
=yes
4803 ## Watch out for a compiler that we know will not work.
4804 case "${canonical}" in
4805 *-solaris* |
*-sunos5* )
4806 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4807 ## /usr/ucb/cc doesn't work;
4808 ## we should find some other compiler that does work.
4816 ## Intel 386 machines where we don't care about the manufacturer.
4818 case "${canonical}" in
4819 *-darwin* ) opsys
=darwin
;;
4822 # MinGW overrides and adds some system headers in nt/inc.
4823 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4825 *-sysv4.2uw
* ) opsys
=unixware
;;
4826 *-sysv5uw* ) opsys
=unixware
;;
4827 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4828 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4837 ### If the code above didn't choose an operating system, just choose
4838 ### an operating system based on the configuration name. You really
4839 ### only want to use this when you have no idea what the right
4840 ### operating system is; if you know what operating systems a machine
4841 ### runs, it's cleaner to make it explicit in the case statement
4843 if test x
"${opsys}" = x
; then
4844 case "${canonical}" in
4845 *-gnu* ) opsys
=gnu
;;
4854 if test $unported = yes; then
4855 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4856 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4860 #### Choose a compiler.
4863 ac_cpp
='$CPP $CPPFLAGS'
4864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4867 if test -n "$ac_tool_prefix"; then
4868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4869 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC
="$CC" # Let the user override the test.
4878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir
=.
4883 for ac_exec_ext
in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 if test -n "$CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 $as_echo "$CC" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4906 if test -z "$ac_cv_prog_CC"; then
4908 # Extract the first word of "gcc", so it can be a program name with args.
4909 set dummy gcc
; ac_word
=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4915 if test -n "$ac_ct_CC"; then
4916 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir
=.
4923 for ac_exec_ext
in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_ac_ct_CC
="gcc"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4936 if test -n "$ac_ct_CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938 $as_echo "$ac_ct_CC" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4944 if test "x$ac_ct_CC" = x
; then
4947 case $cross_compiling:$ac_tool_warned in
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned
=yes ;;
4959 if test -z "$CC"; then
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4962 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_CC+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$CC"; then
4969 ac_cv_prog_CC
="$CC" # Let the user override the test.
4971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir
=.
4976 for ac_exec_ext
in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 if test -n "$CC"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4991 $as_echo "$CC" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
5000 if test -z "$CC"; then
5001 # Extract the first word of "cc", so it can be a program name with args.
5002 set dummy cc
; ac_word
=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_CC+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC
="$CC" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5020 ac_prog_rejected
=yes
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 if test $ac_prog_rejected = yes; then
5032 # We found a bogon in the path, so make sure we never use it.
5033 set dummy
$ac_cv_prog_CC
5035 if test $# != 0; then
5036 # We chose a different compiler from the bogus one.
5037 # However, it has the same basename, so the bogon will be chosen
5038 # first if we set CC to just the basename; use the full file name.
5040 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5046 if test -n "$CC"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5048 $as_echo "$CC" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5056 if test -z "$CC"; then
5057 if test -n "$ac_tool_prefix"; then
5058 for ac_prog
in cl.exe
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC
="$CC" # Let the user override the test.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$CC"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5090 $as_echo "$CC" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 test -n "$CC" && break
5100 if test -z "$CC"; then
5102 for ac_prog
in cl.exe
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy
$ac_prog; ac_word
=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC
="$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5134 $as_echo "$ac_ct_CC" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$ac_ct_CC" && break
5144 if test "x$ac_ct_CC" = x
; then
5147 case $cross_compiling:$ac_tool_warned in
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151 ac_tool_warned
=yes ;;
5160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5162 as_fn_error
"no acceptable C compiler found in \$PATH
5163 See \`config.log' for more details." "$LINENO" 5; }
5165 # Provide some information about the compiler.
5166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5169 for ac_option
in --version -v -V -qversion; do
5170 { { ac_try
="$ac_compiler $ac_option >&5"
5172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179 if test -s conftest.err; then
5181 ... rest of stderr output deleted ...
5182 10q' conftest.err >conftest.er1
5183 cat conftest.er1 >&5
5185 rm -f conftest.er1 conftest.err
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5201 ac_clean_files_save=$ac_clean_files
5202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5203 # Try to create an executable without -o first, disregard a.out.
5204 # It will help us diagnose broken compilers, and finding out an intuition
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5207 $as_echo_n "checking whether the C compiler works... " >&6; }
5208 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5210 # The possible output files:
5211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5214 for ac_file in $ac_files
5217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5223 if { { ac_try="$ac_link_default"
5225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5226 *) ac_try_echo
=$ac_try;;
5228 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_link_default") 2>&5
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5237 # so that the user can short-circuit this test for compilers unknown to
5239 for ac_file
in $ac_files ''
5241 test -f "$ac_file" ||
continue
5243 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5246 # We found the default executable, but exeext='' is most
5250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5252 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5254 # We set ac_cv_exeext here because the later test for it is not
5255 # safe: cross compilers may not add the suffix if given an `-o'
5256 # argument, so we may need to know it at that point already.
5257 # Even if this section looks crufty: it has the advantage of
5264 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5269 if test -z "$ac_file"; then :
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.
$ac_ext >&5
5275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5277 { as_fn_set_status
77
5278 as_fn_error
"C compiler cannot create executables
5279 See \`config.log' for more details." "$LINENO" 5; }; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282 $as_echo "yes" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5285 $as_echo_n "checking for C compiler default output file name... " >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5287 $as_echo "$ac_file" >&6; }
5288 ac_exeext
=$ac_cv_exeext
5290 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5291 ac_clean_files
=$ac_clean_files_save
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5293 $as_echo_n "checking for suffix of executables... " >&6; }
5294 if { { ac_try
="$ac_link"
5296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5300 $as_echo "$ac_try_echo"; } >&5
5301 (eval "$ac_link") 2>&5
5303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5304 test $ac_status = 0; }; then :
5305 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5306 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5307 # work properly (i.e., refer to `conftest.exe'), while it won't with
5309 for ac_file
in conftest.exe conftest conftest.
*; do
5310 test -f "$ac_file" ||
continue
5312 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5313 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5322 See \`config.log' for more details." "$LINENO" 5; }
5324 rm -f conftest conftest
$ac_cv_exeext
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5326 $as_echo "$ac_cv_exeext" >&6; }
5328 rm -f conftest.
$ac_ext
5329 EXEEXT
=$ac_cv_exeext
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5337 FILE *f = fopen ("conftest.out", "w");
5338 return ferror (f) || fclose (f) != 0;
5344 ac_clean_files
="$ac_clean_files conftest.out"
5345 # Check that the compiler produces executables we can run. If not, either
5346 # the compiler is broken, or we cross compile.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5348 $as_echo_n "checking whether we are cross compiling... " >&6; }
5349 if test "$cross_compiling" != yes; then
5350 { { ac_try
="$ac_link"
5352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5356 $as_echo "$ac_try_echo"; } >&5
5357 (eval "$ac_link") 2>&5
5359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5360 test $ac_status = 0; }
5361 if { ac_try='./conftest$ac_cv_exeext'
5362 { { case "(($ac_try" in
5363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5364 *) ac_try_echo
=$ac_try;;
5366 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367 $as_echo "$ac_try_echo"; } >&5
5368 (eval "$ac_try") 2>&5
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }; }; then
5374 if test "$cross_compiling" = maybe
; then
5377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379 as_fn_error
"cannot run C compiled programs.
5380 If you meant to cross compile, use \`--host'.
5381 See \`config.log' for more details." "$LINENO" 5; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5386 $as_echo "$cross_compiling" >&6; }
5388 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5389 ac_clean_files
=$ac_clean_files_save
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5391 $as_echo_n "checking for suffix of object files... " >&6; }
5392 if test "${ac_cv_objext+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5406 rm -f conftest.o conftest.obj
5407 if { { ac_try
="$ac_compile"
5409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5413 $as_echo "$ac_try_echo"; } >&5
5414 (eval "$ac_compile") 2>&5
5416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }; then :
5418 for ac_file in conftest.o conftest.obj conftest.*; do
5419 test -f "$ac_file" || continue;
5421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5427 $as_echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5432 as_fn_error "cannot compute suffix of object files
: cannot compile
5433 See \
`config.log' for more details." "$LINENO" 5; }
5435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5438 $as_echo "$ac_cv_objext" >&6; }
5439 OBJEXT=$ac_cv_objext
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5443 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5460 if ac_fn_c_try_compile "$LINENO"; then :
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5471 if test $ac_compiler_gnu = yes; then
5476 ac_test_CFLAGS=${CFLAGS+set}
5477 ac_save_CFLAGS=$CFLAGS
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5480 if test "${ac_cv_prog_cc_g+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5483 ac_save_c_werror_flag=$ac_c_werror_flag
5484 ac_c_werror_flag=yes
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5498 if ac_fn_c_try_compile "$LINENO"; then :
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5513 if ac_fn_c_try_compile "$LINENO"; then :
5516 ac_c_werror_flag=$ac_save_c_werror_flag
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5529 if ac_fn_c_try_compile "$LINENO"; then :
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_c_werror_flag=$ac_save_c_werror_flag
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5540 $as_echo "$ac_cv_prog_cc_g" >&6; }
5541 if test "$ac_test_CFLAGS" = set; then
5542 CFLAGS=$ac_save_CFLAGS
5543 elif test $ac_cv_prog_cc_g = yes; then
5544 if test "$GCC" = yes; then
5550 if test "$GCC" = yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5558 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5561 ac_cv_prog_cc_c89=no
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 #include <sys/stat.h>
5569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5570 struct buf { int x; };
5571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5572 static char *e (p, i)
5578 static char *f (char * (*g) (char **, int), char **p, ...)
5583 s = g (p, va_arg (v,int));
5588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5589 function prototypes and stuff, but not '\xHH' hex character constants.
5590 These don't provoke an error unfortunately, instead are silently treated
5591 as 'x'. The following induces an error, until -std is added to get
5592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5593 array size at least. It's necessary to write '\x00'==0 to get something
5594 that's true only with -std. */
5595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5598 inside strings and character constants. */
5600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5602 int test (int i, double x);
5603 struct s1 {int (*f) (int a);};
5604 struct s2 {int (*f) (double a);};
5605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5619 CC="$ac_save_CC $ac_arg"
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_prog_cc_c89=$ac_arg
5623 rm -f core conftest.err conftest.$ac_objext
5624 test "x$ac_cv_prog_cc_c89" != "xno" && break
5626 rm -f conftest.$ac_ext
5631 case "x$ac_cv_prog_cc_c89" in
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5634 $as_echo "none needed" >&6; } ;;
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5637 $as_echo "unsupported" >&6; } ;;
5639 CC="$CC $ac_cv_prog_cc_c89"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5643 if test "x$ac_cv_prog_cc_c89" != xno; then :
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 DEPDIR="${am__leading_dot}deps"
5654 ac_config_commands="$ac_config_commands depfiles"
5657 am_make=${MAKE-make}
5658 cat > confinc << 'END'
5660 @echo this is the am__doit target
5663 # If we don't find an include directive, just comment out the code.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5669 # First try GNU make style include.
5670 echo "include confinc" > confmf
5671 # Ignore all kinds of additional output from `make'.
5672 case `$am_make -s -f confmf 2> /dev/null` in #(
5673 *the\ am__doit\ target*)
5679 # Now try BSD make style include.
5680 if test "$am__include" = "#"; then
5681 echo '.include
"confinc"' > confmf
5682 case `$am_make -s -f confmf 2> /dev/null` in #(
5683 *the\ am__doit\ target*)
5684 am__include=.include
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5693 $as_echo "$_am_result" >&6; }
5694 rm -f confinc confmf
5696 # Check whether --enable-dependency-tracking was given.
5697 if test "${enable_dependency_tracking+set}" = set; then :
5698 enableval=$enable_dependency_tracking;
5701 if test "x$enable_dependency_tracking" != xno; then
5702 am_depcomp="$ac_aux_dir/depcomp"
5705 if test "x$enable_dependency_tracking" != xno
; then
5715 depcc
="$CC" am_compiler_list
=
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5718 $as_echo_n "checking dependency style of $depcc... " >&6; }
5719 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5723 # We make a subdir and do the tests there. Otherwise we can end up
5724 # making bogus files that we don't know about and never remove. For
5725 # instance it was reported that on HP-UX the gcc test will end up
5726 # making a dummy file named `D' -- because `-MD' means `put the output
5729 # Copy depcomp to subdir because otherwise we won't find it if we're
5730 # using a relative directory.
5731 cp "$am_depcomp" conftest.dir
5733 # We will build objects and dependencies in a subdirectory because
5734 # it helps to detect inapplicable dependency modes. For instance
5735 # both Tru64's cc and ICC support -MD to output dependencies as a
5736 # side effect of compilation, but ICC will put the dependencies in
5737 # the current directory while Tru64 will put them in the object
5741 am_cv_CC_dependencies_compiler_type
=none
5742 if test "$am_compiler_list" = ""; then
5743 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5746 case " $depcc " in #(
5747 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5750 for depmode
in $am_compiler_list; do
5751 # Setup a source with many dependencies, because some compilers
5752 # like to wrap large dependency lists on column 80 (with \), and
5753 # we should not choose a depcomp mode which is confused by this.
5755 # We need to recreate these files for each test, as the compiler may
5756 # overwrite some of them when testing with obscure command lines.
5757 # This happens at least with the AIX C compiler.
5759 for i
in 1 2 3 4 5 6; do
5760 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5761 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5762 # Solaris 8's {/usr,}/bin/sh.
5763 touch sub
/conftst
$i.h
5765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5768 # mode. It turns out that the SunPro C++ compiler does not properly
5769 # handle `-M -o', and we need to detect this. Also, some Intel
5770 # versions had trouble with output in subdirs
5771 am__obj
=sub
/conftest.
${OBJEXT-o}
5772 am__minus_obj
="-o $am__obj"
5775 # This depmode causes a compiler race in universal mode.
5776 test "$am__universal" = false ||
continue
5779 # after this tag, mechanisms are not by side-effect, so they'll
5780 # only be used when explicitly requested
5781 if test "x$enable_dependency_tracking" = xyes
; then
5787 msvisualcpp | msvcmsys
)
5788 # This compiler won't grok `-c -o', but also, the minuso test has
5789 # not run yet. These depmodes are late enough in the game, and
5790 # so weak that their functioning should not be impacted.
5791 am__obj
=conftest.
${OBJEXT-o}
5796 if depmode
=$depmode \
5797 source=sub
/conftest.c object
=$am__obj \
5798 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5799 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5800 >/dev
/null
2>conftest.err
&&
5801 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5802 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5803 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5804 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5805 # icc doesn't choke on unknown options, it will just issue warnings
5806 # or remarks (even with -Werror). So we grep stderr for any message
5807 # that says an option was ignored or not supported.
5808 # When given -MP, icc 7.0 and 7.1 complain thusly:
5809 # icc: Command line warning: ignoring option '-M'; no argument required
5810 # The diagnosis changed in icc 8.0:
5811 # icc: Command line remark: option '-MP' not supported
5812 if (grep 'ignoring option' conftest.err ||
5813 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5814 am_cv_CC_dependencies_compiler_type
=$depmode
5823 am_cv_CC_dependencies_compiler_type
=none
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5828 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5829 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5832 test "x$enable_dependency_tracking" != xno \
5833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5835 am__fastdepCC_FALSE
='#'
5837 am__fastdepCC_TRUE
='#'
5838 am__fastdepCC_FALSE
=
5842 if test "x$CC" != xcc
; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5844 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5847 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5849 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5850 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5851 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5852 $as_echo_n "(cached) " >&6
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5865 # Make sure it works both with $CC and with simple cc.
5866 # We do the test twice because some compilers refuse to overwrite an
5867 # existing .o file with -o, though they will create one.
5868 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5870 if { { case "(($ac_try" in
5871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5875 $as_echo "$ac_try_echo"; } >&5
5876 (eval "$ac_try") 2>&5
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; } &&
5880 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5882 *) ac_try_echo
=$ac_try;;
5884 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5885 $as_echo "$ac_try_echo"; } >&5
5886 (eval "$ac_try") 2>&5
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; };
5891 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5892 if test "x$CC" != xcc
; then
5893 # Test first that cc exists at all.
5894 if { ac_try
='cc -c conftest.$ac_ext >&5'
5895 { { case "(($ac_try" in
5896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5900 $as_echo "$ac_try_echo"; } >&5
5901 (eval "$ac_try") 2>&5
5903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904 test $ac_status = 0; }; }; then
5905 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5907 if { { case "(($ac_try" in
5908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5909 *) ac_try_echo
=$ac_try;;
5911 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5912 $as_echo "$ac_try_echo"; } >&5
5913 (eval "$ac_try") 2>&5
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; } &&
5917 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5922 $as_echo "$ac_try_echo"; } >&5
5923 (eval "$ac_try") 2>&5
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; };
5931 # cc exists but doesn't like -o.
5932 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5937 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5939 rm -f core conftest*
5942 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5944 $as_echo "yes" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5949 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5953 # FIXME: we rely on the cache variable name because
5954 # there is no other way.
5956 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5957 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5958 if test "$am_t" != yes; then
5959 # Losing compiler, so override with the script.
5960 # FIXME: It is wrong to rewrite CC.
5961 # But if we don't then we get into trouble of one sort or another.
5962 # A longer-term fix would be to have automake use am__CC in this case,
5963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5964 CC="$am_aux_dir/compile $CC"
5969 if test x$GCC = xyes; then
5970 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5972 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5975 if test "x$opsys" = "xmingw32"; then
5976 BUILDING_FOR_WINDOWSNT_TRUE=
5977 BUILDING_FOR_WINDOWSNT_FALSE='#'
5979 BUILDING_FOR_WINDOWSNT_TRUE='#'
5980 BUILDING_FOR_WINDOWSNT_FALSE=
5984 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5985 # as we don't use them.
5987 # Avoid gnulib's threadlib module, as we do threads our own way.
5990 # Initialize gnulib right after choosing the compiler.
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5998 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5999 # On Suns, sometimes $CPP names a directory.
6000 if test -n "$CPP" && test -d "$CPP"; then
6003 if test -z "$CPP"; then
6004 if test "${ac_cv_prog_CPP+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 # Double quotes because CPP needs to be expanded
6008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6011 for ac_c_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6022 # include <limits.h>
6024 # include <assert.h>
6028 if ac_fn_c_try_cpp "$LINENO"; then :
6031 # Broken: fails on valid input.
6034 rm -f conftest.err conftest.$ac_ext
6036 # OK, works on sane cases. Now check whether nonexistent headers
6037 # can be detected and how.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <ac_nonexistent.h>
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6043 # Broken: success on invalid input.
6046 # Passes both tests.
6050 rm -f conftest.err conftest.$ac_ext
6053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6054 rm -f conftest.err conftest.
$ac_ext
6055 if $ac_preproc_ok; then :
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6068 $as_echo "$CPP" >&6; }
6070 for ac_c_preproc_warn_flag
in '' yes
6072 # Use a header file that comes with gcc, so configuring glibc
6073 # with a fresh cross-compiler works.
6074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6075 # <limits.h> exists even on freestanding compilers.
6076 # On the NeXT, cc -E runs the code through the compiler's parser,
6077 # not just through cpp. "Syntax error" is here to catch this case.
6078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6081 # include <limits.h>
6083 # include <assert.h>
6087 if ac_fn_c_try_cpp
"$LINENO"; then :
6090 # Broken: fails on valid input.
6093 rm -f conftest.err conftest.
$ac_ext
6095 # OK, works on sane cases. Now check whether nonexistent headers
6096 # can be detected and how.
6097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <ac_nonexistent.h>
6101 if ac_fn_c_try_cpp
"$LINENO"; then :
6102 # Broken: success on invalid input.
6105 # Passes both tests.
6109 rm -f conftest.err conftest.
$ac_ext
6112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6113 rm -f conftest.err conftest.
$ac_ext
6114 if $ac_preproc_ok; then :
6117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6119 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6120 See \`config.log' for more details." "$LINENO" 5; }
6124 ac_cpp
='$CPP $CPPFLAGS'
6125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6131 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6132 if test "${ac_cv_path_GREP+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -z "$GREP"; then
6136 ac_path_GREP_found
=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6139 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6142 test -z "$as_dir" && as_dir
=.
6143 for ac_prog
in grep ggrep
; do
6144 for ac_exec_ext
in '' $ac_executable_extensions; do
6145 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6147 # Check for GNU ac_path_GREP and select it if it is found.
6148 # Check for GNU $ac_path_GREP
6149 case `"$ac_path_GREP" --version 2>&1` in
6151 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6154 $as_echo_n 0123456789 >"conftest.in"
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'GREP' >> "conftest.nl"
6161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6162 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6163 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_GREP
="$ac_path_GREP"
6167 ac_path_GREP_max
=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6172 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6175 $ac_path_GREP_found && break 3
6180 if test -z "$ac_cv_path_GREP"; then
6181 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6184 ac_cv_path_GREP
=$GREP
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6189 $as_echo "$ac_cv_path_GREP" >&6; }
6190 GREP
="$ac_cv_path_GREP"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6194 $as_echo_n "checking for egrep... " >&6; }
6195 if test "${ac_cv_path_EGREP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6198 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6199 then ac_cv_path_EGREP
="$GREP -E"
6201 if test -z "$EGREP"; then
6202 ac_path_EGREP_found
=false
6203 # Loop through the user's path and test for each of PROGNAME-LIST
6204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6205 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6208 test -z "$as_dir" && as_dir
=.
6209 for ac_prog
in egrep; do
6210 for ac_exec_ext
in '' $ac_executable_extensions; do
6211 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6213 # Check for GNU ac_path_EGREP and select it if it is found.
6214 # Check for GNU $ac_path_EGREP
6215 case `"$ac_path_EGREP" --version 2>&1` in
6217 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6220 $as_echo_n 0123456789 >"conftest.in"
6223 cat "conftest.in" "conftest.in" >"conftest.tmp"
6224 mv "conftest.tmp" "conftest.in"
6225 cp "conftest.in" "conftest.nl"
6226 $as_echo 'EGREP' >> "conftest.nl"
6227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6228 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6229 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6231 # Best one so far, save it but keep looking for a better one
6232 ac_cv_path_EGREP
="$ac_path_EGREP"
6233 ac_path_EGREP_max
=$ac_count
6235 # 10*(2^10) chars as input seems more than enough
6236 test $ac_count -gt 10 && break
6238 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6241 $ac_path_EGREP_found && break 3
6246 if test -z "$ac_cv_path_EGREP"; then
6247 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6250 ac_cv_path_EGREP
=$EGREP
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6256 $as_echo "$ac_cv_path_EGREP" >&6; }
6257 EGREP
="$ac_cv_path_EGREP"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6263 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6264 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6278 gl_cv_c_amsterdam_compiler
=yes
6280 gl_cv_c_amsterdam_compiler
=no
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6287 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6288 if test -z "$AR"; then
6289 if test $gl_cv_c_amsterdam_compiler = yes; then
6291 if test -z "$ARFLAGS"; then
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6297 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if test "${ac_cv_prog_AR+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$AR"; then
6304 ac_cv_prog_AR
="$AR" # Let the user override the test.
6306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir
=.
6311 for ac_exec_ext
in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 if test -n "$AR"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6326 $as_echo "$AR" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_AR"; then
6336 # Extract the first word of "ar", so it can be a program name with args.
6337 set dummy
ar; ac_word
=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$ac_ct_AR"; then
6344 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_ac_ct_AR
="ar"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6364 if test -n "$ac_ct_AR"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6366 $as_echo "$ac_ct_AR" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_AR" = x
; then
6375 case $cross_compiling:$ac_tool_warned in
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned
=yes ;;
6387 if test -z "$ARFLAGS"; then
6392 if test -z "$ARFLAGS"; then
6398 if test -z "$RANLIB"; then
6399 if test $gl_cv_c_amsterdam_compiler = yes; then
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$RANLIB"; then
6411 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir
=.
6418 for ac_exec_ext
in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 RANLIB
=$ac_cv_prog_RANLIB
6431 if test -n "$RANLIB"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433 $as_echo "$RANLIB" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_RANLIB"; then
6442 ac_ct_RANLIB
=$RANLIB
6443 # Extract the first word of "ranlib", so it can be a program name with args.
6444 set dummy ranlib
; ac_word
=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_RANLIB"; then
6451 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir
=.
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6471 if test -n "$ac_ct_RANLIB"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473 $as_echo "$ac_ct_RANLIB" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_RANLIB" = x
; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned
=yes ;;
6488 RANLIB
=$ac_ct_RANLIB
6491 RANLIB
="$ac_cv_prog_RANLIB"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6499 $as_echo_n "checking for ANSI C header files... " >&6; }
6500 if test "${ac_cv_header_stdc+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6518 if ac_fn_c_try_compile
"$LINENO"; then :
6519 ac_cv_header_stdc
=yes
6521 ac_cv_header_stdc
=no
6523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 if test $ac_cv_header_stdc = yes; then
6526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "memchr" >/dev
/null
2>&1; then :
6536 ac_cv_header_stdc
=no
6542 if test $ac_cv_header_stdc = yes; then
6543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550 $EGREP "free" >/dev
/null
2>&1; then :
6553 ac_cv_header_stdc
=no
6559 if test $ac_cv_header_stdc = yes; then
6560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6561 if test "$cross_compiling" = yes; then :
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 #if ((' ' & 0x0FF) == 0x020)
6569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6572 # define ISLOWER(c) \
6573 (('a' <= (c) && (c) <= 'i') \
6574 || ('j' <= (c) && (c) <= 'r') \
6575 || ('s' <= (c) && (c) <= 'z'))
6576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6584 for (i = 0; i < 256; i++)
6585 if (XOR (islower (i), ISLOWER (i))
6586 || toupper (i) != TOUPPER (i))
6591 if ac_fn_c_try_run
"$LINENO"; then :
6594 ac_cv_header_stdc
=no
6596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6603 $as_echo "$ac_cv_header_stdc" >&6; }
6604 if test $ac_cv_header_stdc = yes; then
6606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6611 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6612 inttypes.h stdint.h unistd.h
6614 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6617 eval as_val
=\$
$as_ac_Header
6618 if test "x$as_val" = x
""yes; then :
6619 cat >>confdefs.h
<<_ACEOF
6620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6630 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6637 if test "$MINIX" = yes; then
6639 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6642 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6645 $as_echo "#define _MINIX 1" >>confdefs.h
6648 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6654 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6655 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6661 # define __EXTENSIONS__ 1
6662 $ac_includes_default
6671 if ac_fn_c_try_compile
"$LINENO"; then :
6672 ac_cv_safe_to_define___extensions__
=yes
6674 ac_cv_safe_to_define___extensions__
=no
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6679 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6680 test $ac_cv_safe_to_define___extensions__ = yes &&
6681 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6683 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6685 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6694 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6695 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6698 ac_cv_should_define__xopen_source
=no
6699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6712 if ac_fn_c_try_compile
"$LINENO"; then :
6715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6718 #define _XOPEN_SOURCE 500
6729 if ac_fn_c_try_compile
"$LINENO"; then :
6730 ac_cv_should_define__xopen_source
=yes
6732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6737 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6738 test $ac_cv_should_define__xopen_source = yes &&
6739 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6748 # Check whether --enable-largefile was given.
6749 if test "${enable_largefile+set}" = set; then :
6750 enableval
=$enable_largefile;
6753 if test "$enable_largefile" != no
; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6757 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6760 ac_cv_sys_largefile_CC
=no
6761 if test "$GCC" != yes; then
6764 # IRIX 6.2 and later do not support large files by default,
6765 # so use the C compiler's -n32 option if that helps.
6766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 /* Check that off_t can represent 2**63 - 1 correctly.
6770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6771 since some C++ compilers masquerading as C compilers
6772 incorrectly reject 9223372036854775807. */
6773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6775 && LARGE_OFF_T % 2147483647 == 1)
6785 if ac_fn_c_try_compile
"$LINENO"; then :
6788 rm -f core conftest.err conftest.
$ac_objext
6790 if ac_fn_c_try_compile
"$LINENO"; then :
6791 ac_cv_sys_largefile_CC
=' -n32'; break
6793 rm -f core conftest.err conftest.
$ac_objext
6797 rm -f conftest.
$ac_ext
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6802 if test "$ac_cv_sys_largefile_CC" != no
; then
6803 CC
=$CC$ac_cv_sys_largefile_CC
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6808 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <sys/types.h>
6815 /* Check that off_t can represent 2**63 - 1 correctly.
6816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6817 since some C++ compilers masquerading as C compilers
6818 incorrectly reject 9223372036854775807. */
6819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6821 && LARGE_OFF_T % 2147483647 == 1)
6831 if ac_fn_c_try_compile
"$LINENO"; then :
6832 ac_cv_sys_file_offset_bits
=no
; break
6834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #define _FILE_OFFSET_BITS 64
6838 #include <sys/types.h>
6839 /* Check that off_t can represent 2**63 - 1 correctly.
6840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6841 since some C++ compilers masquerading as C compilers
6842 incorrectly reject 9223372036854775807. */
6843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6845 && LARGE_OFF_T % 2147483647 == 1)
6855 if ac_fn_c_try_compile
"$LINENO"; then :
6856 ac_cv_sys_file_offset_bits
=64; break
6858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 ac_cv_sys_file_offset_bits
=unknown
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6865 case $ac_cv_sys_file_offset_bits in #(
6868 cat >>confdefs.h
<<_ACEOF
6869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6874 if test $ac_cv_sys_file_offset_bits = unknown
; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6877 if test "${ac_cv_sys_large_files+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6884 /* Check that off_t can represent 2**63 - 1 correctly.
6885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6886 since some C++ compilers masquerading as C compilers
6887 incorrectly reject 9223372036854775807. */
6888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6890 && LARGE_OFF_T % 2147483647 == 1)
6900 if ac_fn_c_try_compile
"$LINENO"; then :
6901 ac_cv_sys_large_files
=no
; break
6903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 #define _LARGE_FILES 1
6907 #include <sys/types.h>
6908 /* Check that off_t can represent 2**63 - 1 correctly.
6909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6910 since some C++ compilers masquerading as C compilers
6911 incorrectly reject 9223372036854775807. */
6912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6914 && LARGE_OFF_T % 2147483647 == 1)
6924 if ac_fn_c_try_compile
"$LINENO"; then :
6925 ac_cv_sys_large_files
=1; break
6927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6928 ac_cv_sys_large_files
=unknown
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6933 $as_echo "$ac_cv_sys_large_files" >&6; }
6934 case $ac_cv_sys_large_files in #(
6937 cat >>confdefs.h
<<_ACEOF
6938 #define _LARGE_FILES $ac_cv_sys_large_files
6946 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6950 case $ac_cv_prog_cc_stdc in #(
6952 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6955 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6956 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6959 ac_cv_prog_cc_c99
=no
6961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6964 #include <stdbool.h>
6969 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6970 #define debug(...) fprintf (stderr, __VA_ARGS__)
6971 #define showlist(...) puts (#__VA_ARGS__)
6972 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6974 test_varargs_macros (void)
6979 debug ("X = %d\n", x);
6980 showlist (The first, second, and third items.);
6981 report (x>y, "x is %d but y is %d", x, y);
6984 // Check long long types.
6985 #define BIG64 18446744073709551615ull
6986 #define BIG32 4294967295ul
6987 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6989 your preprocessor is broken;
6993 your preprocessor is broken;
6995 static long long int bignum = -9223372036854775807LL;
6996 static unsigned long long int ubignum = BIG64;
6998 struct incomplete_array
7006 const wchar_t *name;
7010 typedef const char *ccp;
7013 test_restrict (ccp restrict text)
7015 // See if C++-style comments work.
7016 // Iterate through items via the restricted pointer.
7017 // Also check for declarations in for loops.
7018 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7023 // Check varargs and va_copy.
7025 test_varargs (const char *format, ...)
7028 va_start (args, format);
7030 va_copy (args_copy, args);
7041 str = va_arg (args_copy, const char *);
7044 number = va_arg (args_copy, int);
7047 fnumber = va_arg (args_copy, double);
7062 _Bool success = false;
7065 if (test_restrict ("String literal") == 0)
7067 char *restrict newvar = "Another string";
7070 test_varargs ("s, d' f .", "string", 65, 34.234);
7071 test_varargs_macros ();
7073 // Check flexible array members.
7074 struct incomplete_array *ia =
7075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7077 for (int i = 0; i < ia->datasize; ++i)
7078 ia->data[i] = i * 1.234;
7080 // Check named initializers.
7081 struct named_init ni = {
7083 .name = L"Test wide string",
7084 .average = 543.34343,
7089 int dynamic_array[ni.number];
7090 dynamic_array[ni.number - 1] = 543;
7092 // work around unused variable warnings
7093 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7094 || dynamic_array[ni.number - 1] != 543);
7100 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7102 CC
="$ac_save_CC $ac_arg"
7103 if ac_fn_c_try_compile
"$LINENO"; then :
7104 ac_cv_prog_cc_c99
=$ac_arg
7106 rm -f core conftest.err conftest.
$ac_objext
7107 test "x$ac_cv_prog_cc_c99" != "xno" && break
7109 rm -f conftest.
$ac_ext
7114 case "x$ac_cv_prog_cc_c99" in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7117 $as_echo "none needed" >&6; } ;;
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120 $as_echo "unsupported" >&6; } ;;
7122 CC
="$CC $ac_cv_prog_cc_c99"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7124 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7126 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7127 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7131 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7134 ac_cv_prog_cc_c89
=no
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <sys/stat.h>
7142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7143 struct buf { int x; };
7144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7145 static char *e (p, i)
7151 static char *f (char * (*g) (char **, int), char **p, ...)
7156 s = g (p, va_arg (v,int));
7161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7162 function prototypes and stuff, but not '\xHH' hex character constants.
7163 These don't provoke an error unfortunately, instead are silently treated
7164 as 'x'. The following induces an error, until -std is added to get
7165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7166 array size at least. It's necessary to write '\x00'==0 to get something
7167 that's true only with -std. */
7168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7171 inside strings and character constants. */
7173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7175 int test (int i, double x);
7176 struct s1 {int (*f) (int a);};
7177 struct s2 {int (*f) (double a);};
7178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7189 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7192 CC
="$ac_save_CC $ac_arg"
7193 if ac_fn_c_try_compile
"$LINENO"; then :
7194 ac_cv_prog_cc_c89
=$ac_arg
7196 rm -f core conftest.err conftest.
$ac_objext
7197 test "x$ac_cv_prog_cc_c89" != "xno" && break
7199 rm -f conftest.
$ac_ext
7204 case "x$ac_cv_prog_cc_c89" in
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7207 $as_echo "none needed" >&6; } ;;
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7210 $as_echo "unsupported" >&6; } ;;
7212 CC
="$CC $ac_cv_prog_cc_c89"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7214 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7216 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7217 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7219 ac_cv_prog_cc_stdc
=no
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7226 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7227 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7231 case $ac_cv_prog_cc_stdc in #(
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7234 $as_echo "unsupported" >&6; } ;; #(
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7237 $as_echo "none needed" >&6; } ;; #(
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7240 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7245 # Code from module alloca-opt:
7246 # Code from module allocator:
7247 # Code from module at-internal:
7248 # Code from module binary-io:
7249 # Code from module c-ctype:
7250 # Code from module c-strcase:
7251 # Code from module careadlinkat:
7252 # Code from module clock-time:
7253 # Code from module close-stream:
7254 # Code from module crypto/md5:
7255 # Code from module crypto/sha1:
7256 # Code from module crypto/sha256:
7257 # Code from module crypto/sha512:
7258 # Code from module dirent:
7259 # Code from module dosname:
7260 # Code from module dtoastr:
7261 # Code from module dtotimespec:
7262 # Code from module dup2:
7263 # Code from module environ:
7264 # Code from module errno:
7265 # Code from module euidaccess:
7266 # Code from module execinfo:
7267 # Code from module extensions:
7269 # Code from module extern-inline:
7270 # Code from module faccessat:
7271 # Code from module fcntl:
7272 # Code from module fcntl-h:
7273 # Code from module fdatasync:
7274 # Code from module fdopendir:
7275 # Code from module filemode:
7276 # Code from module fpending:
7277 # Code from module fstatat:
7278 # Code from module fsync:
7279 # Code from module getdtablesize:
7280 # Code from module getgroups:
7281 # Code from module getloadavg:
7282 # Code from module getopt-gnu:
7283 # Code from module getopt-posix:
7284 # Code from module gettext-h:
7285 # Code from module gettime:
7286 # Code from module gettimeofday:
7287 # Code from module group-member:
7288 # Code from module include_next:
7289 # Code from module intprops:
7290 # Code from module inttypes-incomplete:
7291 # Code from module largefile:
7293 # Code from module lstat:
7294 # Code from module manywarnings:
7295 # Code from module memrchr:
7296 # Code from module mkostemp:
7297 # Code from module mktime:
7298 # Code from module multiarch:
7299 # Code from module nocrash:
7300 # Code from module openat-h:
7301 # Code from module pathmax:
7302 # Code from module pipe2:
7303 # Code from module pselect:
7304 # Code from module pthread_sigmask:
7305 # Code from module putenv:
7306 # Code from module qacl:
7307 # Code from module readlink:
7308 # Code from module readlinkat:
7309 # Code from module root-uid:
7310 # Code from module secure_getenv:
7311 # Code from module sig2str:
7312 # Code from module signal-h:
7313 # Code from module snippet/_Noreturn:
7314 # Code from module snippet/arg-nonnull:
7315 # Code from module snippet/c++defs:
7316 # Code from module snippet/warn-on-use:
7317 # Code from module socklen:
7318 # Code from module ssize_t:
7319 # Code from module stat:
7320 # Code from module stat-time:
7321 # Code from module stdalign:
7322 # Code from module stdarg:
7326 # Code from module stdbool:
7327 # Code from module stddef:
7328 # Code from module stdint:
7329 # Code from module stdio:
7330 # Code from module stdlib:
7331 # Code from module strftime:
7332 # Code from module string:
7333 # Code from module strtoimax:
7334 # Code from module strtoll:
7335 # Code from module strtoull:
7336 # Code from module strtoumax:
7337 # Code from module symlink:
7338 # Code from module sys_select:
7339 # Code from module sys_stat:
7340 # Code from module sys_time:
7341 # Code from module tempname:
7342 # Code from module time:
7343 # Code from module time_r:
7344 # Code from module timer-time:
7345 # Code from module timespec:
7346 # Code from module timespec-add:
7347 # Code from module timespec-sub:
7348 # Code from module u64:
7349 # Code from module unistd:
7350 # Code from module unsetenv:
7351 # Code from module utimens:
7352 # Code from module verify:
7353 # Code from module warnings:
7354 # Code from module xalloc-oversized:
7357 if test "$ac_test_CFLAGS" != set; then
7358 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7359 # if -g3 works and the user does not specify CFLAGS.
7360 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7363 emacs_g3_CFLAGS
='-g3';;
7365 emacs_g3_CFLAGS
='-g3 -O2';;
7367 emacs_g3_CFLAGS
='';;
7369 if test -n "$emacs_g3_CFLAGS"; then
7370 emacs_save_CFLAGS
=$CFLAGS
7371 CFLAGS
=$emacs_g3_CFLAGS
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7373 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7374 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7388 if ac_fn_c_try_link
"$LINENO"; then :
7389 emacs_cv_prog_cc_g3
=yes
7391 emacs_cv_prog_cc_g3
=no
7393 rm -f core conftest.err conftest.
$ac_objext \
7394 conftest
$ac_exeext conftest.
$ac_ext
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7397 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7398 if test $emacs_cv_prog_cc_g3 != yes; then
7399 CFLAGS
=$emacs_save_CFLAGS
7401 if test $opsys = mingw32
; then
7402 CFLAGS
="$CFLAGS -gdwarf-2"
7409 # No optimization flag was inferred for this non-GCC compiler.
7410 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7411 emacs_save_CFLAGS
=$CFLAGS
7412 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7415 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7416 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7430 if ac_fn_c_try_link
"$LINENO"; then :
7431 emacs_cv_prog_cc_o
=yes
7433 emacs_cv_prog_cc_o
=no
7435 rm -f core conftest.err conftest.
$ac_objext \
7436 conftest
$ac_exeext conftest.
$ac_ext
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7439 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7440 if test $emacs_cv_prog_cc_o != yes; then
7441 CFLAGS
=$emacs_save_CFLAGS
7446 # Check whether --enable-gcc-warnings was given.
7447 if test "${enable_gcc_warnings+set}" = set; then :
7448 enableval
=$enable_gcc_warnings; case $enableval in
7450 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7452 gl_gcc_warnings
=$enableval
7459 # Check whether --enable-link-time-optimization was given.
7460 if test "${enable_link_time_optimization+set}" = set; then :
7461 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7463 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7465 if test x
$GCC = xyes
; then
7466 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7467 if test x
$CPUS != x
; then
7473 CFLAGS
="$CFLAGS $LTO"
7474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7485 if ac_fn_c_try_compile
"$LINENO"; then :
7486 ac_lto_supported
=yes
7490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7491 CFLAGS
="$old_CFLAGS"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7494 $as_echo "$ac_lto_supported" >&6; }
7495 if test "$ac_lto_supported" = "yes"; then
7496 CFLAGS
="$CFLAGS $LTO"
7502 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7503 # ------------------------------------------------
7504 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7505 # Otherwise, run RUN-IF-NOT-FOUND.
7508 # When compiling with GCC, prefer -isystem to -I when including system
7509 # include files, to avoid generating useless diagnostics for the files.
7510 if test "$gl_gcc_warnings" != yes; then
7515 # This, $nw, is the list of warnings we disable.
7518 case $with_x_toolkit in
7519 lucid | athena | motif
)
7520 # Old toolkits mishandle 'const'.
7521 nw
="$nw -Wwrite-strings"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7525 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7526 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7530 gl_save_compiler_FLAGS
="$CFLAGS"
7531 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7543 if ac_fn_c_try_compile
"$LINENO"; then :
7544 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7546 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7549 CFLAGS
="$gl_save_compiler_FLAGS"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7553 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7554 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7555 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7557 gl_unknown_warnings_are_errors
=
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7562 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7563 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7567 gl_save_compiler_FLAGS
="$CFLAGS"
7568 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7580 if ac_fn_c_try_compile
"$LINENO"; then :
7581 gl_cv_warn_c__Werror
=yes
7583 gl_cv_warn_c__Werror
=no
7585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7586 CFLAGS
="$gl_save_compiler_FLAGS"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7590 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7591 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7592 as_fn_append WERROR_CFLAGS
" -Werror"
7600 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7601 nw
="$nw -Woverlength-strings" # Not a problem these days
7602 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7603 nw
="$nw -Wformat-nonliteral" # we do this a lot
7604 nw
="$nw -Wvla" # warnings in gettext.h
7605 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7606 nw
="$nw -Wswitch-default" # Too many warnings for now
7607 nw
="$nw -Winline" # OK to ignore 'inline'
7608 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7609 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7610 # signed overflow has undefined behavior
7611 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7612 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7613 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7615 # Emacs doesn't care about shadowing; see
7616 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7619 # Emacs's use of alloca inhibits protecting the stack.
7620 nw
="$nw -Wstack-protector"
7622 # The following line should be removable at some point.
7623 nw
="$nw -Wsuggest-attribute=pure"
7625 # clang is unduly picky about some things.
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7627 $as_echo_n "checking whether the compiler is clang... " >&6; }
7628 if test "${emacs_cv_clang+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7646 if ac_fn_c_try_compile
"$LINENO"; then :
7651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7654 $as_echo "$emacs_cv_clang" >&6; }
7655 if test $emacs_cv_clang = yes; then
7656 nw
="$nw -Wcast-align"
7661 if test -n "$GCC"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7664 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7665 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7669 gl_save_CFLAGS
="$CFLAGS"
7670 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7682 if ac_fn_c_try_compile
"$LINENO"; then :
7683 gl_cv_cc_nomfi_supported
=yes
7685 gl_cv_cc_nomfi_supported
=no
7687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7688 CFLAGS
="$gl_save_CFLAGS"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7692 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7694 if test "$gl_cv_cc_nomfi_supported" = yes; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7696 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7697 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7701 gl_save_CFLAGS
="$CFLAGS"
7702 CFLAGS
="$CFLAGS -W -Werror"
7703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7707 typedef struct { int a; int b; } s_t;
7719 if ac_fn_c_try_compile
"$LINENO"; then :
7720 gl_cv_cc_nomfi_needed
=no
7722 gl_cv_cc_nomfi_needed
=yes
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7725 CFLAGS
="$gl_save_CFLAGS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7730 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7734 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7735 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7739 gl_save_CFLAGS
="$CFLAGS"
7740 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7752 if ac_fn_c_try_compile
"$LINENO"; then :
7753 gl_cv_cc_uninitialized_supported
=yes
7755 gl_cv_cc_uninitialized_supported
=no
7757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7758 CFLAGS
="$gl_save_CFLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7762 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7766 # List all gcc warning categories.
7768 for gl_manywarn_item
in \
7772 -Waggressive-loop-optimizations \
7776 -Wbad-function-cast \
7777 -Wbuiltin-macro-redefined \
7783 -Wcoverage-mismatch \
7786 -Wdeprecated-declarations \
7787 -Wdisabled-optimization \
7789 -Wdouble-promotion \
7794 -Wformat-contains-nul \
7795 -Wformat-extra-args \
7796 -Wformat-nonliteral \
7799 -Wformat-zero-length \
7800 -Wfree-nonheap-object \
7801 -Wignored-qualifiers \
7803 -Wimplicit-function-declaration \
7807 -Wint-to-pointer-cast \
7808 -Winvalid-memory-model \
7810 -Wjump-misses-init \
7813 -Wmaybe-uninitialized \
7815 -Wmissing-declarations \
7816 -Wmissing-field-initializers \
7817 -Wmissing-include-dirs \
7818 -Wmissing-parameter-type \
7819 -Wmissing-prototypes \
7826 -Wold-style-declaration \
7827 -Wold-style-definition \
7829 -Woverlength-strings \
7832 -Wpacked-bitfield-compat \
7836 -Wpointer-to-int-cast \
7838 -Wreturn-local-addr \
7842 -Wsizeof-pointer-memaccess \
7846 -Wstrict-prototypes \
7847 -Wsuggest-attribute=const \
7848 -Wsuggest-attribute=format \
7849 -Wsuggest-attribute=noreturn \
7850 -Wsuggest-attribute=pure \
7860 -Wunsafe-loop-optimizations \
7862 -Wunused-but-set-parameter \
7863 -Wunused-but-set-variable \
7866 -Wunused-local-typedefs \
7868 -Wunused-parameter \
7874 -Wvector-operation-performance \
7876 -Wvolatile-register-var \
7880 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7883 # Disable specific options as needed.
7884 if test "$gl_cv_cc_nomfi_needed" = yes; then
7885 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7888 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7889 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7900 *" $gl_warn_item "*)
7903 gl_warn_set
="$gl_warn_set $gl_warn_item"
7911 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7913 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7914 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7915 $as_echo_n "(cached) " >&6
7918 gl_save_compiler_FLAGS
="$CFLAGS"
7919 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $w"
7920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7931 if ac_fn_c_try_compile
"$LINENO"; then :
7932 eval "$as_gl_Warn=yes"
7934 eval "$as_gl_Warn=no"
7936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7937 CFLAGS
="$gl_save_compiler_FLAGS"
7940 eval ac_res
=\$
$as_gl_Warn
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 eval as_val
=\$
$as_gl_Warn
7944 if test "x$as_val" = x
""yes; then :
7945 as_fn_append WARN_CFLAGS
" $w"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7952 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7953 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7957 gl_save_compiler_FLAGS
="$CFLAGS"
7958 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7970 if ac_fn_c_try_compile
"$LINENO"; then :
7971 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7973 gl_cv_warn_c__Wno_missing_field_initializers
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7976 CFLAGS
="$gl_save_compiler_FLAGS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7980 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7981 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7982 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7988 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7989 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7993 gl_save_compiler_FLAGS
="$CFLAGS"
7994 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-sign-compare"
7995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
8006 if ac_fn_c_try_compile
"$LINENO"; then :
8007 gl_cv_warn_c__Wno_sign_compare
=yes
8009 gl_cv_warn_c__Wno_sign_compare
=no
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8012 CFLAGS
="$gl_save_compiler_FLAGS"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8016 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8017 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
8018 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8021 # Too many warnings for now
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8024 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8025 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8029 gl_save_compiler_FLAGS
="$CFLAGS"
8030 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-type-limits"
8031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8042 if ac_fn_c_try_compile
"$LINENO"; then :
8043 gl_cv_warn_c__Wno_type_limits
=yes
8045 gl_cv_warn_c__Wno_type_limits
=no
8047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8048 CFLAGS
="$gl_save_compiler_FLAGS"
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8052 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8053 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8054 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8057 # Too many warnings for now
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8060 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8061 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8065 gl_save_compiler_FLAGS
="$CFLAGS"
8066 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-switch"
8067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8078 if ac_fn_c_try_compile
"$LINENO"; then :
8079 gl_cv_warn_c__Wno_switch
=yes
8081 gl_cv_warn_c__Wno_switch
=no
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8084 CFLAGS
="$gl_save_compiler_FLAGS"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8088 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8089 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8090 as_fn_append WARN_CFLAGS
" -Wno-switch"
8093 # Too many warnings for now
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8096 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8097 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8101 gl_save_compiler_FLAGS
="$CFLAGS"
8102 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8114 if ac_fn_c_try_compile
"$LINENO"; then :
8115 gl_cv_warn_c__Wno_unused_parameter
=yes
8117 gl_cv_warn_c__Wno_unused_parameter
=no
8119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 CFLAGS
="$gl_save_compiler_FLAGS"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8124 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8125 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8126 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8129 # Too many warnings for now
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8132 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8133 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8137 gl_save_compiler_FLAGS
="$CFLAGS"
8138 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8150 if ac_fn_c_try_compile
"$LINENO"; then :
8151 gl_cv_warn_c__Wno_format_nonliteral
=yes
8153 gl_cv_warn_c__Wno_format_nonliteral
=no
8155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8156 CFLAGS
="$gl_save_compiler_FLAGS"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8160 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8161 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8162 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8167 # In spite of excluding -Wlogical-op above, it is enabled, as of
8168 # gcc 4.5.0 20090517.
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8171 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8172 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8176 gl_save_compiler_FLAGS
="$CFLAGS"
8177 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-logical-op"
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8189 if ac_fn_c_try_compile
"$LINENO"; then :
8190 gl_cv_warn_c__Wno_logical_op
=yes
8192 gl_cv_warn_c__Wno_logical_op
=no
8194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 CFLAGS
="$gl_save_compiler_FLAGS"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8199 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8200 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8201 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8206 # More things that clang is unduly picky about.
8207 if test $emacs_cv_clang = yes; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8210 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8211 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8215 gl_save_compiler_FLAGS
="$CFLAGS"
8216 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8228 if ac_fn_c_try_compile
"$LINENO"; then :
8229 gl_cv_warn_c__Wno_format_extra_args
=yes
8231 gl_cv_warn_c__Wno_format_extra_args
=no
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 CFLAGS
="$gl_save_compiler_FLAGS"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8238 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8239 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8240 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8246 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8247 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8251 gl_save_compiler_FLAGS
="$CFLAGS"
8252 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8264 if ac_fn_c_try_compile
"$LINENO"; then :
8265 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8267 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8270 CFLAGS
="$gl_save_compiler_FLAGS"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8274 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8275 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8276 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8282 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8283 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8287 gl_save_compiler_FLAGS
="$CFLAGS"
8288 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8300 if ac_fn_c_try_compile
"$LINENO"; then :
8301 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8303 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 CFLAGS
="$gl_save_compiler_FLAGS"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8310 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8311 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8312 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8318 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8319 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8323 gl_save_compiler_FLAGS
="$CFLAGS"
8324 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-value"
8325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8336 if ac_fn_c_try_compile
"$LINENO"; then :
8337 gl_cv_warn_c__Wno_unused_value
=yes
8339 gl_cv_warn_c__Wno_unused_value
=no
8341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8342 CFLAGS
="$gl_save_compiler_FLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8346 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8347 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8348 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8356 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8357 if test "${gl_cv_warn_c__fdiagnostics_show_option+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 -fdiagnostics-show-option"
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__fdiagnostics_show_option
=yes
8377 gl_cv_warn_c__fdiagnostics_show_option
=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__fdiagnostics_show_option" >&5
8384 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8385 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8386 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8392 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8393 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8397 gl_save_compiler_FLAGS
="$CFLAGS"
8398 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8410 if ac_fn_c_try_compile
"$LINENO"; then :
8411 gl_cv_warn_c__funit_at_a_time
=yes
8413 gl_cv_warn_c__funit_at_a_time
=no
8415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8416 CFLAGS
="$gl_save_compiler_FLAGS"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8420 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8421 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8422 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8428 $as_echo "#define lint 1" >>confdefs.h
8432 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8435 # We use a slightly smaller set of warning options for lib/.
8436 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8438 nw
="$nw -Wunused-macros"
8442 set x
$WARN_CFLAGS; shift
8446 *" $gl_warn_item "*)
8449 gl_warn_set
="$gl_warn_set $gl_warn_item"
8453 GNULIB_WARN_CFLAGS
=$gl_warn_set
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8464 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8465 rm -f conf$$ conf$$.
file
8467 LN_S_FILEONLY
='cp -p'
8469 if (echo >conf$$.
file) 2>/dev
/null
; then
8470 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8471 LN_S_FILEONLY
='ln -s'
8472 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8477 rm -f conf$$ conf$$.
file
8479 if test "$LN_S_FILEONLY" = "ln -s"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8481 $as_echo "yes" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8484 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8490 if test "$opsys" = "mingw32"; then
8494 # Extract the first word of "install-info", so it can be a program name with args.
8495 set dummy install-info
; ac_word
=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8501 case $INSTALL_INFO in
8503 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8507 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8510 test -z "$as_dir" && as_dir
=.
8511 for ac_exec_ext
in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8525 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8526 if test -n "$INSTALL_INFO"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8528 $as_echo "$INSTALL_INFO" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8535 # Extract the first word of "gzip", so it can be a program name with args.
8536 set dummy
gzip; ac_word
=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8544 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir
=.
8552 for ac_exec_ext
in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8566 if test -n "$GZIP_PROG"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8568 $as_echo "$GZIP_PROG" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8576 if test $opsys = gnu-linux
; then
8577 # Extract the first word of "paxctl", so it can be a program name with args.
8578 set dummy paxctl
; ac_word
=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8586 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8590 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8593 test -z "$as_dir" && as_dir
=.
8594 for ac_exec_ext
in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8596 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 PAXCTL
=$ac_cv_path_PAXCTL
8608 if test -n "$PAXCTL"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8610 $as_echo "$PAXCTL" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8617 if test "X$PAXCTL" != X
; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8619 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8631 if ac_fn_c_try_link
"$LINENO"; then :
8632 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633 $as_echo "yes" >&6; }
8634 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }; PAXCTL
=""; fi
8637 rm -f core conftest.err conftest.
$ac_objext \
8638 conftest
$ac_exeext conftest.
$ac_ext
8642 ## Need makeinfo >= 4.7 (?) to build the manuals.
8643 # Extract the first word of "makeinfo", so it can be a program name with args.
8644 set dummy makeinfo
; ac_word
=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8652 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir
=.
8660 for ac_exec_ext
in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8674 MAKEINFO
=$ac_cv_path_MAKEINFO
8675 if test -n "$MAKEINFO"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8677 $as_echo "$MAKEINFO" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8684 if test "$MAKEINFO" != "no"; then
8686 $MAKEINFO --version 2> /dev/null |
8687 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8693 ## Makeinfo is unusual. For a released Emacs, the manuals are
8694 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8695 ## therefore in the category of "special tools" not normally required, which
8696 ## configure does not have to check for (eg autoconf itself).
8697 ## In a Bazaar checkout on the other hand, the manuals are not included.
8698 ## So makeinfo is a requirement to build from Bazaar, and configure
8699 ## should test for it as it does for any other build requirement.
8700 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8701 ## with pre-built manuals, from a Bazaar checkout.
8704 if test "$MAKEINFO" = "no"; then
8706 if test "x${with_makeinfo}" = "xno"; then
8708 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8709 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8710 source tree does not seem to have pre-built manuals in the \`info' directory.
8711 Either install a suitable version of makeinfo, or re-run configure
8712 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8718 INFO_OPTS
=--no-split
8723 if test x
$GCC = xyes
; then
8724 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8725 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8727 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8728 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8732 late_LDFLAGS
=$LDFLAGS
8733 if test x
$GCC = xyes
; then
8734 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8736 LDFLAGS
="$LDFLAGS -znocombreloc"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8740 $as_echo_n "checking for -znocombreloc... " >&6; }
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8752 if ac_fn_c_try_link
"$LINENO"; then :
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8754 $as_echo "yes" >&6; }
8756 LDFLAGS
=$late_LDFLAGS
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8760 rm -f core conftest.err conftest.
$ac_objext \
8761 conftest
$ac_exeext conftest.
$ac_ext
8764 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8766 your-opsys-here
) CANNOT_DUMP
=yes ;;
8769 test "$CANNOT_DUMP" = "yes" && \
8771 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8777 UNEXEC_OBJ
=unexelf.o
8779 # MSDOS uses unexcoff.o
8781 UNEXEC_OBJ
=unexaix.o
8787 UNEXEC_OBJ
=unexmacosx.o
8790 UNEXEC_OBJ
=unexhp9k800.o
8793 UNEXEC_OBJ
=unexw32.o
8796 # Use the Solaris dldump() function, called from unexsol.c, to dump
8797 # emacs, instead of the generic ELF dump code found in unexelf.c.
8798 # The resulting binary has a complete symbol table, and is better
8799 # for debugging and other observability tools (debuggers, pstack, etc).
8801 # If you encounter a problem using dldump(), please consider sending
8802 # a message to the OpenSolaris tools-linking mailing list:
8803 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8805 # It is likely that dldump() works with older Solaris too, but this has
8806 # not been tested, so for now this change is for Solaris 10 or newer.
8807 UNEXEC_OBJ
=unexsol.o
8814 ## Let `ld' find image libs and similar things in /usr/local/lib.
8815 ## The system compiler, GCC, has apparently been modified to not
8816 ## look there, contrary to what a stock GCC would do.
8817 ### It's not our place to do this. See bug#10313#17.
8818 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8823 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8824 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8828 ### It's not our place to do this. See bug#10313#17.
8829 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8834 ## Han Boetes <han@boetes.org> says this is necessary,
8835 ## otherwise Emacs dumps core on elf systems.
8836 LD_SWITCH_SYSTEM
="-Z"
8841 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8843 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8844 ## which has not been defined yet. When this was handled with cpp,
8845 ## it was expanded to null when configure sourced the s/*.h file.
8846 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8847 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8848 ## (or somesuch), but because it is supposed to go at the _front_
8849 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8850 ## Compare with the gnu-linux case below, which added to the end
8851 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8852 ## LD_SWITCH_SYSTEM_TEMACS.
8855 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8862 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8863 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8867 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8868 ## With ELF, make sure that all common symbols get allocated to in the
8869 ## data section. Otherwise, the dump of temacs may miss variables in
8870 ## the shared library that have been initialized. For example, with
8871 ## GNU libc, __malloc_initialized would normally be resolved to the
8872 ## shared library's .bss section, which is fatal.
8873 if test "x$GCC" = "xyes"; then
8874 C_SWITCH_MACHINE
="-fno-common"
8876 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8879 UNEXEC_OBJ
=unexalpha.o
8888 ## Some programs in src produce warnings saying certain subprograms
8889 ## are too complex and need a MAXMEM value greater than 2000 for
8890 ## additional optimization. --nils@exp-math.uni-essen.de
8891 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8892 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8893 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8894 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8895 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8901 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8902 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8904 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8906 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8908 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8910 ## Motif needs -lgen.
8911 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8916 ### Make sure subsequent tests use flags consistent with the build flags.
8918 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8919 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8921 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8924 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8926 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8931 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8938 ## Adding -lm confuses the dynamic linker, so omit it.
8941 freebsd | dragonfly
)
8942 SYSTEM_TYPE
=berkeley-unix
8944 gnu-linux | gnu-kfreebsd
)
8946 hpux10-20 | hpux11
)
8950 SYSTEM_TYPE
=windows-nt
8953 SYSTEM_TYPE
=berkeley-unix
8957 SYSTEM_TYPE
=usg-unix-v
8964 cat >>confdefs.h
<<_ACEOF
8965 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8970 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8971 pre_PKG_CONFIG_LIBS
=$LIBS
8973 # Extract the first word of "pkg-config", so it can be a program name with args.
8974 set dummy pkg-config
; ac_word
=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8982 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8989 test -z "$as_dir" && as_dir
=.
8990 for ac_exec_ext
in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9004 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9005 if test -n "$PKG_CONFIG"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9007 $as_echo "$PKG_CONFIG" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9018 if test "${with_sound}" != "no"; then
9019 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9020 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9022 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9023 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9025 #define WIN32_LEAN_AND_MEAN
9026 #include <windows.h>
9030 eval as_val
=\$
$as_ac_Header
9031 if test "x$as_val" = x
""yes; then :
9032 cat >>confdefs.h
<<_ACEOF
9033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 have_sound_header
=yes
9040 if test "${with_sound}" = "ossaudio" ||
test "${with_sound}" = "yes"; then
9041 # Emulation library used on NetBSD.
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9043 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9044 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9047 ac_check_lib_save_LIBS
=$LIBS
9048 LIBS
="-lossaudio $LIBS"
9049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9052 /* Override any GCC internal prototype to avoid an error.
9053 Use char because int might match the return type of a GCC
9054 builtin and then its argument prototype would still apply. */
9062 return _oss_ioctl ();
9067 if ac_fn_c_try_link
"$LINENO"; then :
9068 ac_cv_lib_ossaudio__oss_ioctl
=yes
9070 ac_cv_lib_ossaudio__oss_ioctl
=no
9072 rm -f core conftest.err conftest.
$ac_objext \
9073 conftest
$ac_exeext conftest.
$ac_ext
9074 LIBS
=$ac_check_lib_save_LIBS
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9077 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9078 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9084 test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \
9085 as_fn_error
"ossaudio sound support requested but not found." "$LINENO" 5
9089 if test "${with_sound}" = "alsa" ||
test "${with_sound}" = "yes"; then
9091 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9095 if test "$PKG_CONFIG" = "no" ; then
9098 PKG_CONFIG_MIN_VERSION
=0.9.0
9099 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9101 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9103 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9104 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9105 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9112 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9113 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9115 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9122 ## If we have a custom action on failure, don't print errors, but
9123 ## do set a variable so people can do so. Do it in a subshell
9124 ## to capture any diagnostics in invoking pkg-config.
9125 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9137 if test $succeeded = yes; then
9143 if test $HAVE_ALSA = yes; then
9144 SAVE_CFLAGS
="$CFLAGS"
9146 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9147 LIBS
="$ALSA_LIBS $LIBS"
9148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <asoundlib.h>
9154 snd_lib_error_set_handler (0);
9159 if ac_fn_c_try_compile
"$LINENO"; then :
9160 emacs_alsa_normal
=yes
9162 emacs_alsa_normal
=no
9164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9165 if test "$emacs_alsa_normal" != yes; then
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <alsa/asoundlib.h>
9172 snd_lib_error_set_handler (0);
9177 if ac_fn_c_try_compile
"$LINENO"; then :
9178 emacs_alsa_subdir
=yes
9180 emacs_alsa_subdir
=no
9182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9183 if test "$emacs_alsa_subdir" != yes; then
9184 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9186 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9189 CFLAGS
="$SAVE_CFLAGS"
9191 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9192 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9196 elif test "${with_sound}" = "alsa"; then
9197 as_fn_error
"ALSA sound support requested but not found." "$LINENO" 5
9200 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9202 gnu-linux|freebsd|netbsd|mingw32
)
9204 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9217 for ac_header
in $ac_header_list
9219 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9220 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9222 eval as_val
=\$
$as_ac_Header
9223 if test "x$as_val" = x
""yes; then :
9224 cat >>confdefs.h
<<_ACEOF
9225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9251 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <sys/personality.h>
9258 personality (PER_LINUX32)
9263 if ac_fn_c_try_compile
"$LINENO"; then :
9264 emacs_cv_personality_linux32
=yes
9266 emacs_cv_personality_linux32
=no
9268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9270 $as_echo "$emacs_cv_personality_linux32" >&6; }
9272 if test $emacs_cv_personality_linux32 = yes; then
9274 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9278 for ac_header
in term.h
9280 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9281 if test "x$ac_cv_header_term_h" = x
""yes; then :
9282 cat >>confdefs.h
<<_ACEOF
9283 #define HAVE_TERM_H 1
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9291 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9292 if test "${ac_cv_header_time+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 #include <sys/types.h>
9298 #include <sys/time.h>
9304 if ((struct tm *) 0)
9310 if ac_fn_c_try_compile
"$LINENO"; then :
9311 ac_cv_header_time
=yes
9313 ac_cv_header_time
=no
9315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9318 $as_echo "$ac_cv_header_time" >&6; }
9319 if test $ac_cv_header_time = yes; then
9321 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9325 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9328 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9338 if test $ac_cv_have_decl_sys_siglist != yes; then
9339 # For Tru64, at least:
9340 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9343 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9349 cat >>confdefs.h
<<_ACEOF
9350 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9355 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9356 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 #include <sys/types.h>
9362 #include <sys/wait.h>
9364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9380 if ac_fn_c_try_compile
"$LINENO"; then :
9381 ac_cv_header_sys_wait_h
=yes
9383 ac_cv_header_sys_wait_h
=no
9385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9388 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9389 if test $ac_cv_header_sys_wait_h = yes; then
9391 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9399 for ac_header
in net
/if.h
9401 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9402 #if HAVE_SYS_SOCKET_H
9403 #include <sys/socket.h>
9406 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9407 cat >>confdefs.h
<<_ACEOF
9408 #define HAVE_NET_IF_H 1
9415 for ac_header
in ifaddrs.h
9417 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9418 #if HAVE_SYS_SOCKET_H
9419 #include <sys/socket.h>
9422 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9423 cat >>confdefs.h
<<_ACEOF
9424 #define HAVE_IFADDRS_H 1
9431 for ac_header
in net
/if_dl.h
9433 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9434 #if HAVE_SYS_SOCKET_H
9435 #include <sys/socket.h>
9438 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9439 cat >>confdefs.h
<<_ACEOF
9440 #define HAVE_NET_IF_DL_H 1
9448 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9449 #if HAVE_SYS_SOCKET_H
9450 #include <sys/socket.h>
9456 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9458 cat >>confdefs.h
<<_ACEOF
9459 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9464 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9465 #if HAVE_SYS_SOCKET_H
9466 #include <sys/socket.h>
9472 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9474 cat >>confdefs.h
<<_ACEOF
9475 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9480 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9481 #if HAVE_SYS_SOCKET_H
9482 #include <sys/socket.h>
9488 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9490 cat >>confdefs.h
<<_ACEOF
9491 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9496 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9497 #if HAVE_SYS_SOCKET_H
9498 #include <sys/socket.h>
9504 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9506 cat >>confdefs.h
<<_ACEOF
9507 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9512 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9513 #if HAVE_SYS_SOCKET_H
9514 #include <sys/socket.h>
9520 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9522 cat >>confdefs.h
<<_ACEOF
9523 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9528 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9529 #if HAVE_SYS_SOCKET_H
9530 #include <sys/socket.h>
9536 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9538 cat >>confdefs.h
<<_ACEOF
9539 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9551 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9553 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9555 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9556 if test "x$testval" != x
; then
9559 ac_enable_autodepend
=no
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9562 $as_echo "$HAVE_GNU_MAKE" >&6; }
9563 if test $HAVE_GNU_MAKE = yes; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9565 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9566 SAVE_CFLAGS
="$CFLAGS"
9567 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9579 if ac_fn_c_try_compile
"$LINENO"; then :
9582 ac_enable_autodepend
=no
9584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9585 CFLAGS
="$SAVE_CFLAGS"
9586 test -f deps.d || ac_enable_autodepend
=no
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9589 $as_echo "$ac_enable_autodepend" >&6; }
9591 if test $ac_enable_autodepend = yes; then
9592 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9593 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9594 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9595 deps_frag
=autodeps.mk
9598 deps_frag
=$srcdir/src
/$deps_frag
9604 lisp_frag
=$srcdir/src
/lisp.mk
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9609 $as_echo_n "checking for long file names... " >&6; }
9610 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9611 $as_echo_n "(cached) " >&6
9613 ac_cv_sys_long_file_names
=yes
9614 # Test for long file names in all the places we know might matter:
9615 # . the current directory, where building will happen
9616 # $prefix/lib where we will be installing things
9617 # $exec_prefix/lib likewise
9618 # $TMPDIR if set, where it might want to write temporary files
9619 # /tmp where it might want to write temporary files
9622 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9623 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9624 # in the usual case where exec_prefix is '${prefix}'.
9626 . |
/* | ?
:[\\/]*) ;; #(
9629 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9630 ac_xdir
=$ac_dir/cf$$
9631 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9632 ac_tf1
=$ac_xdir/conftest9012345
9633 ac_tf2
=$ac_xdir/conftest9012346
9634 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9635 ac_cv_sys_long_file_names
=no
9636 rm -f -r "$ac_xdir" 2>/dev
/null
9637 test $ac_cv_sys_long_file_names = no
&& break
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9641 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9642 if test $ac_cv_sys_long_file_names = yes; then
9644 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9649 #### Choose a window system.
9651 ## We leave window_system equal to none if
9652 ## we end up building without one. Any new window system should
9653 ## set window_system to an appropriate value and add objects to
9654 ## window-system-specific substs.
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9658 $as_echo_n "checking for X... " >&6; }
9661 # Check whether --with-x was given.
9662 if test "${with_x+set}" = set; then :
9666 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9667 if test "x$with_x" = xno
; then
9668 # The user explicitly disabled X.
9671 case $x_includes,$x_libraries in #(
9672 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9673 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9676 # One or both of the vars are not set, and there is no cached value.
9677 ac_x_includes
=no ac_x_libraries
=no
9678 rm -f -r conftest.dir
9679 if mkdir conftest.dir
; then
9681 cat >Imakefile
<<'_ACEOF'
9683 @echo incroot='${INCROOT}'
9685 @echo usrlibdir='${USRLIBDIR}'
9687 @echo libdir='${LIBDIR}'
9689 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9691 for ac_var
in incroot usrlibdir libdir
; do
9692 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9694 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9695 for ac_extension
in a so sl dylib la dll
; do
9696 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9697 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9698 ac_im_usrlibdir
=$ac_im_libdir; break
9701 # Screen out bogus values from the imake configuration. They are
9702 # bogus both because they are the default anyway, and because
9703 # using them would break gcc on systems where it needs fixed includes.
9704 case $ac_im_incroot in
9705 /usr
/include
) ac_x_includes
= ;;
9706 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9708 case $ac_im_usrlibdir in
9709 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9710 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9714 rm -f -r conftest.dir
9717 # Standard set of common directories for X headers.
9718 # Check X11 before X11Rn because it is often a symlink to the current release.
9732 /usr/local/X11/include
9733 /usr/local/X11R7/include
9734 /usr/local/X11R6/include
9735 /usr/local/X11R5/include
9736 /usr/local/X11R4/include
9738 /usr/local/include/X11
9739 /usr/local/include/X11R7
9740 /usr/local/include/X11R6
9741 /usr/local/include/X11R5
9742 /usr/local/include/X11R4
9746 /usr/XFree86/include/X11
9750 /usr/unsupported/include
9752 /usr/local/x11r5/include
9753 /usr/lpp/Xamples/include
9755 /usr/openwin/include
9756 /usr/openwin/share/include'
9758 if test "$ac_x_includes" = no
; then
9759 # Guess where to find include files, by looking for Xlib.h.
9760 # First, try using that file with no special directory specified.
9761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 #include <X11/Xlib.h>
9765 if ac_fn_c_try_cpp
"$LINENO"; then :
9766 # We can compile using X headers with no special include directory.
9769 for ac_dir
in $ac_x_header_dirs; do
9770 if test -r "$ac_dir/X11/Xlib.h"; then
9771 ac_x_includes
=$ac_dir
9776 rm -f conftest.err conftest.
$ac_ext
9777 fi # $ac_x_includes = no
9779 if test "$ac_x_libraries" = no
; then
9780 # Check for the libraries.
9781 # See if we find them without any special options.
9782 # Don't add to $LIBS permanently.
9785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787 #include <X11/Xlib.h>
9796 if ac_fn_c_try_link
"$LINENO"; then :
9798 # We can link X programs with no special library path.
9802 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9804 # Don't even attempt the hair of trying to link an X program!
9805 for ac_extension
in a so sl dylib la dll
; do
9806 if test -r "$ac_dir/libX11.$ac_extension"; then
9807 ac_x_libraries
=$ac_dir
9813 rm -f core conftest.err conftest.
$ac_objext \
9814 conftest
$ac_exeext conftest.
$ac_ext
9815 fi # $ac_x_libraries = no
9817 case $ac_x_includes,$ac_x_libraries in #(
9819 # Didn't find X, or a directory has "'" in its name.
9820 ac_cv_have_x
="have_x=no";; #(
9822 # Record where we found X for the cache.
9823 ac_cv_have_x
="have_x=yes\
9824 ac_x_includes='$ac_x_includes'\
9825 ac_x_libraries='$ac_x_libraries'"
9831 eval "$ac_cv_have_x"
9834 if test "$have_x" != yes; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9836 $as_echo "$have_x" >&6; }
9839 # If each of the values was on the command line, it overrides each guess.
9840 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9841 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9842 # Update the cache value to reflect the command line values.
9843 ac_cv_have_x
="have_x=yes\
9844 ac_x_includes='$x_includes'\
9845 ac_x_libraries='$x_libraries'"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9847 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9850 if test "$no_x" != yes; then
9854 LD_SWITCH_X_SITE_RPATH
=
9855 if test "${x_libraries}" != NONE
; then
9856 if test -n "${x_libraries}"; then
9857 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9858 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9860 x_default_search_path
=""
9861 x_search_path
=${x_libraries}
9862 if test -z "${x_search_path}"; then
9863 x_search_path
=/usr
/lib
9865 for x_library
in `echo ${x_search_path}: | \
9866 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9868 ${x_library}/X11/%L/%T/%N%C%S:\
9869 ${x_library}/X11/%l/%T/%N%C%S:\
9870 ${x_library}/X11/%T/%N%C%S:\
9871 ${x_library}/X11/%L/%T/%N%S:\
9872 ${x_library}/X11/%l/%T/%N%S:\
9873 ${x_library}/X11/%T/%N%S"
9874 if test x
"${x_default_search_path}" = x
; then
9875 x_default_search_path
=${x_search_path}
9877 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9883 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9884 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9887 if test x
"${x_includes}" = x
; then
9888 bitmapdir
=/usr
/include
/X11
/bitmaps
9890 # accumulate include directories that have X11 bitmap subdirectories
9892 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9893 if test -d "${bmd}/X11/bitmaps"; then
9894 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9896 if test -d "${bmd}/bitmaps"; then
9897 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9900 if test ${bmd_acc} != "dummyval"; then
9901 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9908 tmp_CPPFLAGS
="$CPPFLAGS"
9909 tmp_CFLAGS
="$CFLAGS"
9910 CPPFLAGS
="$CPPFLAGS -x objective-c"
9911 CFLAGS
="$CFLAGS -x objective-c"
9914 if test "${with_ns}" != no
; then
9915 if test "${opsys}" = darwin
; then
9917 ns_appdir
=`pwd`/nextstep
/Emacs.app
9918 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9919 ns_appresdir
=${ns_appdir}/Contents
/Resources
9920 ns_appsrc
=Cocoa
/Emacs.base
9921 elif test -f $GNUSTEP_CONFIG_FILE; then
9923 ns_appdir
=`pwd`/nextstep
/Emacs.app
9924 ns_appbindir
=${ns_appdir}
9925 ns_appresdir
=${ns_appdir}/Resources
9926 ns_appsrc
=GNUstep
/Emacs.base
9927 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9928 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9929 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9930 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9931 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9932 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9933 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9934 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9935 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9936 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9937 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9938 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9940 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9941 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <GNUstepBase/GSConfig.h>
9950 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9959 if ac_fn_c_try_compile
"$LINENO"; then :
9960 emacs_cv_objc_exceptions
=yes
9962 emacs_cv_objc_exceptions
=no
9964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9967 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9968 if test $emacs_cv_objc_exceptions = yes; then
9970 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9972 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9976 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9978 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9982 as_fn_error
"\`--with-ns' was specified, but the include
9983 files are missing or cannot be compiled." "$LINENO" 5
9988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #include <AppKit/AppKit.h>
9995 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9996 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9999 #error "OSX 10.4 or newer required"
10007 if ac_fn_c_try_compile
"$LINENO"; then :
10008 ns_osx_have_104
=yes
10012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 #include <Foundation/NSObjCRuntime.h>
10024 if ac_fn_c_try_compile
"$LINENO"; then :
10025 ns_have_nsinteger
=yes
10027 ns_have_nsinteger
=no
10029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10030 if test $ns_osx_have_104 = no
; then
10031 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10033 if test $ns_have_nsinteger = yes; then
10035 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10042 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10043 ns_self_contained
=no
10046 if test "${HAVE_NS}" = yes; then
10047 if test "$with_toolkit_scroll_bars" = "no"; then
10048 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10051 window_system
=nextstep
10052 # set up packaging dirs
10053 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10054 ns_self_contained
=yes
10055 prefix
=${ns_appresdir}
10056 exec_prefix
=${ns_appbindir}
10057 libexecdir
="\${ns_appbindir}/libexec"
10058 archlibdir
="\${ns_appbindir}/libexec"
10059 docdir
="\${ns_appresdir}/etc"
10060 etcdir
="\${ns_appresdir}/etc"
10061 infodir
="\${ns_appresdir}/info"
10062 mandir
="\${ns_appresdir}/man"
10063 lispdir
="\${ns_appresdir}/lisp"
10064 leimdir
="\${ns_appresdir}/leim"
10065 INSTALL_ARCH_INDEP_EXTRA
=
10067 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10069 CFLAGS
="$tmp_CFLAGS"
10070 CPPFLAGS
="$tmp_CPPFLAGS"
10085 if test "${with_w32}" != no
; then
10088 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10089 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10092 as_fn_error
"\`--with-w32' was specified, but windows.h
10093 cannot be found." "$LINENO" 5
10099 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10102 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10107 if test "${opsys}" = "mingw32"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10109 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 #include <windows.h>
10118 PIMAGE_NT_HEADERS pHeader;
10119 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10124 if ac_fn_c_try_compile
"$LINENO"; then :
10125 emacs_cv_w32api
=yes
10130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10132 $as_echo "$emacs_cv_w32api" >&6; }
10133 if test "${emacs_cv_w32api}" = "no"; then
10134 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10145 if test "${HAVE_W32}" = "yes"; then
10147 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10149 if test -n "$ac_tool_prefix"; then
10150 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10151 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10157 if test -n "$WINDRES"; then
10158 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10161 for as_dir
in $PATH
10164 test -z "$as_dir" && as_dir
=.
10165 for ac_exec_ext
in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 WINDRES
=$ac_cv_prog_WINDRES
10178 if test -n "$WINDRES"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10180 $as_echo "$WINDRES" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 if test -z "$ac_cv_prog_WINDRES"; then
10189 ac_ct_WINDRES
=$WINDRES
10190 # Extract the first word of "windres", so it can be a program name with args.
10191 set dummy windres
; ac_word
=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10197 if test -n "$ac_ct_WINDRES"; then
10198 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10201 for as_dir
in $PATH
10204 test -z "$as_dir" && as_dir
=.
10205 for ac_exec_ext
in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207 ac_cv_prog_ac_ct_WINDRES
="windres"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10218 if test -n "$ac_ct_WINDRES"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10220 $as_echo "$ac_ct_WINDRES" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10226 if test "x$ac_ct_WINDRES" = x
; then
10227 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10229 case $cross_compiling:$ac_tool_warned in
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10233 ac_tool_warned
=yes ;;
10235 WINDRES
=$ac_ct_WINDRES
10238 WINDRES
="$ac_cv_prog_WINDRES"
10241 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10242 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10243 EMACSRES
="emacs.res"
10244 case "$canonical" in
10245 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10246 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10248 UPDATE_MANIFEST
=update-game-score.exe.manifest
10249 if test "${opsys}" = "cygwin"; then
10250 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10251 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10252 # Tell the linker that emacs.res is an object (which we compile from
10253 # the rc file), not a linker script.
10254 W32_RES_LINK
="-Wl,emacs.res"
10256 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10257 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10258 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10259 W32_RES_LINK
="\$(EMACSRES)"
10260 CLIENTRES
="emacsclient.res"
10261 CLIENTW
="emacsclientw\$(EXEEXT)"
10262 FIRSTFILE_OBJ
=firstfile.o
10265 LIBS_ECLIENT
="-lcomctl32"
10266 LIB_WSOCK32
="-lwsock32"
10267 NTLIB
="ntlib.$ac_objext"
10268 XARGS_LIMIT
="-s 10000"
10287 if test "${HAVE_W32}" = "yes"; then
10292 ## $window_system is now set to the window system we will
10300 case "${window_system}" in
10304 term_header
=xterm.h
10305 case "${with_x_toolkit}" in
10306 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10307 motif
) USE_X_TOOLKIT
=MOTIF
;;
10309 term_header
=gtkutil.h
10310 USE_X_TOOLKIT
=none
;;
10311 gtk2
) with_gtk2
=yes
10312 term_header
=gtkutil.h
10313 USE_X_TOOLKIT
=none
;;
10314 gtk3
) with_gtk3
=yes
10315 term_header
=gtkutil.h
10316 USE_X_TOOLKIT
=none
;;
10317 no
) USE_X_TOOLKIT
=none
;;
10318 * ) USE_X_TOOLKIT
=maybe
;;
10322 term_header
=nsterm.h
10325 term_header
=w32term.h
10329 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10330 # Extract the first word of "X", so it can be a program name with args.
10331 set dummy X
; ac_word
=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10337 if test -n "$HAVE_XSERVER"; then
10338 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10341 for as_dir
in $PATH
10344 test -z "$as_dir" && as_dir
=.
10345 for ac_exec_ext
in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_prog_HAVE_XSERVER
="true"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10358 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10359 if test -n "$HAVE_XSERVER"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10361 $as_echo "$HAVE_XSERVER" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 if test "$HAVE_XSERVER" = true ||
10369 test -n "$DISPLAY" ||
10370 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10371 as_fn_error
"You seem to be running X, but no X development libraries
10372 were found. You should install the relevant development files for X
10373 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10374 sure you have development files for image handling, i.e.
10375 tiff, gif, jpeg, png and xpm.
10376 If you are sure you want Emacs compiled without X window support, pass
10378 to configure." "$LINENO" 5
10382 ### If we're using X11, we should use the X menu package.
10384 case ${HAVE_X11} in
10385 yes ) HAVE_MENUS
=yes ;;
10388 # Does the opsystem file prohibit the use of the GNU malloc?
10389 # Assume not, until told otherwise.
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10393 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10394 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 #include <malloc.h>
10400 static void hook (void) {}
10404 malloc_set_state (malloc_get_state ());
10405 __after_morecore_hook = hook;
10406 __malloc_initialize_hook = hook;
10411 if ac_fn_c_try_link
"$LINENO"; then :
10412 emacs_cv_var_doug_lea_malloc
=yes
10414 emacs_cv_var_doug_lea_malloc
=no
10416 rm -f core conftest.err conftest.
$ac_objext \
10417 conftest
$ac_exeext conftest.
$ac_ext
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10420 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10421 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10426 ## darwin ld insists on the use of malloc routines in the System framework.
10427 darwin|sol2-10
) system_malloc
=yes ;;
10430 if test "${system_malloc}" = "yes"; then
10432 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10435 GNU_MALLOC_reason
="
10436 (The GNU allocators don't work with this system configuration.)"
10440 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10441 VMLIMIT_OBJ
=vm-limit.o
10443 for ac_header
in sys
/vlimit.h
10445 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10446 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10447 cat >>confdefs.h
<<_ACEOF
10448 #define HAVE_SYS_VLIMIT_H 1
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10456 $as_echo_n "checking for data_start... " >&6; }
10457 if test "${emacs_cv_data_start+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 extern char data_start[]; char ch;
10466 return data_start < &ch;
10471 if ac_fn_c_try_link
"$LINENO"; then :
10472 emacs_cv_data_start
=yes
10474 emacs_cv_data_start
=no
10476 rm -f core conftest.err conftest.
$ac_objext \
10477 conftest
$ac_exeext conftest.
$ac_ext
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10480 $as_echo "$emacs_cv_data_start" >&6; }
10481 if test $emacs_cv_data_start = yes; then
10483 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10490 if test "$doug_lea_malloc" = "yes" ; then
10491 if test "$GNU_MALLOC" = yes ; then
10492 GNU_MALLOC_reason
="
10493 (Using Doug Lea's new malloc from the GNU C Library.)"
10496 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10499 ## Use mmap directly for allocating larger buffers.
10500 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10501 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10502 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10504 gnu
*) REL_ALLOC
=no
;;
10508 if test x
"${REL_ALLOC}" = x
; then
10509 REL_ALLOC
=${GNU_MALLOC}
10512 use_mmap_for_buffers
=no
10514 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10524 for ac_func
in getpagesize
10526 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10527 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10528 cat >>confdefs.h
<<_ACEOF
10529 #define HAVE_GETPAGESIZE 1
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10536 $as_echo_n "checking for working mmap... " >&6; }
10537 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10540 if test "$cross_compiling" = yes; then :
10541 ac_cv_func_mmap_fixed_mapped
=no
10543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 /* malloc might have been renamed as rpl_malloc. */
10549 /* Thanks to Mike Haertel and Jim Avera for this test.
10550 Here is a matrix of mmap possibilities:
10551 mmap private not fixed
10552 mmap private fixed at somewhere currently unmapped
10553 mmap private fixed at somewhere already mapped
10554 mmap shared not fixed
10555 mmap shared fixed at somewhere currently unmapped
10556 mmap shared fixed at somewhere already mapped
10557 For private mappings, we should verify that changes cannot be read()
10558 back from the file, nor mmap's back from the file at a different
10559 address. (There have been systems where private was not correctly
10560 implemented like the infamous i386 svr4.0, and systems where the
10561 VM page cache was not coherent with the file system buffer cache
10562 like early versions of FreeBSD and possibly contemporary NetBSD.)
10563 For shared mappings, we should conversely verify that changes get
10564 propagated back to all the places they're supposed to be.
10566 Grep wants private fixed already mapped.
10567 The main things grep needs to know about mmap are:
10568 * does it exist and is it safe to write into the mmap'd area
10569 * how to use it (BSD variants) */
10572 #include <sys/mman.h>
10574 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10578 /* This mess was copied from the GNU getpagesize.h. */
10579 #ifndef HAVE_GETPAGESIZE
10580 # ifdef _SC_PAGESIZE
10581 # define getpagesize() sysconf(_SC_PAGESIZE)
10582 # else /* no _SC_PAGESIZE */
10583 # ifdef HAVE_SYS_PARAM_H
10584 # include <sys/param.h>
10585 # ifdef EXEC_PAGESIZE
10586 # define getpagesize() EXEC_PAGESIZE
10587 # else /* no EXEC_PAGESIZE */
10589 # define getpagesize() NBPG * CLSIZE
10592 # endif /* no CLSIZE */
10593 # else /* no NBPG */
10595 # define getpagesize() NBPC
10596 # else /* no NBPC */
10598 # define getpagesize() PAGESIZE
10599 # endif /* PAGESIZE */
10600 # endif /* no NBPC */
10601 # endif /* no NBPG */
10602 # endif /* no EXEC_PAGESIZE */
10603 # else /* no HAVE_SYS_PARAM_H */
10604 # define getpagesize() 8192 /* punt totally */
10605 # endif /* no HAVE_SYS_PARAM_H */
10606 # endif /* no _SC_PAGESIZE */
10608 #endif /* no HAVE_GETPAGESIZE */
10613 char *data, *data2, *data3;
10614 const char *cdata2;
10618 pagesize = getpagesize ();
10620 /* First, make a file with some known garbage in it. */
10621 data = (char *) malloc (pagesize);
10624 for (i = 0; i < pagesize; ++i)
10625 *(data + i) = rand ();
10627 fd = creat ("conftest.mmap", 0600);
10630 if (write (fd, data, pagesize) != pagesize)
10634 /* Next, check that the tail of a page is zero-filled. File must have
10635 non-zero length, otherwise we risk SIGBUS for entire page. */
10636 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10640 if (write (fd2, cdata2, 1) != 1)
10642 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10643 if (data2 == MAP_FAILED)
10645 for (i = 0; i < pagesize; ++i)
10649 if (munmap (data2, pagesize))
10652 /* Next, try to mmap the file at a fixed address which already has
10653 something else allocated at it. If we can, also make sure that
10654 we see the same garbage. */
10655 fd = open ("conftest.mmap", O_RDWR);
10658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10661 for (i = 0; i < pagesize; ++i)
10662 if (*(data + i) != *(data2 + i))
10665 /* Finally, make sure that changes to the mapped area do not
10666 percolate back to the file as seen by read(). (This is a bug on
10667 some variants of i386 svr4.0.) */
10668 for (i = 0; i < pagesize; ++i)
10669 *(data2 + i) = *(data2 + i) + 1;
10670 data3 = (char *) malloc (pagesize);
10673 if (read (fd, data3, pagesize) != pagesize)
10675 for (i = 0; i < pagesize; ++i)
10676 if (*(data + i) != *(data3 + i))
10682 if ac_fn_c_try_run
"$LINENO"; then :
10683 ac_cv_func_mmap_fixed_mapped
=yes
10685 ac_cv_func_mmap_fixed_mapped
=no
10687 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10688 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10693 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10696 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10699 rm -f conftest.mmap conftest.txt
10701 if test $use_mmap_for_buffers = yes; then
10703 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10708 LIBS
="$LIBS_SYSTEM $LIBS"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10711 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10712 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10715 ac_check_lib_save_LIBS
=$LIBS
10716 LIBS
="-ldnet $LIBS"
10717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10730 return dnet_ntoa ();
10735 if ac_fn_c_try_link
"$LINENO"; then :
10736 ac_cv_lib_dnet_dnet_ntoa
=yes
10738 ac_cv_lib_dnet_dnet_ntoa
=no
10740 rm -f core conftest.err conftest.
$ac_objext \
10741 conftest
$ac_exeext conftest.
$ac_ext
10742 LIBS
=$ac_check_lib_save_LIBS
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10745 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10746 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10747 cat >>confdefs.h
<<_ACEOF
10748 #define HAVE_LIBDNET 1
10751 LIBS
="-ldnet $LIBS"
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10757 $as_echo_n "checking for main in -lXbsd... " >&6; }
10758 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10761 ac_check_lib_save_LIBS
=$LIBS
10762 LIBS
="-lXbsd $LIBS"
10763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10775 if ac_fn_c_try_link
"$LINENO"; then :
10776 ac_cv_lib_Xbsd_main
=yes
10778 ac_cv_lib_Xbsd_main
=no
10780 rm -f core conftest.err conftest.
$ac_objext \
10781 conftest
$ac_exeext conftest.
$ac_ext
10782 LIBS
=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10785 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10786 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10787 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10795 if test "$ac_cv_header_pthread_h"; then
10796 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10797 emacs_pthread_function
=pthread_atfork
10799 emacs_pthread_function
=pthread_self
10801 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10803 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10804 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10805 $as_echo_n "(cached) " >&6
10807 ac_check_lib_save_LIBS
=$LIBS
10808 LIBS
="-lpthread $LIBS"
10809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10818 char $emacs_pthread_function ();
10822 return $emacs_pthread_function ();
10827 if ac_fn_c_try_link
"$LINENO"; then :
10828 eval "$as_ac_Lib=yes"
10830 eval "$as_ac_Lib=no"
10832 rm -f core conftest.err conftest.
$ac_objext \
10833 conftest
$ac_exeext conftest.
$ac_ext
10834 LIBS
=$ac_check_lib_save_LIBS
10836 eval ac_res
=\$
$as_ac_Lib
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10839 eval as_val
=\$
$as_ac_Lib
10840 if test "x$as_val" = x
""yes; then :
10845 if test "$HAVE_PTHREAD" = yes; then
10846 case "${canonical}" in
10848 *) LIB_PTHREAD
="-lpthread"
10849 LIBS
="$LIB_PTHREAD $LIBS" ;;
10852 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10858 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10859 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 ac_check_lib_save_LIBS
=$LIBS
10863 LIBS
="-lpthreads $LIBS"
10864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10877 return cma_open ();
10882 if ac_fn_c_try_link
"$LINENO"; then :
10883 ac_cv_lib_pthreads_cma_open
=yes
10885 ac_cv_lib_pthreads_cma_open
=no
10887 rm -f core conftest.err conftest.
$ac_objext \
10888 conftest
$ac_exeext conftest.
$ac_ext
10889 LIBS
=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10892 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10894 cat >>confdefs.h
<<_ACEOF
10895 #define HAVE_LIBPTHREADS 1
10898 LIBS
="-lpthreads $LIBS"
10903 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10904 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10905 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10906 ## added to LIBS in configure would never contain the pthreads part,
10907 ## but the value used in Makefiles might. FIXME?
10909 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10910 ## be harmless on older versions of X where it happens to exist.
10911 test "$opsys" = "aix4-2" && \
10912 test $ac_cv_lib_pthreads_cma_open = yes && \
10913 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10919 $as_echo_n "checking for -bbigtoc option... " >&6; }
10920 if test "${gdb_cv_bigtoc+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10925 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10926 *) gdb_cv_bigtoc
=-bbigtoc ;;
10929 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10941 if ac_fn_c_try_link
"$LINENO"; then :
10946 rm -f core conftest.err conftest.
$ac_objext \
10947 conftest
$ac_exeext conftest.
$ac_ext
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10951 $as_echo "$gdb_cv_bigtoc" >&6; }
10955 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10956 # used for the tests that follow. We set them back to REAL_CFLAGS and
10957 # REAL_CPPFLAGS later on.
10959 REAL_CFLAGS
="$CFLAGS"
10960 REAL_CPPFLAGS
="$CPPFLAGS"
10962 if test "${HAVE_X11}" = "yes"; then
10963 DEFS
="$C_SWITCH_X_SITE $DEFS"
10964 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10966 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10967 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10969 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10970 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10971 # but it's more convenient here to set LD_RUN_PATH since this
10972 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10973 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10974 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10978 if test "${opsys}" = "gnu-linux"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10980 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10987 XOpenDisplay ("foo");
10992 if ac_fn_c_try_link
"$LINENO"; then :
10993 xgnu_linux_first_failure
=no
10995 xgnu_linux_first_failure
=yes
10997 rm -f core conftest.err conftest.
$ac_objext \
10998 conftest
$ac_exeext conftest.
$ac_ext
10999 if test "${xgnu_linux_first_failure}" = "yes"; then
11000 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11001 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11002 OLD_CPPFLAGS
="$CPPFLAGS"
11004 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11005 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11006 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11007 LIBS
="$LIBS -b i486-linuxaout"
11008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11014 XOpenDisplay ("foo");
11019 if ac_fn_c_try_link
"$LINENO"; then :
11020 xgnu_linux_second_failure
=no
11022 xgnu_linux_second_failure
=yes
11024 rm -f core conftest.err conftest.
$ac_objext \
11025 conftest
$ac_exeext conftest.
$ac_ext
11026 if test "${xgnu_linux_second_failure}" = "yes"; then
11027 # If we get the same failure with -b, there is no use adding -b.
11028 # So take it out. This plays safe.
11029 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11030 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11031 CPPFLAGS
="$OLD_CPPFLAGS"
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 $as_echo "yes" >&6; }
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11045 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11046 # header files included from there.
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11048 $as_echo_n "checking for Xkb... " >&6; }
11049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051 #include <X11/Xlib.h>
11052 #include <X11/XKBlib.h>
11056 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11061 if ac_fn_c_try_link
"$LINENO"; then :
11066 rm -f core conftest.err conftest.
$ac_objext \
11067 conftest
$ac_exeext conftest.
$ac_ext
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11069 $as_echo "$emacs_xkb" >&6; }
11070 if test $emacs_xkb = yes; then
11072 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11076 for ac_func
in XrmSetDatabase XScreenResourceString \
11077 XScreenNumberOfScreen
11079 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11080 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11081 eval as_val
=\$
$as_ac_var
11082 if test "x$as_val" = x
""yes; then :
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 if test "${window_system}" = "x11"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11094 $as_echo_n "checking X11 version 6... " >&6; }
11095 if test "${emacs_cv_x11_version_6+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 #include <X11/Xlib.h>
11104 #if XlibSpecificationRelease < 6
11112 if ac_fn_c_try_link
"$LINENO"; then :
11113 emacs_cv_x11_version_6
=yes
11115 emacs_cv_x11_version_6
=no
11117 rm -f core conftest.err conftest.
$ac_objext \
11118 conftest
$ac_exeext conftest.
$ac_ext
11121 if test $emacs_cv_x11_version_6 = yes; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11123 $as_echo "6 or newer" >&6; }
11125 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11128 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11130 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11135 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11141 $as_echo "before 6" >&6; }
11146 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11148 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11149 if test "${with_rsvg}" != "no"; then
11150 RSVG_REQUIRED
=2.11.0
11151 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11156 if test "$PKG_CONFIG" = "no" ; then
11159 PKG_CONFIG_MIN_VERSION
=0.9.0
11160 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11162 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11164 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11165 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11166 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11173 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11174 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11176 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11183 ## If we have a custom action on failure, don't print errors, but
11184 ## do set a variable so people can do so. Do it in a subshell
11185 ## to capture any diagnostics in invoking pkg-config.
11186 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11198 if test $succeeded = yes; then
11207 if test $HAVE_RSVG = yes; then
11209 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11211 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11212 LIBS
="$RSVG_LIBS $LIBS"
11217 HAVE_IMAGEMAGICK
=no
11218 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11219 if test "${with_imagemagick}" != "no"; then
11220 ## 6.2.8 is the earliest version known to work, but earlier versions
11221 ## might work - let us know if you find one.
11222 ## 6.0.7 does not work. See bug#7955.
11223 ## 6.8.2 makes Emacs crash; see Bug#13867.
11224 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11228 if test "$PKG_CONFIG" = "no" ; then
11231 PKG_CONFIG_MIN_VERSION
=0.9.0
11232 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11234 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11236 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11237 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11238 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11245 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11246 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11248 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 IMAGEMAGICK_CFLAGS
=""
11254 IMAGEMAGICK_LIBS
=""
11255 ## If we have a custom action on failure, don't print errors, but
11256 ## do set a variable so people can do so. Do it in a subshell
11257 ## to capture any diagnostics in invoking pkg-config.
11258 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11270 if test $succeeded = yes; then
11271 HAVE_IMAGEMAGICK
=yes
11279 if test $HAVE_IMAGEMAGICK = yes; then
11281 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11283 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11284 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11285 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11287 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11289 eval as_val
=\$
$as_ac_var
11290 if test "x$as_val" = x
""yes; then :
11291 cat >>confdefs.h
<<_ACEOF
11292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11305 gtk_term_header
=$term_header
11308 if test "${opsys}" != "mingw32"; then
11309 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11312 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11317 if test "$PKG_CONFIG" = "no" ; then
11320 PKG_CONFIG_MIN_VERSION
=0.9.0
11321 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11323 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11325 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11326 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11327 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11334 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11335 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11337 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11344 ## If we have a custom action on failure, don't print errors, but
11345 ## do set a variable so people can do so. Do it in a subshell
11346 ## to capture any diagnostics in invoking pkg-config.
11347 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11359 if test $succeeded = yes; then
11365 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11366 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11368 if test "$pkg_check_gtk" = "yes"; then
11370 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11372 GTK_OBJ
=emacsgtkfixed.o
11373 gtk_term_header
=gtkutil.h
11374 USE_GTK_TOOLKIT
="GTK3"
11375 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11376 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11377 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11381 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11385 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11388 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11393 if test "$PKG_CONFIG" = "no" ; then
11396 PKG_CONFIG_MIN_VERSION
=0.9.0
11397 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11399 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11401 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11402 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11403 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11410 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11411 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11413 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11420 ## If we have a custom action on failure, don't print errors, but
11421 ## do set a variable so people can do so. Do it in a subshell
11422 ## to capture any diagnostics in invoking pkg-config.
11423 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11430 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11431 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11435 if test $succeeded = yes; then
11441 if test "$pkg_check_gtk" = "no" &&
11442 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11444 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11446 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11450 if test x
"$pkg_check_gtk" = xyes
; then
11454 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11455 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11456 LIBS
="$GTK_LIBS $LIBS"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11458 $as_echo_n "checking whether GTK compiles... " >&6; }
11460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 /* Check the Gtk and Glib APIs. */
11463 #include <gtk/gtk.h>
11464 #include <glib-object.h>
11466 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11473 GtkSettings *gs = 0;
11474 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11475 strict C prohibits this. Use gtk_main_iteration to test that the
11476 libraries are there. */
11477 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11478 0, 0, 0, G_CALLBACK (callback), 0))
11479 gtk_main_iteration ();
11485 if ac_fn_c_try_link
"$LINENO"; then :
11488 rm -f core conftest.err conftest.
$ac_objext \
11489 conftest
$ac_exeext conftest.
$ac_ext
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11491 $as_echo "$GTK_COMPILES" >&6; }
11492 if test "${GTK_COMPILES}" != "yes"; then
11494 if test "$USE_X_TOOLKIT" != "maybe"; then
11495 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11500 $as_echo "#define USE_GTK 1" >>confdefs.h
11502 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11503 term_header
=$gtk_term_header
11505 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11509 closing open displays. This is no problem if you just use
11510 one display, but if you use more than one and close one of them
11511 Emacs may crash." >&5
11512 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11513 closing open displays. This is no problem if you just use
11514 one display, but if you use more than one and close one of them
11515 Emacs may crash." >&2;}
11524 if test "${HAVE_GTK}" = "yes"; then
11526 if test "$with_toolkit_scroll_bars" != no
; then
11527 with_toolkit_scroll_bars
=yes
11530 HAVE_GTK_FILE_SELECTION
=no
11531 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11532 #include <gtk/gtk.h>
11534 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11535 HAVE_GTK_FILE_SELECTION
=yes
11537 HAVE_GTK_FILE_SELECTION
=no
11540 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11541 for ac_func
in gtk_file_selection_new
11543 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11544 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11545 cat >>confdefs.h
<<_ACEOF
11546 #define HAVE_GTK_FILE_SELECTION_NEW 1
11554 HAVE_GTK_HANDLE_BOX
=no
11555 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11556 #include <gtk/gtk.h>
11558 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11559 HAVE_GTK_HANDLE_BOX
=yes
11561 HAVE_GTK_HANDLE_BOX
=no
11564 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11565 for ac_func
in gtk_handle_box_new
11567 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11568 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11569 cat >>confdefs.h
<<_ACEOF
11570 #define HAVE_GTK_HANDLE_BOX_NEW 1
11578 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11579 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11580 #include <gtk/gtk.h>
11582 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11583 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11585 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11588 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11589 for ac_func
in gtk_tearoff_menu_item_new
11591 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11592 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11593 cat >>confdefs.h
<<_ACEOF
11594 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11602 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11603 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11604 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11605 gtk_orientable_set_orientation \
11606 gtk_window_set_has_resize_grip
11608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11610 eval as_val
=\$
$as_ac_var
11611 if test "x$as_val" = x
""yes; then :
11612 cat >>confdefs.h
<<_ACEOF
11613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 term_header
=gtkutil.h
11625 if test "${with_dbus}" = "yes"; then
11629 if test "$PKG_CONFIG" = "no" ; then
11632 PKG_CONFIG_MIN_VERSION
=0.9.0
11633 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11635 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11637 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11638 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11639 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11646 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11647 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11649 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11656 ## If we have a custom action on failure, don't print errors, but
11657 ## do set a variable so people can do so. Do it in a subshell
11658 ## to capture any diagnostics in invoking pkg-config.
11659 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11671 if test $succeeded = yes; then
11677 if test "$HAVE_DBUS" = yes; then
11678 LIBS
="$LIBS $DBUS_LIBS"
11680 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11682 for ac_func
in dbus_watch_get_unix_fd \
11683 dbus_type_is_valid \
11684 dbus_validate_bus_name \
11685 dbus_validate_path \
11686 dbus_validate_interface \
11687 dbus_validate_member
11689 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11691 eval as_val
=\$
$as_ac_var
11692 if test "x$as_val" = x
""yes; then :
11693 cat >>confdefs.h
<<_ACEOF
11694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 DBUS_OBJ
=dbusbind.o
11706 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11710 if test "$PKG_CONFIG" = "no" ; then
11713 PKG_CONFIG_MIN_VERSION
=0.9.0
11714 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11716 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11718 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11719 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11720 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11727 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11728 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11730 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 GSETTINGS_CFLAGS
=""
11737 ## If we have a custom action on failure, don't print errors, but
11738 ## do set a variable so people can do so. Do it in a subshell
11739 ## to capture any diagnostics in invoking pkg-config.
11740 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11752 if test $succeeded = yes; then
11758 if test "$HAVE_GSETTINGS" = "yes"; then
11760 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11762 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11763 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11768 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11772 if test "$PKG_CONFIG" = "no" ; then
11775 PKG_CONFIG_MIN_VERSION
=0.9.0
11776 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11778 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11780 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11781 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11782 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11789 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11790 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11792 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11799 ## If we have a custom action on failure, don't print errors, but
11800 ## do set a variable so people can do so. Do it in a subshell
11801 ## to capture any diagnostics in invoking pkg-config.
11802 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11814 if test $succeeded = yes; then
11820 if test "$HAVE_GCONF" = yes; then
11822 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11824 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11825 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11829 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11833 if test "$PKG_CONFIG" = "no" ; then
11836 PKG_CONFIG_MIN_VERSION
=0.9.0
11837 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11839 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11841 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11842 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11843 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11850 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11851 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11853 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11860 ## If we have a custom action on failure, don't print errors, but
11861 ## do set a variable so people can do so. Do it in a subshell
11862 ## to capture any diagnostics in invoking pkg-config.
11863 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11875 if test $succeeded = yes; then
11881 if test "$HAVE_GOBJECT" = "yes"; then
11882 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11883 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11885 SAVE_CFLAGS
="$CFLAGS"
11887 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11888 LIBS
="$SETTINGS_LIBS $LIBS"
11889 for ac_func
in g_type_init
11891 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11892 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11893 cat >>confdefs.h
<<_ACEOF
11894 #define HAVE_G_TYPE_INIT 1
11900 CFLAGS
="$SAVE_CFLAGS"
11909 if test "${with_selinux}" = "yes"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11911 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11912 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS
=$LIBS
11916 LIBS
="-lselinux $LIBS"
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11926 char lgetfilecon ();
11930 return lgetfilecon ();
11935 if ac_fn_c_try_link
"$LINENO"; then :
11936 ac_cv_lib_selinux_lgetfilecon
=yes
11938 ac_cv_lib_selinux_lgetfilecon
=no
11940 rm -f core conftest.err conftest.
$ac_objext \
11941 conftest
$ac_exeext conftest.
$ac_ext
11942 LIBS
=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11945 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11946 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11947 HAVE_LIBSELINUX
=yes
11952 if test "$HAVE_LIBSELINUX" = yes; then
11954 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11956 LIBSELINUX_LIBS
=-lselinux
11962 if test "${with_gnutls}" = "yes" ; then
11966 if test "$PKG_CONFIG" = "no" ; then
11969 PKG_CONFIG_MIN_VERSION
=0.9.0
11970 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11972 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11974 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11975 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11976 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11983 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11984 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11986 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 LIBGNUTLS_CFLAGS
=""
11993 ## If we have a custom action on failure, don't print errors, but
11994 ## do set a variable so people can do so. Do it in a subshell
11995 ## to capture any diagnostics in invoking pkg-config.
11996 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12008 if test $succeeded = yes; then
12014 if test "${HAVE_GNUTLS}" = "yes"; then
12016 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12020 # Windows loads GnuTLS dynamically
12021 if test "${opsys}" = "mingw32"; then
12024 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12025 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12035 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12036 with_file_notification
=no
12039 case $with_file_notification,$opsys in
12040 w32
,* |
yes,mingw32
)
12041 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12042 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12047 if test "$ac_cv_header_windows_h" = yes ; then
12049 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12051 NOTIFY_OBJ
=w32notify.o
12052 NOTIFY_SUMMARY
="yes (w32)"
12056 case $with_file_notification,$NOTIFY_OBJ in
12061 if test "$PKG_CONFIG" = "no" ; then
12062 HAVE_GFILENOTIFY
=no
12064 PKG_CONFIG_MIN_VERSION
=0.9.0
12065 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12067 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12069 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12070 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12071 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12078 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12079 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12081 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 GFILENOTIFY_CFLAGS
=""
12087 GFILENOTIFY_LIBS
=""
12088 ## If we have a custom action on failure, don't print errors, but
12089 ## do set a variable so people can do so. Do it in a subshell
12090 ## to capture any diagnostics in invoking pkg-config.
12091 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12103 if test $succeeded = yes; then
12104 HAVE_GFILENOTIFY
=yes
12106 HAVE_GFILENOTIFY
=no
12109 if test "$HAVE_GFILENOTIFY" = "yes"; then
12111 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12113 NOTIFY_OBJ
=gfilenotify.o
12114 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12118 case $with_file_notification,$NOTIFY_OBJ in
12120 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12126 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12127 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12128 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12132 if test "$ac_cv_func_inotify_init1" = yes; then
12134 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12136 NOTIFY_OBJ
=inotify.o
12137 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12142 case $with_file_notification,$NOTIFY_OBJ in
12143 yes,* | no
,* |
*,?
*) ;;
12144 *) as_fn_error
"File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12147 if test -n "$NOTIFY_OBJ"; then
12149 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12158 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12159 if test "$with_xaw3d" != no
; then
12160 if test "${emacs_cv_xaw3d+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 #include <X11/Intrinsic.h>
12167 #include <X11/Xaw3d/Simple.h>
12176 if ac_fn_c_try_link
"$LINENO"; then :
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12178 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12179 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12182 ac_check_lib_save_LIBS
=$LIBS
12183 LIBS
="-lXaw3d $LIBS"
12184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12193 char XawScrollbarSetThumb ();
12197 return XawScrollbarSetThumb ();
12202 if ac_fn_c_try_link
"$LINENO"; then :
12203 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12205 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12207 rm -f core conftest.err conftest.
$ac_objext \
12208 conftest
$ac_exeext conftest.
$ac_ext
12209 LIBS
=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12212 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12213 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12222 rm -f core conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12229 if test $emacs_cv_xaw3d = yes; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12231 $as_echo_n "checking for xaw3d... " >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12233 $as_echo "yes; using Lucid toolkit" >&6; }
12234 USE_X_TOOLKIT
=LUCID
12238 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12242 $as_echo_n "checking for xaw3d... " >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12246 $as_echo_n "checking for libXaw... " >&6; }
12247 if test "${emacs_cv_xaw+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include <X11/Intrinsic.h>
12254 #include <X11/Xaw/Simple.h>
12263 if ac_fn_c_try_link
"$LINENO"; then :
12268 rm -f core conftest.err conftest.
$ac_objext \
12269 conftest
$ac_exeext conftest.
$ac_ext
12272 if test $emacs_cv_xaw = yes; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12274 $as_echo "yes; using Lucid toolkit" >&6; }
12275 USE_X_TOOLKIT
=LUCID
12277 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12278 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12280 as_fn_error
"No X toolkit could be found.
12281 If you are sure you want Emacs compiled without an X toolkit, pass
12282 --with-x-toolkit=no
12283 to configure. Otherwise, install the development libraries for the toolkit
12284 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12289 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12292 if test "${USE_X_TOOLKIT}" != "none"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12294 $as_echo_n "checking X11 toolkit version... " >&6; }
12295 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <X11/Intrinsic.h>
12304 #if XtSpecificationRelease < 6
12312 if ac_fn_c_try_link
"$LINENO"; then :
12313 emacs_cv_x11_toolkit_version_6
=yes
12315 emacs_cv_x11_toolkit_version_6
=no
12317 rm -f core conftest.err conftest.
$ac_objext \
12318 conftest
$ac_exeext conftest.
$ac_ext
12321 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12322 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12324 $as_echo "6 or newer" >&6; }
12326 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12328 LIBXTR6
="-lSM -lICE"
12330 ## Use libw.a along with X11R6 Xt.
12331 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12335 $as_echo "before 6" >&6; }
12339 if test x
$HAVE_X11XTR6 = xyes
; then
12340 LIBS
="-lXt -lSM -lICE $LIBS"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12345 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12346 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12349 ac_check_lib_save_LIBS
=$LIBS
12351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12360 char XmuConvertStandardSelection ();
12364 return XmuConvertStandardSelection ();
12369 if ac_fn_c_try_link
"$LINENO"; then :
12370 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12372 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12374 rm -f core conftest.err conftest.
$ac_objext \
12375 conftest
$ac_exeext conftest.
$ac_ext
12376 LIBS
=$ac_check_lib_save_LIBS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12379 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12380 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12381 cat >>confdefs.h
<<_ACEOF
12382 #define HAVE_LIBXMU 1
12389 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12395 ## These systems don't supply Xmu.
12397 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12405 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12406 if test "${HAVE_X11}" = "yes"; then
12407 if test "${USE_X_TOOLKIT}" != "none"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12409 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12410 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12413 ac_check_lib_save_LIBS
=$LIBS
12414 LIBS
="-lXext $LIBS"
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12424 char XShapeQueryExtension ();
12428 return XShapeQueryExtension ();
12433 if ac_fn_c_try_link
"$LINENO"; then :
12434 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12436 ac_cv_lib_Xext_XShapeQueryExtension
=no
12438 rm -f core conftest.err conftest.
$ac_objext \
12439 conftest
$ac_exeext conftest.
$ac_ext
12440 LIBS
=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12443 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12444 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12445 cat >>confdefs.h
<<_ACEOF
12446 #define HAVE_LIBXEXT 1
12449 LIBS
="-lXext $LIBS"
12457 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12458 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12459 if test -d /usr
/include
/openmotif
; then
12460 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12461 emacs_cv_openmotif
=yes
12462 case "$canonical" in
12463 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12464 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12467 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12470 emacs_cv_openmotif
=no
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12473 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12474 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12483 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12486 Motif version prior to 2.1.
12492 if ac_fn_c_try_compile
"$LINENO"; then :
12493 emacs_cv_motif_version_2_1
=yes
12495 emacs_cv_motif_version_2_1
=no
12497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12500 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12501 if test $emacs_cv_motif_version_2_1 = yes; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12503 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12504 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12507 ac_check_lib_save_LIBS
=$LIBS
12509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12518 char XpCreateContext ();
12522 return XpCreateContext ();
12527 if ac_fn_c_try_link
"$LINENO"; then :
12528 ac_cv_lib_Xp_XpCreateContext
=yes
12530 ac_cv_lib_Xp_XpCreateContext
=no
12532 rm -f core conftest.err conftest.
$ac_objext \
12533 conftest
$ac_exeext conftest.
$ac_ext
12534 LIBS
=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12537 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12538 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12542 if test x
$emacs_cv_openmotif = xyes
; then
12543 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12547 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12548 if test "${emacs_cv_lesstif+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12551 # We put this in CFLAGS temporarily to precede other -I options
12552 # that might be in CFLAGS temporarily.
12553 # We put this in CPPFLAGS where it precedes the other -I options.
12554 OLD_CPPFLAGS
=$CPPFLAGS
12556 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12557 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12569 if ac_fn_c_try_compile
"$LINENO"; then :
12570 emacs_cv_lesstif
=yes
12572 emacs_cv_lesstif
=no
12574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12577 $as_echo "$emacs_cv_lesstif" >&6; }
12578 if test $emacs_cv_lesstif = yes; then
12579 # Make sure this -I option remains in CPPFLAGS after it is set
12580 # back to REAL_CPPFLAGS.
12581 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12582 # have those other -I options anyway. Ultimately, having this
12583 # directory ultimately in CPPFLAGS will be enough.
12584 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12585 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12588 CPPFLAGS
=$OLD_CPPFLAGS
12591 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12592 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12595 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12602 USE_TOOLKIT_SCROLL_BARS
=no
12603 if test "${with_toolkit_scroll_bars}" != "no"; then
12604 if test "${USE_X_TOOLKIT}" != "none"; then
12605 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12606 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12609 USE_TOOLKIT_SCROLL_BARS
=yes
12610 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12611 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12613 USE_TOOLKIT_SCROLL_BARS
=yes
12615 elif test "${HAVE_GTK}" = "yes"; then
12616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12618 USE_TOOLKIT_SCROLL_BARS
=yes
12619 elif test "${HAVE_NS}" = "yes"; then
12620 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12622 USE_TOOLKIT_SCROLL_BARS
=yes
12623 elif test "${HAVE_W32}" = "yes"; then
12624 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12626 USE_TOOLKIT_SCROLL_BARS
=yes
12630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12633 #include <X11/Xlib.h>
12634 #include <X11/Xresource.h>
12643 if ac_fn_c_try_compile
"$LINENO"; then :
12646 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12654 if test "${with_xim}" != "no"; then
12656 $as_echo "#define USE_XIM 1" >>confdefs.h
12661 if test "${HAVE_XIM}" != "no"; then
12662 late_CFLAGS
=$CFLAGS
12663 if test "$GCC" = yes; then
12664 CFLAGS
="$CFLAGS --pedantic-errors"
12666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 #include <X11/Xlib.h>
12670 #include <X11/Xresource.h>
12679 XPointer *client_data;
12681 /* If we're not using GCC, it's probably not XFree86, and this is
12682 probably right, but we can't use something like --pedantic-errors. */
12683 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12684 char*, XIMProc, XPointer*);
12686 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12692 if ac_fn_c_try_compile
"$LINENO"; then :
12693 emacs_cv_arg6_star
=yes
12695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 if test "$emacs_cv_arg6_star" = yes; then
12697 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12700 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12703 CFLAGS
=$late_CFLAGS
12706 ### Start of font-backend (under any platform) section.
12707 # (nothing here yet -- this is a placeholder)
12708 ### End of font-backend (under any platform) section.
12710 ### Start of font-backend (under X11) section.
12711 if test "${HAVE_X11}" = "yes"; then
12715 if test "$PKG_CONFIG" = "no" ; then
12718 PKG_CONFIG_MIN_VERSION
=0.9.0
12719 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12721 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12723 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12724 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12725 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12732 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12733 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12735 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 FONTCONFIG_CFLAGS
=""
12742 ## If we have a custom action on failure, don't print errors, but
12743 ## do set a variable so people can do so. Do it in a subshell
12744 ## to capture any diagnostics in invoking pkg-config.
12745 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12757 if test $succeeded = yes; then
12764 ## Use -lXft if available, unless `--with-xft=no'.
12766 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12769 if test "x${with_xft}" != "xno"; then
12774 if test "$PKG_CONFIG" = "no" ; then
12777 PKG_CONFIG_MIN_VERSION
=0.9.0
12778 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12780 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12782 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12783 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12784 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12791 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12792 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12794 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12801 ## If we have a custom action on failure, don't print errors, but
12802 ## do set a variable so people can do so. Do it in a subshell
12803 ## to capture any diagnostics in invoking pkg-config.
12804 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12816 if test $succeeded = yes; then
12822 ## Because xftfont.c uses XRenderQueryExtension, we also
12823 ## need to link to -lXrender.
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12826 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12827 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12830 ac_check_lib_save_LIBS
=$LIBS
12831 LIBS
="-lXrender $LIBS"
12832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12841 char XRenderQueryExtension ();
12845 return XRenderQueryExtension ();
12850 if ac_fn_c_try_link
"$LINENO"; then :
12851 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12853 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12855 rm -f core conftest.err conftest.
$ac_objext \
12856 conftest
$ac_exeext conftest.
$ac_ext
12857 LIBS
=$ac_check_lib_save_LIBS
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12860 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12861 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12865 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12866 OLD_CPPFLAGS
="$CPPFLAGS"
12867 OLD_CFLAGS
="$CFLAGS"
12869 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12870 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12871 XFT_LIBS
="-lXrender $XFT_LIBS"
12872 LIBS
="$XFT_LIBS $LIBS"
12873 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12875 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12877 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12878 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12881 ac_check_lib_save_LIBS
=$LIBS
12882 LIBS
="-lXft $XFT_LIBS $LIBS"
12883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12892 char XftFontOpen ();
12896 return XftFontOpen ();
12901 if ac_fn_c_try_link
"$LINENO"; then :
12902 ac_cv_lib_Xft_XftFontOpen
=yes
12904 ac_cv_lib_Xft_XftFontOpen
=no
12906 rm -f core conftest.err conftest.
$ac_objext \
12907 conftest
$ac_exeext conftest.
$ac_ext
12908 LIBS
=$ac_check_lib_save_LIBS
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12911 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12912 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12920 if test "${HAVE_XFT}" = "yes"; then
12922 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12925 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12927 CPPFLAGS
="$OLD_CPPFLAGS"
12928 CFLAGS
="$OLD_CFLAGS"
12930 fi # "${HAVE_XFT}" = "yes"
12931 fi # "$HAVE_XFT" != no
12932 fi # "x${with_xft}" != "xno"
12934 ## We used to allow building with FreeType and without Xft.
12935 ## However, the ftx font backend driver is not in good shape.
12936 if test "$HAVE_XFT" != "yes"; then
12943 if test "$PKG_CONFIG" = "no" ; then
12946 PKG_CONFIG_MIN_VERSION
=0.9.0
12947 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12949 $as_echo_n "checking for freetype2... " >&6; }
12951 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12952 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12953 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12960 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12961 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12963 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12970 ## If we have a custom action on failure, don't print errors, but
12971 ## do set a variable so people can do so. Do it in a subshell
12972 ## to capture any diagnostics in invoking pkg-config.
12973 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12985 if test $succeeded = yes; then
12992 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12996 if test "${HAVE_FREETYPE}" = "yes"; then
12998 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13000 if test "${with_libotf}" != "no"; then
13004 if test "$PKG_CONFIG" = "no" ; then
13007 PKG_CONFIG_MIN_VERSION
=0.9.0
13008 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13010 $as_echo_n "checking for libotf... " >&6; }
13012 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13013 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13014 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13021 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13022 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13024 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13031 ## If we have a custom action on failure, don't print errors, but
13032 ## do set a variable so people can do so. Do it in a subshell
13033 ## to capture any diagnostics in invoking pkg-config.
13034 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13046 if test $succeeded = yes; then
13052 if test "$HAVE_LIBOTF" = "yes"; then
13054 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13057 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13058 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13061 ac_check_lib_save_LIBS
=$LIBS
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13072 char OTF_get_variation_glyphs ();
13076 return OTF_get_variation_glyphs ();
13081 if ac_fn_c_try_link
"$LINENO"; then :
13082 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13084 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13086 rm -f core conftest.err conftest.
$ac_objext \
13087 conftest
$ac_exeext conftest.
$ac_ext
13088 LIBS
=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13091 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13092 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13093 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13095 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13098 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13100 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13108 if test "${HAVE_LIBOTF}" = yes; then
13109 if test "${with_m17n_flt}" != "no"; then
13113 if test "$PKG_CONFIG" = "no" ; then
13116 PKG_CONFIG_MIN_VERSION
=0.9.0
13117 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13119 $as_echo_n "checking for m17n-flt... " >&6; }
13121 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13122 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13123 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13130 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13131 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13133 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13140 ## If we have a custom action on failure, don't print errors, but
13141 ## do set a variable so people can do so. Do it in a subshell
13142 ## to capture any diagnostics in invoking pkg-config.
13143 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13155 if test $succeeded = yes; then
13161 if test "$HAVE_M17N_FLT" = "yes"; then
13163 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13175 ### End of font-backend (under X11) section.
13186 ### Use -lXpm if available, unless `--with-xpm=no'.
13187 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13190 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13191 if test "${with_xpm}" != "no"; then
13192 SAVE_CPPFLAGS
="$CPPFLAGS"
13193 SAVE_LDFLAGS
="$LDFLAGS"
13194 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13195 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13196 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13197 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13199 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13200 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13203 ac_check_lib_save_LIBS
=$LIBS
13205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13214 char XpmReadFileToImage ();
13218 return XpmReadFileToImage ();
13223 if ac_fn_c_try_link
"$LINENO"; then :
13224 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13226 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13228 rm -f core conftest.err conftest.
$ac_objext \
13229 conftest
$ac_exeext conftest.
$ac_ext
13230 LIBS
=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13233 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13234 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13241 if test "${HAVE_XPM}" = "yes"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13243 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #include "X11/xpm.h"
13247 #ifndef XpmReturnAllocPixels
13248 no_return_alloc_pixels
13252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13261 if test "${HAVE_XPM}" = "yes"; then
13262 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 $as_echo "yes" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 CPPFLAGS
="$SAVE_CPPFLAGS"
13269 LDFLAGS
="$SAVE_LDFLAGS"
13274 if test "${HAVE_XPM}" = "yes"; then
13276 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13282 if test "${HAVE_X11}" = "yes"; then
13283 if test "${with_xpm}" != "no"; then
13284 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13285 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13287 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13291 ac_check_lib_save_LIBS
=$LIBS
13292 LIBS
="-lXpm -lX11 $LIBS"
13293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13302 char XpmReadFileToPixmap ();
13306 return XpmReadFileToPixmap ();
13311 if ac_fn_c_try_link
"$LINENO"; then :
13312 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13314 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13316 rm -f core conftest.err conftest.
$ac_objext \
13317 conftest
$ac_exeext conftest.
$ac_ext
13318 LIBS
=$ac_check_lib_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13321 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13322 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13329 if test "${HAVE_XPM}" = "yes"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13331 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #include "X11/xpm.h"
13335 #ifndef XpmReturnAllocPixels
13336 no_return_alloc_pixels
13340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13341 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13349 if test "${HAVE_XPM}" = "yes"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13351 $as_echo "yes" >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13359 if test "${HAVE_XPM}" = "yes"; then
13361 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13367 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13368 ### slightly different requirements wrt image libraries (it doesn't
13369 ### use -lXpm because it loads the xpm shared library dynamically at
13371 if test "${opsys}" = "mingw32"; then
13372 if test "${with_xpm}" != "no"; then
13373 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13376 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13385 if test "${HAVE_XPM}" = "yes"; then
13387 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13394 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13395 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13398 if test "${opsys}" = "mingw32"; then
13399 if test "${with_jpeg}" != "no"; then
13400 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13401 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13409 if test "${HAVE_JPEG}" = "yes"; then
13410 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <jpeglib.h>
13415 version=JPEG_LIB_VERSION
13418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13419 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13420 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13424 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13430 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13431 if test "${with_jpeg}" != "no"; then
13432 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13433 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13435 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13436 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13439 ac_check_lib_save_LIBS
=$LIBS
13440 LIBS
="-ljpeg $LIBS"
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13450 char jpeg_destroy_compress ();
13454 return jpeg_destroy_compress ();
13459 if ac_fn_c_try_link
"$LINENO"; then :
13460 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13462 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13464 rm -f core conftest.err conftest.
$ac_objext \
13465 conftest
$ac_exeext conftest.
$ac_ext
13466 LIBS
=$ac_check_lib_save_LIBS
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13469 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13470 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13479 if test "${HAVE_JPEG}" = "yes"; then
13480 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 #include <jpeglib.h>
13485 version=JPEG_LIB_VERSION
13488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13490 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13494 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13500 if test "${HAVE_JPEG}" = "yes"; then
13506 ### Use -lpng if available, unless `--with-png=no'.
13507 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13510 if test "${opsys}" = "mingw32"; then
13511 if test "${with_png}" != "no"; then
13512 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13513 if test "x$ac_cv_header_png_h" = x
""yes; then :
13521 if test "${HAVE_PNG}" = "yes"; then
13523 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13526 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13527 # include <libpng/png.h>
13533 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13537 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13542 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13543 if test "${with_png}" != "no"; then
13544 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13545 # in /usr/include/libpng.
13546 for ac_header
in png.h libpng
/png.h
13548 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13549 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13550 eval as_val
=\$
$as_ac_Header
13551 if test "x$as_val" = x
""yes; then :
13552 cat >>confdefs.h
<<_ACEOF
13553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13560 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13562 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13563 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13566 ac_check_lib_save_LIBS
=$LIBS
13567 LIBS
="-lpng -lz -lm $LIBS"
13568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13577 char png_get_channels ();
13581 return png_get_channels ();
13586 if ac_fn_c_try_link
"$LINENO"; then :
13587 ac_cv_lib_png_png_get_channels
=yes
13589 ac_cv_lib_png_png_get_channels
=no
13591 rm -f core conftest.err conftest.
$ac_objext \
13592 conftest
$ac_exeext conftest.
$ac_ext
13593 LIBS
=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13596 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13597 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13604 if test "${HAVE_PNG}" = "yes"; then
13606 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13608 LIBPNG
="-lpng -lz -lm"
13610 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13611 # include <libpng/png.h>
13617 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13621 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13629 ### Use -ltiff if available, unless `--with-tiff=no'.
13630 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13633 if test "${opsys}" = "mingw32"; then
13634 if test "${with_tiff}" != "no"; then
13635 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13636 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13644 if test "${HAVE_TIFF}" = "yes"; then
13646 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13649 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13650 if test "${with_tiff}" != "no"; then
13651 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13652 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13654 # At least one tiff package requires the jpeg library.
13655 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13657 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13658 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13661 ac_check_lib_save_LIBS
=$LIBS
13662 LIBS
="-ltiff $tifflibs $LIBS"
13663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13672 char TIFFGetVersion ();
13676 return TIFFGetVersion ();
13681 if ac_fn_c_try_link
"$LINENO"; then :
13682 ac_cv_lib_tiff_TIFFGetVersion
=yes
13684 ac_cv_lib_tiff_TIFFGetVersion
=no
13686 rm -f core conftest.err conftest.
$ac_objext \
13687 conftest
$ac_exeext conftest.
$ac_ext
13688 LIBS
=$ac_check_lib_save_LIBS
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13691 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13692 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13701 if test "${HAVE_TIFF}" = "yes"; then
13703 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13710 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13711 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13714 if test "${opsys}" = "mingw32"; then
13715 if test "${with_gif}" != "no"; then
13716 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13717 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13725 if test "${HAVE_GIF}" = "yes"; then
13727 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13730 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13731 ||
test "${HAVE_W32}" = "yes"; then
13732 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13733 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13734 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13735 # Earlier versions can crash Emacs.
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13737 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13738 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13741 ac_check_lib_save_LIBS
=$LIBS
13743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 /* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13752 char EGifPutExtensionLast ();
13756 return EGifPutExtensionLast ();
13761 if ac_fn_c_try_link
"$LINENO"; then :
13762 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13764 ac_cv_lib_gif_EGifPutExtensionLast
=no
13766 rm -f core conftest.err conftest.
$ac_objext \
13767 conftest
$ac_exeext conftest.
$ac_ext
13768 LIBS
=$ac_check_lib_save_LIBS
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13771 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13772 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13782 if test "$HAVE_GIF" = yes; then
13784 elif test "$HAVE_GIF" = maybe
; then
13785 # If gif_lib.h but no libgif, try libungif.
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13787 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13788 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13791 ac_check_lib_save_LIBS
=$LIBS
13792 LIBS
="-lungif $LIBS"
13793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13796 /* Override any GCC internal prototype to avoid an error.
13797 Use char because int might match the return type of a GCC
13798 builtin and then its argument prototype would still apply. */
13802 char EGifPutExtensionLast ();
13806 return EGifPutExtensionLast ();
13811 if ac_fn_c_try_link
"$LINENO"; then :
13812 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13814 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13816 rm -f core conftest.err conftest.
$ac_objext \
13817 conftest
$ac_exeext conftest.
$ac_ext
13818 LIBS
=$ac_check_lib_save_LIBS
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13821 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13822 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13828 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13831 if test "${HAVE_GIF}" = "yes"; then
13833 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13839 if test "${HAVE_X11}" = "yes"; then
13842 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13843 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13844 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13845 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13846 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13847 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13848 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13849 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13850 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13851 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13853 if test "X${MISSING}" != X
; then
13854 as_fn_error
"The following required libraries were not found:
13856 Maybe some development libraries/packages are missing?
13857 If you don't want to link with them give
13859 as options to configure" "$LINENO" 5
13863 ### Use -lgpm if available, unless `--with-gpm=no'.
13866 if test "${with_gpm}" != "no"; then
13867 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13868 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13870 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13871 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13872 $as_echo_n "(cached) " >&6
13874 ac_check_lib_save_LIBS
=$LIBS
13876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13879 /* Override any GCC internal prototype to avoid an error.
13880 Use char because int might match the return type of a GCC
13881 builtin and then its argument prototype would still apply. */
13889 return Gpm_Open ();
13894 if ac_fn_c_try_link
"$LINENO"; then :
13895 ac_cv_lib_gpm_Gpm_Open
=yes
13897 ac_cv_lib_gpm_Gpm_Open
=no
13899 rm -f core conftest.err conftest.
$ac_objext \
13900 conftest
$ac_exeext conftest.
$ac_ext
13901 LIBS
=$ac_check_lib_save_LIBS
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13904 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13905 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13913 if test "${HAVE_GPM}" = "yes"; then
13915 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13927 ### Use NeXTstep API to implement GUI.
13928 if test "${HAVE_NS}" = "yes"; then
13930 $as_echo "#define HAVE_NS 1" >>confdefs.h
13932 if test "${NS_IMPL_COCOA}" = "yes"; then
13934 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13937 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13939 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13941 # See also .m.o rule in Makefile.in */
13942 # FIXME: are all these flags really needed? Document here why. */
13943 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13944 ## Extra CFLAGS applied to src/*.m files.
13945 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"
13947 # We also have mouse menus.
13952 if test "${HAVE_W32}" = "yes"; then
13956 ### Use session management (-lSM -lICE) if available
13959 if test "${HAVE_X11}" = "yes"; then
13960 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13961 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13963 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13964 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13965 $as_echo_n "(cached) " >&6
13967 ac_check_lib_save_LIBS
=$LIBS
13968 LIBS
="-lSM -lICE $LIBS"
13969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13978 char SmcOpenConnection ();
13982 return SmcOpenConnection ();
13987 if ac_fn_c_try_link
"$LINENO"; then :
13988 ac_cv_lib_SM_SmcOpenConnection
=yes
13990 ac_cv_lib_SM_SmcOpenConnection
=no
13992 rm -f core conftest.err conftest.
$ac_objext \
13993 conftest
$ac_exeext conftest.
$ac_ext
13994 LIBS
=$ac_check_lib_save_LIBS
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13997 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13998 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14006 if test "${HAVE_X_SM}" = "yes"; then
14008 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14010 LIBXSM
="-lSM -lICE"
14013 *) LIBS
="$LIBXSM $LIBS" ;;
14019 ### Use XRandr (-lXrandr) if available
14021 if test "${HAVE_X11}" = "yes"; then
14022 XRANDR_REQUIRED
=1.2.2
14023 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14027 if test "$PKG_CONFIG" = "no" ; then
14030 PKG_CONFIG_MIN_VERSION
=0.9.0
14031 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14033 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14035 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14036 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14037 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14044 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14045 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14047 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14054 ## If we have a custom action on failure, don't print errors, but
14055 ## do set a variable so people can do so. Do it in a subshell
14056 ## to capture any diagnostics in invoking pkg-config.
14057 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14069 if test $succeeded = yes; then
14075 if test $HAVE_XRANDR = no
; then
14076 # Test old way in case pkg-config doesn't have it (older machines).
14077 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14078 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14080 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14081 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14084 ac_check_lib_save_LIBS
=$LIBS
14085 LIBS
="-lXrandr $LIBS"
14086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14095 char XRRGetScreenResources ();
14099 return XRRGetScreenResources ();
14104 if ac_fn_c_try_link
"$LINENO"; then :
14105 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14107 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14109 rm -f core conftest.err conftest.
$ac_objext \
14110 conftest
$ac_exeext conftest.
$ac_ext
14111 LIBS
=$ac_check_lib_save_LIBS
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14114 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14115 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14122 if test $HAVE_XRANDR = yes; then
14123 XRANDR_LIBS
=-lXrandr
14127 if test $HAVE_XRANDR = yes; then
14128 SAVE_CFLAGS
="$CFLAGS"
14130 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14131 LIBS
="$XRANDR_LIBS $LIBS"
14132 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14134 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14135 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14136 eval as_val
=\$
$as_ac_var
14137 if test "x$as_val" = x
""yes; then :
14138 cat >>confdefs.h
<<_ACEOF
14139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14145 CFLAGS
="$SAVE_CFLAGS"
14149 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14154 ### Use Xinerama (-lXinerama) if available
14156 if test "${HAVE_X11}" = "yes"; then
14157 XINERAMA_REQUIRED
=1.0.2
14158 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14162 if test "$PKG_CONFIG" = "no" ; then
14165 PKG_CONFIG_MIN_VERSION
=0.9.0
14166 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14168 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14170 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14171 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14172 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14179 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14180 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14182 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14189 ## If we have a custom action on failure, don't print errors, but
14190 ## do set a variable so people can do so. Do it in a subshell
14191 ## to capture any diagnostics in invoking pkg-config.
14192 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14204 if test $succeeded = yes; then
14210 if test $HAVE_XINERAMA = no
; then
14211 # Test old way in case pkg-config doesn't have it (older machines).
14212 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14213 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14215 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14216 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14217 $as_echo_n "(cached) " >&6
14219 ac_check_lib_save_LIBS
=$LIBS
14220 LIBS
="-lXinerama $LIBS"
14221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14230 char XineramaQueryExtension ();
14234 return XineramaQueryExtension ();
14239 if ac_fn_c_try_link
"$LINENO"; then :
14240 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14242 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14244 rm -f core conftest.err conftest.
$ac_objext \
14245 conftest
$ac_exeext conftest.
$ac_ext
14246 LIBS
=$ac_check_lib_save_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14249 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14250 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14257 if test $HAVE_XINERAMA = yes; then
14258 XINERAMA_LIBS
=-lXinerama
14262 if test $HAVE_XINERAMA = yes; then
14264 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14270 ### Use libxml (-lxml2) if available
14271 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14273 if test "${with_xml2}" != "no"; then
14274 ### I'm not sure what the version number should be, so I just guessed.
14278 if test "$PKG_CONFIG" = "no" ; then
14281 PKG_CONFIG_MIN_VERSION
=0.9.0
14282 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14284 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14286 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14287 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14288 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14295 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14296 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14298 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14305 ## If we have a custom action on failure, don't print errors, but
14306 ## do set a variable so people can do so. Do it in a subshell
14307 ## to capture any diagnostics in invoking pkg-config.
14308 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14320 if test $succeeded = yes; then
14326 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14327 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14328 SAVE_CPPFLAGS
="$CPPFLAGS"
14329 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14330 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14331 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14332 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14334 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14341 CPPFLAGS
="$SAVE_CPPFLAGS"
14342 if test "${HAVE_LIBXML2}" = "yes"; then
14343 LIBXML2_LIBS
="-lxml2"
14344 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14347 if test "${HAVE_LIBXML2}" = "yes"; then
14348 if test "${opsys}" != "mingw32"; then
14349 LIBS
="$LIBXML2_LIBS $LIBS"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14351 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14352 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14355 ac_check_lib_save_LIBS
=$LIBS
14356 LIBS
="-lxml2 $LIBS"
14357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14366 char htmlReadMemory ();
14370 return htmlReadMemory ();
14375 if ac_fn_c_try_link
"$LINENO"; then :
14376 ac_cv_lib_xml2_htmlReadMemory
=yes
14378 ac_cv_lib_xml2_htmlReadMemory
=no
14380 rm -f core conftest.err conftest.
$ac_objext \
14381 conftest
$ac_exeext conftest.
$ac_ext
14382 LIBS
=$ac_check_lib_save_LIBS
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14385 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14386 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14395 if test "${HAVE_LIBXML2}" = "yes"; then
14397 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14408 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14409 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14410 if test "${opsys}" = "mingw32"; then
14411 emacs_cv_netdb_declares_h_errno
=yes
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14414 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14415 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14429 if ac_fn_c_try_link
"$LINENO"; then :
14430 emacs_cv_netdb_declares_h_errno
=yes
14432 emacs_cv_netdb_declares_h_errno
=no
14434 rm -f core conftest.err conftest.
$ac_objext \
14435 conftest
$ac_exeext conftest.
$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14438 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14439 if test $emacs_cv_netdb_declares_h_errno = yes; then
14441 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14445 # sqrt and other floating-point functions such as fmod and frexp
14446 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14447 if test "${opsys}" != "mingw32"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14449 $as_echo_n "checking for sqrt in -lm... " >&6; }
14450 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14453 ac_check_lib_save_LIBS
=$LIBS
14455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14473 if ac_fn_c_try_link
"$LINENO"; then :
14474 ac_cv_lib_m_sqrt
=yes
14476 ac_cv_lib_m_sqrt
=no
14478 rm -f core conftest.err conftest.
$ac_objext \
14479 conftest
$ac_exeext conftest.
$ac_ext
14480 LIBS
=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14483 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14484 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14485 cat >>confdefs.h
<<_ACEOF
14486 #define HAVE_LIBM 1
14495 # Check for mail-locking functions in a "mail" library. Probably this should
14496 # have the same check as for liblockfile below.
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14498 $as_echo_n "checking for maillock in -lmail... " >&6; }
14499 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14502 ac_check_lib_save_LIBS
=$LIBS
14503 LIBS
="-lmail $LIBS"
14504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14517 return maillock ();
14522 if ac_fn_c_try_link
"$LINENO"; then :
14523 ac_cv_lib_mail_maillock
=yes
14525 ac_cv_lib_mail_maillock
=no
14527 rm -f core conftest.err conftest.
$ac_objext \
14528 conftest
$ac_exeext conftest.
$ac_ext
14529 LIBS
=$ac_check_lib_save_LIBS
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14532 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14533 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14539 if test $have_mail = yes; then
14541 LIBS
="$LIBS_MAIL $LIBS"
14543 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14549 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14550 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14553 ac_check_lib_save_LIBS
=$LIBS
14554 LIBS
="-llockfile $LIBS"
14555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14568 return maillock ();
14573 if ac_fn_c_try_link
"$LINENO"; then :
14574 ac_cv_lib_lockfile_maillock
=yes
14576 ac_cv_lib_lockfile_maillock
=no
14578 rm -f core conftest.err conftest.
$ac_objext \
14579 conftest
$ac_exeext conftest.
$ac_ext
14580 LIBS
=$ac_check_lib_save_LIBS
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14583 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14584 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14590 if test $have_lockfile = yes; then
14591 LIBS_MAIL
=-llockfile
14592 LIBS
="$LIBS_MAIL $LIBS"
14594 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14597 # If we have the shared liblockfile, assume we must use it for mail
14598 # locking (e.g. Debian). If we couldn't link against liblockfile
14599 # (no liblockfile.a installed), ensure that we don't need to.
14600 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14601 set dummy liblockfile.so
; ac_word
=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603 $as_echo_n "checking for $ac_word... " >&6; }
14604 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14605 $as_echo_n "(cached) " >&6
14607 if test -n "$liblockfile"; then
14608 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14611 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14612 for as_dir
in $as_dummy
14615 test -z "$as_dir" && as_dir
=.
14616 for ac_exec_ext
in '' $ac_executable_extensions; do
14617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14618 ac_cv_prog_liblockfile
="yes"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14626 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14629 liblockfile
=$ac_cv_prog_liblockfile
14630 if test -n "$liblockfile"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14632 $as_echo "$liblockfile" >&6; }
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14639 if test $ac_cv_prog_liblockfile = yes; then
14640 as_fn_error
"Shared liblockfile found but can't link against it.
14641 This probably means that movemail could lose mail.
14642 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14650 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14651 ## interlock access to the mail spool. The alternative is a lock file named
14652 ## /usr/spool/mail/$USER.lock.
14655 aix4-2
) mail_lock
="lockf" ;;
14657 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14659 ## On GNU/Linux systems, both methods are used by various mail programs.
14660 ## I assume most people are using newer mailers that have heard of flock.
14661 ## Change this if you need to.
14662 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14663 ## configure gets the right answers, and that means *NOT* using flock.
14664 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14665 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14666 ## Debian maintainer hasn't provided a clean fix for Emacs.
14667 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14668 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14669 ## correct logic. -- fx
14670 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14671 ## liblockfile is a Free Software replacement for libmail, used on
14672 ## Debian systems and elsewhere. -rfr.
14675 if test $have_mail = yes ||
test $have_lockfile = yes; then
14676 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14681 mail_lock
="none-needed" ;;
14685 case "$mail_lock" in
14687 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14691 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14696 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14701 for ac_func
in accept4 gethostname \
14702 getrusage get_current_dir_name \
14704 select getpagesize setlocale \
14705 getrlimit setrlimit shutdown getaddrinfo \
14706 strsignal setitimer \
14707 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14708 gai_strerror getline getdelim sync \
14709 difftime posix_memalign \
14710 getpwent endpwent getgrent endgrent \
14712 cfmakeraw cfsetspeed copysign __executable_start log2
14714 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14715 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14716 eval as_val
=\$
$as_ac_var
14717 if test "x$as_val" = x
""yes; then :
14718 cat >>confdefs.h
<<_ACEOF
14719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14726 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14727 ## has a broken `rint' in some library versions including math library
14728 ## version number A.09.05.
14729 ## You can fix the math library by installing patch number PHSS_4630.
14730 ## But we can fix it more reliably for Emacs by just not using rint.
14731 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14734 *) for ac_func
in random rint
14736 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14738 eval as_val
=\$
$as_ac_var
14739 if test "x$as_val" = x
""yes; then :
14740 cat >>confdefs.h
<<_ACEOF
14741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14750 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14751 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14760 __builtin_unwind_init ();
14765 if ac_fn_c_try_link
"$LINENO"; then :
14766 emacs_cv_func___builtin_unwind_init
=yes
14768 emacs_cv_func___builtin_unwind_init
=no
14770 rm -f core conftest.err conftest.
$ac_objext \
14771 conftest
$ac_exeext conftest.
$ac_ext
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14774 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14775 if test $emacs_cv_func___builtin_unwind_init = yes; then
14777 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14786 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14787 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <sys/types.h> /* for off_t */
14798 int (*fp) (FILE *, off_t, int) = fseeko;
14799 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14804 if ac_fn_c_try_link
"$LINENO"; then :
14805 ac_cv_sys_largefile_source
=no
; break
14807 rm -f core conftest.err conftest.
$ac_objext \
14808 conftest
$ac_exeext conftest.
$ac_ext
14809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 #define _LARGEFILE_SOURCE 1
14812 #include <sys/types.h> /* for off_t */
14817 int (*fp) (FILE *, off_t, int) = fseeko;
14818 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14823 if ac_fn_c_try_link
"$LINENO"; then :
14824 ac_cv_sys_largefile_source
=1; break
14826 rm -f core conftest.err conftest.
$ac_objext \
14827 conftest
$ac_exeext conftest.
$ac_ext
14828 ac_cv_sys_largefile_source
=unknown
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14833 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14834 case $ac_cv_sys_largefile_source in #(
14837 cat >>confdefs.h
<<_ACEOF
14838 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14844 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14845 # in glibc 2.1.3, but that breaks too many other things.
14846 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14847 if test $ac_cv_sys_largefile_source != unknown
; then
14849 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14855 for ac_func
in grantpt
14857 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14858 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14859 cat >>confdefs.h
<<_ACEOF
14860 #define HAVE_GRANTPT 1
14867 # PTY-related GNU extensions.
14868 for ac_func
in getpt posix_openpt
14870 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14871 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14872 eval as_val
=\$
$as_ac_var
14873 if test "x$as_val" = x
""yes; then :
14874 cat >>confdefs.h
<<_ACEOF
14875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14882 # Check this now, so that we will NOT find the above functions in ncurses.
14883 # That is because we have not set up to link ncurses in lib-src.
14884 # It's better to believe a function is not available
14885 # than to expect to find it in ncurses.
14886 # Also we need tputs and friends to be able to build at all.
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14888 $as_echo_n "checking for library containing tputs... " >&6; }
14889 # Run a test program that contains a call to tputs, a call that is
14890 # never executed. This tests whether a pre-'main' dynamic linker
14891 # works with the library. It's too much trouble to actually call
14892 # tputs in the test program, due to portability hassles. When
14893 # cross-compiling, assume the test program will run if it links.
14895 if test "${opsys}" = "mingw32"; then
14896 msg
='none required'
14898 # Maybe curses should be tried earlier?
14899 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14900 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14902 if test -z "$tputs_library"; then
14904 msg
='none required'
14906 LIBS_TERMCAP
=-l$tputs_library
14908 LIBS
="$LIBS_TERMCAP $LIBS"
14910 if test "$cross_compiling" = yes; then :
14911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14914 extern void tputs (const char *, int, int (*)(int));
14915 int main (int argc, char **argv)
14918 tputs (argv[0], 0, 0);
14923 if ac_fn_c_try_link
"$LINENO"; then :
14928 rm -f core conftest.err conftest.
$ac_objext \
14929 conftest
$ac_exeext conftest.
$ac_ext
14931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14934 extern void tputs (const char *, int, int (*)(int));
14935 int main (int argc, char **argv)
14938 tputs (argv[0], 0, 0);
14943 if ac_fn_c_try_run
"$LINENO"; then :
14948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14953 if test "X$msg" != Xno
; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14959 $as_echo "$msg" >&6; }
14960 if test "X$msg" = Xno
; then
14961 as_fn_error
"The required function \`tputs' was not found in any library.
14962 The following libraries were tried (in order):
14963 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14964 Please try installing whichever of these libraries is most appropriate
14965 for your system, together with its header files.
14966 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14969 ## Use termcap instead of terminfo?
14970 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14972 ## FIXME? In the cases below where we unconditionally set
14973 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14974 ## if that was found above to have tputs.
14975 ## Should we use the gnu* logic everywhere?
14977 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14978 ## The ncurses library has been moved out of the System framework in
14979 ## Mac OS X 10.2. So if configure detects it, set the command-line
14980 ## option to use it.
14981 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14983 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14987 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14988 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <osreldate.h>
14997 #if __FreeBSD_version < 400000
15005 if ac_fn_c_try_link
"$LINENO"; then :
15006 emacs_cv_freebsd_terminfo
=yes
15008 emacs_cv_freebsd_terminfo
=no
15010 rm -f core conftest.err conftest.
$ac_objext \
15011 conftest
$ac_exeext conftest.
$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15016 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15018 if test $emacs_cv_freebsd_terminfo = yes; then
15019 LIBS_TERMCAP
="-lncurses"
15022 LIBS_TERMCAP
="-ltermcap"
15032 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15034 LIBS_TERMCAP
="-ltermcap"
15038 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15040 ## hpux: Make sure we get select from libc rather than from libcurses
15041 ## because libcurses on HPUX 10.10 has a broken version of select.
15042 ## We used to use -lc -lcurses, but this may be cleaner.
15043 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15044 # set that way, now it uses the default). Isn't this a contradiction?
15045 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15049 TERMCAP_OBJ
=tparam.o
15050 if test $TERMINFO = yes; then
15052 $as_echo "#define TERMINFO 1" >>confdefs.h
15054 TERMCAP_OBJ
=terminfo.o
15056 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15058 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15065 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15066 # On Darwin, res_init appears not to be useful: see bug#562 and
15067 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15070 if test $opsys != darwin
; then
15072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #include <netinet/in.h>
15075 #include <arpa/nameser.h>
15076 #include <resolv.h>
15085 if ac_fn_c_try_link
"$LINENO"; then :
15090 rm -f core conftest.err conftest.
$ac_objext \
15091 conftest
$ac_exeext conftest.
$ac_ext
15092 if test "$have_res_init" = no
; then
15094 LIBS
="$LIBS -lresolv"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15096 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 #include <netinet/in.h>
15100 #include <arpa/nameser.h>
15101 #include <resolv.h>
15110 if ac_fn_c_try_link
"$LINENO"; then :
15115 rm -f core conftest.err conftest.
$ac_objext \
15116 conftest
$ac_exeext conftest.
$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15118 $as_echo "$have_res_init" >&6; }
15119 if test "$have_res_init" = yes ; then
15125 if test "$have_res_init" = yes; then
15127 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15131 # Do we need the Hesiod library to provide the support routines?
15133 if test "$with_hesiod" != no
; then
15134 # Don't set $LIBS here -- see comments above. FIXME which comments?
15135 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15136 if test "x$ac_cv_func_res_send" = x
""yes; then :
15139 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15140 if test "x$ac_cv_func___res_send" = x
""yes; then :
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15144 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15148 ac_check_lib_save_LIBS
=$LIBS
15149 LIBS
="-lresolv $LIBS"
15150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 /* Override any GCC internal prototype to avoid an error.
15154 Use char because int might match the return type of a GCC
15155 builtin and then its argument prototype would still apply. */
15163 return res_send ();
15168 if ac_fn_c_try_link
"$LINENO"; then :
15169 ac_cv_lib_resolv_res_send
=yes
15171 ac_cv_lib_resolv_res_send
=no
15173 rm -f core conftest.err conftest.
$ac_objext \
15174 conftest
$ac_exeext conftest.
$ac_ext
15175 LIBS
=$ac_check_lib_save_LIBS
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15178 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15179 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15183 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15184 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15185 $as_echo_n "(cached) " >&6
15187 ac_check_lib_save_LIBS
=$LIBS
15188 LIBS
="-lresolv $LIBS"
15189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15198 char __res_send ();
15202 return __res_send ();
15207 if ac_fn_c_try_link
"$LINENO"; then :
15208 ac_cv_lib_resolv___res_send
=yes
15210 ac_cv_lib_resolv___res_send
=no
15212 rm -f core conftest.err conftest.
$ac_objext \
15213 conftest
$ac_exeext conftest.
$ac_ext
15214 LIBS
=$ac_check_lib_save_LIBS
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15217 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15218 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15228 if test "$resolv" = yes ; then
15233 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15234 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15238 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15239 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15240 $as_echo_n "(cached) " >&6
15242 ac_check_lib_save_LIBS
=$LIBS
15243 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15247 /* Override any GCC internal prototype to avoid an error.
15248 Use char because int might match the return type of a GCC
15249 builtin and then its argument prototype would still apply. */
15253 char hes_getmailhost ();
15257 return hes_getmailhost ();
15262 if ac_fn_c_try_link
"$LINENO"; then :
15263 ac_cv_lib_hesiod_hes_getmailhost
=yes
15265 ac_cv_lib_hesiod_hes_getmailhost
=no
15267 rm -f core conftest.err conftest.
$ac_objext \
15268 conftest
$ac_exeext conftest.
$ac_ext
15269 LIBS
=$ac_check_lib_save_LIBS
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15272 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15273 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15282 if test x
"$hesiod" = xyes
; then
15288 # Do we need libresolv (due to res_init or Hesiod)?
15289 if test "$resolv" = yes && test $opsys != darwin
; then
15296 # These tell us which Kerberos-related libraries to use.
15303 if test "${with_kerberos}" != no
; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15305 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15306 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15309 ac_check_lib_save_LIBS
=$LIBS
15310 LIBS
="-lcom_err $LIBS"
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15329 if ac_fn_c_try_link
"$LINENO"; then :
15330 ac_cv_lib_com_err_com_err
=yes
15332 ac_cv_lib_com_err_com_err
=no
15334 rm -f core conftest.err conftest.
$ac_objext \
15335 conftest
$ac_exeext conftest.
$ac_ext
15336 LIBS
=$ac_check_lib_save_LIBS
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15339 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15340 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15346 if test $have_com_err = yes; then
15347 COM_ERRLIB
=-lcom_err
15348 LIBS
="$COM_ERRLIB $LIBS"
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15351 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15352 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15353 $as_echo_n "(cached) " >&6
15355 ac_check_lib_save_LIBS
=$LIBS
15356 LIBS
="-lcrypto $LIBS"
15357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15360 /* Override any GCC internal prototype to avoid an error.
15361 Use char because int might match the return type of a GCC
15362 builtin and then its argument prototype would still apply. */
15366 char mit_des_cbc_encrypt ();
15370 return mit_des_cbc_encrypt ();
15375 if ac_fn_c_try_link
"$LINENO"; then :
15376 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15378 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15380 rm -f core conftest.err conftest.
$ac_objext \
15381 conftest
$ac_exeext conftest.
$ac_ext
15382 LIBS
=$ac_check_lib_save_LIBS
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15385 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15386 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15392 if test $have_crypto = yes; then
15394 LIBS
="$CRYPTOLIB $LIBS"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15397 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15398 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15399 $as_echo_n "(cached) " >&6
15401 ac_check_lib_save_LIBS
=$LIBS
15402 LIBS
="-lk5crypto $LIBS"
15403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15412 char mit_des_cbc_encrypt ();
15416 return mit_des_cbc_encrypt ();
15421 if ac_fn_c_try_link
"$LINENO"; then :
15422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15424 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15426 rm -f core conftest.err conftest.
$ac_objext \
15427 conftest
$ac_exeext conftest.
$ac_ext
15428 LIBS
=$ac_check_lib_save_LIBS
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15431 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15432 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15438 if test $have_k5crypto = yes; then
15439 CRYPTOLIB
=-lk5crypto
15440 LIBS
="$CRYPTOLIB $LIBS"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15443 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15444 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15447 ac_check_lib_save_LIBS
=$LIBS
15448 LIBS
="-lkrb5 $LIBS"
15449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15458 char krb5_init_context ();
15462 return krb5_init_context ();
15467 if ac_fn_c_try_link
"$LINENO"; then :
15468 ac_cv_lib_krb5_krb5_init_context
=yes
15470 ac_cv_lib_krb5_krb5_init_context
=no
15472 rm -f core conftest.err conftest.
$ac_objext \
15473 conftest
$ac_exeext conftest.
$ac_ext
15474 LIBS
=$ac_check_lib_save_LIBS
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15477 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15478 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15484 if test $have_krb5=yes; then
15486 LIBS
="$KRB5LIB $LIBS"
15488 if test "${with_kerberos5}" = no
; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15490 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15491 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15494 ac_check_lib_save_LIBS
=$LIBS
15495 LIBS
="-ldes425 $LIBS"
15496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15505 char des_cbc_encrypt ();
15509 return des_cbc_encrypt ();
15514 if ac_fn_c_try_link
"$LINENO"; then :
15515 ac_cv_lib_des425_des_cbc_encrypt
=yes
15517 ac_cv_lib_des425_des_cbc_encrypt
=no
15519 rm -f core conftest.err conftest.
$ac_objext \
15520 conftest
$ac_exeext conftest.
$ac_ext
15521 LIBS
=$ac_check_lib_save_LIBS
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15524 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15525 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15531 if test $have_des425 = yes; then
15533 LIBS
="$DESLIB $LIBS"
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15536 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15537 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15538 $as_echo_n "(cached) " >&6
15540 ac_check_lib_save_LIBS
=$LIBS
15542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15545 /* Override any GCC internal prototype to avoid an error.
15546 Use char because int might match the return type of a GCC
15547 builtin and then its argument prototype would still apply. */
15551 char des_cbc_encrypt ();
15555 return des_cbc_encrypt ();
15560 if ac_fn_c_try_link
"$LINENO"; then :
15561 ac_cv_lib_des_des_cbc_encrypt
=yes
15563 ac_cv_lib_des_des_cbc_encrypt
=no
15565 rm -f core conftest.err conftest.
$ac_objext \
15566 conftest
$ac_exeext conftest.
$ac_ext
15567 LIBS
=$ac_check_lib_save_LIBS
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15570 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15571 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15577 if test $have_des = yes; then
15579 LIBS
="$DESLIB $LIBS"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15583 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15584 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15587 ac_check_lib_save_LIBS
=$LIBS
15588 LIBS
="-lkrb4 $LIBS"
15589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15598 char krb_get_cred ();
15602 return krb_get_cred ();
15607 if ac_fn_c_try_link
"$LINENO"; then :
15608 ac_cv_lib_krb4_krb_get_cred
=yes
15610 ac_cv_lib_krb4_krb_get_cred
=no
15612 rm -f core conftest.err conftest.
$ac_objext \
15613 conftest
$ac_exeext conftest.
$ac_ext
15614 LIBS
=$ac_check_lib_save_LIBS
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15617 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15618 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15624 if test $have_krb4 = yes; then
15626 LIBS
="$KRB4LIB $LIBS"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15629 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15630 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15631 $as_echo_n "(cached) " >&6
15633 ac_check_lib_save_LIBS
=$LIBS
15635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15638 /* Override any GCC internal prototype to avoid an error.
15639 Use char because int might match the return type of a GCC
15640 builtin and then its argument prototype would still apply. */
15644 char krb_get_cred ();
15648 return krb_get_cred ();
15653 if ac_fn_c_try_link
"$LINENO"; then :
15654 ac_cv_lib_krb_krb_get_cred
=yes
15656 ac_cv_lib_krb_krb_get_cred
=no
15658 rm -f core conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15660 LIBS
=$ac_check_lib_save_LIBS
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15663 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15664 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15670 if test $have_krb = yes; then
15672 LIBS
="$KRB4LIB $LIBS"
15677 if test "${with_kerberos5}" != no
; then
15678 for ac_header
in krb5.h
15680 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15681 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15682 cat >>confdefs.h
<<_ACEOF
15683 #define HAVE_KRB5_H 1
15685 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15687 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15689 cat >>confdefs.h
<<_ACEOF
15690 #define HAVE_KRB5_ERROR_TEXT 1
15695 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15697 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15699 cat >>confdefs.h
<<_ACEOF
15700 #define HAVE_KRB5_ERROR_E_TEXT 1
15711 for ac_header
in krb.h
15713 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15714 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15715 cat >>confdefs.h
<<_ACEOF
15716 #define HAVE_KRB_H 1
15720 for ac_header
in kerberosIV
/krb.h
15722 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15723 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15724 cat >>confdefs.h
<<_ACEOF
15725 #define HAVE_KERBEROSIV_KRB_H 1
15729 for ac_header
in kerberos
/krb.h
15731 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15732 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15733 cat >>confdefs.h
<<_ACEOF
15734 #define HAVE_KERBEROS_KRB_H 1
15750 for ac_header
in com_err.h
15752 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15753 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15754 cat >>confdefs.h
<<_ACEOF
15755 #define HAVE_COM_ERR_H 1
15773 for ac_func
in $ac_func_list
15775 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15777 eval as_val
=\$
$as_ac_var
15778 if test "x$as_val" = x
""yes; then :
15779 cat >>confdefs.h
<<_ACEOF
15780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15790 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15791 if test "${emacs_cv_localtime_cache+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15794 if test x
$ac_cv_func_tzset = xyes
; then
15795 if test "$cross_compiling" = yes; then :
15796 # If we have tzset, assume the worst when cross-compiling.
15797 emacs_cv_localtime_cache
=yes
15799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15802 char TZ_GMT0[] = "TZ=GMT0";
15803 char TZ_PST8[] = "TZ=PST8";
15806 time_t now = time ((time_t *) 0);
15807 int hour_GMT0, hour_unset;
15808 if (putenv (TZ_GMT0) != 0)
15810 hour_GMT0 = localtime (&now)->tm_hour;
15812 hour_unset = localtime (&now)->tm_hour;
15813 if (putenv (TZ_PST8) != 0)
15815 if (localtime (&now)->tm_hour == hour_GMT0)
15818 if (localtime (&now)->tm_hour != hour_unset)
15823 if ac_fn_c_try_run
"$LINENO"; then :
15824 emacs_cv_localtime_cache
=no
15826 emacs_cv_localtime_cache
=yes
15828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15833 # If we lack tzset, report that localtime does not cache TZ,
15834 # since we can't invalidate the cache if we don't have tzset.
15835 emacs_cv_localtime_cache
=no
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15839 $as_echo "$emacs_cv_localtime_cache" >&6; }
15840 if test $emacs_cv_localtime_cache = yes; then
15842 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15847 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15848 if test "x$ac_cv_func_socket" = x
""yes; then :
15854 if test $ok_so_far = yes; then
15855 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15856 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15864 if test $ok_so_far = yes; then
15865 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15866 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15874 if test $ok_so_far = yes; then
15876 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15881 *-solaris2.4 |
*-solaris2.4.
*)
15882 : ${ac_cv_func_vfork_works=no};;
15885 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15886 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15890 cat >>confdefs.h
<<_ACEOF
15896 for ac_header
in vfork.h
15898 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15899 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15900 cat >>confdefs.h
<<_ACEOF
15901 #define HAVE_VFORK_H 1
15908 for ac_func
in fork vfork
15910 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15912 eval as_val
=\$
$as_ac_var
15913 if test "x$as_val" = x
""yes; then :
15914 cat >>confdefs.h
<<_ACEOF
15915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15921 if test "x$ac_cv_func_fork" = xyes
; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15923 $as_echo_n "checking for working fork... " >&6; }
15924 if test "${ac_cv_func_fork_works+set}" = set; then :
15925 $as_echo_n "(cached) " >&6
15927 if test "$cross_compiling" = yes; then :
15928 ac_cv_func_fork_works
=cross
15930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 $ac_includes_default
15937 /* By Ruediger Kuhlmann. */
15938 return fork () < 0;
15944 if ac_fn_c_try_run
"$LINENO"; then :
15945 ac_cv_func_fork_works
=yes
15947 ac_cv_func_fork_works
=no
15949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15955 $as_echo "$ac_cv_func_fork_works" >&6; }
15958 ac_cv_func_fork_works
=$ac_cv_func_fork
15960 if test "x$ac_cv_func_fork_works" = xcross
; then
15962 *-*-amigaos* |
*-*-msdosdjgpp*)
15963 # Override, as these systems have only a dummy fork() stub
15964 ac_cv_func_fork_works
=no
15967 ac_cv_func_fork_works
=yes
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15971 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15973 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15974 if test "x$ac_cv_func_vfork" = xyes
; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15976 $as_echo_n "checking for working vfork... " >&6; }
15977 if test "${ac_cv_func_vfork_works+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15980 if test "$cross_compiling" = yes; then :
15981 ac_cv_func_vfork_works
=cross
15983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 /* Thanks to Paul Eggert for this test. */
15986 $ac_includes_default
15987 #include <sys/wait.h>
15988 #ifdef HAVE_VFORK_H
15989 # include <vfork.h>
15991 /* On some sparc systems, changes by the child to local and incoming
15992 argument registers are propagated back to the parent. The compiler
15993 is told about this with #include <vfork.h>, but some compilers
15994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15995 static variable whose address is put into a register that is
15996 clobbered by the vfork. */
15999 sparc_address_test (int arg)
16001 sparc_address_test (arg) int arg;
16004 static pid_t child;
16022 pid_t parent = getpid ();
16025 sparc_address_test (0);
16030 /* Here is another test for sparc vfork register problems. This
16031 test uses lots of local variables, at least as many local
16032 variables as main has allocated so far including compiler
16033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16035 reuse the register of parent for one of the local variables,
16036 since it will think that parent can't possibly be used any more
16037 in this routine. Assigning to the local variable will thus
16038 munge parent in the parent process. */
16040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16042 /* Convince the compiler that p..p7 are live; otherwise, it might
16043 use the same hardware register for all 8 local variables. */
16044 if (p != p1 || p != p2 || p != p3 || p != p4
16045 || p != p5 || p != p6 || p != p7)
16048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16049 from child file descriptors. If the child closes a descriptor
16050 before it execs or exits, this munges the parent's descriptor
16051 as well. Test for this by closing stdout in the child. */
16052 _exit(close(fileno(stdout)) != 0);
16057 while (wait(&status) != child)
16060 /* Was there some problem with vforking? */
16063 /* Did the child fail? (This shouldn't happen.) */
16066 /* Did the vfork/compiler bug occur? */
16067 || parent != getpid()
16069 /* Did the file descriptor bug occur? */
16070 || fstat(fileno(stdout), &st) != 0
16075 if ac_fn_c_try_run
"$LINENO"; then :
16076 ac_cv_func_vfork_works
=yes
16078 ac_cv_func_vfork_works
=no
16080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16086 $as_echo "$ac_cv_func_vfork_works" >&6; }
16089 if test "x$ac_cv_func_fork_works" = xcross
; then
16090 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16092 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16095 if test "x$ac_cv_func_vfork_works" = xyes
; then
16097 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16101 $as_echo "#define vfork fork" >>confdefs.h
16104 if test "x$ac_cv_func_fork_works" = xyes
; then
16106 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16111 for ac_func
in snprintf
16113 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16114 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16115 cat >>confdefs.h
<<_ACEOF
16116 #define HAVE_SNPRINTF 1
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16125 $as_echo_n "checking whether GLib is linked in... " >&6; }
16126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16133 g_print ("Hello world");
16138 if ac_fn_c_try_link
"$LINENO"; then :
16143 rm -f core conftest.err conftest.
$ac_objext \
16144 conftest
$ac_exeext conftest.
$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16146 $as_echo "$links_glib" >&6; }
16147 if test "${links_glib}" = "yes"; then
16149 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16151 if test "$HAVE_NS" = no
;then
16152 XGSELOBJ
=xgselect.o
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16158 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16159 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16160 $as_echo_n "(cached) " >&6
16162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <langinfo.h>
16168 char* cs = nl_langinfo(CODESET);
16173 if ac_fn_c_try_link
"$LINENO"; then :
16174 emacs_cv_langinfo_codeset
=yes
16176 emacs_cv_langinfo_codeset
=no
16178 rm -f core conftest.err conftest.
$ac_objext \
16179 conftest
$ac_exeext conftest.
$ac_ext
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16183 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16184 if test $emacs_cv_langinfo_codeset = yes; then
16186 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16191 $as_echo_n "checking for mbstate_t... " >&6; }
16192 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16193 $as_echo_n "(cached) " >&6
16195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 $ac_includes_default
16198 # include <wchar.h>
16202 mbstate_t x; return sizeof x;
16207 if ac_fn_c_try_compile
"$LINENO"; then :
16208 ac_cv_type_mbstate_t
=yes
16210 ac_cv_type_mbstate_t
=no
16212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16215 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16216 if test $ac_cv_type_mbstate_t = yes; then
16218 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16222 $as_echo "#define mbstate_t int" >>confdefs.h
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16227 $as_echo_n "checking for C restricted array declarations... " >&6; }
16228 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 void fred (int x[__restrict]);
16242 if ac_fn_c_try_compile
"$LINENO"; then :
16243 emacs_cv_c_restrict_arr
=yes
16245 emacs_cv_c_restrict_arr
=no
16247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16250 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16251 if test "$emacs_cv_c_restrict_arr" = yes; then
16253 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16258 if test "${opsys}" != "mingw32"; then
16260 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16265 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16268 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16269 if test "${opsys}" != "mingw32"; then
16271 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16276 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16282 if test "${opsys}" = "mingw32"; then
16283 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16286 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16291 if test "${opsys}" = "mingw32"; then
16292 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16295 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16300 $as_echo "#define subprocesses 1" >>confdefs.h
16304 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16309 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16312 if test "${opsys}" = "mingw32"; then
16314 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16318 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16322 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16326 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16330 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16334 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16342 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16343 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16349 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16356 irix6-5 | sol2
* | unixware
)
16358 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16363 emacs_broken_SIGIO
=no
16366 hpux
* | irix6-5 | openbsd | sol2
* | unixware | gnu-kfreebsd
)
16367 emacs_broken_SIGIO
=yes
16372 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16378 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16386 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16392 darwin | dragonfly | freebsd | netbsd | openbsd
)
16394 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16400 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16401 *) sound_device
="/dev/dsp" ;;
16405 cat >>confdefs.h
<<_ACEOF
16406 #define DEFAULT_SOUND_DEVICE "$sound_device"
16412 darwin | gnu-linux | gnu-kfreebsd
)
16414 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16421 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16423 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16437 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16439 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16441 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16446 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16448 $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
16450 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16452 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16457 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16459 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16461 $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
16463 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16465 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16470 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16474 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16475 if test "x$ac_cv_func_grantpt" = xyes
; then
16477 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16479 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16481 $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
16483 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16484 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY)" >>confdefs.h
16486 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16488 elif test "x$ac_cv_func_getpt" = xyes
; then
16489 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16491 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16494 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16498 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16504 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16506 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16508 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16513 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16515 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16517 $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
16519 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16521 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16526 $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
16531 $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
16539 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16541 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16544 $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
16553 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16554 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16558 gnu-linux | gnu-kfreebsd
)
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16561 $as_echo_n "checking for signals via characters... " >&6; }
16562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16565 #include <linux/version.h>
16566 #if LINUX_VERSION_CODE < 0x20400
16567 # error "Linux version too old"
16578 if ac_fn_c_try_cpp
"$LINENO"; then :
16579 emacs_signals_via_chars
=yes
16581 emacs_signals_via_chars
=no
16583 rm -f conftest.err conftest.
$ac_ext
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16586 $as_echo "$emacs_signals_via_chars" >&6; }
16587 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16597 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16601 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16605 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16614 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16617 gnu | dragonfly | freebsd | netbsd | openbsd
)
16619 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16621 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16625 gnu-linux | gnu-kfreebsd
)
16626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16641 if ac_fn_c_try_cpp
"$LINENO"; then :
16643 $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
16646 rm -f conftest.err conftest.
$ac_ext
16651 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16661 gnu-linux | gnu-kfreebsd
)
16662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16665 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16666 || defined __alpha__ || defined __mips__ || defined __s390__ \
16667 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16668 || defined __ia64__ || defined __sh__
16671 # error "setjmp not known to work on this arch"
16682 if ac_fn_c_try_cpp
"$LINENO"; then :
16683 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16686 rm -f conftest.err conftest.
$ac_ext
16691 if test x
$GCC = xyes
; then
16692 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16696 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16697 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16703 $as_echo_n "checking for _setjmp... " >&6; }
16704 if test "${emacs_cv_func__setjmp+set}" = set; then :
16705 $as_echo_n "(cached) " >&6
16707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 #include <setjmp.h>
16711 # define _longjmp longjmp
16724 if ac_fn_c_try_link
"$LINENO"; then :
16725 emacs_cv_func__setjmp
=yes
16727 emacs_cv_func__setjmp
=no
16729 rm -f core conftest.err conftest.
$ac_objext \
16730 conftest
$ac_exeext conftest.
$ac_ext
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16733 $as_echo "$emacs_cv_func__setjmp" >&6; }
16734 if test $emacs_cv_func__setjmp = yes; then
16736 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16740 $as_echo_n "checking for sigsetjmp... " >&6; }
16741 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 #include <setjmp.h>
16752 if (! sigsetjmp (j, 1))
16758 if ac_fn_c_try_link
"$LINENO"; then :
16759 emacs_cv_func_sigsetjmp
=yes
16761 emacs_cv_func_sigsetjmp
=no
16763 rm -f core conftest.err conftest.
$ac_objext \
16764 conftest
$ac_exeext conftest.
$ac_ext
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16767 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16768 if test $emacs_cv_func_sigsetjmp = yes; then
16770 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16778 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16787 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16800 $as_echo "#define USG /**/" >>confdefs.h
16802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16806 # error "_AIX not defined"
16817 if ac_fn_c_try_cpp
"$LINENO"; then :
16821 $as_echo "#define _AIX /**/" >>confdefs.h
16824 rm -f conftest.err conftest.
$ac_ext
16829 $as_echo "#define CYGWIN 1" >>confdefs.h
16835 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16839 gnu-linux | gnu-kfreebsd
)
16840 $as_echo "#define USG /**/" >>confdefs.h
16843 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16848 $as_echo "#define USG /**/" >>confdefs.h
16851 $as_echo "#define HPUX /**/" >>confdefs.h
16856 $as_echo "#define USG /**/" >>confdefs.h
16858 $as_echo "#define USG5_4 /**/" >>confdefs.h
16861 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16866 $as_echo "#define DOS_NT /**/" >>confdefs.h
16869 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16871 if test "x$ac_enable_checking" != "x" ; then
16873 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16879 $as_echo "#define USG /**/" >>confdefs.h
16881 $as_echo "#define USG5_4 /**/" >>confdefs.h
16884 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16889 $as_echo "#define USG /**/" >>confdefs.h
16891 $as_echo "#define USG5_4 /**/" >>confdefs.h
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16897 $as_echo_n "checking for usable FIONREAD... " >&6; }
16898 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16903 emacs_cv_usable_FIONREAD
=no
16907 emacs_cv_usable_FIONREAD
=yes
16911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913 #include <sys/types.h>
16914 #include <sys/ioctl.h>
16916 # include <sys/filio.h>
16922 int foo = ioctl (0, FIONREAD, &foo);
16927 if ac_fn_c_try_compile
"$LINENO"; then :
16928 emacs_cv_usable_FIONREAD
=yes
16930 emacs_cv_usable_FIONREAD
=no
16932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16937 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16938 if test $emacs_cv_usable_FIONREAD = yes; then
16940 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16943 if test $emacs_broken_SIGIO = no
; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16945 $as_echo_n "checking for usable SIGIO... " >&6; }
16946 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16952 #include <signal.h>
16957 int foo = SIGIO | F_SETFL | FASYNC;
16962 if ac_fn_c_try_compile
"$LINENO"; then :
16963 emacs_cv_usable_SIGIO
=yes
16965 emacs_cv_usable_SIGIO
=no
16967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16970 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16971 if test $emacs_cv_usable_SIGIO = yes; then
16973 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16983 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16989 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16995 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17001 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17006 # Set up the CFLAGS for real compilation, so we can substitute it.
17007 CFLAGS
="$REAL_CFLAGS"
17008 CPPFLAGS
="$REAL_CPPFLAGS"
17010 ## Hack to detect a buggy GCC version.
17011 if test "x$GCC" = xyes \
17012 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17013 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17014 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17015 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17018 version
=$PACKAGE_VERSION
17020 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17022 cat >>confdefs.h
<<_ACEOF
17023 #define COPYRIGHT "$copyright"
17028 ### Specify what sort of things we'll be editing into Makefile and config.h.
17029 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17055 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17056 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17057 ## end of LIBX_BASE, but nothing ever set it.
17062 ## Used in lwlib/Makefile.in.
17071 if test -n "${term_header}"; then
17073 cat >>confdefs.h
<<_ACEOF
17074 #define TERM_HEADER "${term_header}"
17080 cat >>confdefs.h
<<_ACEOF
17081 #define EMACS_CONFIGURATION "${canonical}"
17084 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
17086 cat >>confdefs.h
<<_ACEOF
17087 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17094 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17102 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17104 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17107 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17109 if test "$HAVE_XFT" = "yes"; then
17110 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17111 elif test "$HAVE_FREETYPE" = "yes"; then
17112 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17122 if test "${USE_X_TOOLKIT}" != "none" ; then
17123 WIDGET_OBJ
=widget.o
17125 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17127 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17129 $as_echo "#define USE_LUCID 1" >>confdefs.h
17131 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17133 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17138 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17139 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17143 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17144 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17145 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17149 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17150 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17153 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17159 case "$USE_X_TOOLKIT" in
17160 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17161 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17162 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17166 if test "${opsys}" != "mingw32"; then
17167 if test "$USE_X_TOOLKIT" = "none"; then
17168 LIBXT_OTHER
="\$(LIBXSM)"
17169 OLDXMENU_TARGET
="really-oldXMenu"
17171 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17172 OLDXMENU_TARGET
="really-lwlib"
17177 ## The X Menu stuff is present in the X10 distribution, but missing
17178 ## from X11. If we have X10, just use the installed library;
17179 ## otherwise, use our own copy.
17180 if test "${HAVE_X11}" = "yes" ; then
17182 $as_echo "#define HAVE_X11 1" >>confdefs.h
17185 if test "$USE_X_TOOLKIT" = "none"; then
17186 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17188 OLDXMENU
="\${lwlibdir}/liblw.a"
17190 LIBXMENU
="\$(OLDXMENU)"
17191 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17192 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17194 ## For a syntactically valid Makefile; not actually used for anything.
17195 ## See comments in src/Makefile.in.
17197 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17198 if test "${HAVE_X_WINDOWS}" = "yes"; then
17207 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17220 if test "${HAVE_MENUS}" = "yes" ; then
17222 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17226 if test "${GNU_MALLOC}" = "yes" ; then
17228 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17233 if test "${REL_ALLOC}" = "yes" ; then
17235 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17238 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17242 if test "$opsys" = "cygwin"; then
17243 CYGWIN_OBJ
="sheap.o cygw32.o"
17244 ## Cygwin differs because of its unexec().
17246 POST_ALLOC_OBJ
=lastfile.o
17247 elif test "$opsys" = "mingw32"; then
17250 POST_ALLOC_OBJ
=lastfile.o
17253 PRE_ALLOC_OBJ
=lastfile.o
17260 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17261 # it temporarily reverts them to their pre-pkg-config values,
17262 # because gnulib needs to work with both src (which uses the
17263 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17264 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17265 # and it therefore needs to run in an environment where LIBS does not
17266 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17267 # for some package unrelated to lib-src.
17268 SAVE_CFLAGS
=$CFLAGS
17270 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17271 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17283 LIBC_FATAL_STDERR_
=1
17284 export LIBC_FATAL_STDERR_
17286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17287 # for constant arguments. Useless!
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17289 $as_echo_n "checking for working alloca.h... " >&6; }
17290 if test "${ac_cv_working_alloca_h+set}" = set; then :
17291 $as_echo_n "(cached) " >&6
17293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295 #include <alloca.h>
17299 char *p = (char *) alloca (2 * sizeof (int));
17305 if ac_fn_c_try_link
"$LINENO"; then :
17306 ac_cv_working_alloca_h
=yes
17308 ac_cv_working_alloca_h
=no
17310 rm -f core conftest.err conftest.
$ac_objext \
17311 conftest
$ac_exeext conftest.
$ac_ext
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17314 $as_echo "$ac_cv_working_alloca_h" >&6; }
17315 if test $ac_cv_working_alloca_h = yes; then
17317 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17322 $as_echo_n "checking for alloca... " >&6; }
17323 if test "${ac_cv_func_alloca_works+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17329 # define alloca __builtin_alloca
17332 # include <malloc.h>
17333 # define alloca _alloca
17335 # ifdef HAVE_ALLOCA_H
17336 # include <alloca.h>
17341 # ifndef alloca /* predefined by HP cc +Olibcalls */
17352 char *p = (char *) alloca (1);
17358 if ac_fn_c_try_link
"$LINENO"; then :
17359 ac_cv_func_alloca_works
=yes
17361 ac_cv_func_alloca_works
=no
17363 rm -f core conftest.err conftest.
$ac_objext \
17364 conftest
$ac_exeext conftest.
$ac_ext
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17367 $as_echo "$ac_cv_func_alloca_works" >&6; }
17369 if test $ac_cv_func_alloca_works = yes; then
17371 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17374 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17375 # that cause trouble. Some versions do not even contain alloca or
17376 # contain a buggy version. If you still want to use their alloca,
17377 # use ar to extract alloca.o from them instead of compiling alloca.c.
17383 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17385 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17389 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17390 if test "${ac_cv_os_cray+set}" = set; then :
17391 $as_echo_n "(cached) " >&6
17393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395 #if defined CRAY && ! defined CRAY2
17402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17403 $EGREP "webecray" >/dev
/null
2>&1; then :
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17412 $as_echo "$ac_cv_os_cray" >&6; }
17413 if test $ac_cv_os_cray = yes; then
17414 for ac_func
in _getb67 GETB67 getb67
; do
17415 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17417 eval as_val
=\$
$as_ac_var
17418 if test "x$as_val" = x
""yes; then :
17420 cat >>confdefs.h
<<_ACEOF
17421 #define CRAY_STACKSEG_END $ac_func
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17431 $as_echo_n "checking stack direction for C alloca... " >&6; }
17432 if test "${ac_cv_c_stack_direction+set}" = set; then :
17433 $as_echo_n "(cached) " >&6
17435 if test "$cross_compiling" = yes; then :
17436 ac_cv_c_stack_direction
=0
17438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440 $ac_includes_default
17442 find_stack_direction (int *addr, int depth)
17444 int dir, dummy = 0;
17447 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17448 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17449 return dir + dummy;
17453 main (int argc, char **argv)
17455 return find_stack_direction (0, argc + !argv + 20) < 0;
17458 if ac_fn_c_try_run
"$LINENO"; then :
17459 ac_cv_c_stack_direction
=1
17461 ac_cv_c_stack_direction
=-1
17463 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17464 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17469 $as_echo "$ac_cv_c_stack_direction" >&6; }
17470 cat >>confdefs.h
<<_ACEOF
17471 #define STACK_DIRECTION $ac_cv_c_stack_direction
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17481 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17482 if test "${ac_cv_c_bigendian+set}" = set; then :
17483 $as_echo_n "(cached) " >&6
17485 ac_cv_c_bigendian
=unknown
17486 # See if we're dealing with a universal compiler.
17487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17489 #ifndef __APPLE_CC__
17490 not a universal capable compiler
17495 if ac_fn_c_try_compile
"$LINENO"; then :
17497 # Check for potential -arch flags. It is not universal unless
17498 # there are at least two -arch flags with different values.
17501 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17502 if test -n "$ac_prev"; then
17504 i?
86 | x86_64 | ppc | ppc64
)
17505 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17508 ac_cv_c_bigendian
=universal
17514 elif test "x$ac_word" = "x-arch"; then
17519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17520 if test $ac_cv_c_bigendian = unknown
; then
17521 # See if sys/param.h defines the BYTE_ORDER macro.
17522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 #include <sys/types.h>
17525 #include <sys/param.h>
17530 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17531 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17533 bogus endian macros
17540 if ac_fn_c_try_compile
"$LINENO"; then :
17541 # It does; now see whether it defined to BIG_ENDIAN or not.
17542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 #include <sys/types.h>
17545 #include <sys/param.h>
17550 #if BYTE_ORDER != BIG_ENDIAN
17558 if ac_fn_c_try_compile
"$LINENO"; then :
17559 ac_cv_c_bigendian
=yes
17561 ac_cv_c_bigendian
=no
17563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17567 if test $ac_cv_c_bigendian = unknown
; then
17568 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 #include <limits.h>
17576 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17577 bogus endian macros
17584 if ac_fn_c_try_compile
"$LINENO"; then :
17585 # It does; now see whether it defined to _BIG_ENDIAN or not.
17586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 #include <limits.h>
17593 #ifndef _BIG_ENDIAN
17601 if ac_fn_c_try_compile
"$LINENO"; then :
17602 ac_cv_c_bigendian
=yes
17604 ac_cv_c_bigendian
=no
17606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17610 if test $ac_cv_c_bigendian = unknown
; then
17611 # Compile a test program.
17612 if test "$cross_compiling" = yes; then :
17613 # Try to guess by grepping values from an object file.
17614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 short int ascii_mm[] =
17617 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17618 short int ascii_ii[] =
17619 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17620 int use_ascii (int i) {
17621 return ascii_mm[i] + ascii_ii[i];
17623 short int ebcdic_ii[] =
17624 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17625 short int ebcdic_mm[] =
17626 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17627 int use_ebcdic (int i) {
17628 return ebcdic_mm[i] + ebcdic_ii[i];
17635 return use_ascii (foo) == use_ebcdic (foo);
17640 if ac_fn_c_try_compile
"$LINENO"; then :
17641 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17642 ac_cv_c_bigendian
=yes
17644 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17645 if test "$ac_cv_c_bigendian" = unknown
; then
17646 ac_cv_c_bigendian
=no
17648 # finding both strings is unlikely to happen, but who knows?
17649 ac_cv_c_bigendian
=unknown
17653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17657 $ac_includes_default
17662 /* Are we little or big endian? From Harbison&Steele. */
17666 char c[sizeof (long int)];
17669 return u.c[sizeof (long int) - 1] == 1;
17675 if ac_fn_c_try_run
"$LINENO"; then :
17676 ac_cv_c_bigendian
=no
17678 ac_cv_c_bigendian
=yes
17680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17687 $as_echo "$ac_cv_c_bigendian" >&6; }
17688 case $ac_cv_c_bigendian in #(
17690 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17696 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17700 as_fn_error
"unknown endianness
17701 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17713 GNULIB_EUIDACCESS
=0;
17714 GNULIB_FACCESSAT
=0;
17717 GNULIB_FDATASYNC
=0;
17719 GNULIB_FTRUNCATE
=0;
17721 GNULIB_GETDOMAINNAME
=0;
17722 GNULIB_GETDTABLESIZE
=0;
17723 GNULIB_GETGROUPS
=0;
17724 GNULIB_GETHOSTNAME
=0;
17726 GNULIB_GETLOGIN_R
=0;
17727 GNULIB_GETPAGESIZE
=0;
17728 GNULIB_GETUSERSHELL
=0;
17729 GNULIB_GROUP_MEMBER
=0;
17741 GNULIB_READLINKAT
=0;
17743 GNULIB_SETHOSTNAME
=0;
17746 GNULIB_SYMLINKAT
=0;
17747 GNULIB_TTYNAME_R
=0;
17748 GNULIB_UNISTD_H_NONBLOCKING
=0;
17749 GNULIB_UNISTD_H_SIGPIPE
=0;
17764 HAVE_GETDTABLESIZE
=1;
17766 HAVE_GETHOSTNAME
=1;
17768 HAVE_GETPAGESIZE
=1;
17769 HAVE_GROUP_MEMBER
=1;
17779 HAVE_SETHOSTNAME
=1;
17785 HAVE_DECL_ENVIRON
=1;
17786 HAVE_DECL_FCHDIR
=1;
17787 HAVE_DECL_FDATASYNC
=1;
17788 HAVE_DECL_GETDOMAINNAME
=1;
17789 HAVE_DECL_GETLOGIN_R
=1;
17790 HAVE_DECL_GETPAGESIZE
=1;
17791 HAVE_DECL_GETUSERSHELL
=1;
17792 HAVE_DECL_SETHOSTNAME
=1;
17793 HAVE_DECL_TTYNAME_R
=1;
17795 HAVE_SYS_PARAM_H
=0;
17800 REPLACE_FCHOWNAT
=0;
17801 REPLACE_FTRUNCATE
=0;
17803 REPLACE_GETDOMAINNAME
=0;
17804 REPLACE_GETLOGIN_R
=0;
17805 REPLACE_GETGROUPS
=0;
17806 REPLACE_GETPAGESIZE
=0;
17815 REPLACE_READLINK
=0;
17819 REPLACE_TTYNAME_R
=0;
17821 REPLACE_UNLINKAT
=0;
17824 UNISTD_H_HAVE_WINSOCK2_H
=0;
17825 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17831 GNULIB_REWINDDIR
=0;
17834 GNULIB_FDOPENDIR
=0;
17836 GNULIB_ALPHASORT
=0;
17842 HAVE_DECL_FDOPENDIR
=1;
17847 REPLACE_CLOSEDIR
=0;
17849 REPLACE_FDOPENDIR
=0;
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17854 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17855 if test "${gl_cv_have_include_next+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17858 rm -rf conftestd1a conftestd1b conftestd2
17859 mkdir conftestd1a conftestd1b conftestd2
17860 cat <<EOF > conftestd1a/conftest.h
17861 #define DEFINED_IN_CONFTESTD1
17862 #include_next <conftest.h>
17863 #ifdef DEFINED_IN_CONFTESTD2
17866 #error "include_next doesn't work"
17869 cat <<EOF > conftestd1b/conftest.h
17870 #define DEFINED_IN_CONFTESTD1
17872 #include_next <conftest.h>
17873 #ifdef DEFINED_IN_CONFTESTD2
17876 #error "include_next doesn't work"
17879 cat <<EOF > conftestd2/conftest.h
17880 #ifndef DEFINED_IN_CONFTESTD1
17881 #error "include_next test doesn't work"
17883 #define DEFINED_IN_CONFTESTD2
17885 gl_save_CPPFLAGS
="$CPPFLAGS"
17886 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 #include <conftest.h>
17891 if ac_fn_c_try_compile
"$LINENO"; then :
17892 gl_cv_have_include_next
=yes
17894 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17897 #include <conftest.h>
17899 if ac_fn_c_try_compile
"$LINENO"; then :
17900 gl_cv_have_include_next
=buggy
17902 gl_cv_have_include_next
=no
17904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17908 CPPFLAGS
="$gl_save_CPPFLAGS"
17909 rm -rf conftestd1a conftestd1b conftestd2
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17913 $as_echo "$gl_cv_have_include_next" >&6; }
17914 PRAGMA_SYSTEM_HEADER
=
17915 if test $gl_cv_have_include_next = yes; then
17916 INCLUDE_NEXT
=include_next
17917 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17918 if test -n "$GCC"; then
17919 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17922 if test $gl_cv_have_include_next = buggy
; then
17923 INCLUDE_NEXT
=include
17924 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17926 INCLUDE_NEXT
=include
17927 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17934 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17935 if test "${gl_cv_pragma_columns+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17947 $EGREP "choke me" >/dev
/null
2>&1; then :
17948 gl_cv_pragma_columns
=yes
17950 gl_cv_pragma_columns
=no
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17957 $as_echo "$gl_cv_pragma_columns" >&6; }
17958 if test $gl_cv_pragma_columns = yes; then
17959 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17969 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17970 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17975 /* On HP-UX before 11.23, strtold returns a struct instead of
17976 long double. Reject implementations like that, by requiring
17977 compatibility with the C99 prototype. */
17978 #include <stdlib.h>
17979 static long double (*p) (char const *, char **) = strtold;
17981 test (char const *nptr, char **endptr)
17984 r = strtold (nptr, endptr);
17990 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17995 if ac_fn_c_try_link
"$LINENO"; then :
17996 gl_cv_func_c99_strtold
=yes
17998 gl_cv_func_c99_strtold
=no
18000 rm -f core conftest.err conftest.
$ac_objext \
18001 conftest
$ac_exeext conftest.
$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18004 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18005 if test $gl_cv_func_c99_strtold = yes; then
18007 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18019 $as_echo_n "checking if environ is properly declared... " >&6; }
18020 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18021 $as_echo_n "(cached) " >&6
18024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18027 #include <unistd.h>
18029 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18030 #include <stdlib.h>
18032 extern struct { int foo; } environ;
18041 if ac_fn_c_try_compile
"$LINENO"; then :
18042 gt_cv_var_environ_declaration
=no
18044 gt_cv_var_environ_declaration
=yes
18046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18050 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18051 if test $gt_cv_var_environ_declaration = yes; then
18053 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18058 if test $gt_cv_var_environ_declaration != yes; then
18059 HAVE_DECL_ENVIRON
=0
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18065 $as_echo_n "checking for complete errno.h... " >&6; }
18066 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18074 #if !defined ETXTBSY
18077 #if !defined ENOMSG
18083 #if !defined ENOLINK
18086 #if !defined EPROTO
18089 #if !defined EMULTIHOP
18092 #if !defined EBADMSG
18095 #if !defined EOVERFLOW
18098 #if !defined ENOTSUP
18101 #if !defined ENETRESET
18104 #if !defined ECONNABORTED
18107 #if !defined ESTALE
18110 #if !defined EDQUOT
18113 #if !defined ECANCELED
18116 #if !defined EOWNERDEAD
18119 #if !defined ENOTRECOVERABLE
18122 #if !defined EILSEQ
18127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18128 $EGREP "booboo" >/dev
/null
2>&1; then :
18129 gl_cv_header_errno_h_complete
=no
18131 gl_cv_header_errno_h_complete
=yes
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18138 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18139 if test $gl_cv_header_errno_h_complete = yes; then
18150 if test $gl_cv_have_include_next = yes; then
18151 gl_cv_next_errno_h
='<'errno.h
'>'
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18154 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18155 if test "${gl_cv_next_errno_h+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18165 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18166 *) gl_absname_cpp
="$ac_cpp" ;;
18171 gl_dirsep_regex
='[/\\]'
18174 gl_dirsep_regex
='\/'
18177 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18179 gl_header_literal_regex
=`echo 'errno.h' \
18180 | sed -e "$gl_make_literal_regex_sed"`
18181 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18187 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18188 sed -n "$gl_absolute_header_sed"`'"'
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18193 $as_echo "$gl_cv_next_errno_h" >&6; }
18195 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18197 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18199 gl_next_as_first_directive
='<'errno.h
'>'
18201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18202 gl_next_as_first_directive
=$gl_cv_next_errno_h
18204 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18212 if test -n "$ERRNO_H"; then
18213 GL_GENERATE_ERRNO_H_TRUE
=
18214 GL_GENERATE_ERRNO_H_FALSE
='#'
18216 GL_GENERATE_ERRNO_H_TRUE
='#'
18217 GL_GENERATE_ERRNO_H_FALSE
=
18221 if test -n "$ERRNO_H"; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18223 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18224 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18238 $EGREP "yes" >/dev
/null
2>&1; then :
18239 gl_cv_header_errno_h_EMULTIHOP
=yes
18241 gl_cv_header_errno_h_EMULTIHOP
=no
18245 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18249 #define _XOPEN_SOURCE_EXTENDED 1
18256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18257 $EGREP "yes" >/dev
/null
2>&1; then :
18258 gl_cv_header_errno_h_EMULTIHOP
=hidden
18262 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18263 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18264 #define _XOPEN_SOURCE_EXTENDED 1
18266 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18268 #include <stdlib.h>
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18278 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18279 case $gl_cv_header_errno_h_EMULTIHOP in
18281 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18284 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18292 if test -n "$ERRNO_H"; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18294 $as_echo_n "checking for ENOLINK value... " >&6; }
18295 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18296 $as_echo_n "(cached) " >&6
18299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18309 $EGREP "yes" >/dev
/null
2>&1; then :
18310 gl_cv_header_errno_h_ENOLINK
=yes
18312 gl_cv_header_errno_h_ENOLINK
=no
18316 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18320 #define _XOPEN_SOURCE_EXTENDED 1
18327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18328 $EGREP "yes" >/dev
/null
2>&1; then :
18329 gl_cv_header_errno_h_ENOLINK
=hidden
18333 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18334 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18335 #define _XOPEN_SOURCE_EXTENDED 1
18337 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18339 #include <stdlib.h>
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18349 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18350 case $gl_cv_header_errno_h_ENOLINK in
18352 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18355 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18363 if test -n "$ERRNO_H"; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18365 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18366 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18380 $EGREP "yes" >/dev
/null
2>&1; then :
18381 gl_cv_header_errno_h_EOVERFLOW
=yes
18383 gl_cv_header_errno_h_EOVERFLOW
=no
18387 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18391 #define _XOPEN_SOURCE_EXTENDED 1
18398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18399 $EGREP "yes" >/dev
/null
2>&1; then :
18400 gl_cv_header_errno_h_EOVERFLOW
=hidden
18404 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18405 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18406 #define _XOPEN_SOURCE_EXTENDED 1
18408 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18410 #include <stdlib.h>
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18420 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18421 case $gl_cv_header_errno_h_EOVERFLOW in
18423 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18426 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18443 GNULIB_NONBLOCKING
=0;
18455 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18456 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18460 cat >>confdefs.h
<<_ACEOF
18466 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18467 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18473 cat >>confdefs.h
<<_ACEOF
18474 #define HAVE_DECL_FDATASYNC $ac_have_decl
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18480 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18481 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18482 $as_echo_n "(cached) " >&6
18484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18487 #include <sys/types.h>
18488 #include <sys/stat.h>
18492 struct stat s; s.st_dm_mode;
18497 if ac_fn_c_try_compile
"$LINENO"; then :
18498 ac_cv_struct_st_dm_mode
=yes
18500 ac_cv_struct_st_dm_mode
=no
18502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18505 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18507 if test $ac_cv_struct_st_dm_mode = yes; then
18509 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18514 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18515 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18521 cat >>confdefs.h
<<_ACEOF
18522 #define HAVE_DECL_STRMODE $ac_have_decl
18542 GNULIB_UTIMENSAT
=0;
18556 REPLACE_FUTIMENS
=0;
18562 REPLACE_UTIMENSAT
=0;
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18566 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18567 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18568 $as_echo_n "(cached) " >&6
18570 rm -f conftest.sym conftest.
file
18571 echo >conftest.
file
18572 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18573 if test "$cross_compiling" = yes; then :
18575 # Guess yes on glibc systems.
18576 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18577 # If we don't know, assume the worst.
18578 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 $ac_includes_default
18589 /* Linux will dereference the symlink and fail, as required by
18590 POSIX. That is better in the sense that it means we will not
18591 have to compile and use the lstat wrapper. */
18592 return lstat ("conftest.sym/", &sbuf) == 0;
18598 if ac_fn_c_try_run
"$LINENO"; then :
18599 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18601 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18604 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18608 # If the 'ln -s' command failed, then we probably don't even
18609 # have an lstat function.
18610 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18612 rm -f conftest.sym conftest.
file
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18616 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18617 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18620 cat >>confdefs.h
<<_ACEOF
18621 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18634 GNULIB_CALLOC_POSIX
=0;
18635 GNULIB_CANONICALIZE_FILE_NAME
=0;
18636 GNULIB_GETLOADAVG
=0;
18637 GNULIB_GETSUBOPT
=0;
18639 GNULIB_MALLOC_POSIX
=0;
18643 GNULIB_MKOSTEMPS
=0;
18646 GNULIB_POSIX_OPENPT
=0;
18648 GNULIB_PTSNAME_R
=0;
18652 GNULIB_REALLOC_POSIX
=0;
18655 GNULIB_SECURE_GETENV
=0;
18660 GNULIB_SYSTEM_POSIX
=0;
18666 HAVE_CANONICALIZE_FILE_NAME
=1;
18667 HAVE_DECL_GETLOADAVG
=1;
18675 HAVE_POSIX_OPENPT
=1;
18683 HAVE_SECURE_GETENV
=1;
18685 HAVE_DECL_SETENV
=1;
18689 HAVE_STRUCT_RANDOM_DATA
=1;
18690 HAVE_SYS_LOADAVG_H
=0;
18692 HAVE_DECL_UNSETENV
=1;
18694 REPLACE_CANONICALIZE_FILE_NAME
=0;
18699 REPLACE_PTSNAME_R
=0;
18701 REPLACE_RANDOM_R
=0;
18703 REPLACE_REALPATH
=0;
18706 REPLACE_UNSETENV
=0;
18724 if test $gl_cv_have_include_next = yes; then
18725 gl_cv_next_getopt_h
='<'getopt.h
'>'
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18728 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18729 if test "${gl_cv_next_getopt_h+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18733 if test $ac_cv_header_getopt_h = yes; then
18736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18738 #include <getopt.h>
18742 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18743 *) gl_absname_cpp
="$ac_cpp" ;;
18748 gl_dirsep_regex
='[/\\]'
18751 gl_dirsep_regex
='\/'
18754 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18756 gl_header_literal_regex
=`echo 'getopt.h' \
18757 | sed -e "$gl_make_literal_regex_sed"`
18758 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18764 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18765 sed -n "$gl_absolute_header_sed"`'"'
18767 gl_cv_next_getopt_h
='<'getopt.h
'>'
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18773 $as_echo "$gl_cv_next_getopt_h" >&6; }
18775 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18777 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18779 gl_next_as_first_directive
='<'getopt.h
'>'
18781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18782 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18784 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18789 if test $ac_cv_header_getopt_h = yes; then
18798 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18799 for ac_header
in getopt.h
18801 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18802 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18803 cat >>confdefs.h
<<_ACEOF
18804 #define HAVE_GETOPT_H 1
18808 gl_replace_getopt
=yes
18815 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18816 for ac_func
in getopt_long_only
18818 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18819 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18820 cat >>confdefs.h
<<_ACEOF
18821 #define HAVE_GETOPT_LONG_ONLY 1
18825 gl_replace_getopt
=yes
18831 if test -z "$gl_replace_getopt"; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18833 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18834 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18835 $as_echo_n "(cached) " >&6
18838 if test $cross_compiling = no
; then
18839 if test "$cross_compiling" = yes; then :
18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18842 as_fn_error
"cannot run test program while cross compiling
18843 See \`config.log' for more details." "$LINENO" 5; }
18845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18848 #include <unistd.h>
18849 #include <stdlib.h>
18850 #include <string.h>
18855 static char program[] = "program";
18856 static char a[] = "-a";
18857 static char foo[] = "foo";
18858 static char bar[] = "bar";
18859 char *argv[] = { program, a, foo, bar, NULL };
18862 c = getopt (4, argv, "ab");
18865 c = getopt (4, argv, "ab");
18868 if (!(optind == 2))
18874 if ac_fn_c_try_run
"$LINENO"; then :
18875 gl_cv_func_getopt_posix
=maybe
18877 gl_cv_func_getopt_posix
=no
18879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18880 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18883 if test $gl_cv_func_getopt_posix = maybe
; then
18884 if test "$cross_compiling" = yes; then :
18885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 as_fn_error
"cannot run test program while cross compiling
18888 See \`config.log' for more details." "$LINENO" 5; }
18890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18893 #include <unistd.h>
18894 #include <stdlib.h>
18895 #include <string.h>
18900 static char program[] = "program";
18901 static char donald[] = "donald";
18902 static char p[] = "-p";
18903 static char billy[] = "billy";
18904 static char duck[] = "duck";
18905 static char a[] = "-a";
18906 static char bar[] = "bar";
18907 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18910 c = getopt (7, argv, "+abp:q:");
18913 if (!(strcmp (argv[0], "program") == 0))
18915 if (!(strcmp (argv[1], "donald") == 0))
18917 if (!(strcmp (argv[2], "-p") == 0))
18919 if (!(strcmp (argv[3], "billy") == 0))
18921 if (!(strcmp (argv[4], "duck") == 0))
18923 if (!(strcmp (argv[5], "-a") == 0))
18925 if (!(strcmp (argv[6], "bar") == 0))
18927 if (!(optind == 1))
18933 if ac_fn_c_try_run
"$LINENO"; then :
18934 gl_cv_func_getopt_posix
=maybe
18936 gl_cv_func_getopt_posix
=no
18938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18939 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18943 if test $gl_cv_func_getopt_posix = maybe
; then
18944 if test "$cross_compiling" = yes; then :
18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18947 as_fn_error
"cannot run test program while cross compiling
18948 See \`config.log' for more details." "$LINENO" 5; }
18950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 #include <unistd.h>
18954 #include <stdlib.h>
18955 #include <string.h>
18960 static char program[] = "program";
18961 static char ab[] = "-ab";
18962 char *argv[3] = { program, ab, NULL };
18963 if (getopt (2, argv, "ab:") != 'a')
18965 if (getopt (2, argv, "ab:") != '?')
18975 if ac_fn_c_try_run
"$LINENO"; then :
18976 gl_cv_func_getopt_posix
=yes
18978 gl_cv_func_getopt_posix
=no
18980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18987 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
18988 *) gl_cv_func_getopt_posix
="guessing yes";;
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18994 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18995 case "$gl_cv_func_getopt_posix" in
18996 *no
) gl_replace_getopt
=yes ;;
19000 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19002 $as_echo_n "checking for working GNU getopt function... " >&6; }
19003 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19006 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19007 # optstring is necessary for programs like m4 that have POSIX-mandated
19008 # semantics for supporting options interspersed with files.
19009 # Also, since getopt_long is a GNU extension, we require optind=0.
19010 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19011 # so take care to revert to the correct (non-)export state.
19012 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19013 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19014 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19015 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19016 *) gl_had_POSIXLY_CORRECT
= ;;
19019 export POSIXLY_CORRECT
19020 if test "$cross_compiling" = yes; then :
19021 gl_cv_func_getopt_gnu
="guessing no"
19024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 #include <getopt.h>
19027 #include <stddef.h>
19028 #include <string.h>
19030 #include <stdlib.h>
19031 #if defined __MACH__ && defined __APPLE__
19032 /* Avoid a crash on Mac OS X. */
19033 #include <mach/mach.h>
19034 #include <mach/mach_error.h>
19035 #include <mach/thread_status.h>
19036 #include <mach/exception.h>
19037 #include <mach/task.h>
19038 #include <pthread.h>
19039 /* The exception port on which our thread listens. */
19040 static mach_port_t our_exception_port;
19041 /* The main function of the thread listening for exceptions of type
19044 mach_exception_thread (void *arg)
19046 /* Buffer for a message to be received. */
19048 mach_msg_header_t head;
19049 mach_msg_body_t msgh_body;
19052 mach_msg_return_t retval;
19053 /* Wait for a message on the exception port. */
19054 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19055 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19056 if (retval != MACH_MSG_SUCCESS)
19061 nocrash_init (void)
19063 mach_port_t self = mach_task_self ();
19064 /* Allocate a port on which the thread shall listen for exceptions. */
19065 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19067 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19068 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19069 MACH_MSG_TYPE_MAKE_SEND)
19071 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19073 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19074 /* Create the thread listening on the exception port. */
19075 pthread_attr_t attr;
19077 if (pthread_attr_init (&attr) == 0
19078 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19079 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19080 pthread_attr_destroy (&attr);
19081 /* Replace the exception port info for these exceptions with our own.
19082 Note that we replace the exception port for the entire task, not only
19083 for a particular thread. This has the effect that when our exception
19084 port gets the message, the thread specific exception port has already
19085 been asked, and we don't need to bother about it.
19086 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19087 task_set_exception_ports (self, mask, our_exception_port,
19088 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19093 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19094 /* Avoid a crash on native Windows. */
19095 #define WIN32_LEAN_AND_MEAN
19096 #include <windows.h>
19097 #include <winerror.h>
19099 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19101 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19103 case EXCEPTION_ACCESS_VIOLATION:
19104 case EXCEPTION_IN_PAGE_ERROR:
19105 case EXCEPTION_STACK_OVERFLOW:
19106 case EXCEPTION_GUARD_PAGE:
19107 case EXCEPTION_PRIV_INSTRUCTION:
19108 case EXCEPTION_ILLEGAL_INSTRUCTION:
19109 case EXCEPTION_DATATYPE_MISALIGNMENT:
19110 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19111 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19114 return EXCEPTION_CONTINUE_SEARCH;
19117 nocrash_init (void)
19119 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19122 /* Avoid a crash on POSIX systems. */
19123 #include <signal.h>
19124 /* A POSIX signal handler. */
19126 exception_handler (int sig)
19131 nocrash_init (void)
19134 signal (SIGSEGV, exception_handler);
19137 signal (SIGBUS, exception_handler);
19151 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19152 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19153 OSF/1 5.1, Solaris 10. */
19155 static char conftest[] = "conftest";
19156 static char plus[] = "-+";
19157 char *argv[3] = { conftest, plus, NULL };
19159 if (getopt (2, argv, "+a") != '?')
19162 /* This code succeeds on glibc 2.8, mingw,
19163 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19164 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19166 static char program[] = "program";
19167 static char p[] = "-p";
19168 static char foo[] = "foo";
19169 static char bar[] = "bar";
19170 char *argv[] = { program, p, foo, bar, NULL };
19173 if (getopt (4, argv, "p::") != 'p')
19175 else if (optarg != NULL)
19177 else if (getopt (4, argv, "p::") != -1)
19179 else if (optind != 2)
19182 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19184 static char program[] = "program";
19185 static char foo[] = "foo";
19186 static char p[] = "-p";
19187 char *argv[] = { program, foo, p, NULL };
19189 if (getopt (3, argv, "-p") != 1)
19191 else if (getopt (3, argv, "-p") != 'p')
19194 /* This code fails on glibc 2.11. */
19196 static char program[] = "program";
19197 static char b[] = "-b";
19198 static char a[] = "-a";
19199 char *argv[] = { program, b, a, NULL };
19200 optind = opterr = 0;
19201 if (getopt (3, argv, "+:a:b") != 'b')
19203 else if (getopt (3, argv, "+:a:b") != ':')
19206 /* This code dumps core on glibc 2.14. */
19208 static char program[] = "program";
19209 static char w[] = "-W";
19210 static char dummy[] = "dummy";
19211 char *argv[] = { program, w, dummy, NULL };
19212 optind = opterr = 1;
19213 if (getopt (3, argv, "W;") != 'W')
19222 if ac_fn_c_try_run
"$LINENO"; then :
19223 gl_cv_func_getopt_gnu
=yes
19225 gl_cv_func_getopt_gnu
=no
19227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19231 case $gl_had_POSIXLY_CORRECT in
19233 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19234 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19239 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19240 if test "$gl_cv_func_getopt_gnu" != yes; then
19241 gl_replace_getopt
=yes
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19244 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19245 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19246 $as_echo_n "(cached) " >&6
19248 if test "$cross_compiling" = yes; then :
19250 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19251 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 #include <getopt.h>
19258 #include <stddef.h>
19259 #include <string.h>
19264 static const struct option long_options[] =
19266 { "xtremely-",no_argument, NULL, 1003 },
19267 { "xtra", no_argument, NULL, 1001 },
19268 { "xtreme", no_argument, NULL, 1002 },
19269 { "xtremely", no_argument, NULL, 1003 },
19270 { NULL, 0, NULL, 0 }
19272 /* This code fails on OpenBSD 5.0. */
19274 static char program[] = "program";
19275 static char xtremel[] = "--xtremel";
19276 char *argv[] = { program, xtremel, NULL };
19278 optind = 1; opterr = 0;
19279 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19288 if ac_fn_c_try_run
"$LINENO"; then :
19289 gl_cv_func_getopt_long_gnu
=yes
19291 gl_cv_func_getopt_long_gnu
=no
19293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19300 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19301 case "$gl_cv_func_getopt_long_gnu" in
19303 *) gl_replace_getopt
=yes ;;
19314 if test -n "$gl_replace_getopt"; then
19318 if test $REPLACE_GETOPT = 1; then
19322 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19328 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19329 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19335 cat >>confdefs.h
<<_ACEOF
19336 #define HAVE_DECL_GETENV $ac_have_decl
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19345 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19346 if test "${ac_cv_c_restrict+set}" = set; then :
19347 $as_echo_n "(cached) " >&6
19349 ac_cv_c_restrict
=no
19350 # The order here caters to the fact that C++ does not require restrict.
19351 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 typedef int * int_ptr;
19355 int foo (int_ptr $ac_kw ip) {
19362 int * $ac_kw t = s;
19369 if ac_fn_c_try_compile
"$LINENO"; then :
19370 ac_cv_c_restrict
=$ac_kw
19372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19373 test "$ac_cv_c_restrict" != no
&& break
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19378 $as_echo "$ac_cv_c_restrict" >&6; }
19380 case $ac_cv_c_restrict in
19382 no
) $as_echo "#define restrict /**/" >>confdefs.h
19384 *) cat >>confdefs.h
<<_ACEOF
19385 #define restrict $ac_cv_c_restrict
19391 GNULIB_GETTIMEOFDAY
=0;
19392 HAVE_GETTIMEOFDAY
=1;
19393 HAVE_STRUCT_TIMEVAL
=1;
19395 REPLACE_GETTIMEOFDAY
=0;
19396 REPLACE_STRUCT_TIMEVAL
=0;
19413 if test $gl_cv_have_include_next = yes; then
19414 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19417 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19418 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19419 $as_echo_n "(cached) " >&6
19422 if test $ac_cv_header_sys_time_h = yes; then
19425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <sys/time.h>
19431 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19432 *) gl_absname_cpp
="$ac_cpp" ;;
19437 gl_dirsep_regex
='[/\\]'
19440 gl_dirsep_regex
='\/'
19443 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19445 gl_header_literal_regex
=`echo 'sys/time.h' \
19446 | sed -e "$gl_make_literal_regex_sed"`
19447 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19448 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19453 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19454 sed -n "$gl_absolute_header_sed"`'"'
19456 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19462 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19464 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19466 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19468 gl_next_as_first_directive
='<'sys
/time.h
'>'
19470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19471 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19473 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19479 if test $ac_cv_header_sys_time_h != yes; then
19487 if test $ac_cv_header_sys_socket_h != yes; then
19488 for ac_header
in winsock2.h
19490 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19491 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19492 cat >>confdefs.h
<<_ACEOF
19493 #define HAVE_WINSOCK2_H 1
19501 if test "$ac_cv_header_winsock2_h" = yes; then
19503 UNISTD_H_HAVE_WINSOCK2_H
=1
19504 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19511 $as_echo_n "checking for struct timeval... " >&6; }
19512 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19513 $as_echo_n "(cached) " >&6
19515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 #if HAVE_SYS_TIME_H
19518 #include <sys/time.h>
19521 #if HAVE_WINSOCK2_H
19522 # include <winsock2.h>
19528 static struct timeval x; x.tv_sec = x.tv_usec;
19533 if ac_fn_c_try_compile
"$LINENO"; then :
19534 gl_cv_sys_struct_timeval
=yes
19536 gl_cv_sys_struct_timeval
=no
19538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19542 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19543 if test $gl_cv_sys_struct_timeval != yes; then
19544 HAVE_STRUCT_TIMEVAL
=0
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19547 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19548 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553 #if HAVE_SYS_TIME_H
19554 #include <sys/time.h>
19557 #if HAVE_WINSOCK2_H
19558 # include <winsock2.h>
19564 static struct timeval x;
19565 typedef int verify_tv_sec_type[
19566 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19573 if ac_fn_c_try_compile
"$LINENO"; then :
19574 gl_cv_sys_struct_timeval_tv_sec
=yes
19576 gl_cv_sys_struct_timeval_tv_sec
=no
19578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19582 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19583 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19584 REPLACE_STRUCT_TIMEVAL
=1
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19595 $as_echo_n "checking for unsigned long long int... " >&6; }
19596 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19597 $as_echo_n "(cached) " >&6
19599 ac_cv_type_unsigned_long_long_int
=yes
19600 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19604 /* For now, do not test the preprocessor; as of 2007 there are too many
19605 implementations with broken preprocessors. Perhaps this can
19606 be revisited in 2012. In the meantime, code should not expect
19607 #if to work with literals wider than 32 bits. */
19608 /* Test literals. */
19609 long long int ll = 9223372036854775807ll;
19610 long long int nll = -9223372036854775807LL;
19611 unsigned long long int ull = 18446744073709551615ULL;
19612 /* Test constant expressions. */
19613 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19615 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19621 /* Test availability of runtime routines for shift and division. */
19622 long long int llmax = 9223372036854775807ll;
19623 unsigned long long int ullmax = 18446744073709551615ull;
19624 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19625 | (llmax / ll) | (llmax % ll)
19626 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19627 | (ullmax / ull) | (ullmax % ull));
19633 if ac_fn_c_try_link
"$LINENO"; then :
19636 ac_cv_type_unsigned_long_long_int
=no
19638 rm -f core conftest.err conftest.
$ac_objext \
19639 conftest
$ac_exeext conftest.
$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19643 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19644 if test $ac_cv_type_unsigned_long_long_int = yes; then
19646 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19653 $as_echo_n "checking for long long int... " >&6; }
19654 if test "${ac_cv_type_long_long_int+set}" = set; then :
19655 $as_echo_n "(cached) " >&6
19657 ac_cv_type_long_long_int
=yes
19658 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19659 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19660 if test $ac_cv_type_long_long_int = yes; then
19661 if test "$cross_compiling" = yes; then :
19664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <limits.h>
19669 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19670 # define LLONG_MAX (HALF - 1 + HALF)
19675 long long int n = 1;
19679 long long int m = n << i;
19682 if (LLONG_MAX / 2 < m)
19690 if ac_fn_c_try_run
"$LINENO"; then :
19693 ac_cv_type_long_long_int
=no
19695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19703 $as_echo "$ac_cv_type_long_long_int" >&6; }
19704 if test $ac_cv_type_long_long_int = yes; then
19706 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19715 gl_cv_c_multiarch
=no
19716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19718 #ifndef __APPLE_CC__
19719 not a universal capable compiler
19724 if ac_fn_c_try_compile
"$LINENO"; then :
19728 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19729 if test -n "$prev"; then
19731 i?
86 | x86_64 | ppc | ppc64
)
19732 if test -z "$arch" ||
test "$arch" = "$word"; then
19735 gl_cv_c_multiarch
=yes
19741 if test "x$word" = "x-arch"; then
19748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19749 if test $gl_cv_c_multiarch = yes; then
19750 APPLE_UNIVERSAL_BUILD
=1
19752 APPLE_UNIVERSAL_BUILD
=0
19759 if test $ac_cv_type_long_long_int = yes; then
19760 HAVE_LONG_LONG_INT
=1
19762 HAVE_LONG_LONG_INT
=0
19766 if test $ac_cv_type_unsigned_long_long_int = yes; then
19767 HAVE_UNSIGNED_LONG_LONG_INT
=1
19769 HAVE_UNSIGNED_LONG_LONG_INT
=0
19774 if test $ac_cv_header_wchar_h = yes; then
19781 if test $ac_cv_header_inttypes_h = yes; then
19788 if test $ac_cv_header_sys_types_h = yes; then
19804 if test $gl_cv_have_include_next = yes; then
19805 gl_cv_next_stdint_h
='<'stdint.h
'>'
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19808 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19809 if test "${gl_cv_next_stdint_h+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19813 if test $ac_cv_header_stdint_h = yes; then
19816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818 #include <stdint.h>
19822 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19823 *) gl_absname_cpp
="$ac_cpp" ;;
19828 gl_dirsep_regex
='[/\\]'
19831 gl_dirsep_regex
='\/'
19834 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19836 gl_header_literal_regex
=`echo 'stdint.h' \
19837 | sed -e "$gl_make_literal_regex_sed"`
19838 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19844 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19845 sed -n "$gl_absolute_header_sed"`'"'
19847 gl_cv_next_stdint_h
='<'stdint.h
'>'
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19853 $as_echo "$gl_cv_next_stdint_h" >&6; }
19855 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19857 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19859 gl_next_as_first_directive
='<'stdint.h
'>'
19861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19862 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19864 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19869 if test $ac_cv_header_stdint_h = yes; then
19876 if test $ac_cv_header_stdint_h = yes; then
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19878 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19879 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19882 gl_cv_header_working_stdint_h
=no
19883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19887 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19888 #include <stdint.h>
19889 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19890 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19891 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19895 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19896 included before <wchar.h>. */
19897 #include <stddef.h>
19898 #include <signal.h>
19900 # include <stdio.h>
19902 # include <wchar.h>
19907 int8_t a1 = INT8_MAX;
19908 int8_t a1min = INT8_MIN;
19911 int16_t a2 = INT16_MAX;
19912 int16_t a2min = INT16_MIN;
19915 int32_t a3 = INT32_MAX;
19916 int32_t a3min = INT32_MIN;
19919 int64_t a4 = INT64_MAX;
19920 int64_t a4min = INT64_MIN;
19923 uint8_t b1 = UINT8_MAX;
19925 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19928 uint16_t b2 = UINT16_MAX;
19931 uint32_t b3 = UINT32_MAX;
19934 uint64_t b4 = UINT64_MAX;
19936 int_least8_t c1 = INT8_C (0x7f);
19937 int_least8_t c1max = INT_LEAST8_MAX;
19938 int_least8_t c1min = INT_LEAST8_MIN;
19939 int_least16_t c2 = INT16_C (0x7fff);
19940 int_least16_t c2max = INT_LEAST16_MAX;
19941 int_least16_t c2min = INT_LEAST16_MIN;
19942 int_least32_t c3 = INT32_C (0x7fffffff);
19943 int_least32_t c3max = INT_LEAST32_MAX;
19944 int_least32_t c3min = INT_LEAST32_MIN;
19945 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19946 int_least64_t c4max = INT_LEAST64_MAX;
19947 int_least64_t c4min = INT_LEAST64_MIN;
19948 uint_least8_t d1 = UINT8_C (0xff);
19949 uint_least8_t d1max = UINT_LEAST8_MAX;
19950 uint_least16_t d2 = UINT16_C (0xffff);
19951 uint_least16_t d2max = UINT_LEAST16_MAX;
19952 uint_least32_t d3 = UINT32_C (0xffffffff);
19953 uint_least32_t d3max = UINT_LEAST32_MAX;
19954 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19955 uint_least64_t d4max = UINT_LEAST64_MAX;
19956 int_fast8_t e1 = INT_FAST8_MAX;
19957 int_fast8_t e1min = INT_FAST8_MIN;
19958 int_fast16_t e2 = INT_FAST16_MAX;
19959 int_fast16_t e2min = INT_FAST16_MIN;
19960 int_fast32_t e3 = INT_FAST32_MAX;
19961 int_fast32_t e3min = INT_FAST32_MIN;
19962 int_fast64_t e4 = INT_FAST64_MAX;
19963 int_fast64_t e4min = INT_FAST64_MIN;
19964 uint_fast8_t f1 = UINT_FAST8_MAX;
19965 uint_fast16_t f2 = UINT_FAST16_MAX;
19966 uint_fast32_t f3 = UINT_FAST32_MAX;
19967 uint_fast64_t f4 = UINT_FAST64_MAX;
19969 intptr_t g = INTPTR_MAX;
19970 intptr_t gmin = INTPTR_MIN;
19973 uintptr_t h = UINTPTR_MAX;
19975 intmax_t i = INTMAX_MAX;
19976 uintmax_t j = UINTMAX_MAX;
19978 #include <limits.h> /* for CHAR_BIT */
19979 #define TYPE_MINIMUM(t) \
19980 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19981 #define TYPE_MAXIMUM(t) \
19982 ((t) ((t) 0 < (t) -1 \
19984 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19987 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19988 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19990 /* Detect bug in FreeBSD 6.0 / ia64. */
19991 int check_SIG_ATOMIC:
19992 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19993 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19995 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19997 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19998 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20000 /* Detect bug in mingw. */
20002 WINT_MIN == TYPE_MINIMUM (wint_t)
20003 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20006 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20008 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20009 int check_UINT16_C:
20010 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20012 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20014 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20017 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20020 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20023 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20025 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20026 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20027 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20028 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20029 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20030 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20031 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20032 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20033 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20034 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20035 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20046 if ac_fn_c_try_compile
"$LINENO"; then :
20047 if test "$cross_compiling" = yes; then :
20048 gl_cv_header_working_stdint_h
=yes
20051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20055 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20056 #include <stdint.h>
20059 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20060 included before <wchar.h>. */
20061 #include <stddef.h>
20062 #include <signal.h>
20064 # include <stdio.h>
20066 # include <wchar.h>
20071 #include <string.h>
20072 #define MVAL(macro) MVAL1(macro)
20073 #define MVAL1(expression) #expression
20074 static const char *macro_values[] =
20108 for (mv = macro_values; *mv != NULL; mv++)
20110 const char *value = *mv;
20111 /* Test whether it looks like a cast expression. */
20112 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20113 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20114 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20115 || strncmp (value, "((int)"/*)*/, 6) == 0
20116 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20117 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20118 return mv - macro_values + 1;
20126 if ac_fn_c_try_run
"$LINENO"; then :
20127 gl_cv_header_working_stdint_h
=yes
20129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20130 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20139 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20141 if test "$gl_cv_header_working_stdint_h" = yes; then
20144 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20146 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20147 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20148 eval as_val
=\$
$as_ac_Header
20149 if test "x$as_val" = x
""yes; then :
20150 cat >>confdefs.h
<<_ACEOF
20151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20158 if test $ac_cv_header_sys_inttypes_h = yes; then
20159 HAVE_SYS_INTTYPES_H
=1
20161 HAVE_SYS_INTTYPES_H
=0
20164 if test $ac_cv_header_sys_bitypes_h = yes; then
20165 HAVE_SYS_BITYPES_H
=1
20167 HAVE_SYS_BITYPES_H
=0
20173 if test $APPLE_UNIVERSAL_BUILD = 0; then
20176 for gltype
in ptrdiff_t size_t
; do
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20178 $as_echo_n "checking for bit size of $gltype... " >&6; }
20179 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20180 $as_echo_n "(cached) " >&6
20182 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20184 included before <wchar.h>. */
20185 #include <stddef.h>
20186 #include <signal.h>
20188 # include <stdio.h>
20190 # include <wchar.h>
20193 #include <limits.h>"; then :
20199 eval gl_cv_bitsizeof_
${gltype}=\
$result
20202 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20204 $as_echo "$ac_res" >&6; }
20205 eval result
=\
$gl_cv_bitsizeof_${gltype}
20206 if test $result = unknown
; then
20209 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20210 cat >>confdefs.h
<<_ACEOF
20211 #define BITSIZEOF_${GLTYPE} $result
20214 eval BITSIZEOF_
${GLTYPE}=\
$result
20221 for gltype
in sig_atomic_t wchar_t wint_t
; do
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20223 $as_echo_n "checking for bit size of $gltype... " >&6; }
20224 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20225 $as_echo_n "(cached) " >&6
20227 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20229 included before <wchar.h>. */
20230 #include <stddef.h>
20231 #include <signal.h>
20233 # include <stdio.h>
20235 # include <wchar.h>
20238 #include <limits.h>"; then :
20244 eval gl_cv_bitsizeof_
${gltype}=\
$result
20247 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20249 $as_echo "$ac_res" >&6; }
20250 eval result
=\
$gl_cv_bitsizeof_${gltype}
20251 if test $result = unknown
; then
20254 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20255 cat >>confdefs.h
<<_ACEOF
20256 #define BITSIZEOF_${GLTYPE} $result
20259 eval BITSIZEOF_
${GLTYPE}=\
$result
20265 for gltype
in sig_atomic_t wchar_t wint_t
; do
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20267 $as_echo_n "checking whether $gltype is signed... " >&6; }
20268 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20269 $as_echo_n "(cached) " >&6
20271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20274 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20275 included before <wchar.h>. */
20276 #include <stddef.h>
20277 #include <signal.h>
20279 # include <stdio.h>
20281 # include <wchar.h>
20284 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20293 if ac_fn_c_try_compile
"$LINENO"; then :
20298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20299 eval gl_cv_type_
${gltype}_signed
=\
$result
20302 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20304 $as_echo "$ac_res" >&6; }
20305 eval result
=\
$gl_cv_type_${gltype}_signed
20306 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20307 if test "$result" = yes; then
20308 cat >>confdefs.h
<<_ACEOF
20309 #define HAVE_SIGNED_${GLTYPE} 1
20312 eval HAVE_SIGNED_
${GLTYPE}=1
20314 eval HAVE_SIGNED_
${GLTYPE}=0
20319 gl_cv_type_ptrdiff_t_signed
=yes
20320 gl_cv_type_size_t_signed
=no
20321 if test $APPLE_UNIVERSAL_BUILD = 0; then
20324 for gltype
in ptrdiff_t size_t
; do
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20326 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20327 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20328 $as_echo_n "(cached) " >&6
20330 eval gl_cv_type_
${gltype}_suffix
=no
20331 eval result
=\
$gl_cv_type_${gltype}_signed
20332 if test "$result" = yes; then
20337 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20339 '') gltype1
='int';;
20340 l
) gltype1
='long int';;
20341 ll
) gltype1
='long long int';;
20342 i64
) gltype1
='__int64';;
20343 u
) gltype1
='unsigned int';;
20344 ul
) gltype1
='unsigned long int';;
20345 ull
) gltype1
='unsigned long long int';;
20346 ui64
)gltype1
='unsigned __int64';;
20348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20351 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20352 included before <wchar.h>. */
20353 #include <stddef.h>
20354 #include <signal.h>
20356 # include <stdio.h>
20358 # include <wchar.h>
20361 extern $gltype foo;
20362 extern $gltype1 foo;
20371 if ac_fn_c_try_compile
"$LINENO"; then :
20372 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20375 eval result
=\
$gl_cv_type_${gltype}_suffix
20376 test "$result" != no
&& break
20379 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20381 $as_echo "$ac_res" >&6; }
20382 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20383 eval result
=\
$gl_cv_type_${gltype}_suffix
20384 test "$result" = no
&& result
=
20385 eval ${GLTYPE}_SUFFIX
=\
$result
20386 cat >>confdefs.h
<<_ACEOF
20387 #define ${GLTYPE}_SUFFIX $result
20396 for gltype
in sig_atomic_t wchar_t wint_t
; do
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20398 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20399 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20400 $as_echo_n "(cached) " >&6
20402 eval gl_cv_type_
${gltype}_suffix
=no
20403 eval result
=\
$gl_cv_type_${gltype}_signed
20404 if test "$result" = yes; then
20409 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20411 '') gltype1
='int';;
20412 l
) gltype1
='long int';;
20413 ll
) gltype1
='long long int';;
20414 i64
) gltype1
='__int64';;
20415 u
) gltype1
='unsigned int';;
20416 ul
) gltype1
='unsigned long int';;
20417 ull
) gltype1
='unsigned long long int';;
20418 ui64
)gltype1
='unsigned __int64';;
20420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20421 /* end confdefs.h. */
20423 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20424 included before <wchar.h>. */
20425 #include <stddef.h>
20426 #include <signal.h>
20428 # include <stdio.h>
20430 # include <wchar.h>
20433 extern $gltype foo;
20434 extern $gltype1 foo;
20443 if ac_fn_c_try_compile
"$LINENO"; then :
20444 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20447 eval result
=\
$gl_cv_type_${gltype}_suffix
20448 test "$result" != no
&& break
20451 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20453 $as_echo "$ac_res" >&6; }
20454 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20455 eval result
=\
$gl_cv_type_${gltype}_suffix
20456 test "$result" = no
&& result
=
20457 eval ${GLTYPE}_SUFFIX
=\
$result
20458 cat >>confdefs.h
<<_ACEOF
20459 #define ${GLTYPE}_SUFFIX $result
20466 if test $BITSIZEOF_WINT_T -lt 32; then
20467 BITSIZEOF_WINT_T
=32
20473 if test -n "$STDINT_H"; then
20474 GL_GENERATE_STDINT_H_TRUE
=
20475 GL_GENERATE_STDINT_H_FALSE
='#'
20477 GL_GENERATE_STDINT_H_TRUE
='#'
20478 GL_GENERATE_STDINT_H_FALSE
=
20487 GNULIB_STRTOIMAX
=0;
20488 GNULIB_STRTOUMAX
=0;
20489 HAVE_DECL_IMAXABS
=1;
20490 HAVE_DECL_IMAXDIV
=1;
20491 HAVE_DECL_STRTOIMAX
=1;
20492 HAVE_DECL_STRTOUMAX
=1;
20493 REPLACE_STRTOIMAX
=0;
20494 INT32_MAX_LT_INTMAX_MAX
=1;
20495 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20496 PRI_MACROS_BROKEN
=0;
20497 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20498 UINT32_MAX_LT_UINTMAX_MAX
=1;
20499 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20515 if test $gl_cv_have_include_next = yes; then
20516 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20519 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20520 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20521 $as_echo_n "(cached) " >&6
20524 if test $ac_cv_header_inttypes_h = yes; then
20527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20529 #include <inttypes.h>
20533 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20534 *) gl_absname_cpp
="$ac_cpp" ;;
20539 gl_dirsep_regex
='[/\\]'
20542 gl_dirsep_regex
='\/'
20545 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20547 gl_header_literal_regex
=`echo 'inttypes.h' \
20548 | sed -e "$gl_make_literal_regex_sed"`
20549 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20550 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20555 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20556 sed -n "$gl_absolute_header_sed"`'"'
20558 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20564 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20566 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20568 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20570 gl_next_as_first_directive
='<'inttypes.h
'>'
20572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20573 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20575 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20590 $as_echo_n "checking for 64-bit off_t... " >&6; }
20591 if test "${gl_cv_type_off_t_64+set}" = set; then :
20592 $as_echo_n "(cached) " >&6
20594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20596 #include <sys/types.h>
20597 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20607 if ac_fn_c_try_compile
"$LINENO"; then :
20608 gl_cv_type_off_t_64
=yes
20610 gl_cv_type_off_t_64
=no
20612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20616 $as_echo "$gl_cv_type_off_t_64" >&6; }
20617 if test $gl_cv_type_off_t_64 = no
; then
20618 WINDOWS_64_BIT_OFF_T
=1
20620 WINDOWS_64_BIT_OFF_T
=0
20622 WINDOWS_64_BIT_ST_SIZE
=1
20625 WINDOWS_64_BIT_OFF_T
=0
20626 WINDOWS_64_BIT_ST_SIZE
=0
20639 GNULIB_RAWMEMCHR
=0;
20642 GNULIB_STRCHRNUL
=0;
20650 GNULIB_STRCASESTR
=0;
20657 GNULIB_MBSCASECMP
=0;
20658 GNULIB_MBSNCASECMP
=0;
20659 GNULIB_MBSPCASECMP
=0;
20660 GNULIB_MBSCASESTR
=0;
20667 GNULIB_STRERROR_R
=0;
20668 GNULIB_STRSIGNAL
=0;
20669 GNULIB_STRVERSCMP
=0;
20674 HAVE_DECL_MEMMEM
=1;
20676 HAVE_DECL_MEMRCHR
=1;
20681 HAVE_DECL_STRDUP
=1;
20682 HAVE_DECL_STRNDUP
=1;
20683 HAVE_DECL_STRNLEN
=1;
20687 HAVE_DECL_STRTOK_R
=1;
20688 HAVE_DECL_STRERROR_R
=1;
20689 HAVE_DECL_STRSIGNAL
=1;
20696 REPLACE_STRCASESTR
=0;
20697 REPLACE_STRCHRNUL
=0;
20698 REPLACE_STRERROR
=0;
20699 REPLACE_STRERROR_R
=0;
20703 REPLACE_STRSIGNAL
=0;
20704 REPLACE_STRTOK_R
=0;
20705 UNDEFINE_STRTOK_R
=0;
20707 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20708 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20714 cat >>confdefs.h
<<_ACEOF
20715 #define HAVE_DECL_MEMRCHR $ac_have_decl
20722 GNULIB_NANOSLEEP
=0;
20726 HAVE_DECL_LOCALTIME_R
=1;
20730 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20731 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20732 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20733 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20735 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20736 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20742 cat >>confdefs.h
<<_ACEOF
20743 #define HAVE_DECL_ALARM $ac_have_decl
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20761 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20762 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20763 $as_echo_n "(cached) " >&6
20766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <sys/select.h>
20777 if ac_fn_c_try_compile
"$LINENO"; then :
20778 gl_cv_header_sys_select_h_selfcontained
=yes
20780 gl_cv_header_sys_select_h_selfcontained
=no
20782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20783 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20786 #include <sys/select.h>
20790 int memset; int bzero;
20796 if ac_fn_c_try_compile
"$LINENO"; then :
20797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20799 #include <sys/select.h>
20805 #define memset nonexistent_memset
20810 void *memset (void *, int, unsigned long);
20812 #define bzero nonexistent_bzero
20817 void bzero (void *, unsigned long);
20826 if ac_fn_c_try_link
"$LINENO"; then :
20829 gl_cv_header_sys_select_h_selfcontained
=no
20831 rm -f core conftest.err conftest.
$ac_objext \
20832 conftest
$ac_exeext conftest.
$ac_ext
20835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20840 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20850 if test $gl_cv_have_include_next = yes; then
20851 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20854 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20855 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20859 if test $ac_cv_header_sys_select_h = yes; then
20862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20864 #include <sys/select.h>
20868 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20869 *) gl_absname_cpp
="$ac_cpp" ;;
20874 gl_dirsep_regex
='[/\\]'
20877 gl_dirsep_regex
='\/'
20880 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20882 gl_header_literal_regex
=`echo 'sys/select.h' \
20883 | sed -e "$gl_make_literal_regex_sed"`
20884 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20890 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20891 sed -n "$gl_absolute_header_sed"`'"'
20893 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20899 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20901 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
20903 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20905 gl_next_as_first_directive
='<'sys
/select.h
'>'
20907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20908 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
20910 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
20915 if test $ac_cv_header_sys_select_h = yes; then
20916 HAVE_SYS_SELECT_H
=1
20918 HAVE_SYS_SELECT_H
=0
20925 if test $ac_cv_header_sys_socket_h != yes; then
20926 for ac_header
in winsock2.h
20928 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20929 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
20930 cat >>confdefs.h
<<_ACEOF
20931 #define HAVE_WINSOCK2_H 1
20939 if test "$ac_cv_header_winsock2_h" = yes; then
20941 UNISTD_H_HAVE_WINSOCK2_H
=1
20942 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20954 GNULIB_PTHREAD_SIGMASK
=0;
20956 GNULIB_SIGNAL_H_SIGPIPE
=0;
20957 GNULIB_SIGPROCMASK
=0;
20958 GNULIB_SIGACTION
=0;
20959 HAVE_POSIX_SIGNALBLOCKING
=1;
20960 HAVE_PTHREAD_SIGMASK
=1;
20965 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
20967 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
20969 HAVE_SIGHANDLER_T
=1;
20970 REPLACE_PTHREAD_SIGMASK
=0;
20979 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20980 #include <signal.h>
20981 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20982 #include <sys/types.h>
20985 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
20987 cat >>confdefs.h
<<_ACEOF
20988 #define HAVE_SIGSET_T 1
20991 gl_cv_type_sigset_t
=yes
20993 gl_cv_type_sigset_t
=no
20996 if test $gl_cv_type_sigset_t != yes; then
21002 if test $ac_cv_header_sys_socket_h = no
; then
21003 for ac_header
in ws2tcpip.h
21005 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21006 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21007 cat >>confdefs.h
<<_ACEOF
21008 #define HAVE_WS2TCPIP_H 1
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21018 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21019 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21020 $as_echo_n "(cached) " >&6
21022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21025 #include <stdbool.h>
21027 "error: bool is not defined"
21030 "error: false is not defined"
21033 "error: false is not 0"
21036 "error: true is not defined"
21039 "error: true is not 1"
21041 #ifndef __bool_true_false_are_defined
21042 "error: __bool_true_false_are_defined is not defined"
21045 struct s { _Bool s: 1; _Bool t; } s;
21047 char a[true == 1 ? 1 : -1];
21048 char b[false == 0 ? 1 : -1];
21049 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21050 char d[(bool) 0.5 == true ? 1 : -1];
21051 /* See body of main program for 'e'. */
21052 char f[(_Bool) 0.0 == false ? 1 : -1];
21054 char h[sizeof (_Bool)];
21055 char i[sizeof s.t];
21056 enum { j = false, k = true, l = false * true, m = true * 256 };
21057 /* The following fails for
21058 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21060 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21061 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21062 /* Catch a bug in an HP-UX C compiler. See
21063 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21064 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21076 /* Refer to every declared value, to avoid compiler optimizations. */
21077 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21078 + !m + !n + !o + !p + !q + !pq);
21084 if ac_fn_c_try_compile
"$LINENO"; then :
21085 ac_cv_header_stdbool_h
=yes
21087 ac_cv_header_stdbool_h
=no
21089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21092 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21093 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21094 if test "x$ac_cv_type__Bool" = x
""yes; then :
21096 cat >>confdefs.h
<<_ACEOF
21097 #define HAVE__BOOL 1
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21110 $as_echo_n "checking for wchar_t... " >&6; }
21111 if test "${gt_cv_c_wchar_t+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 #include <stddef.h>
21117 wchar_t foo = (wchar_t)'\0';
21126 if ac_fn_c_try_compile
"$LINENO"; then :
21127 gt_cv_c_wchar_t
=yes
21131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21134 $as_echo "$gt_cv_c_wchar_t" >&6; }
21135 if test $gt_cv_c_wchar_t = yes; then
21137 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21150 GNULIB_FPRINTF_POSIX
=0;
21166 GNULIB_OBSTACK_PRINTF
=0;
21167 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21172 GNULIB_PRINTF_POSIX
=0;
21181 GNULIB_SPRINTF_POSIX
=0;
21182 GNULIB_STDIO_H_NONBLOCKING
=0;
21183 GNULIB_STDIO_H_SIGPIPE
=0;
21185 GNULIB_VASPRINTF
=0;
21190 GNULIB_VFPRINTF_POSIX
=0;
21192 GNULIB_VPRINTF_POSIX
=0;
21193 GNULIB_VSNPRINTF
=0;
21194 GNULIB_VSPRINTF_POSIX
=0;
21195 HAVE_DECL_FPURGE
=1;
21196 HAVE_DECL_FSEEKO
=1;
21197 HAVE_DECL_FTELLO
=1;
21198 HAVE_DECL_GETDELIM
=1;
21199 HAVE_DECL_GETLINE
=1;
21200 HAVE_DECL_OBSTACK_PRINTF
=1;
21201 HAVE_DECL_SNPRINTF
=1;
21202 HAVE_DECL_VSNPRINTF
=1;
21223 REPLACE_GETDELIM
=0;
21225 REPLACE_OBSTACK_PRINTF
=0;
21231 REPLACE_RENAMEAT
=0;
21232 REPLACE_SNPRINTF
=0;
21234 REPLACE_STDIO_READ_FUNCS
=0;
21235 REPLACE_STDIO_WRITE_FUNCS
=0;
21237 REPLACE_VASPRINTF
=0;
21238 REPLACE_VDPRINTF
=0;
21239 REPLACE_VFPRINTF
=0;
21241 REPLACE_VSNPRINTF
=0;
21242 REPLACE_VSPRINTF
=0;
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21245 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21246 if test "${ac_cv_struct_tm+set}" = set; then :
21247 $as_echo_n "(cached) " >&6
21249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21251 #include <sys/types.h>
21258 int *p = &tm.tm_sec;
21264 if ac_fn_c_try_compile
"$LINENO"; then :
21265 ac_cv_struct_tm
=time.h
21267 ac_cv_struct_tm
=sys
/time.h
21269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21272 $as_echo "$ac_cv_struct_tm" >&6; }
21273 if test $ac_cv_struct_tm = sys
/time.h
; then
21275 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21279 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21280 #include <$ac_cv_struct_tm>
21283 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21285 cat >>confdefs.h
<<_ACEOF
21286 #define HAVE_STRUCT_TM_TM_ZONE 1
21292 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21294 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21297 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21299 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21305 cat >>confdefs.h
<<_ACEOF
21306 #define HAVE_DECL_TZNAME $ac_have_decl
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21310 $as_echo_n "checking for tzname... " >&6; }
21311 if test "${ac_cv_var_tzname+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21317 #if !HAVE_DECL_TZNAME
21318 extern char *tzname[];
21324 return tzname[0][0];
21329 if ac_fn_c_try_link
"$LINENO"; then :
21330 ac_cv_var_tzname
=yes
21332 ac_cv_var_tzname
=no
21334 rm -f core conftest.err conftest.
$ac_objext \
21335 conftest
$ac_exeext conftest.
$ac_ext
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21338 $as_echo "$ac_cv_var_tzname" >&6; }
21339 if test $ac_cv_var_tzname = yes; then
21341 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21347 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21349 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21351 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21367 if test $gl_cv_have_include_next = yes; then
21368 gl_cv_next_string_h
='<'string.h
'>'
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21371 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21372 if test "${gl_cv_next_string_h+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21377 /* end confdefs.h. */
21378 #include <string.h>
21382 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21383 *) gl_absname_cpp
="$ac_cpp" ;;
21388 gl_dirsep_regex
='[/\\]'
21391 gl_dirsep_regex
='\/'
21394 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21396 gl_header_literal_regex
=`echo 'string.h' \
21397 | sed -e "$gl_make_literal_regex_sed"`
21398 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21399 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21404 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21405 sed -n "$gl_absolute_header_sed"`'"'
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21410 $as_echo "$gl_cv_next_string_h" >&6; }
21412 NEXT_STRING_H
=$gl_cv_next_string_h
21414 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21416 gl_next_as_first_directive
='<'string.h
'>'
21418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21419 gl_next_as_first_directive
=$gl_cv_next_string_h
21421 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21431 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21432 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21438 cat >>confdefs.h
<<_ACEOF
21439 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21444 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21445 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21451 cat >>confdefs.h
<<_ACEOF
21452 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21458 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21459 if test "${ac_cv_header_stat_broken+set}" = set; then :
21460 $as_echo_n "(cached) " >&6
21462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <sys/types.h>
21465 #include <sys/stat.h>
21467 #if defined S_ISBLK && defined S_IFDIR
21468 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21471 #if defined S_ISBLK && defined S_IFCHR
21472 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21475 #if defined S_ISLNK && defined S_IFREG
21476 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21479 #if defined S_ISSOCK && defined S_IFREG
21480 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21484 if ac_fn_c_try_compile
"$LINENO"; then :
21485 ac_cv_header_stat_broken
=no
21487 ac_cv_header_stat_broken
=yes
21489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21492 $as_echo "$ac_cv_header_stat_broken" >&6; }
21493 if test $ac_cv_header_stat_broken = yes; then
21495 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21504 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21505 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21506 $as_echo_n "(cached) " >&6
21508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21515 static struct timespec x; x.tv_sec = x.tv_nsec;
21520 if ac_fn_c_try_compile
"$LINENO"; then :
21521 gl_cv_sys_struct_timespec_in_time_h
=yes
21523 gl_cv_sys_struct_timespec_in_time_h
=no
21525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21528 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21530 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21531 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21532 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21533 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21534 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21537 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21538 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 #include <sys/time.h>
21548 static struct timespec x; x.tv_sec = x.tv_nsec;
21553 if ac_fn_c_try_compile
"$LINENO"; then :
21554 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21556 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21561 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21562 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21563 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21566 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21567 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <pthread.h>
21577 static struct timespec x; x.tv_sec = x.tv_nsec;
21582 if ac_fn_c_try_compile
"$LINENO"; then :
21583 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21585 gl_cv_sys_struct_timespec_in_pthread_h
=no
21587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21590 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21591 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21592 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21611 if test $gl_cv_have_include_next = yes; then
21612 gl_cv_next_time_h
='<'time.h
'>'
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21615 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21616 if test "${gl_cv_next_time_h+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21626 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21627 *) gl_absname_cpp
="$ac_cpp" ;;
21632 gl_dirsep_regex
='[/\\]'
21635 gl_dirsep_regex
='\/'
21638 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21640 gl_header_literal_regex
=`echo 'time.h' \
21641 | sed -e "$gl_make_literal_regex_sed"`
21642 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21643 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21648 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21649 sed -n "$gl_absolute_header_sed"`'"'
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21654 $as_echo "$gl_cv_next_time_h" >&6; }
21656 NEXT_TIME_H
=$gl_cv_next_time_h
21658 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21660 gl_next_as_first_directive
='<'time.h
'>'
21662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21663 gl_next_as_first_directive
=$gl_cv_next_time_h
21665 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21680 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21681 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21687 cat >>confdefs.h
<<_ACEOF
21688 #define HAVE_DECL_UNSETENV $ac_have_decl
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21693 $as_echo_n "checking whether the utimes function works... " >&6; }
21694 if test "${gl_cv_func_working_utimes+set}" = set; then :
21695 $as_echo_n "(cached) " >&6
21698 if test "$cross_compiling" = yes; then :
21699 gl_cv_func_working_utimes
=no
21701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21704 #include <sys/types.h>
21705 #include <sys/stat.h>
21707 #include <sys/time.h>
21709 #include <unistd.h>
21710 #include <stdlib.h>
21715 inorder (time_t a, time_t b, time_t c)
21717 return a <= b && b <= c;
21724 char const *file = "conftest.utimes";
21725 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21727 /* Test whether utimes() essentially works. */
21730 FILE *f = fopen (file, "w");
21733 else if (fclose (f) != 0)
21735 else if (utimes (file, timeval) != 0)
21737 else if (lstat (file, &sbuf) != 0)
21739 else if (!(sbuf.st_atime == timeval[0].tv_sec
21740 && sbuf.st_mtime == timeval[1].tv_sec))
21742 if (unlink (file) != 0)
21746 /* Test whether utimes() with a NULL argument sets the file's timestamp
21747 to the current time. Use 'fstat' as well as 'time' to
21748 determine the "current" time, to accommodate NFS file systems
21749 if there is a time skew between the host and the NFS server. */
21751 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21757 struct stat st0, st1, st2;
21758 if (time (&t0) == (time_t) -1)
21760 else if (fstat (fd, &st0) != 0)
21762 else if (utimes (file, timeval) != 0)
21764 else if (utimes (file, NULL) != 0)
21766 else if (fstat (fd, &st1) != 0)
21768 else if (write (fd, "\n", 1) != 1)
21770 else if (fstat (fd, &st2) != 0)
21772 else if (time (&t2) == (time_t) -1)
21776 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21777 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21778 if (! (st1.st_atime == st1.st_mtime))
21780 if (! (m_ok_POSIX || m_ok_NFS))
21783 if (close (fd) != 0)
21786 if (unlink (file) != 0)
21790 /* Test whether utimes() with a NULL argument works on read-only files. */
21792 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21795 else if (close (fd) != 0)
21797 else if (utimes (file, NULL) != 0)
21799 if (unlink (file) != 0)
21807 if ac_fn_c_try_run
"$LINENO"; then :
21808 gl_cv_func_working_utimes
=yes
21810 gl_cv_func_working_utimes
=no
21812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21813 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21818 $as_echo "$gl_cv_func_working_utimes" >&6; }
21820 if test $gl_cv_func_working_utimes = yes; then
21822 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21831 $as_echo_n "checking for struct utimbuf... " >&6; }
21832 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h. */
21837 #if HAVE_SYS_TIME_H
21838 #include <sys/time.h>
21841 #ifdef HAVE_UTIME_H
21848 static struct utimbuf x; x.actime = x.modtime;
21853 if ac_fn_c_try_compile
"$LINENO"; then :
21854 gl_cv_sys_struct_utimbuf
=yes
21856 gl_cv_sys_struct_utimbuf
=no
21858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21861 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21863 if test $gl_cv_sys_struct_utimbuf = yes; then
21865 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21880 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21881 if test "${ac_cv_type_getgroups+set}" = set; then :
21882 $as_echo_n "(cached) " >&6
21884 if test "$cross_compiling" = yes; then :
21885 ac_cv_type_getgroups
=cross
21887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21889 /* Thanks to Mike Rendell for this test. */
21890 $ac_includes_default
21893 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21898 gid_t gidset[NGID];
21900 union { gid_t gval; long int lval; } val;
21903 for (i = 0; i < NGID; i++)
21904 gidset[i] = val.gval;
21905 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21907 /* Exit non-zero if getgroups seems to require an array of ints. This
21908 happens when gid_t is short int but getgroups modifies an array
21910 return n > 0 && gidset[n] != val.gval;
21913 if ac_fn_c_try_run
"$LINENO"; then :
21914 ac_cv_type_getgroups
=gid_t
21916 ac_cv_type_getgroups
=int
21918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21919 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21922 if test $ac_cv_type_getgroups = cross
; then
21923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h. */
21925 #include <unistd.h>
21928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21929 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
21930 ac_cv_type_getgroups
=gid_t
21932 ac_cv_type_getgroups
=int
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21939 $as_echo "$ac_cv_type_getgroups" >&6; }
21941 cat >>confdefs.h
<<_ACEOF
21942 #define GETGROUPS_T $ac_cv_type_getgroups
21953 GL_COND_LIBTOOL_TRUE
=
21954 GL_COND_LIBTOOL_FALSE
='#'
21956 GL_COND_LIBTOOL_TRUE
='#'
21957 GL_COND_LIBTOOL_FALSE
=
21960 gl_cond_libtool
=false
21973 gl_source_base
='lib'
21976 if test $ac_cv_func_alloca_works = no
; then
21980 # Define an additional variable used in the Makefile substitution.
21981 if test $ac_cv_working_alloca_h = yes; then
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21983 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21984 if test "${gl_cv_rpl_alloca+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21991 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21997 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
21998 gl_cv_rpl_alloca
=yes
22000 gl_cv_rpl_alloca
=no
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22007 $as_echo "$gl_cv_rpl_alloca" >&6; }
22008 if test $gl_cv_rpl_alloca = yes; then
22010 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22020 if test -n "$ALLOCA_H"; then
22021 GL_GENERATE_ALLOCA_H_TRUE
=
22022 GL_GENERATE_ALLOCA_H_FALSE
='#'
22024 GL_GENERATE_ALLOCA_H_TRUE
='#'
22025 GL_GENERATE_ALLOCA_H_FALSE
=
22033 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22034 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22036 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22037 # programs in the package would end up linked with that potentially-shared
22038 # library, inducing unnecessary run-time overhead.
22041 gl_saved_libs
=$LIBS
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22043 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22044 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22047 ac_func_search_save_LIBS
=$LIBS
22048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h. */
22051 /* Override any GCC internal prototype to avoid an error.
22052 Use char because int might match the return type of a GCC
22053 builtin and then its argument prototype would still apply. */
22057 char clock_gettime ();
22061 return clock_gettime ();
22066 for ac_lib
in '' rt posix4
; do
22067 if test -z "$ac_lib"; then
22068 ac_res
="none required"
22071 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22073 if ac_fn_c_try_link
"$LINENO"; then :
22074 ac_cv_search_clock_gettime
=$ac_res
22076 rm -f core conftest.err conftest.
$ac_objext \
22078 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22082 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22085 ac_cv_search_clock_gettime
=no
22087 rm conftest.
$ac_ext
22088 LIBS
=$ac_func_search_save_LIBS
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22091 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22092 ac_res
=$ac_cv_search_clock_gettime
22093 if test "$ac_res" != no
; then :
22094 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22095 test "$ac_cv_search_clock_gettime" = "none required" ||
22096 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22099 for ac_func
in clock_gettime clock_settime
22101 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22102 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22103 eval as_val
=\$
$as_ac_var
22104 if test "x$as_val" = x
""yes; then :
22105 cat >>confdefs.h
<<_ACEOF
22106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22112 LIBS
=$gl_saved_libs
22119 cat >>confdefs.h
<<_ACEOF
22120 #define GNULIB_CLOSE_STREAM 1
22150 if test $gl_cv_have_include_next = yes; then
22151 gl_cv_next_dirent_h
='<'dirent.h
'>'
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22154 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22155 if test "${gl_cv_next_dirent_h+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22159 if test $ac_cv_header_dirent_h = yes; then
22162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22164 #include <dirent.h>
22168 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22169 *) gl_absname_cpp
="$ac_cpp" ;;
22174 gl_dirsep_regex
='[/\\]'
22177 gl_dirsep_regex
='\/'
22180 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22182 gl_header_literal_regex
=`echo 'dirent.h' \
22183 | sed -e "$gl_make_literal_regex_sed"`
22184 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22190 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22191 sed -n "$gl_absolute_header_sed"`'"'
22193 gl_cv_next_dirent_h
='<'dirent.h
'>'
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22199 $as_echo "$gl_cv_next_dirent_h" >&6; }
22201 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22203 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22205 gl_next_as_first_directive
='<'dirent.h
'>'
22207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22208 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22210 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22215 if test $ac_cv_header_dirent_h = yes; then
22230 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22233 if test $HAVE_DUP2 = 1; then
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22235 $as_echo_n "checking whether dup2 works... " >&6; }
22236 if test "${gl_cv_func_dup2_works+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22239 if test "$cross_compiling" = yes; then :
22241 mingw
*) # on this platform, dup2 always returns 0 for success
22242 gl_cv_func_dup2_works
="guessing no" ;;
22243 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22244 gl_cv_func_dup2_works
="guessing no" ;;
22245 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22246 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22247 gl_cv_func_dup2_works
="guessing no" ;;
22248 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22249 gl_cv_func_dup2_works
="guessing no" ;;
22250 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22251 gl_cv_func_dup2_works
="guessing no" ;;
22252 *) gl_cv_func_dup2_works
="guessing yes" ;;
22255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22258 #include <unistd.h>
22266 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22269 if (dup2 (1, 1) == 0)
22272 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22276 if (dup2 (0, 0) != -1)
22278 /* Many gnulib modules require POSIX conformance of EBADF. */
22279 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22281 /* Flush out a cygwin core dump. */
22282 if (dup2 (2, -1) != -1 || errno != EBADF)
22291 if ac_fn_c_try_run
"$LINENO"; then :
22292 gl_cv_func_dup2_works
=yes
22294 gl_cv_func_dup2_works
=no
22296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22303 $as_echo "$gl_cv_func_dup2_works" >&6; }
22304 case "$gl_cv_func_dup2_works" in
22313 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22322 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22354 EXECINFO_H
='execinfo.h'
22356 if test $ac_cv_header_execinfo_h = yes; then
22357 gl_saved_libs
=$LIBS
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22359 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22360 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22363 ac_func_search_save_LIBS
=$LIBS
22364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22365 /* end confdefs.h. */
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22373 char backtrace_symbols_fd ();
22377 return backtrace_symbols_fd ();
22382 for ac_lib
in '' execinfo
; do
22383 if test -z "$ac_lib"; then
22384 ac_res
="none required"
22387 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22389 if ac_fn_c_try_link
"$LINENO"; then :
22390 ac_cv_search_backtrace_symbols_fd
=$ac_res
22392 rm -f core conftest.err conftest.
$ac_objext \
22394 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22398 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22401 ac_cv_search_backtrace_symbols_fd
=no
22403 rm conftest.
$ac_ext
22404 LIBS
=$ac_func_search_save_LIBS
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22407 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22408 ac_res
=$ac_cv_search_backtrace_symbols_fd
22409 if test "$ac_res" != no
; then :
22410 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22411 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22412 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22415 LIBS
=$gl_saved_libs
22416 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22419 if test -n "$EXECINFO_H"; then
22428 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22434 if test -n "$EXECINFO_H"; then
22435 GL_GENERATE_EXECINFO_H_TRUE
=
22436 GL_GENERATE_EXECINFO_H_FALSE
='#'
22438 GL_GENERATE_EXECINFO_H_TRUE
='#'
22439 GL_GENERATE_EXECINFO_H_FALSE
=
22450 if test $ac_cv_func_faccessat = no
; then
22454 if test $HAVE_FACCESSAT = 0; then
22463 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22466 for ac_func
in access
22468 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22469 if test "x$ac_cv_func_access" = x
""yes; then :
22470 cat >>confdefs.h
<<_ACEOF
22471 #define HAVE_ACCESS 1
22481 cat >>confdefs.h
<<_ACEOF
22482 #define GNULIB_FACCESSAT 1
22502 if test $ac_cv_func_fcntl = no
; then
22506 if test $ac_cv_func_fcntl = no
; then
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22514 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22515 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22516 $as_echo_n "(cached) " >&6
22518 if test "$cross_compiling" = yes; then :
22519 # Guess that it works on glibc systems
22520 case $host_os in #((
22521 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
22522 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
22525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h. */
22535 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22536 if (errno != EINVAL) result |= 2;
22543 if ac_fn_c_try_run
"$LINENO"; then :
22544 gl_cv_func_fcntl_f_dupfd_works
=yes
22546 gl_cv_func_fcntl_f_dupfd_works
=no
22548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22554 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22555 case $gl_cv_func_fcntl_f_dupfd_works in
22560 if test $ac_cv_func_fcntl = no
; then
22567 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22572 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22573 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22574 $as_echo_n "(cached) " >&6
22576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h. */
22580 #ifndef F_DUPFD_CLOEXEC
22592 if ac_fn_c_try_compile
"$LINENO"; then :
22593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22597 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22598 it to support the semantics on older kernels that failed with EINVAL. */
22610 if ac_fn_c_try_compile
"$LINENO"; then :
22611 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22613 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22617 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22622 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22623 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22627 if test $ac_cv_func_fcntl = no
; then
22637 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22646 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22671 if test $gl_cv_have_include_next = yes; then
22672 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22675 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22676 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22681 /* end confdefs.h. */
22686 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22687 *) gl_absname_cpp
="$ac_cpp" ;;
22692 gl_dirsep_regex
='[/\\]'
22695 gl_dirsep_regex
='\/'
22698 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22700 gl_header_literal_regex
=`echo 'fcntl.h' \
22701 | sed -e "$gl_make_literal_regex_sed"`
22702 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22708 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22709 sed -n "$gl_absolute_header_sed"`'"'
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22714 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22716 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22718 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22720 gl_next_as_first_directive
='<'fcntl.h
'>'
22722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22723 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22725 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22744 if test $ac_cv_have_decl_fdatasync = no
; then
22745 HAVE_DECL_FDATASYNC
=0
22746 for ac_func
in fdatasync
22748 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22749 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22750 cat >>confdefs.h
<<_ACEOF
22751 #define HAVE_FDATASYNC 1
22757 if test $ac_cv_func_fdatasync = no
; then
22761 gl_saved_libs
=$LIBS
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22763 $as_echo_n "checking for library containing fdatasync... " >&6; }
22764 if test "${ac_cv_search_fdatasync+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22767 ac_func_search_save_LIBS
=$LIBS
22768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22771 /* Override any GCC internal prototype to avoid an error.
22772 Use char because int might match the return type of a GCC
22773 builtin and then its argument prototype would still apply. */
22781 return fdatasync ();
22786 for ac_lib
in '' rt posix4
; do
22787 if test -z "$ac_lib"; then
22788 ac_res
="none required"
22791 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22793 if ac_fn_c_try_link
"$LINENO"; then :
22794 ac_cv_search_fdatasync
=$ac_res
22796 rm -f core conftest.err conftest.
$ac_objext \
22798 if test "${ac_cv_search_fdatasync+set}" = set; then :
22802 if test "${ac_cv_search_fdatasync+set}" = set; then :
22805 ac_cv_search_fdatasync
=no
22807 rm conftest.
$ac_ext
22808 LIBS
=$ac_func_search_save_LIBS
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22811 $as_echo "$ac_cv_search_fdatasync" >&6; }
22812 ac_res
=$ac_cv_search_fdatasync
22813 if test "$ac_res" != no
; then :
22814 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22815 test "$ac_cv_search_fdatasync" = "none required" ||
22816 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22819 LIBS
=$gl_saved_libs
22822 if test $HAVE_FDATASYNC = 0; then
22831 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22850 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22851 #include <dirent.h>
22854 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22860 cat >>confdefs.h
<<_ACEOF
22861 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22863 if test $ac_have_decl = 1; then :
22866 HAVE_DECL_FDOPENDIR
=0
22870 if test $ac_cv_func_fdopendir = no
; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22874 $as_echo_n "checking whether fdopendir works... " >&6; }
22875 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22878 if test "$cross_compiling" = yes; then :
22880 # Guess yes on glibc systems.
22881 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
22882 # If we don't know, assume the worst.
22883 *) gl_cv_func_fdopendir_works
="guessing no" ;;
22887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22888 /* end confdefs.h. */
22890 #include <dirent.h>
22892 #include <unistd.h>
22893 #if !HAVE_DECL_FDOPENDIR
22895 # ifdef __cplusplus
22898 DIR *fdopendir (int);
22905 int fd = open ("conftest.c", O_RDONLY);
22906 if (fd < 0) result |= 1;
22907 if (fdopendir (fd)) result |= 2;
22908 if (close (fd)) result |= 4;
22914 if ac_fn_c_try_run
"$LINENO"; then :
22915 gl_cv_func_fdopendir_works
=yes
22917 gl_cv_func_fdopendir_works
=no
22919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22925 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22926 case "$gl_cv_func_fdopendir_works" in
22929 REPLACE_FDOPENDIR
=1
22934 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
22943 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
22959 cat >>confdefs.h
<<_ACEOF
22960 #define GNULIB_FDOPENDIR 1
22972 # include <stdio.h>
22973 # if HAVE_STDIO_EXT_H
22974 # include <stdio_ext.h>
22977 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22979 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
22985 cat >>confdefs.h
<<_ACEOF
22986 #define HAVE_DECL___FPENDING $ac_have_decl
22990 if test $ac_cv_func___fpending = no
; then
22999 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23003 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23004 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23011 'fp->_IO_write_ptr - fp->_IO_write_base' \
23013 '# traditional Unix' \
23014 'fp->_ptr - fp->_base' \
23017 'fp->_p - fp->_bf._base' \
23019 '# SCO, Unixware' \
23020 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23023 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23026 'fp->__bufp - fp->__buffer' \
23028 '# old glibc iostream?' \
23029 'fp->_pptr - fp->_pbase' \
23032 'fp->_ptr - fp->_buffer' \
23035 'fp->_ptr - fp->_buf' \
23038 'fp->wp - fp->buf' \
23041 '(*fp)->_ptr - (*fp)->_base' \
23043 '# e.g., DGUX R4.11; the info is not available' \
23047 # Skip each embedded comment.
23048 case "$ac_expr" in '#'*) continue;; esac
23050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23056 FILE *fp = stdin; (void) ($ac_expr);
23061 if ac_fn_c_try_compile
"$LINENO"; then :
23065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23066 test "$fp_done" = yes && break
23069 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23074 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23076 cat >>confdefs.h
<<_ACEOF
23077 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23088 if test $ac_cv_func_fstatat = no
; then
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23092 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23093 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23096 if test "$cross_compiling" = yes; then :
23098 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23099 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23107 #include <sys/stat.h>
23112 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23116 if ac_fn_c_try_run
"$LINENO"; then :
23117 gl_cv_func_fstatat_zero_flag
=yes
23119 gl_cv_func_fstatat_zero_flag
=no
23121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23128 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23130 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23132 *) REPLACE_FSTATAT
=1
23133 case $gl_cv_func_fstatat_zero_flag in
23136 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23144 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23153 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23170 if test $ac_cv_func_fsync = no
; then
23174 if test $HAVE_FSYNC = 0; then
23183 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23200 # Persuade glibc <stdlib.h> to declare getloadavg().
23205 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23206 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23208 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23209 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23212 gl_func_getloadavg_done
=no
23214 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23215 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23216 # to get the right answer into the cache.
23217 # For kstat on solaris, we need to test for libelf and libkvm to force the
23218 # definition of SVR4 below.
23219 if test $gl_func_getloadavg_done = no
; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23221 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23222 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23223 $as_echo_n "(cached) " >&6
23225 ac_check_lib_save_LIBS
=$LIBS
23227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h. */
23230 /* Override any GCC internal prototype to avoid an error.
23231 Use char because int might match the return type of a GCC
23232 builtin and then its argument prototype would still apply. */
23240 return elf_begin ();
23245 if ac_fn_c_try_link
"$LINENO"; then :
23246 ac_cv_lib_elf_elf_begin
=yes
23248 ac_cv_lib_elf_elf_begin
=no
23250 rm -f core conftest.err conftest.
$ac_objext \
23251 conftest
$ac_exeext conftest.
$ac_ext
23252 LIBS
=$ac_check_lib_save_LIBS
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23255 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23256 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23261 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23262 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23263 $as_echo_n "(cached) " >&6
23265 ac_check_lib_save_LIBS
=$LIBS
23267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23268 /* end confdefs.h. */
23270 /* Override any GCC internal prototype to avoid an error.
23271 Use char because int might match the return type of a GCC
23272 builtin and then its argument prototype would still apply. */
23280 return kvm_open ();
23285 if ac_fn_c_try_link
"$LINENO"; then :
23286 ac_cv_lib_kvm_kvm_open
=yes
23288 ac_cv_lib_kvm_kvm_open
=no
23290 rm -f core conftest.err conftest.
$ac_objext \
23291 conftest
$ac_exeext conftest.
$ac_ext
23292 LIBS
=$ac_check_lib_save_LIBS
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23295 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23296 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23300 # Check for the 4.4BSD definition of getloadavg.
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23302 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23303 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23306 ac_check_lib_save_LIBS
=$LIBS
23307 LIBS
="-lutil $LIBS"
23308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h. */
23311 /* Override any GCC internal prototype to avoid an error.
23312 Use char because int might match the return type of a GCC
23313 builtin and then its argument prototype would still apply. */
23317 char getloadavg ();
23321 return getloadavg ();
23326 if ac_fn_c_try_link
"$LINENO"; then :
23327 ac_cv_lib_util_getloadavg
=yes
23329 ac_cv_lib_util_getloadavg
=no
23331 rm -f core conftest.err conftest.
$ac_objext \
23332 conftest
$ac_exeext conftest.
$ac_ext
23333 LIBS
=$ac_check_lib_save_LIBS
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23336 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23337 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23338 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23343 if test $gl_func_getloadavg_done = no
; then
23344 # There is a commonly available library for RS/6000 AIX.
23345 # Since it is not a standard part of AIX, it might be installed locally.
23346 gl_getloadavg_LIBS
=$LIBS
23347 LIBS
="-L/usr/local/lib $LIBS"
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23349 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23350 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23351 $as_echo_n "(cached) " >&6
23353 ac_check_lib_save_LIBS
=$LIBS
23354 LIBS
="-lgetloadavg $LIBS"
23355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23364 char getloadavg ();
23368 return getloadavg ();
23373 if ac_fn_c_try_link
"$LINENO"; then :
23374 ac_cv_lib_getloadavg_getloadavg
=yes
23376 ac_cv_lib_getloadavg_getloadavg
=no
23378 rm -f core conftest.err conftest.
$ac_objext \
23379 conftest
$ac_exeext conftest.
$ac_ext
23380 LIBS
=$ac_check_lib_save_LIBS
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23383 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23384 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23385 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23387 LIBS
=$gl_getloadavg_LIBS
23392 # Set up the replacement function if necessary.
23393 if test $gl_func_getloadavg_done = no
; then
23396 # Solaris has libkstat which does not require root.
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23398 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23399 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23402 ac_check_lib_save_LIBS
=$LIBS
23403 LIBS
="-lkstat $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. */
23413 char kstat_open ();
23417 return kstat_open ();
23422 if ac_fn_c_try_link
"$LINENO"; then :
23423 ac_cv_lib_kstat_kstat_open
=yes
23425 ac_cv_lib_kstat_kstat_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_kstat_kstat_open" >&5
23432 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23433 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23434 cat >>confdefs.h
<<_ACEOF
23435 #define HAVE_LIBKSTAT 1
23438 LIBS
="-lkstat $LIBS"
23442 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23444 # AIX has libperfstat which does not require root
23445 if test $gl_func_getloadavg_done = no
; then
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23447 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23448 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23449 $as_echo_n "(cached) " >&6
23451 ac_check_lib_save_LIBS
=$LIBS
23452 LIBS
="-lperfstat $LIBS"
23453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23454 /* end confdefs.h. */
23456 /* Override any GCC internal prototype to avoid an error.
23457 Use char because int might match the return type of a GCC
23458 builtin and then its argument prototype would still apply. */
23462 char perfstat_cpu_total ();
23466 return perfstat_cpu_total ();
23471 if ac_fn_c_try_link
"$LINENO"; then :
23472 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23474 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23476 rm -f core conftest.err conftest.
$ac_objext \
23477 conftest
$ac_exeext conftest.
$ac_ext
23478 LIBS
=$ac_check_lib_save_LIBS
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23481 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23482 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23483 cat >>confdefs.h
<<_ACEOF
23484 #define HAVE_LIBPERFSTAT 1
23487 LIBS
="-lperfstat $LIBS"
23491 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23494 if test $gl_func_getloadavg_done = no
; then
23495 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23496 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23497 gl_func_getloadavg_done
=yes
23499 $as_echo "#define DGUX 1" >>confdefs.h
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23502 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23503 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23504 $as_echo_n "(cached) " >&6
23506 ac_check_lib_save_LIBS
=$LIBS
23508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23509 /* end confdefs.h. */
23511 /* Override any GCC internal prototype to avoid an error.
23512 Use char because int might match the return type of a GCC
23513 builtin and then its argument prototype would still apply. */
23517 char dg_sys_info ();
23521 return dg_sys_info ();
23526 if ac_fn_c_try_link
"$LINENO"; then :
23527 ac_cv_lib_dgc_dg_sys_info
=yes
23529 ac_cv_lib_dgc_dg_sys_info
=no
23531 rm -f core conftest.err conftest.
$ac_objext \
23532 conftest
$ac_exeext conftest.
$ac_ext
23533 LIBS
=$ac_check_lib_save_LIBS
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23536 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23537 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23538 cat >>confdefs.h
<<_ACEOF
23539 #define HAVE_LIBDGC 1
23554 if test "x$gl_save_LIBS" = x
; then
23555 GETLOADAVG_LIBS
=$LIBS
23557 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23562 # Test whether the system declares getloadavg. Solaris has the function
23563 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23564 for ac_header
in sys
/loadavg.h
23566 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23567 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23568 cat >>confdefs.h
<<_ACEOF
23569 #define HAVE_SYS_LOADAVG_H 1
23576 if test $ac_cv_header_sys_loadavg_h = yes; then
23577 HAVE_SYS_LOADAVG_H
=1
23579 HAVE_SYS_LOADAVG_H
=0
23581 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23582 # include <sys/loadavg.h>
23584 #include <stdlib.h>
23586 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23589 HAVE_DECL_GETLOADAVG
=0
23593 if test $HAVE_GETLOADAVG = 0; then
23602 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23605 # Figure out what our getloadavg.c needs.
23609 # On HPUX9, an unprivileged user can get load averages this way.
23610 if test $gl_func_getloadavg_done = no
; then
23611 for ac_func
in pstat_getdynamic
23613 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23614 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23615 cat >>confdefs.h
<<_ACEOF
23616 #define HAVE_PSTAT_GETDYNAMIC 1
23618 gl_func_getloadavg_done
=yes
23624 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23625 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23626 # Irix 4.0.5F has the header but not the library.
23627 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23628 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23629 gl_func_getloadavg_done
=yes
23631 $as_echo "#define SVR4 1" >>confdefs.h
23635 if test $gl_func_getloadavg_done = no
; then
23636 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23637 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23638 gl_func_getloadavg_done
=yes
23640 $as_echo "#define UMAX 1" >>confdefs.h
23643 $as_echo "#define UMAX4_3 1" >>confdefs.h
23650 if test $gl_func_getloadavg_done = no
; then
23651 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23652 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23653 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23660 if test $gl_func_getloadavg_done = no
; then
23661 for ac_header
in mach
/mach.h
23663 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23664 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23665 cat >>confdefs.h
<<_ACEOF
23666 #define HAVE_MACH_MACH_H 1
23675 for ac_header
in nlist.h
23677 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23678 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23679 cat >>confdefs.h
<<_ACEOF
23680 #define HAVE_NLIST_H 1
23682 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23684 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23686 cat >>confdefs.h
<<_ACEOF
23687 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23694 /* end confdefs.h. */
23700 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23701 x.n_un.n_name = "";
23709 if ac_fn_c_try_link
"$LINENO"; then :
23711 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23714 rm -f core conftest.err conftest.
$ac_objext \
23715 conftest
$ac_exeext conftest.
$ac_ext
23727 GNULIB_GETLOADAVG
=1
23738 if test $REPLACE_GETOPT = 1; then
23747 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23757 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23762 GNULIB_GL_UNISTD_H_GETOPT
=1
23772 if test -n "$gl_replace_getopt"; then
23776 if test $REPLACE_GETOPT = 1; then
23780 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23786 if test $REPLACE_GETOPT = 1; then
23795 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23805 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23810 GNULIB_GL_UNISTD_H_GETOPT
=1
23824 gl_gettimeofday_timezone
=void
23825 if test $ac_cv_func_gettimeofday != yes; then
23826 HAVE_GETTIMEOFDAY
=0
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23832 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23833 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23834 $as_echo_n "(cached) " >&6
23836 if test "$cross_compiling" = yes; then :
23837 # When cross-compiling:
23839 # Guess all is fine on glibc systems.
23840 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23841 # If we don't know, assume the worst.
23842 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848 #include <string.h>
23849 #include <sys/time.h>
23851 #include <stdlib.h>
23859 struct tm saved_lt;
23861 lt = localtime (&t);
23863 gettimeofday (&tv, NULL);
23864 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23870 if ac_fn_c_try_run
"$LINENO"; then :
23871 gl_cv_func_gettimeofday_clobber
=no
23873 gl_cv_func_gettimeofday_clobber
=yes
23875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23881 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23883 case "$gl_cv_func_gettimeofday_clobber" in
23885 REPLACE_GETTIMEOFDAY
=1
23888 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23891 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23895 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23901 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23902 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23906 /* end confdefs.h. */
23907 #include <sys/time.h>
23909 int gettimeofday (struct timeval *restrict, void *restrict);
23914 /* glibc uses struct timezone * rather than the POSIX void *
23915 if _GNU_SOURCE is defined. However, since the only portable
23916 use of gettimeofday uses NULL as the second parameter, and
23917 since the glibc definition is actually more typesafe, it is
23918 not worth wrapping this to get a compliant signature. */
23919 int (*f) (struct timeval *restrict, void *restrict)
23922 return !(x | c.tv_sec | c.tv_usec);
23928 if ac_fn_c_try_compile
"$LINENO"; then :
23929 gl_cv_func_gettimeofday_posix_signature
=yes
23931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23933 #include <sys/time.h>
23934 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23944 if ac_fn_c_try_compile
"$LINENO"; then :
23945 gl_cv_func_gettimeofday_posix_signature
=almost
23947 gl_cv_func_gettimeofday_posix_signature
=no
23949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23954 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23955 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
23956 gl_gettimeofday_timezone
='struct timezone'
23957 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23958 REPLACE_GETTIMEOFDAY
=1
23960 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23961 REPLACE_GETTIMEOFDAY
=1
23966 cat >>confdefs.h
<<_ACEOF
23967 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23971 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
23980 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
23983 for ac_header
in sys
/timeb.h
23985 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23986 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
23987 cat >>confdefs.h
<<_ACEOF
23988 #define HAVE_SYS_TIMEB_H 1
23995 for ac_func
in _ftime
23997 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
23998 if test "x$ac_cv_func__ftime" = x
""yes; then :
23999 cat >>confdefs.h
<<_ACEOF
24000 #define HAVE__FTIME 1
24013 GNULIB_GETTIMEOFDAY
=1
24024 if test $ac_cv_func_lstat = yes; then
24026 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24035 if test $REPLACE_LSTAT = 1; then
24044 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24064 if test $ac_cv_have_decl_memrchr = no
; then
24065 HAVE_DECL_MEMRCHR
=0
24068 for ac_func
in memrchr
24070 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24071 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24072 cat >>confdefs.h
<<_ACEOF
24073 #define HAVE_MEMRCHR 1
24080 if test $ac_cv_func_memrchr = no
; then
24089 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24110 if test $ac_cv_func_mkostemp != yes; then
24114 if test $HAVE_MKOSTEMP = 0; then
24123 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24130 cat >>confdefs.h
<<_ACEOF
24131 #define GNULIB_MKOSTEMP 1
24152 if test $APPLE_UNIVERSAL_BUILD = 1; then
24153 # A universal build on Apple Mac OS X platforms.
24154 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24155 # But we need a configuration result that is valid in both modes.
24156 gl_cv_func_working_mktime
=no
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24159 $as_echo_n "checking for working mktime... " >&6; }
24160 if test "${gl_cv_func_working_mktime+set}" = set; then :
24161 $as_echo_n "(cached) " >&6
24163 if test "$cross_compiling" = yes; then :
24164 gl_cv_func_working_mktime
=no
24166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24168 /* Test program from Paul Eggert and Tony Leneis. */
24169 #include <limits.h>
24170 #include <stdlib.h>
24173 #ifdef HAVE_UNISTD_H
24174 # include <unistd.h>
24177 #if HAVE_DECL_ALARM
24178 # include <signal.h>
24181 /* Work around redefinition to rpl_putenv by other config tests. */
24184 static time_t time_t_max;
24185 static time_t time_t_min;
24187 /* Values we'll use to set the TZ environment variable. */
24188 static char *tz_strings[] = {
24189 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24190 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24192 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24194 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24195 Based on a problem report from Andreas Jaeger. */
24197 spring_forward_gap ()
24199 /* glibc (up to about 1998-10-07) failed this test. */
24202 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24203 instead of "TZ=America/Vancouver" in order to detect the bug even
24204 on systems that don't support the Olson extension, or don't have the
24205 full zoneinfo tables installed. */
24206 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24215 return mktime (&tm) != (time_t) -1;
24219 mktime_test1 (time_t now)
24222 return ! (lt = localtime (&now)) || mktime (lt) == now;
24226 mktime_test (time_t now)
24228 return (mktime_test1 (now)
24229 && mktime_test1 ((time_t) (time_t_max - now))
24230 && mktime_test1 ((time_t) (time_t_min + now)));
24236 /* Based on code from Ariel Faigon. */
24246 return tm.tm_mon == 2 && tm.tm_mday == 31;
24250 bigtime_test (int j)
24254 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24255 now = mktime (&tm);
24256 if (now != (time_t) -1)
24258 struct tm *lt = localtime (&now);
24260 && lt->tm_year == tm.tm_year
24261 && lt->tm_mon == tm.tm_mon
24262 && lt->tm_mday == tm.tm_mday
24263 && lt->tm_hour == tm.tm_hour
24264 && lt->tm_min == tm.tm_min
24265 && lt->tm_sec == tm.tm_sec
24266 && lt->tm_yday == tm.tm_yday
24267 && lt->tm_wday == tm.tm_wday
24268 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24269 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24278 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24279 ignoring leap seconds. */
24280 unsigned long int answer = 2527315200UL;
24284 tm.tm_year = 2050 - 1900;
24287 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24290 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24291 instead of "TZ=America/Vancouver" in order to detect the bug even
24292 on systems that don't support the Olson extension, or don't have the
24293 full zoneinfo tables installed. */
24294 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24298 /* Check that the result is either a failure, or close enough
24299 to the correct answer that we can assume the discrepancy is
24300 due to leap seconds. */
24301 return (t == (time_t) -1
24302 || (0 < t && answer - 120 <= t && t <= answer + 120));
24311 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24312 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24314 #if HAVE_DECL_ALARM
24315 /* This test makes some buggy mktime implementations loop.
24316 Give up after 60 seconds; a mktime slower than that
24317 isn't worth using anyway. */
24318 signal (SIGALRM, SIG_DFL);
24322 time_t_max = (! time_t_signed
24324 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24326 time_t_min = (! time_t_signed
24328 : time_t_signed_magnitude
24332 delta = time_t_max / 997; /* a suitable prime number */
24333 for (i = 0; i < N_STRINGS; i++)
24336 putenv (tz_strings[i]);
24338 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24339 if (! mktime_test (t))
24341 if ((result & 2) == 0
24342 && ! (mktime_test ((time_t) 1)
24343 && mktime_test ((time_t) (60 * 60))
24344 && mktime_test ((time_t) (60 * 60 * 24))))
24347 for (j = 1; (result & 4) == 0; j <<= 1)
24349 if (! bigtime_test (j))
24351 if (INT_MAX / 2 < j)
24354 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24357 if (! irix_6_4_bug ())
24359 if (! spring_forward_gap ())
24361 if (! year_2050_test ())
24366 if ac_fn_c_try_run
"$LINENO"; then :
24367 gl_cv_func_working_mktime
=yes
24369 gl_cv_func_working_mktime
=no
24371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24378 $as_echo "$gl_cv_func_working_mktime" >&6; }
24380 if test $gl_cv_func_working_mktime = no
; then
24386 if test $REPLACE_MKTIME = 1; then
24395 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24417 if test $ac_cv_func_pipe2 != yes; then
24437 if test $ac_cv_func_pselect = yes; then
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24439 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24440 if test "${gl_cv_sig_pselect+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h. */
24445 #include <sys/select.h>
24450 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24451 struct timespec const *restrict,
24452 sigset_t const *restrict) = pselect;
24458 if ac_fn_c_try_link
"$LINENO"; then :
24459 gl_cv_sig_pselect
=yes
24461 gl_cv_sig_pselect
=no
24463 rm -f core conftest.err conftest.
$ac_objext \
24464 conftest
$ac_exeext conftest.
$ac_ext
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24467 $as_echo "$gl_cv_sig_pselect" >&6; }
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24470 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24471 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24475 if test "$cross_compiling" = yes; then :
24478 # Guess yes on glibc systems.
24479 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24480 # If we don't know, assume the worst.
24481 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24488 #include <sys/types.h>
24489 #include <sys/time.h>
24490 #if HAVE_SYS_SELECT_H
24491 # include <sys/select.h>
24493 #include <unistd.h>
24505 struct timespec timeout;
24506 timeout.tv_sec = 0;
24507 timeout.tv_nsec = 5000;
24508 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24514 if ac_fn_c_try_run
"$LINENO"; then :
24515 gl_cv_func_pselect_detects_ebadf
=yes
24517 gl_cv_func_pselect_detects_ebadf
=no
24519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24526 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24527 case $gl_cv_func_pselect_detects_ebadf in
24529 *) REPLACE_PSELECT
=1 ;;
24533 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24537 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24546 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24564 LIB_PTHREAD_SIGMASK
=
24569 if test "$gl_threads_api" = posix
; then
24570 if test $ac_cv_func_pthread_sigmask = yes; then
24573 if test -n "$LIBMULTITHREAD"; then
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24575 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24576 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24579 gl_save_LIBS
="$LIBS"
24580 LIBS
="$LIBS $LIBMULTITHREAD"
24581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24582 /* end confdefs.h. */
24583 #include <pthread.h>
24584 #include <signal.h>
24589 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24595 if ac_fn_c_try_link
"$LINENO"; then :
24596 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24598 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24600 rm -f core conftest.err conftest.
$ac_objext \
24601 conftest
$ac_exeext conftest.
$ac_ext
24602 LIBS
="$gl_save_LIBS"
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24606 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24607 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24608 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24610 HAVE_PTHREAD_SIGMASK
=0
24613 HAVE_PTHREAD_SIGMASK
=0
24617 if test $ac_cv_func_pthread_sigmask = yes; then
24618 REPLACE_PTHREAD_SIGMASK
=1
24620 HAVE_PTHREAD_SIGMASK
=0
24627 if test $HAVE_PTHREAD_SIGMASK = 1; then
24630 if test -z "$LIB_PTHREAD_SIGMASK"; then
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24632 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24633 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24637 if test "$cross_compiling" = yes; then :
24640 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24641 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24643 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24650 #include <pthread.h>
24651 #include <signal.h>
24652 #include <stddef.h>
24656 sigemptyset (&set);
24657 return pthread_sigmask (1729, &set, NULL) != 0;
24660 if ac_fn_c_try_run
"$LINENO"; then :
24661 gl_cv_func_pthread_sigmask_in_libc_works
=no
24663 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24672 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24673 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24675 REPLACE_PTHREAD_SIGMASK
=1
24677 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24684 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24685 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24689 gl_save_LIBS
="$LIBS"
24690 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24691 if test "$cross_compiling" = yes; then :
24694 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24696 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24701 /* end confdefs.h. */
24703 #include <pthread.h>
24704 #include <signal.h>
24705 #include <stddef.h>
24709 sigemptyset (&set);
24710 if (pthread_sigmask (1729, &set, NULL) == -1)
24715 if ac_fn_c_try_run
"$LINENO"; then :
24716 gl_cv_func_pthread_sigmask_return_works
=yes
24718 gl_cv_func_pthread_sigmask_return_works
=no
24720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24724 LIBS
="$gl_save_LIBS"
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24728 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24729 case "$gl_cv_func_pthread_sigmask_return_works" in
24731 REPLACE_PTHREAD_SIGMASK
=1
24733 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24739 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24740 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24746 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24748 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24750 gl_save_LIBS
="$LIBS"
24751 LIBS
="$LIBS $LIBMULTITHREAD"
24752 if test "$cross_compiling" = yes; then :
24755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24756 /* end confdefs.h. */
24758 #include <pthread.h>
24759 #include <signal.h>
24761 #include <stdlib.h>
24762 #include <unistd.h>
24763 static volatile int sigint_occurred;
24765 sigint_handler (int sig)
24772 int pid = getpid ();
24774 signal (SIGINT, sigint_handler);
24775 sigemptyset (&set);
24776 sigaddset (&set, SIGINT);
24777 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24779 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24780 if (!(system (command) == 0))
24783 if (!(sigint_occurred == 0))
24785 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24787 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24792 if ac_fn_c_try_run
"$LINENO"; then :
24795 gl_cv_func_pthread_sigmask_unblock_works
=no
24797 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24798 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24801 LIBS
="$gl_save_LIBS"
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24805 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24806 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24808 REPLACE_PTHREAD_SIGMASK
=1
24810 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24816 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24825 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24828 if test $HAVE_PTHREAD_SIGMASK = 1; then
24830 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24840 GNULIB_PTHREAD_SIGMASK
=1
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24849 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24850 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24853 if test "$cross_compiling" = yes; then :
24855 # Guess yes on glibc systems.
24856 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24857 # If we don't know, assume the worst.
24858 *) gl_cv_func_svid_putenv
="guessing no" ;;
24862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24864 $ac_includes_default
24869 /* Put it in env. */
24870 if (putenv ("CONFTEST_putenv=val"))
24873 /* Try to remove it. */
24874 if (putenv ("CONFTEST_putenv"))
24877 /* Make sure it was deleted. */
24878 if (getenv ("CONFTEST_putenv") != 0)
24887 if ac_fn_c_try_run
"$LINENO"; then :
24888 gl_cv_func_svid_putenv
=yes
24890 gl_cv_func_svid_putenv
=no
24892 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24893 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24899 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24900 case "$gl_cv_func_svid_putenv" in
24907 if test $REPLACE_PUTENV = 1; then
24916 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
24919 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24920 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
24926 cat >>confdefs.h
<<_ACEOF
24927 #define HAVE_DECL__PUTENV $ac_have_decl
24944 # Check whether --enable-acl was given.
24945 if test "${enable_acl+set}" = set; then :
24946 enableval
=$enable_acl;
24954 if test "x$enable_acl" != "xno"; then
24955 for ac_header
in sys
/acl.h
24957 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24958 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
24959 cat >>confdefs.h
<<_ACEOF
24960 #define HAVE_SYS_ACL_H 1
24967 if test $ac_cv_header_sys_acl_h = yes; then
24970 if test $use_acl = 0; then
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24972 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24973 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24976 ac_func_search_save_LIBS
=$LIBS
24977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h. */
24980 /* Override any GCC internal prototype to avoid an error.
24981 Use char because int might match the return type of a GCC
24982 builtin and then its argument prototype would still apply. */
24986 char acl_get_file ();
24990 return acl_get_file ();
24995 for ac_lib
in '' acl pacl
; do
24996 if test -z "$ac_lib"; then
24997 ac_res
="none required"
25000 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25002 if ac_fn_c_try_link
"$LINENO"; then :
25003 ac_cv_search_acl_get_file
=$ac_res
25005 rm -f core conftest.err conftest.
$ac_objext \
25007 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25011 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25014 ac_cv_search_acl_get_file
=no
25016 rm conftest.
$ac_ext
25017 LIBS
=$ac_func_search_save_LIBS
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25020 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25021 ac_res
=$ac_cv_search_acl_get_file
25022 if test "$ac_res" != no
; then :
25023 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25024 if test "$ac_cv_search_acl_get_file" != "none required"; then
25025 LIB_ACL
=$ac_cv_search_acl_get_file
25027 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25028 acl_free acl_from_mode acl_from_text \
25029 acl_delete_def_file acl_extended_file \
25030 acl_delete_fd_np acl_delete_file_np \
25031 acl_copy_ext_native acl_create_entry_np \
25032 acl_to_short_text acl_free_text
25034 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25035 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25036 eval as_val
=\$
$as_ac_var
25037 if test "x$as_val" = x
""yes; then :
25038 cat >>confdefs.h
<<_ACEOF
25039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25045 # If the acl_get_file bug is detected, don't enable the ACL support.
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25048 $as_echo_n "checking for working acl_get_file... " >&6; }
25049 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25052 if test "$cross_compiling" = yes; then :
25053 gl_cv_func_working_acl_get_file
=cross-compiling
25055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25057 #include <sys/types.h>
25058 #include <sys/acl.h>
25064 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25072 if ac_fn_c_try_run
"$LINENO"; then :
25073 gl_cv_func_working_acl_get_file
=yes
25075 gl_cv_func_working_acl_get_file
=no
25077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25083 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25085 if test $gl_cv_func_working_acl_get_file = yes; then :
25089 if test $use_acl = 1; then
25090 for ac_header
in acl
/libacl.h
25092 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25093 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25094 cat >>confdefs.h
<<_ACEOF
25095 #define HAVE_ACL_LIBACL_H 1
25110 for ac_func
in acl_entries
25112 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25113 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25114 cat >>confdefs.h
<<_ACEOF
25115 #define HAVE_ACL_ENTRIES 1
25120 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25127 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25128 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25129 $as_echo_n "(cached) " >&6
25131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25132 /* end confdefs.h. */
25133 #include <sys/types.h>
25134 #include <sys/acl.h>
25135 int type = ACL_FIRST_ENTRY;
25144 if ac_fn_c_try_compile
"$LINENO"; then :
25145 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25147 gl_cv_acl_ACL_FIRST_ENTRY
=no
25149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25152 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25153 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25155 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25159 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25160 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25161 $as_echo_n "(cached) " >&6
25163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25165 #include <sys/types.h>
25166 #include <sys/acl.h>
25167 int type = ACL_TYPE_EXTENDED;
25176 if ac_fn_c_try_compile
"$LINENO"; then :
25177 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25179 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25184 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25185 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25187 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25198 if test $use_acl = 0; then
25199 for ac_func
in facl
25201 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25202 if test "x$ac_cv_func_facl" = x
""yes; then :
25203 cat >>confdefs.h
<<_ACEOF
25204 #define HAVE_FACL 1
25210 if test $ac_cv_func_facl = yes; then
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25212 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25213 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25216 ac_func_search_save_LIBS
=$LIBS
25217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25220 /* Override any GCC internal prototype to avoid an error.
25221 Use char because int might match the return type of a GCC
25222 builtin and then its argument prototype would still apply. */
25226 char acl_trivial ();
25230 return acl_trivial ();
25235 for ac_lib
in '' sec
; do
25236 if test -z "$ac_lib"; then
25237 ac_res
="none required"
25240 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25242 if ac_fn_c_try_link
"$LINENO"; then :
25243 ac_cv_search_acl_trivial
=$ac_res
25245 rm -f core conftest.err conftest.
$ac_objext \
25247 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25251 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25254 ac_cv_search_acl_trivial
=no
25256 rm conftest.
$ac_ext
25257 LIBS
=$ac_func_search_save_LIBS
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25260 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25261 ac_res
=$ac_cv_search_acl_trivial
25262 if test "$ac_res" != no
; then :
25263 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25264 if test "$ac_cv_search_acl_trivial" != "none required"; then
25265 LIB_ACL
=$ac_cv_search_acl_trivial
25270 for ac_func
in acl_trivial
25272 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25273 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25274 cat >>confdefs.h
<<_ACEOF
25275 #define HAVE_ACL_TRIVIAL 1
25285 if test $use_acl = 0; then
25286 for ac_func
in getacl
25288 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25289 if test "x$ac_cv_func_getacl" = x
""yes; then :
25290 cat >>confdefs.h
<<_ACEOF
25291 #define HAVE_GETACL 1
25297 if test $ac_cv_func_getacl = yes; then
25300 for ac_header
in aclv.h
25302 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25304 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25305 cat >>confdefs.h
<<_ACEOF
25306 #define HAVE_ACLV_H 1
25315 if test $use_acl = 0; then
25316 for ac_func
in aclx_get
25318 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25319 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25320 cat >>confdefs.h
<<_ACEOF
25321 #define HAVE_ACLX_GET 1
25327 if test $ac_cv_func_aclx_get = yes; then
25332 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25333 for ac_func
in statacl
25335 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25336 if test "x$ac_cv_func_statacl" = x
""yes; then :
25337 cat >>confdefs.h
<<_ACEOF
25338 #define HAVE_STATACL 1
25344 if test $ac_cv_func_statacl = yes; then
25349 if test $use_acl = 0; then
25350 for ac_func
in aclsort
25352 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25353 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25354 cat >>confdefs.h
<<_ACEOF
25355 #define HAVE_ACLSORT 1
25361 if test $ac_cv_func_aclsort = yes; then
25368 if test "x$enable_acl$use_acl" = "xyes0"; then
25369 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25370 elif test "x$enable_acl$use_acl" = "xauto0"; then
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25372 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25374 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25379 cat >>confdefs.h
<<_ACEOF
25380 #define USE_ACL $use_acl
25389 if test $ac_cv_func_readlink = no
; then
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25393 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25394 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25398 /* end confdefs.h. */
25399 #include <unistd.h>
25400 /* Cause compilation failure if original declaration has wrong type. */
25401 ssize_t readlink (const char *, char *, size_t);
25410 if ac_fn_c_try_compile
"$LINENO"; then :
25411 gl_cv_decl_readlink_works
=yes
25413 gl_cv_decl_readlink_works
=no
25415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25418 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25420 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25421 if test "${gl_cv_func_readlink_works+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25424 # We have readlink, so assume ln -s works.
25425 ln -s conftest.no-such conftest.link
25426 ln -s conftest.link conftest.lnk2
25427 if test "$cross_compiling" = yes; then :
25429 # Guess yes on glibc systems.
25430 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25431 # If we don't know, assume the worst.
25432 *) gl_cv_func_readlink_works
="guessing no" ;;
25436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25437 /* end confdefs.h. */
25438 #include <unistd.h>
25444 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25449 if ac_fn_c_try_run
"$LINENO"; then :
25450 gl_cv_func_readlink_works
=yes
25452 gl_cv_func_readlink_works
=no
25454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25458 rm -f conftest.link conftest.lnk2
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25461 $as_echo "$gl_cv_func_readlink_works" >&6; }
25462 case "$gl_cv_func_readlink_works" in
25464 if test "$gl_cv_decl_readlink_works" != yes; then
25470 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25477 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25486 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25507 if test $ac_cv_func_readlinkat = no
; then
25511 if test $HAVE_READLINKAT = 0; then
25520 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25528 GNULIB_READLINKAT
=1
25535 for ac_func
in sig2str
25537 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25538 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25539 cat >>confdefs.h
<<_ACEOF
25540 #define HAVE_SIG2STR 1
25547 if test $ac_cv_func_sig2str = no
; then
25556 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25573 if test $gl_cv_have_include_next = yes; then
25574 gl_cv_next_signal_h
='<'signal.h
'>'
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25577 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25578 if test "${gl_cv_next_signal_h+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
25582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25584 #include <signal.h>
25588 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25589 *) gl_absname_cpp
="$ac_cpp" ;;
25594 gl_dirsep_regex
='[/\\]'
25597 gl_dirsep_regex
='\/'
25600 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25602 gl_header_literal_regex
=`echo 'signal.h' \
25603 | sed -e "$gl_make_literal_regex_sed"`
25604 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25610 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25611 sed -n "$gl_absolute_header_sed"`'"'
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25616 $as_echo "$gl_cv_next_signal_h" >&6; }
25618 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25620 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25622 gl_next_as_first_directive
='<'signal.h
'>'
25624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25625 gl_next_as_first_directive
=$gl_cv_next_signal_h
25627 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25633 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25634 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25635 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25636 #include <signal.h>
25639 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25642 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25651 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25652 #include <signal.h>
25655 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25658 HAVE_SIGHANDLER_T
=0
25664 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25665 /* <sys/types.h> is not needed according to POSIX, but the
25666 <sys/socket.h> in i386-unknown-freebsd4.10 and
25667 powerpc-apple-darwin5.5 required it. */
25668 #include <sys/types.h>
25669 #if HAVE_SYS_SOCKET_H
25670 # include <sys/socket.h>
25671 #elif HAVE_WS2TCPIP_H
25672 # include <ws2tcpip.h>
25676 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25680 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25681 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25684 # Systems have either "struct sockaddr *" or
25685 # "void *" as the second argument to getpeername
25686 gl_cv_socklen_t_equiv
=
25687 for arg2
in "struct sockaddr" void
; do
25688 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25691 #include <sys/types.h>
25692 #include <sys/socket.h>
25694 int getpeername (int, $arg2 *, $t *);
25699 getpeername (0, 0, &len);
25704 if ac_fn_c_try_compile
"$LINENO"; then :
25705 gl_cv_socklen_t_equiv
="$t"
25707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25708 test "$gl_cv_socklen_t_equiv" != "" && break
25710 test "$gl_cv_socklen_t_equiv" != "" && break
25715 if test "$gl_cv_socklen_t_equiv" = ""; then
25716 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25719 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25721 cat >>confdefs.h
<<_ACEOF
25722 #define socklen_t $gl_cv_socklen_t_equiv
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25729 $as_echo_n "checking for ssize_t... " >&6; }
25730 if test "${gt_cv_ssize_t+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h. */
25735 #include <sys/types.h>
25739 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25745 if ac_fn_c_try_compile
"$LINENO"; then :
25750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25753 $as_echo "$gt_cv_ssize_t" >&6; }
25754 if test $gt_cv_ssize_t = no
; then
25756 $as_echo "#define ssize_t int" >>confdefs.h
25764 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>
25765 #include <sys/stat.h>
25767 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25769 cat >>confdefs.h
<<_ACEOF
25770 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25774 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25775 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25779 /* end confdefs.h. */
25781 #include <sys/types.h>
25782 #include <sys/stat.h>
25783 #if HAVE_SYS_TIME_H
25784 # include <sys/time.h>
25787 struct timespec ts;
25800 if ac_fn_c_try_compile
"$LINENO"; then :
25801 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25803 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25808 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25809 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25811 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25815 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>
25816 #include <sys/stat.h>
25818 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25820 cat >>confdefs.h
<<_ACEOF
25821 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25826 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25827 #include <sys/stat.h>
25829 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25831 cat >>confdefs.h
<<_ACEOF
25832 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25837 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>
25838 #include <sys/stat.h>
25840 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25842 cat >>confdefs.h
<<_ACEOF
25843 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25859 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>
25860 #include <sys/stat.h>
25862 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
25864 cat >>confdefs.h
<<_ACEOF
25865 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25870 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25871 #include <sys/stat.h>
25873 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
25875 cat >>confdefs.h
<<_ACEOF
25876 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25881 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>
25882 #include <sys/stat.h>
25884 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
25886 cat >>confdefs.h
<<_ACEOF
25887 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25900 $as_echo_n "checking for working stdalign.h... " >&6; }
25901 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h. */
25906 #include <stdalign.h>
25907 #include <stddef.h>
25909 /* Test that alignof yields a result consistent with offsetof.
25910 This catches GCC bug 52023
25911 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25913 template <class t> struct alignof_helper { char a; t b; };
25914 # define ao(type) offsetof (alignof_helper<type>, b)
25916 # define ao(type) offsetof (struct { char a; type b; }, b)
25918 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25919 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25920 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25922 /* Test _Alignas only on platforms where gnulib can help. */
25924 ((defined __cplusplus && 201103 <= __cplusplus) \
25925 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
25926 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25927 struct alignas_test { char c; char alignas (8) alignas_8; };
25928 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25940 if ac_fn_c_try_compile
"$LINENO"; then :
25941 gl_cv_header_working_stdalign_h
=yes
25943 gl_cv_header_working_stdalign_h
=no
25945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25948 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25950 if test $gl_cv_header_working_stdalign_h = yes; then
25953 STDALIGN_H
='stdalign.h'
25957 if test -n "$STDALIGN_H"; then
25958 GL_GENERATE_STDALIGN_H_TRUE
=
25959 GL_GENERATE_STDALIGN_H_FALSE
='#'
25961 GL_GENERATE_STDALIGN_H_TRUE
='#'
25962 GL_GENERATE_STDALIGN_H_FALSE
=
25968 NEXT_STDARG_H
='<stdarg.h>'
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25970 $as_echo_n "checking for va_copy... " >&6; }
25971 if test "${gl_cv_func_va_copy+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25977 #include <stdarg.h>
25983 void (*func) (va_list, va_list) = va_copy;
25990 if ac_fn_c_try_compile
"$LINENO"; then :
25991 gl_cv_func_va_copy
=yes
25993 gl_cv_func_va_copy
=no
25995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25999 $as_echo "$gl_cv_func_va_copy" >&6; }
26000 if test $gl_cv_func_va_copy = no
; then
26001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h. */
26003 #if defined _AIX && !defined __GNUC__
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009 $EGREP "vaccine" >/dev
/null
2>&1; then :
26016 if test $gl_aixcc = yes; then
26026 if test $gl_cv_have_include_next = yes; then
26027 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26030 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26031 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26037 #include <stdarg.h>
26041 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26042 *) gl_absname_cpp
="$ac_cpp" ;;
26047 gl_dirsep_regex
='[/\\]'
26050 gl_dirsep_regex
='\/'
26053 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26055 gl_header_literal_regex
=`echo 'stdarg.h' \
26056 | sed -e "$gl_make_literal_regex_sed"`
26057 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26063 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26064 sed -n "$gl_absolute_header_sed"`'"'
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26069 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26071 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
26073 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26075 gl_next_as_first_directive
='<'stdarg.h
'>'
26077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26078 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
26080 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
26085 if test "$gl_cv_next_stdarg_h" = '""'; then
26086 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
26087 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26091 saved_as_echo_n
="$as_echo_n"
26093 if test "${gl_cv_func___va_copy+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26099 #include <stdarg.h>
26112 if ac_fn_c_try_compile
"$LINENO"; then :
26113 gl_cv_func___va_copy
=yes
26115 gl_cv_func___va_copy
=no
26117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26120 as_echo_n
="$saved_as_echo_n"
26122 if test $gl_cv_func___va_copy = yes; then
26124 $as_echo "#define va_copy __va_copy" >>confdefs.h
26129 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26135 if test -n "$STDARG_H"; then
26136 GL_GENERATE_STDARG_H_TRUE
=
26137 GL_GENERATE_STDARG_H_FALSE
='#'
26139 GL_GENERATE_STDARG_H_TRUE
='#'
26140 GL_GENERATE_STDARG_H_FALSE
=
26148 # Define two additional variables used in the Makefile substitution.
26150 if test "$ac_cv_header_stdbool_h" = yes; then
26153 STDBOOL_H
='stdbool.h'
26156 if test -n "$STDBOOL_H"; then
26157 GL_GENERATE_STDBOOL_H_TRUE
=
26158 GL_GENERATE_STDBOOL_H_FALSE
='#'
26160 GL_GENERATE_STDBOOL_H_TRUE
='#'
26161 GL_GENERATE_STDBOOL_H_FALSE
=
26165 if test "$ac_cv_type__Bool" = yes; then
26176 if test $gt_cv_c_wchar_t = no
; then
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26181 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26182 if test "${gl_cv_decl_null_works+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h. */
26187 #include <stddef.h>
26188 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26198 if ac_fn_c_try_compile
"$LINENO"; then :
26199 gl_cv_decl_null_works
=yes
26201 gl_cv_decl_null_works
=no
26203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26206 $as_echo "$gl_cv_decl_null_works" >&6; }
26207 if test $gl_cv_decl_null_works = no
; then
26212 if test -n "$STDDEF_H"; then
26213 GL_GENERATE_STDDEF_H_TRUE
=
26214 GL_GENERATE_STDDEF_H_FALSE
='#'
26216 GL_GENERATE_STDDEF_H_TRUE
='#'
26217 GL_GENERATE_STDDEF_H_FALSE
=
26220 if test -n "$STDDEF_H"; then
26229 if test $gl_cv_have_include_next = yes; then
26230 gl_cv_next_stddef_h
='<'stddef.h
'>'
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26234 if test "${gl_cv_next_stddef_h+set}" = set; then :
26235 $as_echo_n "(cached) " >&6
26238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h. */
26240 #include <stddef.h>
26244 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26245 *) gl_absname_cpp
="$ac_cpp" ;;
26250 gl_dirsep_regex
='[/\\]'
26253 gl_dirsep_regex
='\/'
26256 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26258 gl_header_literal_regex
=`echo 'stddef.h' \
26259 | sed -e "$gl_make_literal_regex_sed"`
26260 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26266 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26267 sed -n "$gl_absolute_header_sed"`'"'
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26272 $as_echo "$gl_cv_next_stddef_h" >&6; }
26274 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26276 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26278 gl_next_as_first_directive
='<'stddef.h
'>'
26280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26281 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26283 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26301 if test $gl_cv_have_include_next = yes; then
26302 gl_cv_next_stdio_h
='<'stdio.h
'>'
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26305 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26306 if test "${gl_cv_next_stdio_h+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26311 /* end confdefs.h. */
26316 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26317 *) gl_absname_cpp
="$ac_cpp" ;;
26322 gl_dirsep_regex
='[/\\]'
26325 gl_dirsep_regex
='\/'
26328 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26330 gl_header_literal_regex
=`echo 'stdio.h' \
26331 | sed -e "$gl_make_literal_regex_sed"`
26332 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26333 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26338 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26339 sed -n "$gl_absolute_header_sed"`'"'
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26344 $as_echo "$gl_cv_next_stdio_h" >&6; }
26346 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26348 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26350 gl_next_as_first_directive
='<'stdio.h
'>'
26352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26353 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26355 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26364 cat >>confdefs.h
<<_ACEOF
26365 #define GNULIB_FSCANF 1
26372 cat >>confdefs.h
<<_ACEOF
26373 #define GNULIB_SCANF 1
26409 if test $gl_cv_have_include_next = yes; then
26410 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26413 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26414 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26419 /* end confdefs.h. */
26420 #include <stdlib.h>
26424 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26425 *) gl_absname_cpp
="$ac_cpp" ;;
26430 gl_dirsep_regex
='[/\\]'
26433 gl_dirsep_regex
='\/'
26436 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26438 gl_header_literal_regex
=`echo 'stdlib.h' \
26439 | sed -e "$gl_make_literal_regex_sed"`
26440 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26441 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26446 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26447 sed -n "$gl_absolute_header_sed"`'"'
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26452 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26454 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26456 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26458 gl_next_as_first_directive
='<'stdlib.h
'>'
26460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26461 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26463 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26473 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26481 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26493 if test "$ac_cv_have_decl_strtoimax" != yes; then
26494 HAVE_DECL_STRTOIMAX
=0
26497 if test $ac_cv_func_strtoimax = yes; then
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26500 $as_echo_n "checking whether strtoimax works... " >&6; }
26501 if test "${gl_cv_func_strtoimax+set}" = set; then :
26502 $as_echo_n "(cached) " >&6
26504 if test "$cross_compiling" = yes; then :
26506 # Guess no on AIX 5.
26507 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26508 # Guess yes otherwise.
26509 *) gl_cv_func_strtoimax
="guessing yes" ;;
26513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26514 /* end confdefs.h. */
26517 #include <string.h>
26518 #include <inttypes.h>
26521 if (sizeof (intmax_t) > sizeof (int))
26523 const char *s = "4294967295";
26527 res = strtoimax (s, &p, 10);
26528 if (p != s + strlen (s))
26532 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26537 const char *s = "2147483647";
26541 res = strtoimax (s, &p, 10);
26542 if (p != s + strlen (s))
26546 if (res != 2147483647)
26553 if ac_fn_c_try_run
"$LINENO"; then :
26554 gl_cv_func_strtoimax
=yes
26556 gl_cv_func_strtoimax
=no
26558 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26559 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26565 $as_echo "$gl_cv_func_strtoimax" >&6; }
26566 case "$gl_cv_func_strtoimax" in
26567 *no
) REPLACE_STRTOIMAX
=1 ;;
26573 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26582 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26585 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26586 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26592 cat >>confdefs.h
<<_ACEOF
26593 #define HAVE_DECL_STRTOLL $ac_have_decl
26614 if test "$ac_cv_have_decl_strtoumax" != yes; then
26615 HAVE_DECL_STRTOUMAX
=0
26618 if test $ac_cv_func_strtoumax = no
; then
26627 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26630 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26631 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26637 cat >>confdefs.h
<<_ACEOF
26638 #define HAVE_DECL_STRTOULL $ac_have_decl
26657 if test $ac_cv_func_symlink = no
; then
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26661 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26662 if test "${gl_cv_func_symlink_works+set}" = set; then :
26663 $as_echo_n "(cached) " >&6
26665 if test "$cross_compiling" = yes; then :
26667 # Guess yes on glibc systems.
26668 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26669 # If we don't know, assume the worst.
26670 *) gl_cv_func_symlink_works
="guessing no" ;;
26674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26676 #include <unistd.h>
26682 if (!symlink ("a", "conftest.link/"))
26684 if (symlink ("conftest.f", "conftest.lnk2"))
26686 else if (!symlink ("a", "conftest.lnk2/"))
26694 if ac_fn_c_try_run
"$LINENO"; then :
26695 gl_cv_func_symlink_works
=yes
26697 gl_cv_func_symlink_works
=no
26699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26703 rm -f conftest.f conftest.link conftest.lnk2
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26706 $as_echo "$gl_cv_func_symlink_works" >&6; }
26707 case "$gl_cv_func_symlink_works" in
26715 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26724 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26742 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26743 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26744 $as_echo_n "(cached) " >&6
26747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h. */
26749 #include <sys/select.h>
26758 if ac_fn_c_try_compile
"$LINENO"; then :
26759 gl_cv_header_sys_select_h_selfcontained
=yes
26761 gl_cv_header_sys_select_h_selfcontained
=no
26763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26764 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26766 /* end confdefs.h. */
26767 #include <sys/select.h>
26771 int memset; int bzero;
26777 if ac_fn_c_try_compile
"$LINENO"; then :
26778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h. */
26780 #include <sys/select.h>
26786 #define memset nonexistent_memset
26791 void *memset (void *, int, unsigned long);
26793 #define bzero nonexistent_bzero
26798 void bzero (void *, unsigned long);
26807 if ac_fn_c_try_link
"$LINENO"; then :
26810 gl_cv_header_sys_select_h_selfcontained
=no
26812 rm -f core conftest.err conftest.
$ac_objext \
26813 conftest
$ac_exeext conftest.
$ac_ext
26816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26821 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26831 if test $gl_cv_have_include_next = yes; then
26832 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26835 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26836 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26837 $as_echo_n "(cached) " >&6
26840 if test $ac_cv_header_sys_select_h = yes; then
26843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h. */
26845 #include <sys/select.h>
26849 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26850 *) gl_absname_cpp
="$ac_cpp" ;;
26855 gl_dirsep_regex
='[/\\]'
26858 gl_dirsep_regex
='\/'
26861 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26863 gl_header_literal_regex
=`echo 'sys/select.h' \
26864 | sed -e "$gl_make_literal_regex_sed"`
26865 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26866 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26871 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26872 sed -n "$gl_absolute_header_sed"`'"'
26874 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26880 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26882 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
26884 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26886 gl_next_as_first_directive
='<'sys
/select.h
'>'
26888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26889 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
26891 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
26896 if test $ac_cv_header_sys_select_h = yes; then
26897 HAVE_SYS_SELECT_H
=1
26899 HAVE_SYS_SELECT_H
=0
26906 if test $ac_cv_header_sys_socket_h != yes; then
26907 for ac_header
in winsock2.h
26909 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26910 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
26911 cat >>confdefs.h
<<_ACEOF
26912 #define HAVE_WINSOCK2_H 1
26920 if test "$ac_cv_header_winsock2_h" = yes; then
26922 UNISTD_H_HAVE_WINSOCK2_H
=1
26923 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26947 if test $gl_cv_have_include_next = yes; then
26948 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26951 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26952 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26953 $as_echo_n "(cached) " >&6
26956 if test $ac_cv_header_sys_stat_h = yes; then
26959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h. */
26961 #include <sys/stat.h>
26965 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26966 *) gl_absname_cpp
="$ac_cpp" ;;
26971 gl_dirsep_regex
='[/\\]'
26974 gl_dirsep_regex
='\/'
26977 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26979 gl_header_literal_regex
=`echo 'sys/stat.h' \
26980 | sed -e "$gl_make_literal_regex_sed"`
26981 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26982 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26987 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26988 sed -n "$gl_absolute_header_sed"`'"'
26990 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26996 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26998 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27000 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27002 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27005 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27007 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27019 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27021 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27025 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27026 #include <sys/stat.h>
27028 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
27032 $as_echo "#define nlink_t int" >>confdefs.h
27053 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27055 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
27061 cat >>confdefs.h
<<_ACEOF
27062 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27065 if test $ac_cv_have_decl_localtime_r = no
; then
27066 HAVE_DECL_LOCALTIME_R
=0
27070 if test $ac_cv_func_localtime_r = yes; then
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27073 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27074 if test "${gl_cv_time_r_posix+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27083 /* We don't need to append 'restrict's to the argument types,
27084 even though the POSIX signature has the 'restrict's,
27085 since C99 says they can't affect type compatibility. */
27086 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27088 /* Check the return type is a pointer.
27089 On HP-UX 10 it is 'int'. */
27090 *localtime_r (0, 0);
27096 if ac_fn_c_try_compile
"$LINENO"; then :
27097 gl_cv_time_r_posix
=yes
27099 gl_cv_time_r_posix
=no
27101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27105 $as_echo "$gl_cv_time_r_posix" >&6; }
27106 if test $gl_cv_time_r_posix = yes; then
27107 REPLACE_LOCALTIME_R
=0
27109 REPLACE_LOCALTIME_R
=1
27115 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27124 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27148 gl_saved_libs
=$LIBS
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27150 $as_echo_n "checking for library containing timer_settime... " >&6; }
27151 if test "${ac_cv_search_timer_settime+set}" = set; then :
27152 $as_echo_n "(cached) " >&6
27154 ac_func_search_save_LIBS
=$LIBS
27155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27156 /* end confdefs.h. */
27158 /* Override any GCC internal prototype to avoid an error.
27159 Use char because int might match the return type of a GCC
27160 builtin and then its argument prototype would still apply. */
27164 char timer_settime ();
27168 return timer_settime ();
27173 for ac_lib
in '' rt posix4
; do
27174 if test -z "$ac_lib"; then
27175 ac_res
="none required"
27178 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27180 if ac_fn_c_try_link
"$LINENO"; then :
27181 ac_cv_search_timer_settime
=$ac_res
27183 rm -f core conftest.err conftest.
$ac_objext \
27185 if test "${ac_cv_search_timer_settime+set}" = set; then :
27189 if test "${ac_cv_search_timer_settime+set}" = set; then :
27192 ac_cv_search_timer_settime
=no
27194 rm conftest.
$ac_ext
27195 LIBS
=$ac_func_search_save_LIBS
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27198 $as_echo "$ac_cv_search_timer_settime" >&6; }
27199 ac_res
=$ac_cv_search_timer_settime
27200 if test "$ac_res" != no
; then :
27201 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27202 test "$ac_cv_search_timer_settime" = "none required" ||
27203 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27209 #include <features.h>
27210 #ifdef __GNU_LIBRARY__
27211 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27212 && !defined __UCLIBC__
27213 Thread emulation available
27218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27219 $EGREP "Thread" >/dev
/null
2>&1; then :
27220 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27224 for ac_func
in timer_settime
27226 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27227 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27228 cat >>confdefs.h
<<_ACEOF
27229 #define HAVE_TIMER_SETTIME 1
27235 LIBS
=$gl_saved_libs
27250 if test $gl_cv_have_include_next = yes; then
27251 gl_cv_next_unistd_h
='<'unistd.h
'>'
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27254 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27255 if test "${gl_cv_next_unistd_h+set}" = set; then :
27256 $as_echo_n "(cached) " >&6
27259 if test $ac_cv_header_unistd_h = yes; then
27262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27263 /* end confdefs.h. */
27264 #include <unistd.h>
27268 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27269 *) gl_absname_cpp
="$ac_cpp" ;;
27274 gl_dirsep_regex
='[/\\]'
27277 gl_dirsep_regex
='\/'
27280 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27282 gl_header_literal_regex
=`echo 'unistd.h' \
27283 | sed -e "$gl_make_literal_regex_sed"`
27284 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27290 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27291 sed -n "$gl_absolute_header_sed"`'"'
27293 gl_cv_next_unistd_h
='<'unistd.h
'>'
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27299 $as_echo "$gl_cv_next_unistd_h" >&6; }
27301 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27303 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27305 gl_next_as_first_directive
='<'unistd.h
'>'
27307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27308 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27310 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27315 if test $ac_cv_header_unistd_h = yes; then
27331 if test $ac_cv_have_decl_unsetenv = no
; then
27332 HAVE_DECL_UNSETENV
=0
27334 for ac_func
in unsetenv
27336 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27337 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27338 cat >>confdefs.h
<<_ACEOF
27339 #define HAVE_UNSETENV 1
27345 if test $ac_cv_func_unsetenv = no
; then
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27350 $as_echo_n "checking for unsetenv() return type... " >&6; }
27351 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27352 $as_echo_n "(cached) " >&6
27354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27355 /* end confdefs.h. */
27358 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27359 #include <stdlib.h>
27364 int unsetenv (const char *name);
27374 if ac_fn_c_try_compile
"$LINENO"; then :
27375 gt_cv_func_unsetenv_ret
='int'
27377 gt_cv_func_unsetenv_ret
='void'
27379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27382 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27383 if test $gt_cv_func_unsetenv_ret = 'void'; then
27385 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27391 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27392 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27393 $as_echo_n "(cached) " >&6
27395 if test "$cross_compiling" = yes; then :
27397 # Guess yes on glibc systems.
27398 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27399 # If we don't know, assume the worst.
27400 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27405 /* end confdefs.h. */
27407 #include <stdlib.h>
27409 extern char **environ;
27415 char entry1[] = "a=1";
27416 char entry2[] = "b=2";
27417 char *env[] = { entry1, entry2, NULL };
27418 if (putenv ((char *) "a=1")) return 1;
27419 if (putenv (entry2)) return 2;
27422 if (getenv ("a")) return 3;
27423 if (!unsetenv ("") || errno != EINVAL) return 4;
27426 if (!getenv ("a")) return 5;
27429 if (getenv ("a")) return 6;
27435 if ac_fn_c_try_run
"$LINENO"; then :
27436 gl_cv_func_unsetenv_works
=yes
27438 gl_cv_func_unsetenv_works
=no
27440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27446 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27447 case "$gl_cv_func_unsetenv_works" in
27455 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27464 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27488 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27490 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27491 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27492 $as_echo_n "(cached) " >&6
27494 touch conftest.
file
27495 if test "$cross_compiling" = yes; then :
27497 # Guess yes on glibc systems.
27498 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27499 # If we don't know, assume the worst.
27500 *) gl_cv_func_futimesat_works
="guessing no" ;;
27504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27505 /* end confdefs.h. */
27507 #include <stddef.h>
27508 #include <sys/times.h>
27514 int fd = open ("conftest.file", O_RDWR);
27515 if (fd < 0) return 1;
27516 if (futimesat (fd, NULL, NULL)) return 2;
27522 if ac_fn_c_try_run
"$LINENO"; then :
27523 gl_cv_func_futimesat_works
=yes
27525 gl_cv_func_futimesat_works
=no
27527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27531 rm -f conftest.
file
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27534 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27535 case "$gl_cv_func_futimesat_works" in
27539 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27545 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27546 gl_gnulib_enabled_dosname
=false
27547 gl_gnulib_enabled_euidaccess
=false
27548 gl_gnulib_enabled_getdtablesize
=false
27549 gl_gnulib_enabled_getgroups
=false
27550 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27551 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27552 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27553 gl_gnulib_enabled_pathmax
=false
27554 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27555 gl_gnulib_enabled_secure_getenv
=false
27556 gl_gnulib_enabled_stat
=false
27557 gl_gnulib_enabled_strtoll
=false
27558 gl_gnulib_enabled_strtoull
=false
27559 gl_gnulib_enabled_tempname
=false
27560 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27561 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27563 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27572 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27574 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27577 func_gl_gnulib_m4code_dosname
()
27579 if ! $gl_gnulib_enabled_dosname; then
27580 gl_gnulib_enabled_dosname
=true
27583 func_gl_gnulib_m4code_euidaccess
()
27585 if ! $gl_gnulib_enabled_euidaccess; then
27591 for ac_func
in euidaccess
27593 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27594 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27595 cat >>confdefs.h
<<_ACEOF
27596 #define HAVE_EUIDACCESS 1
27602 if test $ac_cv_func_euidaccess = no
; then
27606 if test $HAVE_EUIDACCESS = 0; then
27615 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27619 for ac_header
in libgen.h
27621 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27622 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27623 cat >>confdefs.h
<<_ACEOF
27624 #define HAVE_LIBGEN_H 1
27632 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27633 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27638 # If we don't yet have getgroups, see if it's in -lbsd.
27639 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27641 if test $ac_cv_func_getgroups = no
; then
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27643 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27644 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27645 $as_echo_n "(cached) " >&6
27647 ac_check_lib_save_LIBS
=$LIBS
27649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27662 return getgroups ();
27667 if ac_fn_c_try_link
"$LINENO"; then :
27668 ac_cv_lib_bsd_getgroups
=yes
27670 ac_cv_lib_bsd_getgroups
=no
27672 rm -f core conftest.err conftest.
$ac_objext \
27673 conftest
$ac_exeext conftest.
$ac_ext
27674 LIBS
=$ac_check_lib_save_LIBS
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27677 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27678 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27679 GETGROUPS_LIB
=-lbsd
27684 # Run the program to test the functionality of the system-supplied
27685 # getgroups function only if there is such a function.
27686 if test $ac_cv_func_getgroups = yes; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27688 $as_echo_n "checking for working getgroups... " >&6; }
27689 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27690 $as_echo_n "(cached) " >&6
27692 if test "$cross_compiling" = yes; then :
27693 case "$host_os" in # ((
27694 # Guess yes on glibc systems.
27695 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27696 # If we don't know, assume the worst.
27697 *) ac_cv_func_getgroups_works
="guessing no" ;;
27701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h. */
27703 $ac_includes_default
27707 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27708 return getgroups (0, 0) == -1;
27714 if ac_fn_c_try_run
"$LINENO"; then :
27715 ac_cv_func_getgroups_works
=yes
27717 ac_cv_func_getgroups_works
=no
27719 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27720 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27726 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27728 ac_cv_func_getgroups_works
=no
27730 case "$ac_cv_func_getgroups_works" in
27733 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27740 # Solaris 9 and 10 need -lgen to get the eaccess function.
27741 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27742 # programs in the package would end up linked with that potentially-shared
27743 # library, inducing unnecessary run-time overhead.
27746 gl_saved_libs
=$LIBS
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27748 $as_echo_n "checking for library containing eaccess... " >&6; }
27749 if test "${ac_cv_search_eaccess+set}" = set; then :
27750 $as_echo_n "(cached) " >&6
27752 ac_func_search_save_LIBS
=$LIBS
27753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27754 /* end confdefs.h. */
27756 /* Override any GCC internal prototype to avoid an error.
27757 Use char because int might match the return type of a GCC
27758 builtin and then its argument prototype would still apply. */
27771 for ac_lib
in '' gen
; do
27772 if test -z "$ac_lib"; then
27773 ac_res
="none required"
27776 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27778 if ac_fn_c_try_link
"$LINENO"; then :
27779 ac_cv_search_eaccess
=$ac_res
27781 rm -f core conftest.err conftest.
$ac_objext \
27783 if test "${ac_cv_search_eaccess+set}" = set; then :
27787 if test "${ac_cv_search_eaccess+set}" = set; then :
27790 ac_cv_search_eaccess
=no
27792 rm conftest.
$ac_ext
27793 LIBS
=$ac_func_search_save_LIBS
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27796 $as_echo "$ac_cv_search_eaccess" >&6; }
27797 ac_res
=$ac_cv_search_eaccess
27798 if test "$ac_res" != no
; then :
27799 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27800 test "$ac_cv_search_eaccess" = "none required" ||
27801 LIB_EACCESS
=$ac_cv_search_eaccess
27804 for ac_func
in eaccess
27806 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27807 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27808 cat >>confdefs.h
<<_ACEOF
27809 #define HAVE_EACCESS 1
27815 LIBS
=$gl_saved_libs
27823 GNULIB_EUIDACCESS
=1
27829 gl_gnulib_enabled_euidaccess
=true
27830 if test $HAVE_EUIDACCESS = 0; then
27831 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27833 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27834 if test $HAVE_EUIDACCESS = 0; then
27835 func_gl_gnulib_m4code_stat
27839 func_gl_gnulib_m4code_getdtablesize
()
27841 if ! $gl_gnulib_enabled_getdtablesize; then
27845 if test $ac_cv_func_getdtablesize != yes; then
27846 HAVE_GETDTABLESIZE
=0
27849 if test $HAVE_GETDTABLESIZE = 0; then
27858 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
27867 GNULIB_GETDTABLESIZE
=1
27873 gl_gnulib_enabled_getdtablesize
=true
27876 func_gl_gnulib_m4code_getgroups
()
27878 if ! $gl_gnulib_enabled_getgroups; then
27884 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27885 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27890 # If we don't yet have getgroups, see if it's in -lbsd.
27891 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27893 if test $ac_cv_func_getgroups = no
; then
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27895 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27896 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27897 $as_echo_n "(cached) " >&6
27899 ac_check_lib_save_LIBS
=$LIBS
27901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h. */
27904 /* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27914 return getgroups ();
27919 if ac_fn_c_try_link
"$LINENO"; then :
27920 ac_cv_lib_bsd_getgroups
=yes
27922 ac_cv_lib_bsd_getgroups
=no
27924 rm -f core conftest.err conftest.
$ac_objext \
27925 conftest
$ac_exeext conftest.
$ac_ext
27926 LIBS
=$ac_check_lib_save_LIBS
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27929 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27930 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27931 GETGROUPS_LIB
=-lbsd
27936 # Run the program to test the functionality of the system-supplied
27937 # getgroups function only if there is such a function.
27938 if test $ac_cv_func_getgroups = yes; then
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27940 $as_echo_n "checking for working getgroups... " >&6; }
27941 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27942 $as_echo_n "(cached) " >&6
27944 if test "$cross_compiling" = yes; then :
27945 case "$host_os" in # ((
27946 # Guess yes on glibc systems.
27947 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27948 # If we don't know, assume the worst.
27949 *) ac_cv_func_getgroups_works
="guessing no" ;;
27953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27954 /* end confdefs.h. */
27955 $ac_includes_default
27959 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27960 return getgroups (0, 0) == -1;
27966 if ac_fn_c_try_run
"$LINENO"; then :
27967 ac_cv_func_getgroups_works
=yes
27969 ac_cv_func_getgroups_works
=no
27971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27978 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27980 ac_cv_func_getgroups_works
=no
27982 case "$ac_cv_func_getgroups_works" in
27985 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27991 if test $ac_cv_func_getgroups != yes; then
27994 if test "$ac_cv_type_getgroups" != gid_t \
27995 ||
{ case "$ac_cv_func_getgroups_works" in
28000 REPLACE_GETGROUPS
=1
28002 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28006 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28007 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28008 $as_echo_n "(cached) " >&6
28010 if test "$cross_compiling" = yes; then :
28012 # Guess yes on glibc systems.
28013 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
28014 # If we don't know, assume the worst.
28015 *) gl_cv_func_getgroups_works
="guessing no" ;;
28019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28020 /* end confdefs.h. */
28021 $ac_includes_default
28025 int size = getgroups (0, 0);
28026 gid_t *list = malloc (size * sizeof *list);
28027 return getgroups (-1, list) != -1;
28032 if ac_fn_c_try_run
"$LINENO"; then :
28033 gl_cv_func_getgroups_works
=yes
28035 gl_cv_func_getgroups_works
=no
28037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28043 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28044 case "$gl_cv_func_getgroups_works" in
28046 *) REPLACE_GETGROUPS
=1 ;;
28050 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
28052 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
28061 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
28075 gl_gnulib_enabled_getgroups
=true
28078 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
28080 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28083 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
28086 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
28088 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28094 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28095 if test "x$ac_cv_func_group_member" = x
""yes; then :
28099 HAVE_GROUP_MEMBER
=0
28104 if test $HAVE_GROUP_MEMBER = 0; then
28113 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28124 GNULIB_GROUP_MEMBER
=1
28130 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28131 if test $HAVE_GROUP_MEMBER = 0; then
28132 func_gl_gnulib_m4code_getgroups
28134 if test $HAVE_GROUP_MEMBER = 0; then
28135 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28139 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28141 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28142 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28145 func_gl_gnulib_m4code_pathmax
()
28147 if ! $gl_gnulib_enabled_pathmax; then
28151 gl_gnulib_enabled_pathmax
=true
28154 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28156 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28157 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28160 func_gl_gnulib_m4code_secure_getenv
()
28162 if ! $gl_gnulib_enabled_secure_getenv; then
28168 if test $ac_cv_func_secure_getenv = no
; then
28169 HAVE_SECURE_GETENV
=0
28172 if test $HAVE_SECURE_GETENV = 0; then
28181 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
28184 for ac_func
in __secure_getenv
28186 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28187 if test "x$ac_cv_func___secure_getenv" = x
""yes; then :
28188 cat >>confdefs.h
<<_ACEOF
28189 #define HAVE___SECURE_GETENV 1
28195 if test $ac_cv_func___secure_getenv = no
; then
28196 for ac_func
in issetugid
28198 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
28199 if test "x$ac_cv_func_issetugid" = x
""yes; then :
28200 cat >>confdefs.h
<<_ACEOF
28201 #define HAVE_ISSETUGID 1
28215 GNULIB_SECURE_GETENV
=1
28221 gl_gnulib_enabled_secure_getenv
=true
28224 func_gl_gnulib_m4code_stat
()
28226 if ! $gl_gnulib_enabled_stat; then
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28231 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28232 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28233 $as_echo_n "(cached) " >&6
28235 if test "$cross_compiling" = yes; then :
28237 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28238 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28243 #include <sys/stat.h>
28248 struct stat st; return stat (".", &st) != stat ("./", &st);
28253 if ac_fn_c_try_run
"$LINENO"; then :
28254 gl_cv_func_stat_dir_slash
=yes
28256 gl_cv_func_stat_dir_slash
=no
28258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28264 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28266 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28267 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28268 $as_echo_n "(cached) " >&6
28271 # Assume that if we have lstat, we can also check symlinks.
28272 if test $ac_cv_func_lstat = yes; then
28273 ln -s conftest.tmp conftest.lnk
28275 if test "$cross_compiling" = yes; then :
28277 # Guess yes on glibc systems.
28278 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28279 # If we don't know, assume the worst.
28280 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28285 /* end confdefs.h. */
28286 #include <sys/stat.h>
28293 if (!stat ("conftest.tmp/", &st))
28296 if (!stat ("conftest.lnk/", &st))
28305 if ac_fn_c_try_run
"$LINENO"; then :
28306 gl_cv_func_stat_file_slash
=yes
28308 gl_cv_func_stat_file_slash
=no
28310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28314 rm -f conftest.tmp conftest.lnk
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28317 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28318 case $gl_cv_func_stat_dir_slash in
28319 *no
) REPLACE_STAT
=1
28321 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28324 case $gl_cv_func_stat_file_slash in
28325 *no
) REPLACE_STAT
=1
28327 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28331 if test $REPLACE_STAT = 1; then
28340 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28355 gl_gnulib_enabled_stat
=true
28356 if test $REPLACE_STAT = 1; then
28357 func_gl_gnulib_m4code_dosname
28359 if test $REPLACE_STAT = 1; then
28360 func_gl_gnulib_m4code_pathmax
28364 func_gl_gnulib_m4code_strtoll
()
28366 if ! $gl_gnulib_enabled_strtoll; then
28370 if test "$ac_cv_type_long_long_int" = yes; then
28371 for ac_func
in strtoll
28373 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28374 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28375 cat >>confdefs.h
<<_ACEOF
28376 #define HAVE_STRTOLL 1
28382 if test $ac_cv_func_strtoll = no
; then
28387 if test $HAVE_STRTOLL = 0; then
28396 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28413 gl_gnulib_enabled_strtoll
=true
28416 func_gl_gnulib_m4code_strtoull
()
28418 if ! $gl_gnulib_enabled_strtoull; then
28422 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28423 for ac_func
in strtoull
28425 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28426 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28427 cat >>confdefs.h
<<_ACEOF
28428 #define HAVE_STRTOULL 1
28434 if test $ac_cv_func_strtoull = no
; then
28439 if test $HAVE_STRTOULL = 0; then
28448 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28465 gl_gnulib_enabled_strtoull
=true
28468 func_gl_gnulib_m4code_tempname
()
28470 if ! $gl_gnulib_enabled_tempname; then
28476 gl_gnulib_enabled_tempname
=true
28477 func_gl_gnulib_m4code_secure_getenv
28480 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28482 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28483 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28486 if test $HAVE_FACCESSAT = 0; then
28487 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28489 if test $HAVE_FACCESSAT = 0; then
28490 func_gl_gnulib_m4code_dosname
28492 if test $HAVE_FACCESSAT = 0; then
28493 func_gl_gnulib_m4code_euidaccess
28495 if test $HAVE_FACCESSAT = 0; then
28496 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28498 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
28499 func_gl_gnulib_m4code_getdtablesize
28501 if test $HAVE_FDOPENDIR = 0; then
28502 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28504 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28505 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28507 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28508 func_gl_gnulib_m4code_dosname
28510 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28511 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28513 if test $REPLACE_GETOPT = 1; then
28514 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28516 if test $REPLACE_LSTAT = 1; then
28517 func_gl_gnulib_m4code_dosname
28519 if test $REPLACE_LSTAT = 1; then
28520 func_gl_gnulib_m4code_stat
28522 if test $HAVE_MKOSTEMP = 0; then
28523 func_gl_gnulib_m4code_tempname
28525 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28526 func_gl_gnulib_m4code_stat
28528 if test $HAVE_READLINKAT = 0; then
28529 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28531 if test $HAVE_READLINKAT = 0; then
28532 func_gl_gnulib_m4code_dosname
28534 if test $HAVE_READLINKAT = 0; then
28535 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28537 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28538 func_gl_gnulib_m4code_strtoll
28540 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28541 func_gl_gnulib_m4code_strtoull
28544 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28545 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28546 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28548 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28549 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28552 if $gl_gnulib_enabled_dosname; then
28553 gl_GNULIB_ENABLED_dosname_TRUE
=
28554 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28556 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28557 gl_GNULIB_ENABLED_dosname_FALSE
=
28560 if $gl_gnulib_enabled_euidaccess; then
28561 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28562 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28564 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28565 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28568 if $gl_gnulib_enabled_getdtablesize; then
28569 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
28570 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
28572 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
28573 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
28576 if $gl_gnulib_enabled_getgroups; then
28577 gl_GNULIB_ENABLED_getgroups_TRUE
=
28578 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28580 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28581 gl_GNULIB_ENABLED_getgroups_FALSE
=
28584 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28585 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28586 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28588 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28589 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28592 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28593 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28594 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28596 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28597 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28600 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28601 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28602 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28604 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28605 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28608 if $gl_gnulib_enabled_pathmax; then
28609 gl_GNULIB_ENABLED_pathmax_TRUE
=
28610 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28612 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28613 gl_GNULIB_ENABLED_pathmax_FALSE
=
28616 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28617 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28618 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28620 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28621 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28624 if $gl_gnulib_enabled_secure_getenv; then
28625 gl_GNULIB_ENABLED_secure_getenv_TRUE
=
28626 gl_GNULIB_ENABLED_secure_getenv_FALSE
='#'
28628 gl_GNULIB_ENABLED_secure_getenv_TRUE
='#'
28629 gl_GNULIB_ENABLED_secure_getenv_FALSE
=
28632 if $gl_gnulib_enabled_stat; then
28633 gl_GNULIB_ENABLED_stat_TRUE
=
28634 gl_GNULIB_ENABLED_stat_FALSE
='#'
28636 gl_GNULIB_ENABLED_stat_TRUE
='#'
28637 gl_GNULIB_ENABLED_stat_FALSE
=
28640 if $gl_gnulib_enabled_strtoll; then
28641 gl_GNULIB_ENABLED_strtoll_TRUE
=
28642 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28644 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28645 gl_GNULIB_ENABLED_strtoll_FALSE
=
28648 if $gl_gnulib_enabled_strtoull; then
28649 gl_GNULIB_ENABLED_strtoull_TRUE
=
28650 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28652 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28653 gl_GNULIB_ENABLED_strtoull_FALSE
=
28656 if $gl_gnulib_enabled_tempname; then
28657 gl_GNULIB_ENABLED_tempname_TRUE
=
28658 gl_GNULIB_ENABLED_tempname_FALSE
='#'
28660 gl_GNULIB_ENABLED_tempname_TRUE
='#'
28661 gl_GNULIB_ENABLED_tempname_FALSE
=
28664 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28665 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28666 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28668 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28669 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28672 # End of code from modules
28693 gl_source_base
='tests'
28694 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
28696 gl_module_indicator_condition
=$gltests_WITNESS
28707 LIBGNU_LIBDEPS
="$gl_libdeps"
28709 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28712 CFLAGS
=$SAVE_CFLAGS
28715 if test "${opsys}" = "mingw32"; then
28716 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28717 # Remove unneeded switches from the value of CC that goes to Makefiles
28718 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28722 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28725 ## The -headerpad option tells ld (see man page) to leave room at the
28726 ## end of the header for adding load commands. Needed for dumping.
28727 ## 0x690 is the total size of 30 segment load commands (at 56
28728 ## each); under Cocoa 31 commands are required.
28729 if test "$HAVE_NS" = "yes"; then
28730 libs_nsgui
="-framework AppKit"
28731 if test "$NS_IMPL_COCOA" = "yes"; then
28732 libs_nsgui
="$libs_nsgui -framework IOKit"
28734 headerpad_extra
=6C8
28737 headerpad_extra
=690
28739 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28741 ## This is here because src/Makefile.in did some extra fiddling around
28742 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28743 ## LD_SWITCH_SYSTEM_TEMACS instead,
28744 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28745 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28748 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28749 ## find X at run-time.
28750 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28751 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28752 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28753 ## had different values in configure (in ac_link) and src/Makefile.in.
28754 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28755 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28758 ## MinGW64 does not prepend an underscore to symbols, so we must
28759 ## pass a different -entry switch to linker. FIXME: It is better
28760 ## to make the entry points the same by changing unexw32.c.
28761 case "$canonical" in
28762 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28763 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28767 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28769 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28772 if test x
$ac_enable_profiling != x
; then
28774 *freebsd | gnu-linux
) ;;
28775 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28781 ## MinGW-specific post-link processing of temacs.
28782 TEMACS_POST_LINK
=":"
28785 if test "${opsys}" = "mingw32"; then
28786 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28787 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28788 ## Preload heap size of temacs.exe in MB.
28789 case "$canonical" in
28790 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28791 *) EMACS_HEAPSIZE
=27 ;;
28799 ## Common for all window systems
28800 if test "$window_system" != "none"; then
28802 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28804 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28811 #### Report on what we decided to do.
28812 #### Report GTK as a toolkit, even if it doesn't use Xt.
28813 #### It makes printing result more understandable as using GTK sets
28814 #### toolkit_scroll_bars to yes by default.
28815 if test "${HAVE_GTK}" = "yes"; then
28816 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28819 if test $USE_ACL -ne 0; then
28820 acl_summary
="yes $LIB_ACL"
28826 Configured for \`${canonical}'.
28828 Where should the build process find the source code? ${srcdir}
28829 What compiler should emacs be built with? ${CC} ${CFLAGS}
28830 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28831 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28832 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28833 What window system should Emacs use? ${window_system}
28834 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28836 if test -n "${x_includes}"; then
28837 echo " Where do we find X Windows header files? ${x_includes}"
28839 echo " Where do we find X Windows header files? Standard dirs"
28841 if test -n "${x_libraries}"; then
28842 echo " Where do we find X Windows libraries? ${x_libraries}"
28844 echo " Where do we find X Windows libraries? Standard dirs"
28847 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28848 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28849 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28850 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28851 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28852 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28853 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28854 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28856 echo " Does Emacs support sound? ${HAVE_SOUND}"
28858 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28859 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28860 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28861 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28862 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28863 echo " Does Emacs use access control lists? ${acl_summary}"
28864 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28865 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28866 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28868 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28869 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28870 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28871 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28873 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28876 if test -n "${EMACSDATA}"; then
28877 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28879 if test -n "${EMACSDOC}"; then
28880 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28885 if test "$HAVE_NS" = "yes"; then
28887 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28888 The installed application will go to nextstep/Emacs.app and can be
28889 run or moved from there."
28890 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28891 echo "The application will be fully self-contained."
28893 echo "The lisp resources for the application will be installed under ${prefix}.
28894 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28895 to run if these resources are not installed."
28900 if test "${opsys}" = "cygwin"; then
28902 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
28903 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
28909 # Remove any trailing slashes in these variables.
28910 test "${prefix}" != NONE
&&
28911 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
28912 test "${exec_prefix}" != NONE
&&
28913 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
28915 if test "$HAVE_NS" = "yes"; then
28916 if test "$NS_IMPL_GNUSTEP" = yes; then
28917 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"
28920 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"
28925 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"
28927 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"
28930 opt_makefile
=test
/automated
/Makefile
28932 if test -f "$srcdir/$opt_makefile.in"; then
28933 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28934 ac_config_files
="$ac_config_files test/automated/Makefile"
28939 opt_makefile
=admin
/unidata
/Makefile
28941 if test -f "$srcdir/$opt_makefile.in"; then
28942 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28943 ac_config_files
="$ac_config_files admin/unidata/Makefile"
28948 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
28952 ac_config_commands
="$ac_config_commands src/epaths.h"
28955 ac_config_commands
="$ac_config_commands src/.gdbinit"
28958 cat >confcache
<<\_ACEOF
28959 # This file is a shell script that caches the results of configure
28960 # tests run on this system so they can be shared between configure
28961 # scripts and configure runs, see configure's option --config-cache.
28962 # It is not useful on other systems. If it contains results you don't
28963 # want to keep, you may remove or edit it.
28965 # config.status only pays attention to the cache file if you give it
28966 # the --recheck option to rerun configure.
28968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28970 # following values.
28974 # The following way of writing the cache mishandles newlines in values,
28975 # but we know of no workaround that is simple, portable, and efficient.
28976 # So, we kill variables containing newlines.
28977 # Ultrix sh set writes to stderr and can't be redirected directly,
28978 # and sets the high bit in the cache file unless we assign to the vars.
28980 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28981 eval ac_val
=\$
$ac_var
28985 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28989 _ | IFS | as_nl
) ;; #(
28990 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28991 *) { eval $ac_var=; unset $ac_var;} ;;
28997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28998 *${as_nl}ac_space
=\
*)
28999 # `set' does not quote correctly, so add quotes: double-quote
29000 # substitution turns \\\\ into \\, and sed turns \\ into \.
29003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29006 # `set' quotes correctly as required by POSIX, so do not add quotes.
29007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29020 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29021 if test -w "$cache_file"; then
29022 test "x$cache_file" != "x/dev/null" &&
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29024 $as_echo "$as_me: updating cache $cache_file" >&6;}
29025 cat confcache
>$cache_file
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29033 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29034 # Let make expand exec_prefix.
29035 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29037 DEFS
=-DHAVE_CONFIG_H
29041 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29042 # 1. Remove the extension, and $U if already installed.
29043 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29044 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29046 # will be set to the directory where LIBOBJS objects are built.
29047 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29048 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29050 LIBOBJS
=$ac_libobjs
29052 LTLIBOBJS
=$ac_ltlibobjs
29055 if test -n "$EXEEXT"; then
29057 am__EXEEXT_FALSE
='#'
29059 am__EXEEXT_TRUE
='#'
29063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29064 as_fn_error
"conditional \"AMDEP\" was never defined.
29065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29068 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
29069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29071 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29072 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29075 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29076 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
29077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29079 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29080 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29084 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29085 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29088 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29089 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29092 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29093 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29096 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29097 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29100 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29101 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
29102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29104 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29105 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29108 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29109 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29112 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29113 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29116 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29117 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29120 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29121 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29124 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29125 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29128 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29129 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29132 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29133 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29136 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29137 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29140 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29141 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29144 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29145 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29148 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29149 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29152 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29153 as_fn_error
"conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29156 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29157 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29160 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29161 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29164 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29165 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29168 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29169 as_fn_error
"conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29172 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29173 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29179 if test -n "$gl_LIBOBJS"; then
29180 # Remove the extension.
29181 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29182 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29183 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29184 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29187 gl_LIBOBJS
=$gl_libobjs
29189 gl_LTLIBOBJS
=$gl_ltlibobjs
29195 if test -n "$gltests_LIBOBJS"; then
29196 # Remove the extension.
29197 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29198 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29199 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29200 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29203 gltests_LIBOBJS
=$gltests_libobjs
29205 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29209 : ${CONFIG_STATUS=./config.status}
29211 ac_clean_files_save
=$ac_clean_files
29212 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29214 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29216 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29218 # Generated by $as_me.
29219 # Run this file to recreate the current configuration.
29220 # Compiler output produced by configure, useful for debugging
29221 # configure, is in config.log if it exists.
29224 ac_cs_recheck=false
29227 SHELL=\${CONFIG_SHELL-$SHELL}
29230 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29231 ## -------------------- ##
29232 ## M4sh Initialization. ##
29233 ## -------------------- ##
29235 # Be more Bourne compatible
29236 DUALCASE
=1; export DUALCASE
# for MKS sh
29237 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29240 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29241 # is contrary to our usage. Disable this feature.
29242 alias -g '${1+"$@"}'='"$@"'
29243 setopt NO_GLOB_SUBST
29245 case `(set -o) 2>/dev/null` in #(
29257 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29258 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29260 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29261 # Prefer a ksh shell builtin over an external printf program on Solaris,
29262 # but without wasting forks for bash or zsh.
29263 if test -z "$BASH_VERSION$ZSH_VERSION" \
29264 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29265 as_echo='print
-r --'
29266 as_echo_n='print
-rn --'
29267 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29268 as_echo='printf %s
\n'
29269 as_echo_n='printf %s
'
29271 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29272 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29273 as_echo_n='/usr
/ucb
/echo -n'
29275 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29276 as_echo_n_body='eval
29280 expr "X$arg" : "X\\(.*\\)$as_nl";
29281 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29283 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29285 export as_echo_n_body
29286 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29288 export as_echo_body
29289 as_echo='sh
-c $as_echo_body as_echo
'
29292 # The user is always right.
29293 if test "${PATH_SEPARATOR+set}" != set; then
29295 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29296 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29303 # We need space, tab and new line, in precisely that order. Quoting is
29304 # there to prevent editors from complaining about space-tab.
29305 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29306 # splitting by setting IFS to empty value.)
29309 # Find who we are. Look in the path if we contain no directory separator.
29311 *[\\/]* ) as_myself=$0 ;;
29312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29313 for as_dir in $PATH
29316 test -z "$as_dir" && as_dir=.
29317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29323 # We did not find ourselves, most probably we were run as `sh COMMAND'
29324 # in which case we are not to be found in the path.
29325 if test "x$as_myself" = x
; then
29328 if test ! -f "$as_myself"; then
29329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29333 # Unset variables that we do not need and which cause bugs (e.g. in
29334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29335 # suppresses any "Segmentation fault" message there. '((' could
29336 # trigger a bug in pdksh 5.2.14.
29337 for as_var
in BASH_ENV ENV MAIL MAILPATH
29338 do eval test x\
${$as_var+set} = xset \
29339 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29352 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29355 # as_fn_error ERROR [LINENO LOG_FD]
29356 # ---------------------------------
29357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29359 # script with status $?, using 1 if that was 0.
29362 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29364 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29367 $as_echo "$as_me: error: $1" >&2
29368 as_fn_exit
$as_status
29372 # as_fn_set_status STATUS
29373 # -----------------------
29374 # Set $? to STATUS, without forking.
29375 as_fn_set_status
()
29378 } # as_fn_set_status
29380 # as_fn_exit STATUS
29381 # -----------------
29382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29386 as_fn_set_status
$1
29392 # Portably unset VAR.
29395 { eval $1=; unset $1;}
29397 as_unset
=as_fn_unset
29398 # as_fn_append VAR VALUE
29399 # ----------------------
29400 # Append the text in VALUE to the end of the definition contained in VAR. Take
29401 # advantage of any shell optimizations that allow amortized linear growth over
29402 # repeated appends, instead of the typical quadratic growth present in naive
29404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29405 eval 'as_fn_append ()
29416 # as_fn_arith ARG...
29417 # ------------------
29418 # Perform arithmetic evaluation on the ARGs, and store the result in the
29419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29420 # must be portable across $(()) and expr.
29421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29422 eval 'as_fn_arith ()
29429 as_val
=`expr "$@" || test $? -eq 1`
29434 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29435 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29441 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29442 as_basename
=basename
29447 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29453 as_me
=`$as_basename -- "$0" ||
29454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29455 X"$0" : 'X\(//\)$' \| \
29456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29458 sed '/^.*\/\([^/][^/]*\)\/*$/{
29472 # Avoid depending upon Character Ranges.
29473 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29474 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29475 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29476 as_cr_digits
='0123456789'
29477 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29479 ECHO_C
= ECHO_N
= ECHO_T
=
29480 case `echo -n x` in #(((((
29482 case `echo 'xy\c'` in
29483 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29485 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29492 rm -f conf$$ conf$$.exe conf$$.
file
29493 if test -d conf$$.dir
; then
29494 rm -f conf$$.dir
/conf$$.
file
29497 mkdir conf$$.dir
2>/dev
/null
29499 if (echo >conf$$.
file) 2>/dev
/null
; then
29500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29502 # ... but there are two gotchas:
29503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29505 # In both cases, we have to default to `cp -p'.
29506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29516 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29517 rmdir conf$$.dir
2>/dev
/null
29522 # Create "$as_dir" as a directory, including parents if necessary.
29527 -*) as_dir
=.
/$as_dir;;
29529 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29533 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29534 *) as_qdir
=$as_dir;;
29536 as_dirs
="'$as_qdir' $as_dirs"
29537 as_dir
=`$as_dirname -- "$as_dir" ||
29538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29539 X"$as_dir" : 'X\(//\)[^/]' \| \
29540 X"$as_dir" : 'X\(//\)$' \| \
29541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29542 $as_echo X"$as_dir" |
29543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29547 /^X\(\/\/\)[^/].*/{
29560 test -d "$as_dir" && break
29562 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29563 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29567 if mkdir
-p .
2>/dev
/null
; then
29568 as_mkdir_p
='mkdir -p "$as_dir"'
29570 test -d .
/-p && rmdir .
/-p
29574 if test -x / >/dev
/null
2>&1; then
29575 as_test_x
='test -x'
29577 if ls -dL / >/dev
/null
2>&1; then
29584 if test -d "$1"; then
29590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29591 ???[sx]*):;;*)false;;esac;fi
29595 as_executable_p
=$as_test_x
29597 # Sed expression to map a string onto a valid CPP name.
29598 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29600 # Sed expression to map a string onto a valid variable name.
29601 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29605 ## ----------------------------------- ##
29606 ## Main body of $CONFIG_STATUS script. ##
29607 ## ----------------------------------- ##
29609 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29612 # Save the log message, to keep $0 and so on meaningful, and to
29613 # report actual input values of CONFIG_FILES etc. instead of their
29614 # values after options handling.
29616 This file was extended by emacs $as_me 24.3.50, which was
29617 generated by GNU Autoconf 2.65. Invocation command line was
29619 CONFIG_FILES = $CONFIG_FILES
29620 CONFIG_HEADERS = $CONFIG_HEADERS
29621 CONFIG_LINKS = $CONFIG_LINKS
29622 CONFIG_COMMANDS = $CONFIG_COMMANDS
29625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29630 case $ac_config_files in *"
29631 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29634 case $ac_config_headers in *"
29635 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29640 # Files that config.status was made for.
29641 config_files="$ac_config_files"
29642 config_headers="$ac_config_headers"
29643 config_commands="$ac_config_commands"
29647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29649 \`$as_me' instantiates files and other configuration actions
29650 from templates according to the current configuration. Unless the files
29651 and actions are specified as TAGs, all are instantiated by default.
29653 Usage: $0 [OPTION]... [TAG]...
29655 -h, --help print this help, then exit
29656 -V, --version print version number and configuration settings, then exit
29657 --config print configuration, then exit
29658 -q, --quiet, --silent
29659 do not print progress messages
29660 -d, --debug don't remove temporary files
29661 --recheck update $as_me by reconfiguring in the same conditions
29662 --file=FILE[:TEMPLATE]
29663 instantiate the configuration file FILE
29664 --header=FILE[:TEMPLATE]
29665 instantiate the configuration header FILE
29667 Configuration files:
29670 Configuration headers:
29673 Configuration commands:
29676 Report bugs to the package provider."
29679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29680 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29682 emacs config.status 24.3.50
29683 configured by $0, generated by GNU Autoconf 2.65,
29684 with options \\"\$ac_cs_config\\"
29686 Copyright (C) 2009 Free Software Foundation, Inc.
29687 This config.status script is free software; the Free Software Foundation
29688 gives unlimited permission to copy, distribute and modify it."
29695 test -n "\$AWK" || AWK=awk
29698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29699 # The default lists apply if the user does not specify any file.
29705 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29706 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29717 # Handling of the options.
29718 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29720 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29721 $as_echo "$ac_cs_version"; exit ;;
29722 --config |
--confi |
--conf |
--con |
--co |
--c )
29723 $as_echo "$ac_cs_config"; exit ;;
29724 --debug |
--debu |
--deb |
--de |
--d |
-d )
29726 --file |
--fil |
--fi |
--f )
29729 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29731 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29732 ac_need_defaults
=false
;;
29733 --header |
--heade |
--head |
--hea )
29736 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29738 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29739 ac_need_defaults
=false
;;
29741 # Conflict between --help and --header
29742 as_fn_error
"ambiguous option: \`$1'
29743 Try \`$0 --help' for more information.";;
29744 --help |
--hel |
-h )
29745 $as_echo "$ac_cs_usage"; exit ;;
29746 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29747 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29750 # This is an error.
29751 -*) as_fn_error
"unrecognized option: \`$1'
29752 Try \`$0 --help' for more information." ;;
29754 *) as_fn_append ac_config_targets
" $1"
29755 ac_need_defaults
=false
;;
29761 ac_configure_extra_args
=
29763 if $ac_cs_silent; then
29765 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29770 if \$ac_cs_recheck; then
29771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29774 CONFIG_SHELL='$SHELL'
29775 export CONFIG_SHELL
29780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29785 ## Running $as_me. ##
29791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29796 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29802 # Handling of arguments.
29803 for ac_config_target
in $ac_config_targets
29805 case $ac_config_target in
29806 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29807 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29808 "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" ;;
29809 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29810 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29811 "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" ;;
29812 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29813 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29814 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29815 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29816 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29817 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29818 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29819 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29820 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29821 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29822 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29823 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29824 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29825 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29826 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29827 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29828 "src/epaths.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/epaths.h" ;;
29829 "src/.gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS src/.gdbinit" ;;
29831 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29836 # If the user did not use the arguments to specify the items to instantiate,
29837 # then the envvar interface is used. Set only those that are not.
29838 # We use the long form for the default assignment because of an extremely
29839 # bizarre bug on SunOS 4.1.3.
29840 if $ac_need_defaults; then
29841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29846 # Have a temporary directory for convenience. Make it in the build tree
29847 # simply because there is no reason against having it here, and in addition,
29848 # creating and moving files from /tmp can sometimes cause problems.
29849 # Hook for its removal unless debugging.
29850 # Note that there is a small window in which the directory will not be cleaned:
29851 # after its creation but before its name has been assigned to `$tmp'.
29855 trap 'exit_status=$?
29856 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29858 trap 'as_fn_exit 1' 1 2 13 15
29860 # Create a (secure) tmp directory for tmp files.
29863 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29864 test -n "$tmp" && test -d "$tmp"
29867 tmp
=.
/conf$$
-$RANDOM
29868 (umask 077 && mkdir
"$tmp")
29869 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29871 # Set up the scripts for CONFIG_FILES section.
29872 # No need to generate them if there are no CONFIG_FILES.
29873 # This happens for instance with `./config.status config.h'.
29874 if test -n "$CONFIG_FILES"; then
29876 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29877 ac_cs_awk_getline
=:
29878 ac_cs_awk_pipe_init
=
29879 ac_cs_awk_read_file
='
29880 while ((getline aline < (F[key])) > 0)
29883 ac_cs_awk_pipe_fini
=
29885 ac_cs_awk_getline
=false
29886 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29887 ac_cs_awk_read_file
='
29889 print "cat " F[key] " &&"
29890 '$ac_cs_awk_pipe_init
29891 # The final `:' finishes the AND list.
29892 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29894 ac_cr
=`echo X | tr X '\015'`
29895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29896 # But we know of no other shell where ac_cr would be empty at this
29897 # point, so we can use a bashism as a fallback.
29898 if test "x$ac_cr" = x
; then
29899 eval ac_cr
=\$
\'\\r
\'
29901 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29905 ac_cs_awk_cr
=$ac_cr
29908 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29911 # Create commands to substitute file output variables.
29913 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29914 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29915 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29918 } >conf$
$files.sh
&&
29919 . .
/conf$
$files.sh ||
29920 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29921 rm -f conf$
$files.sh
29924 echo "cat >conf$$subs.awk <<_ACEOF" &&
29925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29927 } >conf$$subs.sh ||
29928 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29931 for ac_last_try in false false false false false :; do
29932 . ./conf$$subs.sh ||
29933 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29935 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29936 if test $ac_delim_n = $ac_delim_num; then
29938 elif $ac_last_try; then
29939 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29941 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29944 rm -f conf$$subs.sh
29946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29947 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29951 s/^/S["/; s
/!.
*/"]=/
29961 s/\(.\{148\}\)..*/\1/
29963 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29968 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29975 s/\(.\{148\}\)..*/\1/
29977 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29981 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29986 ' <conf$$subs.awk | sed '
29991 ' >>$CONFIG_STATUS || ac_write_fail=1
29992 rm -f conf$$subs.awk
29993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29995 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29996 for (key in S) S_is_set[key] = 1
29998 \$ac_cs_awk_pipe_init
30002 nfields = split(line, field, "@
")
30004 len = length(field[1])
30005 for (i = 2; i < nfields; i++) {
30007 keylen = length(key)
30008 if (S_is_set[key]) {
30010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30011 len += length(value) + length(field[++i])
30016 if (nfields == 3 && !substed) {
30018 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30019 \$ac_cs_awk_read_file
30025 \$ac_cs_awk_pipe_fini
30028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30029 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30030 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30033 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30034 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30039 # trailing colons and then remove the whole line if VPATH becomes empty
30040 # (actually we leave an empty line to preserve line numbers).
30041 if test "x
$srcdir" = x.; then
30042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30043 s/:*\$(srcdir):*/:/
30044 s/:*\${srcdir}:*/:/
30046 s/^\([^=]*=[ ]*\):*/\1/
30052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30053 fi # test -n "$CONFIG_FILES"
30055 # Set up the scripts for CONFIG_HEADERS section.
30056 # No need to generate them if there are no CONFIG_HEADERS.
30057 # This happens for instance with `./config.status Makefile'.
30058 if test -n "$CONFIG_HEADERS"; then
30059 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30063 # Transform confdefs.h into an awk script `defines.awk', embedded as
30064 # here-document in config.status, that substitutes the proper values into
30065 # config.h.in to produce config.h.
30067 # Create a delimiter string that does not exist in confdefs.h, to ease
30068 # handling of long lines.
30070 for ac_last_try in false false :; do
30071 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30072 if test -z "$ac_t"; then
30074 elif $ac_last_try; then
30075 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30077 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30081 # For the awk script, D is an array of macro values keyed by name,
30082 # likewise P contains macro parameters if any. Preserve backslash
30083 # newline sequences.
30085 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30087 s/.\{148\}/&'"$ac_delim"'/g
30090 s/^[ ]*#[ ]*define[ ][ ]*/ /
30097 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30099 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30103 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30104 D["\
1"]=" \
3\\\\\\n
"\\/p
30106 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30111 s/.\{148\}/&'"$ac_delim"'/g
30116 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30119 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30121 ' <confdefs.h | sed '
30122 s/'"$ac_delim"'/"\\\
30123 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30126 for (key in D) D_is_set[key] = 1
30129 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30131 split(line, arg, " ")
30132 if (arg[1] == "#") {
30136 defundef
= substr
(arg
[1], 2)
30139 split(mac1
, mac2
, "(") #)
30141 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30142 if (D_is_set
[macro
]) {
30143 # Preserve the white space surrounding the "#".
30144 print prefix
"define", macro P
[macro
] D
[macro
]
30147 # Replace #undef with comments. This is necessary, for example,
30148 # in the case of _POSIX_SOURCE, which is predefined and required
30149 # on some systems where configure will not decide to define it.
30150 if (defundef
== "undef") {
30151 print
"/*", prefix defundef
, macro
, "*/"
30159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30160 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30161 fi # test -n "$CONFIG_HEADERS"
30164 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30169 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30171 case $ac_mode$ac_tag in
30173 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30174 :[FH
]-) ac_tag
=-:-;;
30175 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30192 -) ac_f
="$tmp/stdin";;
30193 *) # Look for the file first in the build tree, then in the source tree
30194 # (if the path is not absolute). The absolute path cannot be DOS-style,
30195 # because $ac_f cannot contain `:'.
30199 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30201 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30203 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30204 as_fn_append ac_file_inputs
" '$ac_f'"
30207 # Let's still pretend it is `configure' which instantiates (i.e., don't
30208 # use $as_me), people would be surprised to read:
30209 # /* config.h. Generated by config.status. */
30210 configure_input
='Generated from '`
30211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30213 if test x
"$ac_file" != x-
; then
30214 configure_input
="$ac_file. $configure_input"
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30216 $as_echo "$as_me: creating $ac_file" >&6;}
30218 # Neutralize special characters interpreted by sed in replacement strings.
30219 case $configure_input in #(
30220 *\
&* |
*\|
* |
*\\* )
30221 ac_sed_conf_input
=`$as_echo "$configure_input" |
30222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30223 *) ac_sed_conf_input
=$configure_input;;
30227 *:-:* |
*:-) cat >"$tmp/stdin" \
30228 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30233 ac_dir
=`$as_dirname -- "$ac_file" ||
30234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30235 X"$ac_file" : 'X\(//\)[^/]' \| \
30236 X"$ac_file" : 'X\(//\)$' \| \
30237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30238 $as_echo X"$ac_file" |
30239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30243 /^X\(\/\/\)[^/].*/{
30256 as_dir
="$ac_dir"; as_fn_mkdir_p
30260 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30262 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30263 # A ".." for each directory in $ac_dir_suffix.
30264 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30265 case $ac_top_builddir_sub in
30266 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30267 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30270 ac_abs_top_builddir
=$ac_pwd
30271 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30272 # for backward compatibility:
30273 ac_top_builddir
=$ac_top_build_prefix
30276 .
) # We are building in place.
30278 ac_top_srcdir
=$ac_top_builddir_sub
30279 ac_abs_top_srcdir
=$ac_pwd ;;
30280 [\\/]* | ?
:[\\/]* ) # Absolute name.
30281 ac_srcdir
=$srcdir$ac_dir_suffix;
30282 ac_top_srcdir
=$srcdir
30283 ac_abs_top_srcdir
=$srcdir ;;
30284 *) # Relative name.
30285 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30286 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30287 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30289 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30299 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30300 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30302 ac_MKDIR_P
=$MKDIR_P
30304 [\\/$
]* | ?
:[\\/]* ) ;;
30305 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30310 # If the template does not know about datarootdir, expand it.
30311 # FIXME: This hack should be removed a few years after 2.60.
30312 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30323 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30324 *datarootdir
*) ac_datarootdir_seen
=yes;;
30325 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30327 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30330 ac_datarootdir_hack='
30331 s&@datadir@&$datadir&g
30332 s&@docdir@&$docdir&g
30333 s&@infodir@&$infodir&g
30334 s&@localedir@&$localedir&g
30335 s&@mandir@&$mandir&g
30336 s&\\\${datarootdir}&$datarootdir&g' ;;
30340 # Neutralize VPATH when `$srcdir' = `.'.
30341 # Shell code in configure.ac might set extrasub.
30342 # FIXME: do we really want to maintain this feature?
30343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30344 ac_sed_extra="$ac_vpsub
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30349 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30350 s|@configure_input@|
$ac_sed_conf_input|
;t t
30351 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30352 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30353 s
&@srcdir@
&$ac_srcdir&;t t
30354 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30355 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30356 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30357 s
&@builddir@
&$ac_builddir&;t t
30358 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30359 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30360 s
&@INSTALL@
&$ac_INSTALL&;t t
30361 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30362 $ac_datarootdir_hack
30364 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30365 if $ac_cs_awk_getline; then
30366 $AWK -f "$tmp/subs.
awk"
30368 $AWK -f "$tmp/subs.
awk" | $SHELL
30370 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30376 which seems to be undefined. Please make sure it is defined." >&5
30377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30378 which seems to be undefined. Please make sure it is defined." >&2;}
30382 -) cat "$tmp/out" && rm -f "$tmp/out";;
30383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30385 || as_fn_error "could not create $ac_file" "$LINENO" 5
30391 if test x"$ac_file" != x-; then
30393 $as_echo "/* $configure_input */" \
30394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30395 } >"$tmp/config.h" \
30396 || as_fn_error "could not create $ac_file" "$LINENO" 5
30397 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30399 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30402 mv "$tmp/config.h" "$ac_file" \
30403 || as_fn_error "could not create $ac_file" "$LINENO" 5
30406 $as_echo "/* $configure_input */" \
30407 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30408 || as_fn_error "could not create -" "$LINENO" 5
30410 # Compute "$ac_file"'s index
in $config_headers.
30413 for _am_header
in $config_headers :; do
30414 case $_am_header in
30415 $_am_arg |
$_am_arg:* )
30418 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30421 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30422 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30423 X"$_am_arg" : 'X\(//\)[^/]' \| \
30424 X"$_am_arg" : 'X\(//\)$' \| \
30425 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30426 $as_echo X"$_am_arg" |
30427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30431 /^X\(\/\/\)[^/].*/{
30443 s/.*/./; q'`/stamp-h
$_am_stamp_count
30446 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30447 $as_echo "$as_me: executing $ac_file commands" >&6;}
30452 case $ac_file$ac_mode in
30453 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30454 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30455 # are listed without --file. Let's play safe and only enable the eval
30456 # if we detect the quoting.
30457 case $CONFIG_FILES in
30458 *\'*) eval set x
"$CONFIG_FILES" ;;
30459 *) set x
$CONFIG_FILES ;;
30464 # Strip MF so we end up with the name of the file.
30465 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30466 # Check whether this is an Automake generated Makefile or not.
30467 # We used to match only the files named `Makefile.in', but
30468 # some people rename them; so instead we look at the file content.
30469 # Grep'ing the first line is not enough: some people post-process
30470 # each Makefile.in and add a new line on top of each file to say so.
30471 # Grep'ing the whole file is not good either: AIX grep has a line
30472 # limit of 2048, but all sed's we know have understand at least 4000.
30473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30474 dirpart
=`$as_dirname -- "$mf" ||
30475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30476 X"$mf" : 'X\(//\)[^/]' \| \
30477 X"$mf" : 'X\(//\)$' \| \
30478 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30484 /^X\(\/\/\)[^/].*/{
30500 # Extract the definition of DEPDIR, am__include, and am__quote
30501 # from the Makefile without running `make'.
30502 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30503 test -z "$DEPDIR" && continue
30504 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30505 test -z "am__include" && continue
30506 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30507 # When using ansi2knr, U may be empty or an underscore; expand it
30508 U
=`sed -n 's/^U = //p' < "$mf"`
30509 # Find all dependency output files, they are included files with
30510 # $(DEPDIR) in their names. We invoke sed twice because it is the
30511 # simplest approach to changing $(DEPDIR) to its actual value in the
30513 for file in `sed -n "
30514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30516 # Make sure the directory exists.
30517 test -f "$dirpart/$file" && continue
30518 fdir
=`$as_dirname -- "$file" ||
30519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30520 X"$file" : 'X\(//\)[^/]' \| \
30521 X"$file" : 'X\(//\)$' \| \
30522 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30523 $as_echo X"$file" |
30524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30528 /^X\(\/\/\)[^/].*/{
30541 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30542 # echo "creating $dirpart/$file"
30543 echo '# dummy' > "$dirpart/$file"
30549 if test "${opsys}" = "mingw32"; then
30550 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30552 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30556 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30557 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30567 ac_clean_files
=$ac_clean_files_save
30569 test $ac_write_fail = 0 ||
30570 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30573 # configure is writing to config.log, and then calls config.status.
30574 # config.status does its own redirection, appending to config.log.
30575 # Unfortunately, on DOS this fails, as config.log is still kept open
30576 # by configure, so config.status won't be able to write to it; its
30577 # output is simply discarded. So we exec the FD to /dev/null,
30578 # effectively closing config.log, so it can be properly (re)opened and
30579 # appended to by config.status. When coming back to configure, we
30580 # need to make the FD available again.
30581 if test "$no_create" != yes; then
30583 ac_config_status_args
=
30584 test "$silent" = yes &&
30585 ac_config_status_args
="$ac_config_status_args --quiet"
30587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30590 # would make configure fail if this is the last instruction.
30591 $ac_cs_success || as_fn_exit $?
30593 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30595 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}