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_strtoull_FALSE
618 gl_GNULIB_ENABLED_strtoull_TRUE
619 gl_GNULIB_ENABLED_strtoll_FALSE
620 gl_GNULIB_ENABLED_strtoll_TRUE
621 gl_GNULIB_ENABLED_stat_FALSE
622 gl_GNULIB_ENABLED_stat_TRUE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
625 gl_GNULIB_ENABLED_pathmax_FALSE
626 gl_GNULIB_ENABLED_pathmax_TRUE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
628 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
630 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
633 gl_GNULIB_ENABLED_getgroups_FALSE
634 gl_GNULIB_ENABLED_getgroups_TRUE
635 gl_GNULIB_ENABLED_getdtablesize_FALSE
636 gl_GNULIB_ENABLED_getdtablesize_TRUE
637 gl_GNULIB_ENABLED_euidaccess_FALSE
638 gl_GNULIB_ENABLED_euidaccess_TRUE
639 gl_GNULIB_ENABLED_dosname_FALSE
640 gl_GNULIB_ENABLED_dosname_TRUE
641 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
642 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
651 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
652 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
653 TIME_H_DEFINES_STRUCT_TIMESPEC
654 NEXT_AS_FIRST_DIRECTIVE_TIME_H
656 WINDOWS_64_BIT_ST_SIZE
657 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
659 NEXT_AS_FIRST_DIRECTIVE_STRING_H
661 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
663 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
672 REPLACE_STDIO_WRITE_FUNCS
673 REPLACE_STDIO_READ_FUNCS
682 REPLACE_OBSTACK_PRINTF
707 HAVE_DECL_OBSTACK_PRINTF
713 GNULIB_VSPRINTF_POSIX
717 GNULIB_VFPRINTF_POSIX
724 GNULIB_STDIO_H_SIGPIPE
725 GNULIB_STDIO_H_NONBLOCKING
740 GNULIB_OBSTACK_PRINTF_POSIX
741 GNULIB_OBSTACK_PRINTF
766 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
768 GL_GENERATE_STDDEF_H_FALSE
769 GL_GENERATE_STDDEF_H_TRUE
774 GL_GENERATE_STDBOOL_H_FALSE
775 GL_GENERATE_STDBOOL_H_TRUE
777 GL_GENERATE_STDARG_H_FALSE
778 GL_GENERATE_STDARG_H_TRUE
780 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
782 GL_GENERATE_STDALIGN_H_FALSE
783 GL_GENERATE_STDALIGN_H_TRUE
785 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 REPLACE_PTHREAD_SIGMASK
793 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
794 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_POSIX_SIGNALBLOCKING
803 GNULIB_SIGNAL_H_SIGPIPE
805 GNULIB_PTHREAD_SIGMASK
807 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
821 HAVE_DECL_LOCALTIME_R
900 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
902 UINT64_MAX_EQ_ULONG_MAX
903 UINT32_MAX_LT_UINTMAX_MAX
906 INT64_MAX_EQ_LONG_MAX
907 INT32_MAX_LT_INTMAX_MAX
917 GL_GENERATE_STDINT_H_FALSE
918 GL_GENERATE_STDINT_H_TRUE
927 HAVE_SIGNED_SIG_ATOMIC_T
930 BITSIZEOF_SIG_ATOMIC_T
933 APPLE_UNIVERSAL_BUILD
937 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
942 HAVE_UNSIGNED_LONG_LONG_INT
945 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
947 REPLACE_STRUCT_TIMEVAL
953 GNULIB_GL_UNISTD_H_GETOPT
956 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
972 REPLACE_CANONICALIZE_FILE_NAME
977 HAVE_STRUCT_RANDOM_DATA
1000 HAVE_CANONICALIZE_FILE_NAME
1011 GNULIB_SECURE_GETENV
1014 GNULIB_REALLOC_POSIX
1031 GNULIB_CANONICALIZE_FILE_NAME
1069 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1080 GL_GENERATE_EXECINFO_H_FALSE
1081 GL_GENERATE_EXECINFO_H_TRUE
1090 GL_GENERATE_ERRNO_H_FALSE
1091 GL_GENERATE_ERRNO_H_TRUE
1093 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1096 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1099 PRAGMA_SYSTEM_HEADER
1100 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1123 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1124 UNISTD_H_HAVE_WINSOCK2_H
1145 REPLACE_GETDOMAINNAME
1156 HAVE_DECL_SETHOSTNAME
1157 HAVE_DECL_GETUSERSHELL
1158 HAVE_DECL_GETPAGESIZE
1159 HAVE_DECL_GETLOGIN_R
1160 HAVE_DECL_GETDOMAINNAME
1199 GNULIB_UNISTD_H_SIGPIPE
1200 GNULIB_UNISTD_H_NONBLOCKING
1226 GNULIB_GETDTABLESIZE
1227 GNULIB_GETDOMAINNAME
1244 GL_GENERATE_ALLOCA_H_FALSE
1245 GL_GENERATE_ALLOCA_H_TRUE
1248 GL_COND_LIBTOOL_FALSE
1249 GL_COND_LIBTOOL_TRUE
1280 x_default_search_path
1375 INSTALL_ARCH_INDEP_EXTRA
1377 LD_SWITCH_X_SITE_RPATH
1409 BUILDING_FOR_WINDOWSNT_FALSE
1410 BUILDING_FOR_WINDOWSNT_TRUE
1446 INSTALL_STRIP_PROGRAM
1488 program_transform_name
1499 ac_subst_files
='deps_frag
1502 enable_option_checking
1525 with_toolkit_scroll_bars
1536 with_file_notification
1539 with_pkg_config_prog
1542 enable_ns_self_contained
1543 enable_locallisppath
1545 enable_check_lisp_object_type
1548 enable_gtk_deprecation_warnings
1549 enable_dependency_tracking
1552 enable_link_time_optimization
1556 ac_precious_vars
='build_alias
1568 # Initialize some variables set by options.
1570 ac_init_version
=false
1571 ac_unrecognized_opts
=
1572 ac_unrecognized_sep
=
1573 # The variables have the same names as the options, with
1574 # dashes changed to underlines.
1575 cache_file
=/dev
/null
1582 program_transform_name
=s
,x
,x
,
1590 # Installation directory options.
1591 # These are left unexpanded so users can "make install exec_prefix=/foo"
1592 # and all the variables that are supposed to be based on exec_prefix
1593 # by default will actually change.
1594 # Use braces instead of parens because sh, perl, etc. also accept them.
1595 # (The list follows the same order as the GNU Coding Standards.)
1596 bindir
='${exec_prefix}/bin'
1597 sbindir
='${exec_prefix}/sbin'
1598 libexecdir
='${exec_prefix}/libexec'
1599 datarootdir
='${prefix}/share'
1600 datadir
='${datarootdir}'
1601 sysconfdir
='${prefix}/etc'
1602 sharedstatedir
='${prefix}/com'
1603 localstatedir
='${prefix}/var'
1604 includedir
='${prefix}/include'
1605 oldincludedir
='/usr/include'
1606 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1607 infodir
='${datarootdir}/info'
1612 libdir
='${exec_prefix}/lib'
1613 localedir
='${datarootdir}/locale'
1614 mandir
='${datarootdir}/man'
1620 # If the previous option needs an argument, assign it.
1621 if test -n "$ac_prev"; then
1622 eval $ac_prev=\
$ac_option
1628 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1632 # Accept the important Cygnus configure options, so we can diagnose typos.
1634 case $ac_dashdash$ac_option in
1638 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1640 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1641 bindir
=$ac_optarg ;;
1643 -build |
--build |
--buil |
--bui |
--bu)
1644 ac_prev
=build_alias
;;
1645 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1646 build_alias
=$ac_optarg ;;
1648 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1649 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1650 ac_prev
=cache_file
;;
1651 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1652 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1653 cache_file
=$ac_optarg ;;
1655 --config-cache |
-C)
1656 cache_file
=config.cache
;;
1658 -datadir |
--datadir |
--datadi |
--datad)
1660 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1661 datadir
=$ac_optarg ;;
1663 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1664 |
--dataroo |
--dataro |
--datar)
1665 ac_prev
=datarootdir
;;
1666 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1667 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1668 datarootdir
=$ac_optarg ;;
1670 -disable-* |
--disable-*)
1671 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1672 # Reject names that are not valid shell variable names.
1673 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1674 as_fn_error
"invalid feature name: $ac_useropt"
1675 ac_useropt_orig
=$ac_useropt
1676 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1677 case $ac_user_opts in
1679 "enable_
$ac_useropt"
1681 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1682 ac_unrecognized_sep
=', ';;
1684 eval enable_
$ac_useropt=no
;;
1686 -docdir |
--docdir |
--docdi |
--doc |
--do)
1688 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1689 docdir
=$ac_optarg ;;
1691 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1693 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1694 dvidir
=$ac_optarg ;;
1696 -enable-* |
--enable-*)
1697 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1700 as_fn_error
"invalid feature name: $ac_useropt"
1701 ac_useropt_orig
=$ac_useropt
1702 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1705 "enable_
$ac_useropt"
1707 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1708 ac_unrecognized_sep
=', ';;
1710 eval enable_
$ac_useropt=\
$ac_optarg ;;
1712 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1713 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1714 |
--exec |
--exe |
--ex)
1715 ac_prev
=exec_prefix
;;
1716 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1717 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1718 |
--exec=* |
--exe=* |
--ex=*)
1719 exec_prefix
=$ac_optarg ;;
1721 -gas |
--gas |
--ga |
--g)
1722 # Obsolete; use --with-gas.
1725 -help |
--help |
--hel |
--he |
-h)
1726 ac_init_help
=long
;;
1727 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1728 ac_init_help
=recursive
;;
1729 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1730 ac_init_help
=short
;;
1732 -host |
--host |
--hos |
--ho)
1733 ac_prev
=host_alias
;;
1734 -host=* |
--host=* |
--hos=* |
--ho=*)
1735 host_alias
=$ac_optarg ;;
1737 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1739 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1741 htmldir
=$ac_optarg ;;
1743 -includedir |
--includedir |
--includedi |
--included |
--include \
1744 |
--includ |
--inclu |
--incl |
--inc)
1745 ac_prev
=includedir
;;
1746 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1747 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1748 includedir
=$ac_optarg ;;
1750 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1752 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1753 infodir
=$ac_optarg ;;
1755 -libdir |
--libdir |
--libdi |
--libd)
1757 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1758 libdir
=$ac_optarg ;;
1760 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1761 |
--libexe |
--libex |
--libe)
1762 ac_prev
=libexecdir
;;
1763 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1764 |
--libexe=* |
--libex=* |
--libe=*)
1765 libexecdir
=$ac_optarg ;;
1767 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1768 ac_prev
=localedir
;;
1769 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1770 localedir
=$ac_optarg ;;
1772 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1773 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1774 ac_prev
=localstatedir
;;
1775 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1776 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1777 localstatedir
=$ac_optarg ;;
1779 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1781 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1782 mandir
=$ac_optarg ;;
1784 -nfp |
--nfp |
--nf)
1785 # Obsolete; use --without-fp.
1788 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1789 |
--no-cr |
--no-c |
-n)
1792 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1793 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1796 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1797 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1798 |
--oldin |
--oldi |
--old |
--ol |
--o)
1799 ac_prev
=oldincludedir
;;
1800 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1801 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1802 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1803 oldincludedir
=$ac_optarg ;;
1805 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1807 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1808 prefix
=$ac_optarg ;;
1810 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1811 |
--program-pre |
--program-pr |
--program-p)
1812 ac_prev
=program_prefix
;;
1813 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1814 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1815 program_prefix
=$ac_optarg ;;
1817 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1818 |
--program-suf |
--program-su |
--program-s)
1819 ac_prev
=program_suffix
;;
1820 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1821 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1822 program_suffix
=$ac_optarg ;;
1824 -program-transform-name |
--program-transform-name \
1825 |
--program-transform-nam |
--program-transform-na \
1826 |
--program-transform-n |
--program-transform- \
1827 |
--program-transform |
--program-transfor \
1828 |
--program-transfo |
--program-transf \
1829 |
--program-trans |
--program-tran \
1830 |
--progr-tra |
--program-tr |
--program-t)
1831 ac_prev
=program_transform_name
;;
1832 -program-transform-name=* |
--program-transform-name=* \
1833 |
--program-transform-nam=* |
--program-transform-na=* \
1834 |
--program-transform-n=* |
--program-transform-=* \
1835 |
--program-transform=* |
--program-transfor=* \
1836 |
--program-transfo=* |
--program-transf=* \
1837 |
--program-trans=* |
--program-tran=* \
1838 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1839 program_transform_name
=$ac_optarg ;;
1841 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1843 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1844 pdfdir
=$ac_optarg ;;
1846 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1848 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1851 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1852 |
-silent |
--silent |
--silen |
--sile |
--sil)
1855 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1857 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1859 sbindir
=$ac_optarg ;;
1861 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1862 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1863 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1865 ac_prev
=sharedstatedir
;;
1866 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1867 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1868 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1870 sharedstatedir
=$ac_optarg ;;
1872 -site |
--site |
--sit)
1874 -site=* |
--site=* |
--sit=*)
1877 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1879 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1880 srcdir
=$ac_optarg ;;
1882 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1883 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1884 ac_prev
=sysconfdir
;;
1885 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1886 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1887 sysconfdir
=$ac_optarg ;;
1889 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1890 ac_prev
=target_alias
;;
1891 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1892 target_alias
=$ac_optarg ;;
1894 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1897 -version |
--version |
--versio |
--versi |
--vers |
-V)
1898 ac_init_version
=: ;;
1901 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1902 # Reject names that are not valid shell variable names.
1903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1904 as_fn_error
"invalid package name: $ac_useropt"
1905 ac_useropt_orig
=$ac_useropt
1906 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1907 case $ac_user_opts in
1911 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1912 ac_unrecognized_sep
=', ';;
1914 eval with_
$ac_useropt=\
$ac_optarg ;;
1916 -without-* |
--without-*)
1917 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1918 # Reject names that are not valid shell variable names.
1919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1920 as_fn_error
"invalid package name: $ac_useropt"
1921 ac_useropt_orig
=$ac_useropt
1922 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1923 case $ac_user_opts in
1927 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1928 ac_unrecognized_sep
=', ';;
1930 eval with_
$ac_useropt=no
;;
1933 # Obsolete; use --with-x.
1936 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1937 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1938 ac_prev
=x_includes
;;
1939 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1940 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1941 x_includes
=$ac_optarg ;;
1943 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1944 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1945 ac_prev
=x_libraries
;;
1946 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1947 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1948 x_libraries
=$ac_optarg ;;
1950 -*) as_fn_error
"unrecognized option: \`$ac_option'
1951 Try \`$0 --help' for more information."
1955 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1956 # Reject names that are not valid shell variable names.
1957 case $ac_envvar in #(
1958 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1959 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1961 eval $ac_envvar=\
$ac_optarg
1962 export $ac_envvar ;;
1965 # FIXME: should be removed in autoconf 3.0.
1966 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1967 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1968 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1969 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1975 if test -n "$ac_prev"; then
1976 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1977 as_fn_error
"missing argument to $ac_option"
1980 if test -n "$ac_unrecognized_opts"; then
1981 case $enable_option_checking in
1983 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1984 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1988 # Check all directory arguments for consistency.
1989 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1990 datadir sysconfdir sharedstatedir localstatedir includedir \
1991 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1992 libdir localedir mandir
1994 eval ac_val
=\$
$ac_var
1995 # Remove trailing slashes.
1998 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1999 eval $ac_var=\
$ac_val;;
2001 # Be sure to have absolute directory names.
2003 [\\/$
]* | ?
:[\\/]* ) continue;;
2004 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2006 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2009 # There might be people who depend on the old broken behavior: `$host'
2010 # used to hold the argument of --host etc.
2011 # FIXME: To remove some day.
2014 target
=$target_alias
2016 # FIXME: To remove some day.
2017 if test "x$host_alias" != x
; then
2018 if test "x$build_alias" = x
; then
2019 cross_compiling
=maybe
2020 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2021 If a cross compiler is detected then cross compile mode will be used." >&2
2022 elif test "x$build_alias" != "x$host_alias"; then
2028 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2030 test "$silent" = yes && exec 6>/dev
/null
2033 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2034 ac_ls_di
=`ls -di .` &&
2035 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2036 as_fn_error
"working directory cannot be determined"
2037 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2038 as_fn_error
"pwd does not report name of working directory"
2041 # Find the source files, if location was not specified.
2042 if test -z "$srcdir"; then
2043 ac_srcdir_defaulted
=yes
2044 # Try the directory containing this script, then the parent directory.
2045 ac_confdir
=`$as_dirname -- "$as_myself" ||
2046 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2047 X"$as_myself" : 'X\(//\)[^/]' \| \
2048 X"$as_myself" : 'X\(//\)$' \| \
2049 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2050 $as_echo X"$as_myself" |
2051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2069 if test ! -r "$srcdir/$ac_unique_file"; then
2073 ac_srcdir_defaulted
=no
2075 if test ! -r "$srcdir/$ac_unique_file"; then
2076 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2077 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2079 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2081 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2083 # When building in place, set srcdir=.
2084 if test "$ac_abs_confdir" = "$ac_pwd"; then
2087 # Remove unnecessary trailing slashes from srcdir.
2088 # Double slashes in file names in object file debugging info
2089 # mess up M-x gdb in Emacs.
2091 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2093 for ac_var
in $ac_precious_vars; do
2094 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2095 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2096 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2097 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2101 # Report the --help message.
2103 if test "$ac_init_help" = "long"; then
2104 # Omit some internal or obsolete options to make the list less imposing.
2105 # This message is too long to be a string in the A/UX 3.1 sh.
2107 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2109 Usage: $0 [OPTION]... [VAR=VALUE]...
2111 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2112 VAR=VALUE. See below for descriptions of some of the useful variables.
2114 Defaults for the options are specified in brackets.
2117 -h, --help display this help and exit
2118 --help=short display options specific to this package
2119 --help=recursive display the short help of all the included packages
2120 -V, --version display version information and exit
2121 -q, --quiet, --silent do not print \`checking...' messages
2122 --cache-file=FILE cache test results in FILE [disabled]
2123 -C, --config-cache alias for \`--cache-file=config.cache'
2124 -n, --no-create do not create output files
2125 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2127 Installation directories:
2128 --prefix=PREFIX install architecture-independent files in PREFIX
2129 [$ac_default_prefix]
2130 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2133 By default, \`make install' will install all the files in
2134 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2135 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2136 for instance \`--prefix=\$HOME'.
2138 For better control, use the options below.
2140 Fine tuning of the installation directories:
2141 --bindir=DIR user executables [EPREFIX/bin]
2142 --sbindir=DIR system admin executables [EPREFIX/sbin]
2143 --libexecdir=DIR program executables [EPREFIX/libexec]
2144 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2145 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2146 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2147 --libdir=DIR object code libraries [EPREFIX/lib]
2148 --includedir=DIR C header files [PREFIX/include]
2149 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2150 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2151 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2152 --infodir=DIR info documentation [DATAROOTDIR/info]
2153 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2154 --mandir=DIR man documentation [DATAROOTDIR/man]
2155 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2156 --htmldir=DIR html documentation [DOCDIR]
2157 --dvidir=DIR dvi documentation [DOCDIR]
2158 --pdfdir=DIR pdf documentation [DOCDIR]
2159 --psdir=DIR ps documentation [DOCDIR]
2165 --program-prefix=PREFIX prepend PREFIX to installed program names
2166 --program-suffix=SUFFIX append SUFFIX to installed program names
2167 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2170 --x-includes=DIR X include files are
in DIR
2171 --x-libraries=DIR X library files are
in DIR
2174 --build=BUILD configure
for building on BUILD
[guessed
]
2175 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2179 if test -n "$ac_init_help"; then
2180 case $ac_init_help in
2181 short | recursive
) echo "Configuration of emacs 24.3.50:";;
2186 --disable-option-checking ignore unrecognized
--enable/--with options
2187 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2188 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2189 --disable-ns-self-contained
2190 disable self contained build under NeXTstep
2191 --enable-locallisppath=PATH
2192 directories Emacs should search
for lisp files
2193 specific to this site
2194 --enable-checking[=LIST
]
2195 enable expensive run-time checks. With LIST
, enable
2196 only specific categories of checks. Categories are
:
2197 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2198 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2199 --enable-check-lisp-object-type
2200 enable compile
time checks
for the Lisp_Object data
2201 type. This is useful
for development
for catching
2202 certain types of bugs.
2203 --enable-profiling build emacs with low-level
, gprof profiling support.
2204 Mainly useful
for debugging Emacs itself. May not
2205 work on all platforms. Stops profiler.el working.
2206 --enable-autodepend automatically generate dependencies to .h-files.
2207 Requires GNU Make and Gcc. Enabled
if GNU Make and
2209 --enable-gtk-deprecation-warnings
2210 Show Gtk
+/Gdk deprecation warnings
for Gtk
+ >= 3.0
2211 --disable-dependency-tracking speeds up one-time build
2212 --enable-dependency-tracking do not reject slow dependency extractors
2213 --disable-largefile omit support
for large files
2214 --enable-gcc-warnings turn on lots of GCC warnings
/errors. This is
2215 intended
for developers
, and may generate false
2216 alarms when used with older or non-GNU development
2218 --enable-link-time-optimization
2219 build emacs with link-time optimization. This is
2220 supported only
for GCC since
4.5.0.
2221 --disable-acl do not support ACLs
2224 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2225 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2226 --without-all omit almost all features and build small executable
2227 with minimal dependencies
2228 --without-pop don
't support POP mail retrieval with movemail
2229 --with-kerberos support Kerberos-authenticated POP
2230 --with-kerberos5 support Kerberos version 5 authenticated POP
2231 --with-hesiod support Hesiod to get the POP server host
2232 --with-mmdf support MMDF mailboxes
2233 --with-mail-unlink unlink, rather than empty, mail spool after reading
2234 --with-mailhost=HOSTNAME
2235 string giving default POP mail host
2236 --without-sound don't compile with sound support
2237 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2238 gtk3
, lucid or athena
, motif
, no
)
2239 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2240 --without-xpm don
't compile with XPM image support
2241 --without-jpeg don't compile with JPEG image support
2242 --without-tiff don
't compile with TIFF image support
2243 --without-gif don't compile with GIF image support
2244 --without-png don
't compile with PNG image support
2245 --without-rsvg don't compile with SVG image support
2246 --without-xml2 don
't compile with XML parsing support
2247 --without-imagemagick don't compile with ImageMagick image support
2248 --without-xft don
't use XFT for anti aliased fonts
2249 --without-libotf don't use libotf
for OpenType font support
2250 --without-m17n-flt don
't use m17n-flt for text shaping
2251 --without-toolkit-scroll-bars
2252 don't use Motif or Xaw3d scroll bars
2253 --without-xaw3d don
't use Xaw3d
2254 --without-xim don't use X11 XIM
2255 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2256 --with-w32 use native MS Windows GUI
in a Cygwin build
2257 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2259 --without-dbus don't compile with D-Bus support
2260 --without-gconf don
't compile with GConf support
2261 --without-gsettings don't compile with GSettings support
2262 --without-selinux don
't compile with SELinux support
2263 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2264 --with-file-notification=LIB
2265 use a
file notification library
(LIB one of
: yes,
2266 gfile
, inotify
, w32
, no
)
2267 --without-makeinfo don
't require makeinfo for building manuals
2268 --without-compress-info don't
compress the installed Info pages
2269 --with-pkg-config-prog=FILENAME
2270 file name of pkg-config
for finding GTK and librsvg
2271 --with-gameuser=USER user
for shared game score files
2272 --with-gnustep-conf=FILENAME
2273 name of GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2274 or
/etc
/GNUstep
/GNUstep.conf
2275 --with-x use the X Window System
2277 Some influential environment variables
:
2278 CC C compiler
command
2279 CFLAGS C compiler flags
2280 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2281 nonstandard directory
<lib dir
>
2282 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2283 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2284 you have headers
in a nonstandard directory
<include dir
>
2286 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2288 Use these variables to override the choices made by
`configure' or to help
2289 it to find libraries and programs with nonstandard names/locations.
2291 Report bugs to the package provider.
2296 if test "$ac_init_help" = "recursive"; then
2297 # If there are subdirs, report their specific --help.
2298 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2299 test -d "$ac_dir" ||
2300 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2307 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2308 # A ".." for each directory in $ac_dir_suffix.
2309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2310 case $ac_top_builddir_sub in
2311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2315 ac_abs_top_builddir=$ac_pwd
2316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2317 # for backward compatibility:
2318 ac_top_builddir=$ac_top_build_prefix
2321 .) # We are building in place.
2323 ac_top_srcdir=$ac_top_builddir_sub
2324 ac_abs_top_srcdir=$ac_pwd ;;
2325 [\\/]* | ?:[\\/]* ) # Absolute name.
2326 ac_srcdir=$srcdir$ac_dir_suffix;
2327 ac_top_srcdir=$srcdir
2328 ac_abs_top_srcdir=$srcdir ;;
2330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2331 ac_top_srcdir=$ac_top_build_prefix$srcdir
2332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2336 cd "$ac_dir" || { ac_status=$?; continue; }
2337 # Check for guested configure.
2338 if test -f "$ac_srcdir/configure.gnu"; then
2340 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2341 elif test -f "$ac_srcdir/configure"; then
2343 $SHELL "$ac_srcdir/configure" --help=recursive
2345 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2347 cd "$ac_pwd" || { ac_status=$?; break; }
2351 test -n "$ac_init_help" && exit $ac_status
2352 if $ac_init_version; then
2354 emacs configure 24.3.50
2355 generated by GNU Autoconf 2.65
2357 Copyright (C) 2009 Free Software Foundation, Inc.
2358 This configure script is free software; the Free Software Foundation
2359 gives unlimited permission to copy, distribute and modify it.
2364 ## ------------------------ ##
2365 ## Autoconf initialization. ##
2366 ## ------------------------ ##
2368 # ac_fn_c_try_compile LINENO
2369 # --------------------------
2370 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_c_try_compile ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext
2375 if { { ac_try="$ac_compile"
2377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2378 *) ac_try_echo
=$ac_try;;
2380 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_compile") 2>conftest.err
2384 if test -s conftest.err
; then
2385 grep -v '^ *+' conftest.err
>conftest.er1
2386 cat conftest.er1
>&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest.
$ac_objext; then :
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.
$ac_ext >&5
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2402 as_fn_set_status
$ac_retval
2404 } # ac_fn_c_try_compile
2406 # ac_fn_c_try_cpp LINENO
2407 # ----------------------
2408 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2412 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418 $as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421 if test -s conftest.err; then
2422 grep -v '^ *+' conftest.err >conftest.er1
2423 cat conftest.er1 >&5
2424 mv -f conftest.er1 conftest.err
2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427 test $ac_status = 0; } >/dev/null && {
2428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2429 test ! -s conftest.err
2433 $as_echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 as_fn_set_status $ac_retval
2443 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2444 # -------------------------------------------------------
2445 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2446 # the include files in INCLUDES and setting the cache variable VAR
2448 ac_fn_c_check_header_mongrel ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2453 $as_echo_n "checking for $2... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2461 # Is the header compilable?
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2463 $as_echo_n "checking $2 usability... " >&6; }
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_header_compiler=yes
2472 ac_header_compiler=no
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2476 $as_echo "$ac_header_compiler" >&6; }
2478 # Is the header present?
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2480 $as_echo_n "checking $2 presence... " >&6; }
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2485 if ac_fn_c_try_cpp "$LINENO"; then :
2486 ac_header_preproc=yes
2488 ac_header_preproc=no
2490 rm -f conftest.err conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2492 $as_echo "$ac_header_preproc" >&6; }
2494 # So? What about this header?
2495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2498 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2500 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2504 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2506 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2508 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2510 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2512 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2516 $as_echo_n "checking for $2... " >&6; }
2517 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2518 $as_echo_n "(cached) " >&6
2520 eval "$3=\$ac_header_compiler"
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 } # ac_fn_c_check_header_mongrel
2530 # ac_fn_c_try_run LINENO
2531 # ----------------------
2532 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2533 # that executables *can* be run.
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 if { { ac_try="$ac_link"
2539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2540 *) ac_try_echo
=$ac_try;;
2542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_link") 2>&5
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2547 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2548 { { case "(($ac_try" in
2549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_try") 2>&5
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; }; }; then :
2560 $as_echo "$as_me: program exited with status $ac_status" >&5
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 ac_retval=$ac_status
2566 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568 as_fn_set_status $ac_retval
2572 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2573 # -------------------------------------------------------
2574 # Tests whether HEADER exists and can be compiled using the include files in
2575 # INCLUDES, setting the cache variable VAR accordingly.
2576 ac_fn_c_check_header_compile ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2589 if ac_fn_c_try_compile "$LINENO"; then :
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 $as_echo "$ac_res" >&6; }
2599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2601 } # ac_fn_c_check_header_compile
2603 # ac_fn_c_try_link LINENO
2604 # -----------------------
2605 # Try to link conftest.$ac_ext, and return whether this succeeded.
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 rm -f conftest.$ac_objext conftest$ac_exeext
2610 if { { ac_try="$ac_link"
2612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2613 *) ac_try_echo
=$ac_try;;
2615 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link") 2>conftest.err
2619 if test -s conftest.err
; then
2620 grep -v '^ *+' conftest.err
>conftest.er1
2621 cat conftest.er1
>&5
2622 mv -f conftest.er1 conftest.err
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest
$ac_exeext && {
2629 test "$cross_compiling" = yes ||
2630 $as_test_x conftest
$ac_exeext
2634 $as_echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.
$ac_ext >&5
2639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2641 # interfere with the next link command; also delete a directory that is
2642 # left behind by Apple's compiler. We do this before executing the actions.
2643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2645 as_fn_set_status
$ac_retval
2647 } # ac_fn_c_try_link
2649 # ac_fn_c_check_decl LINENO SYMBOL VAR
2650 # ------------------------------------
2651 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2652 ac_fn_c_check_decl
()
2654 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2656 $as_echo_n "checking whether $2 is declared... " >&6; }
2657 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2674 if ac_fn_c_try_compile
"$LINENO"; then :
2679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2686 } # ac_fn_c_check_decl
2688 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2689 # ----------------------------------------------
2690 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2691 ac_fn_c_check_header_preproc
()
2693 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2695 $as_echo_n "checking for $2... " >&6; }
2696 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2697 $as_echo_n "(cached) " >&6
2699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 if ac_fn_c_try_cpp
"$LINENO"; then :
2708 rm -f conftest.err conftest.
$ac_ext
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2712 $as_echo "$ac_res" >&6; }
2713 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2715 } # ac_fn_c_check_header_preproc
2717 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2718 # ----------------------------------------------------
2719 # Tries to find if the field MEMBER exists in type AGGR, after including
2720 # INCLUDES, setting cache variable VAR accordingly.
2721 ac_fn_c_check_member
()
2723 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2725 $as_echo_n "checking for $2.$3... " >&6; }
2726 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2727 $as_echo_n "(cached) " >&6
2729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2742 if ac_fn_c_try_compile
"$LINENO"; then :
2745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2752 if (sizeof ac_aggr.$3)
2758 if ac_fn_c_try_compile
"$LINENO"; then :
2763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2772 } # ac_fn_c_check_member
2774 # ac_fn_c_check_func LINENO FUNC VAR
2775 # ----------------------------------
2776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2777 ac_fn_c_check_func
()
2779 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2781 $as_echo_n "checking for $2... " >&6; }
2782 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2783 $as_echo_n "(cached) " >&6
2785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2789 #define $2 innocuous_$2
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char $2 (); below.
2793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 <limits.h> exists even on freestanding compilers. */
2797 # include <limits.h>
2799 # include <assert.h>
2804 /* Override any GCC internal prototype to avoid an error.
2805 Use char because int might match the return type of a GCC
2806 builtin and then its argument prototype would still apply. */
2811 /* The GNU C library defines this for functions which it implements
2812 to always fail with ENOSYS. Some functions are actually named
2813 something starting with __ and the normal name is an alias. */
2814 #if defined __stub_$2 || defined __stub___$2
2826 if ac_fn_c_try_link
"$LINENO"; then :
2831 rm -f core conftest.err conftest.
$ac_objext \
2832 conftest
$ac_exeext conftest.
$ac_ext
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2837 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2839 } # ac_fn_c_check_func
2841 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2842 # -------------------------------------------
2843 # Tests whether TYPE exists after having included INCLUDES, setting cache
2844 # variable VAR accordingly.
2845 ac_fn_c_check_type
()
2847 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2849 $as_echo_n "checking for $2... " >&6; }
2850 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2866 if ac_fn_c_try_compile
"$LINENO"; then :
2867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2879 if ac_fn_c_try_compile
"$LINENO"; then :
2884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2890 $as_echo "$ac_res" >&6; }
2891 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2893 } # ac_fn_c_check_type
2895 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2896 # --------------------------------------------
2897 # Tries to find the compile-time value of EXPR in a program that includes
2898 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2900 ac_fn_c_compute_int
()
2902 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2903 if test "$cross_compiling" = yes; then
2904 # Depending upon the size, compute the lo and hi bounds.
2905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2911 static int test_array [1 - 2 * !(($2) >= 0)];
2918 if ac_fn_c_try_compile
"$LINENO"; then :
2921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2927 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2934 if ac_fn_c_try_compile
"$LINENO"; then :
2935 ac_hi
=$ac_mid; break
2937 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2938 if test $ac_lo -le $ac_mid; then
2942 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2953 static int test_array [1 - 2 * !(($2) < 0)];
2960 if ac_fn_c_try_compile
"$LINENO"; then :
2963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2964 /* end confdefs.h. */
2969 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2976 if ac_fn_c_try_compile
"$LINENO"; then :
2977 ac_lo
=$ac_mid; break
2979 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2980 if test $ac_mid -le $ac_hi; then
2984 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2994 # Binary search between lo and hi bounds.
2995 while test "x$ac_lo" != "x$ac_hi"; do
2996 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3010 if ac_fn_c_try_compile
"$LINENO"; then :
3013 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3018 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3025 static long int longval () { return $2; }
3026 static unsigned long int ulongval () { return $2; }
3033 FILE *f = fopen ("conftest.val", "w");
3038 long int i = longval ();
3041 fprintf (f, "%ld", i);
3045 unsigned long int i = ulongval ();
3048 fprintf (f, "%lu", i);
3050 /* Do not output a trailing newline, as this causes \r\n confusion
3051 on some platforms. */
3052 return ferror (f) || fclose (f) != 0;
3058 if ac_fn_c_try_run
"$LINENO"; then :
3059 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3068 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
3069 as_fn_set_status
$ac_retval
3071 } # ac_fn_c_compute_int
3072 cat >config.log
<<_ACEOF
3073 This file contains any messages produced by compilers while
3074 running configure, to aid debugging if configure makes a mistake.
3076 It was created by emacs $as_me 24.3.50, which was
3077 generated by GNU Autoconf 2.65. Invocation command line was
3089 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3090 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3091 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3092 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3093 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3095 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3096 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3098 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3099 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3100 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3101 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3102 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3103 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3104 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir
=.
3113 $as_echo "PATH: $as_dir"
3129 # Keep a trace of the command line.
3130 # Strip out --no-create and --no-recursion so they do not pile up.
3131 # Strip out --silent because we don't want to record it for future runs.
3132 # Also quote any args containing shell meta-characters.
3133 # Make two passes to allow for proper duplicate-argument suppression.
3137 ac_must_keep_next
=false
3143 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3145 |
-silent |
--silent |
--silen |
--sile |
--sil)
3148 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3151 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3153 as_fn_append ac_configure_args1
" '$ac_arg'"
3154 if test $ac_must_keep_next = true
; then
3155 ac_must_keep_next
=false
# Got value, back to normal.
3158 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3159 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3160 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3161 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3162 case "$ac_configure_args0 " in
3163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3166 -* ) ac_must_keep_next
=true
;;
3169 as_fn_append ac_configure_args
" '$ac_arg'"
3174 { ac_configure_args0
=; unset ac_configure_args0
;}
3175 { ac_configure_args1
=; unset ac_configure_args1
;}
3177 # When interrupted or exit'd, cleanup temporary files, and complete
3178 # config.log. We remove comments because anyway the quotes in there
3179 # would cause problems or look ugly.
3180 # WARNING: Use '\'' to represent an apostrophe within the trap.
3181 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3182 trap 'exit_status=$?
3183 # Save into config.log some information that might help in debugging.
3188 ## ---------------- ##
3189 ## Cache variables. ##
3190 ## ---------------- ##
3193 # The following way of writing the cache mishandles newlines in values,
3195 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3196 eval ac_val=\$$ac_var
3200 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3201 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3204 _ | IFS | as_nl) ;; #(
3205 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3206 *) { eval $ac_var=; unset $ac_var;} ;;
3211 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3212 *${as_nl}ac_space=\ *)
3214 "s/'\''/'\''\\\\'\'''\''/g;
3215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3218 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3226 ## ----------------- ##
3227 ## Output variables. ##
3228 ## ----------------- ##
3231 for ac_var in $ac_subst_vars
3233 eval ac_val=\$$ac_var
3235 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3237 $as_echo "$ac_var='\''$ac_val'\''"
3241 if test -n "$ac_subst_files"; then
3243 ## ------------------- ##
3244 ## File substitutions. ##
3245 ## ------------------- ##
3248 for ac_var
in $ac_subst_files
3250 eval ac_val
=\$
$ac_var
3252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254 $as_echo "$ac_var='\''$ac_val'\''"
3259 if test -s confdefs.h; then
3269 test "$ac_signal" != 0 &&
3270 $as_echo "$as_me: caught signal $ac_signal"
3271 $as_echo "$as_me: exit $exit_status"
3273 rm -f core *.core core.conftest.* &&
3274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3277 for ac_signal
in 1 2 13 15; do
3278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3283 rm -f -r conftest
* confdefs.h
3285 $as_echo "/* confdefs.h */" > confdefs.h
3287 # Predefined preprocessor variables.
3289 cat >>confdefs.h
<<_ACEOF
3290 #define PACKAGE_NAME "$PACKAGE_NAME"
3293 cat >>confdefs.h
<<_ACEOF
3294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3297 cat >>confdefs.h
<<_ACEOF
3298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3301 cat >>confdefs.h
<<_ACEOF
3302 #define PACKAGE_STRING "$PACKAGE_STRING"
3305 cat >>confdefs.h
<<_ACEOF
3306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3309 cat >>confdefs.h
<<_ACEOF
3310 #define PACKAGE_URL "$PACKAGE_URL"
3314 # Let the site file select an alternate cache file if it wants to.
3315 # Prefer an explicitly selected file to automatically selected ones.
3318 if test -n "$CONFIG_SITE"; then
3319 ac_site_file1
=$CONFIG_SITE
3320 elif test "x$prefix" != xNONE
; then
3321 ac_site_file1
=$prefix/share
/config.site
3322 ac_site_file2
=$prefix/etc
/config.site
3324 ac_site_file1
=$ac_default_prefix/share
/config.site
3325 ac_site_file2
=$ac_default_prefix/etc
/config.site
3327 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3329 test "x$ac_site_file" = xNONE
&& continue
3330 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3332 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3333 sed 's/^/| /' "$ac_site_file" >&5
3338 if test -r "$cache_file"; then
3339 # Some versions of bash will fail to source /dev/null (special files
3340 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3341 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3343 $as_echo "$as_me: loading cache $cache_file" >&6;}
3345 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3346 *) .
"./$cache_file";;
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3351 $as_echo "$as_me: creating cache $cache_file" >&6;}
3355 as_fn_append ac_header_list
" sys/systeminfo.h"
3356 as_fn_append ac_header_list
" coff.h"
3357 as_fn_append ac_header_list
" pty.h"
3358 as_fn_append ac_header_list
" sys/resource.h"
3359 as_fn_append ac_header_list
" sys/utsname.h"
3360 as_fn_append ac_header_list
" pwd.h"
3361 as_fn_append ac_header_list
" utmp.h"
3362 as_fn_append ac_header_list
" util.h"
3363 as_fn_append ac_header_list
" sys/socket.h"
3364 as_fn_append ac_header_list
" stdlib.h"
3365 as_fn_append ac_header_list
" unistd.h"
3366 as_fn_append ac_header_list
" sys/param.h"
3367 as_fn_append ac_header_list
" pthread.h"
3368 as_fn_append ac_header_list
" malloc/malloc.h"
3369 as_fn_append ac_header_list
" maillock.h"
3370 as_fn_append ac_header_list
" sys/un.h"
3371 as_fn_append ac_func_list
" tzset"
3372 as_fn_append ac_func_list
" readlinkat"
3373 as_fn_append ac_header_list
" dirent.h"
3374 as_fn_append ac_header_list
" execinfo.h"
3375 as_fn_append ac_func_list
" faccessat"
3376 as_fn_append ac_func_list
" fcntl"
3377 as_fn_append ac_func_list
" fdopendir"
3378 as_fn_append ac_header_list
" stdio_ext.h"
3379 as_fn_append ac_func_list
" __fpending"
3380 as_fn_append ac_func_list
" fstatat"
3381 as_fn_append ac_func_list
" fsync"
3382 gl_getopt_required
=GNU
3383 as_fn_append ac_header_list
" getopt.h"
3384 as_fn_append ac_func_list
" gettimeofday"
3385 as_fn_append ac_func_list
" nanotime"
3386 as_fn_append ac_header_list
" sys/time.h"
3387 as_fn_append ac_header_list
" wchar.h"
3388 as_fn_append ac_header_list
" stdint.h"
3389 as_fn_append ac_header_list
" inttypes.h"
3390 as_fn_append ac_func_list
" lstat"
3391 as_fn_append ac_func_list
" pipe2"
3392 as_fn_append ac_header_list
" sys/select.h"
3393 as_fn_append ac_func_list
" pselect"
3394 as_fn_append ac_func_list
" pthread_sigmask"
3395 as_fn_append ac_func_list
" readlink"
3396 as_fn_append ac_func_list
" strtoimax"
3397 as_fn_append ac_func_list
" strtoumax"
3398 as_fn_append ac_func_list
" symlink"
3399 as_fn_append ac_header_list
" sys/stat.h"
3400 as_fn_append ac_func_list
" localtime_r"
3401 as_fn_append ac_header_list
" utime.h"
3402 as_fn_append ac_func_list
" futimes"
3403 as_fn_append ac_func_list
" futimesat"
3404 as_fn_append ac_func_list
" futimens"
3405 as_fn_append ac_func_list
" utimensat"
3406 as_fn_append ac_func_list
" lutimes"
3407 as_fn_append ac_func_list
" getdtablesize"
3408 # Check that the precious variables saved in the cache have kept the same
3410 ac_cache_corrupted
=false
3411 for ac_var
in $ac_precious_vars; do
3412 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3413 eval ac_new_set
=\
$ac_env_${ac_var}_set
3414 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3415 eval ac_new_val
=\
$ac_env_${ac_var}_value
3416 case $ac_old_set,$ac_new_set in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3419 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3420 ac_cache_corrupted
=: ;;
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3423 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3424 ac_cache_corrupted
=: ;;
3427 if test "x$ac_old_val" != "x$ac_new_val"; then
3428 # differences in whitespace do not lead to failure.
3429 ac_old_val_w
=`echo x $ac_old_val`
3430 ac_new_val_w
=`echo x $ac_new_val`
3431 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3433 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3434 ac_cache_corrupted
=:
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3437 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3438 eval $ac_var=\
$ac_old_val
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3441 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3443 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3446 # Pass precious variables to config.status.
3447 if test "$ac_new_set" = set; then
3449 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3450 *) ac_arg
=$ac_var=$ac_new_val ;;
3452 case " $ac_configure_args " in
3453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3454 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3458 if $ac_cache_corrupted; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3462 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3463 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3465 ## -------------------- ##
3466 ## Main body of script. ##
3467 ## -------------------- ##
3470 ac_cpp
='$CPP $CPPFLAGS'
3471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3477 emacs_config_options
="$@"
3478 ## Add some environment variables, if they were passed via the environment
3479 ## rather than on the command-line.
3480 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3481 case "$emacs_config_options" in
3482 *$var=*) continue ;;
3485 test x
"$val" = x
&& continue
3486 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3489 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3493 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3494 for ac_t
in install-sh
install.sh shtool
; do
3495 if test -f "$ac_dir/$ac_t"; then
3497 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3502 if test -z "$ac_aux_dir"; then
3503 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3506 # These three variables are undocumented and unsupported,
3507 # and are intended to be withdrawn in a future Autoconf release.
3508 # They can cause serious problems if a builder's source tree is in a directory
3509 # whose full name contains unusual characters.
3510 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3511 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3512 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3515 am__api_version
='1.11'
3517 # Find a good install program. We prefer a C program (faster),
3518 # so one script is as good as another. But avoid the broken or
3519 # incompatible versions:
3520 # SysV /etc/install, /usr/sbin/install
3521 # SunOS /usr/etc/install
3522 # IRIX /sbin/install
3524 # AmigaOS /C/install, which installs bootblocks on floppy discs
3525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3528 # OS/2's system install, which has a completely different semantic
3529 # ./install, which can be erroneously created by make from ./install.sh.
3530 # Reject install programs that cannot install multiple files.
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3533 if test -z "$INSTALL"; then
3534 if test "${ac_cv_path_install+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir
=.
3542 # Account for people who put trailing slashes in PATH elements.
3543 case $as_dir/ in #((
3544 .
/ | .
// |
/[cC
]/* | \
3545 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3546 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3549 # OSF1 and SCO ODT 3.0 have their own names for install.
3550 # Don't use installbsd from OSF since it installs stuff as root
3552 for ac_prog
in ginstall scoinst
install; do
3553 for ac_exec_ext
in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3555 if test $ac_prog = install &&
3556 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3557 # AIX install. It has an incompatible calling convention.
3559 elif test $ac_prog = install &&
3560 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3561 # program-specific install script used by HP pwplus--don't use.
3564 rm -rf conftest.one conftest.two conftest.dir
3565 echo one
> conftest.one
3566 echo two
> conftest.two
3568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3569 test -s conftest.one
&& test -s conftest.two
&&
3570 test -s conftest.dir
/conftest.one
&&
3571 test -s conftest.dir
/conftest.two
3573 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3586 rm -rf conftest.one conftest.two conftest.dir
3589 if test "${ac_cv_path_install+set}" = set; then
3590 INSTALL
=$ac_cv_path_install
3592 # As a last resort, use the slow shell script. Don't cache a
3593 # value for INSTALL within a source directory, because that will
3594 # break other packages using the cache if that directory is
3595 # removed, or if the value is a relative name.
3596 INSTALL
=$ac_install_sh
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3600 $as_echo "$INSTALL" >&6; }
3602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3603 # It thinks the first close brace ends the variable substitution.
3604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3608 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3611 $as_echo_n "checking whether build environment is sane... " >&6; }
3614 echo timestamp
> conftest.
file
3615 # Reject unsafe characters in $srcdir or the absolute working directory
3616 # name. Accept space and tab only in the latter.
3620 *[\\\"\
#\$\&\'\`$am_lf]*)
3621 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3624 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3625 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3628 # Do `set' in a subshell so we don't clobber the current shell's
3629 # arguments. Must try -L first in case configure is actually a
3630 # symlink; some systems play weird games with the mod time of symlinks
3631 # (eg FreeBSD returns the mod time of the symlink's containing
3634 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3635 if test "$*" = "X"; then
3637 set X
`ls -t "$srcdir/configure" conftest.file`
3640 if test "$*" != "X $srcdir/configure conftest.file" \
3641 && test "$*" != "X conftest.file $srcdir/configure"; then
3643 # If neither matched, then we have a broken ls. This can happen
3644 # if, for instance, CONFIG_SHELL is bash and it inherits a
3645 # broken ls alias from the environment. This has actually
3646 # happened. Such a system could not be considered "sane".
3647 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3648 alias in your environment" "$LINENO" 5
3651 test "$2" = conftest.
file
3657 as_fn_error
"newly created file is older than distributed files!
3658 Check your system clock" "$LINENO" 5
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3662 test "$program_prefix" != NONE
&&
3663 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3664 # Use a double $ so make ignores it.
3665 test "$program_suffix" != NONE
&&
3666 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3667 # Double any \ or $.
3668 # By default was `s,x,x', remove it if useless.
3669 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3670 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3672 # expand $ac_aux_dir to an absolute path
3673 am_aux_dir
=`cd $ac_aux_dir && pwd`
3675 if test x
"${MISSING+set}" != xset
; then
3678 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3680 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3683 # Use eval to expand $SHELL
3684 if eval "$MISSING --run true"; then
3685 am_missing_run
="$MISSING --run "
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3689 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3692 if test x
"${install_sh}" != xset
; then
3695 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3697 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3701 # Installed binaries are usually stripped using `strip' when the user
3702 # run `make install-strip'. However `strip' might not be the right
3703 # tool to use in cross-compilation environments, therefore Automake
3704 # will honor the `STRIP' environment variable to overrule this program.
3705 if test "$cross_compiling" != no
; then
3706 if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3708 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_STRIP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$STRIP"; then
3715 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 STRIP
=$ac_cv_prog_STRIP
3735 if test -n "$STRIP"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3737 $as_echo "$STRIP" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$ac_cv_prog_STRIP"; then
3747 # Extract the first word of "strip", so it can be a program name with args.
3748 set dummy strip
; ac_word
=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$ac_ct_STRIP"; then
3755 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir
=.
3762 for ac_exec_ext
in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_STRIP
="strip"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3775 if test -n "$ac_ct_STRIP"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3777 $as_echo "$ac_ct_STRIP" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3783 if test "x$ac_ct_STRIP" = x
; then
3786 case $cross_compiling:$ac_tool_warned in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned
=yes ;;
3795 STRIP
="$ac_cv_prog_STRIP"
3799 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3802 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3803 if test -z "$MKDIR_P"; then
3804 if test "${ac_cv_path_mkdir+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3811 test -z "$as_dir" && as_dir
=.
3812 for ac_prog
in mkdir gmkdir
; do
3813 for ac_exec_ext
in '' $ac_executable_extensions; do
3814 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3815 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3816 'mkdir (GNU coreutils) '* | \
3817 'mkdir (coreutils) '* | \
3818 'mkdir (fileutils) '4.1*)
3819 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3829 test -d .
/--version && rmdir .
/--version
3830 if test "${ac_cv_path_mkdir+set}" = set; then
3831 MKDIR_P
="$ac_cv_path_mkdir -p"
3833 # As a last resort, use the slow shell script. Don't cache a
3834 # value for MKDIR_P within a source directory, because that will
3835 # break other packages using the cache if that directory is
3836 # removed, or if the value is a relative name.
3837 MKDIR_P
="$ac_install_sh -d"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3841 $as_echo "$MKDIR_P" >&6; }
3845 [\\/$
]* | ?
:[\\/]*) ;;
3846 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3849 for ac_prog
in gawk mawk nawk
awk
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy
$ac_prog; ac_word
=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if test "${ac_cv_prog_AWK+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$AWK"; then
3859 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir
=.
3866 for ac_exec_ext
in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_AWK
="$ac_prog"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 if test -n "$AWK"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3881 $as_echo "$AWK" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3888 test -n "$AWK" && break
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3892 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3894 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3895 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3896 $as_echo_n "(cached) " >&6
3898 cat >conftest.
make <<\_ACEOF
3901 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3904 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3906 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3908 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3912 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3914 $as_echo "yes" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 SET_MAKE
="MAKE=${MAKE-make}"
3922 rm -rf .tst
2>/dev
/null
3923 mkdir .tst
2>/dev
/null
3924 if test -d .tst
; then
3929 rmdir .tst
2>/dev
/null
3931 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3932 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3933 # is not polluted with repeated "-I."
3934 am__isrc
=' -I$(srcdir)'
3935 # test to see if srcdir already configured
3936 if test -f $srcdir/config.status
; then
3937 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3941 # test whether we have cygpath
3942 if test -z "$CYGPATH_W"; then
3943 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3944 CYGPATH_W
='cygpath -w'
3951 # Define the identity of the package.
3956 cat >>confdefs.h
<<_ACEOF
3957 #define PACKAGE "$PACKAGE"
3961 cat >>confdefs.h
<<_ACEOF
3962 #define VERSION "$VERSION"
3965 # Some tools Automake needs.
3967 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3970 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3973 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3976 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3979 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3981 # We need awk for the "check" target. The system "awk" is bad on
3983 # Always define AMTAR for backward compatibility.
3985 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3987 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3996 lispdir
='${datadir}/emacs/${version}/lisp'
3997 leimdir
='${datadir}/emacs/${version}/leim'
3998 standardlisppath
='${lispdir}:${leimdir}'
3999 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
4000 '${datadir}/emacs/site-lisp'
4001 lisppath
='${locallisppath}:${standardlisppath}'
4002 etcdir
='${datadir}/emacs/${version}/etc'
4003 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4004 docdir
='${datadir}/emacs/${version}/etc'
4005 gamedir
='${localstatedir}/games/emacs'
4008 # Check whether --with-all was given.
4009 if test "${with_all+set}" = set; then :
4010 withval
=$with_all; with_features
=$withval
4019 # Check whether --with-pop was given.
4020 if test "${with_pop+set}" = set; then :
4023 with_pop
=$with_features
4026 if test "$with_pop" = yes; then
4027 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4032 # Check whether --with-kerberos was given.
4033 if test "${with_kerberos+set}" = set; then :
4034 withval
=$with_kerberos;
4039 if test "$with_kerberos" != no
; then
4040 $as_echo "#define KERBEROS 1" >>confdefs.h
4045 # Check whether --with-kerberos5 was given.
4046 if test "${with_kerberos5+set}" = set; then :
4047 withval
=$with_kerberos5;
4052 if test "${with_kerberos5}" != no
; then
4053 if test "${with_kerberos}" = no
; then
4055 $as_echo "#define KERBEROS 1" >>confdefs.h
4059 $as_echo "#define KERBEROS5 1" >>confdefs.h
4064 # Check whether --with-hesiod was given.
4065 if test "${with_hesiod+set}" = set; then :
4066 withval
=$with_hesiod;
4071 if test "$with_hesiod" != no
; then
4073 $as_echo "#define HESIOD 1" >>confdefs.h
4078 # Check whether --with-mmdf was given.
4079 if test "${with_mmdf+set}" = set; then :
4085 if test "$with_mmdf" != no
; then
4087 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4092 # Check whether --with-mail-unlink was given.
4093 if test "${with_mail_unlink+set}" = set; then :
4094 withval
=$with_mail_unlink;
4099 if test "$with_mail_unlink" != no
; then
4101 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4106 # Check whether --with-mailhost was given.
4107 if test "${with_mailhost+set}" = set; then :
4108 withval
=$with_mailhost;
4109 cat >>confdefs.h
<<_ACEOF
4110 #define MAILHOST "$withval"
4117 # Check whether --with-sound was given.
4118 if test "${with_sound+set}" = set; then :
4119 withval
=$with_sound;
4121 with_sound
=$with_features
4126 # Check whether --with-x-toolkit was given.
4127 if test "${with_x_toolkit+set}" = set; then :
4128 withval
=$with_x_toolkit; case "${withval}" in
4129 y | ye |
yes ) val
=gtk
;;
4131 l | lu | luc | luci | lucid
) val
=lucid
;;
4132 a |
at | ath | athe | athen | athena
) val
=athena
;;
4133 m | mo | mot | moti | motif
) val
=motif
;;
4134 g | gt | gtk
) val
=gtk
;;
4138 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4139 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4140 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4141 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4150 # Check whether --with-wide-int was given.
4151 if test "${with_wide_int+set}" = set; then :
4152 withval
=$with_wide_int;
4157 if test "$with_wide_int" = yes; then
4159 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4164 # Check whether --with-xpm was given.
4165 if test "${with_xpm+set}" = set; then :
4168 with_xpm
=$with_features
4172 # Check whether --with-jpeg was given.
4173 if test "${with_jpeg+set}" = set; then :
4176 with_jpeg
=$with_features
4180 # Check whether --with-tiff was given.
4181 if test "${with_tiff+set}" = set; then :
4184 with_tiff
=$with_features
4188 # Check whether --with-gif was given.
4189 if test "${with_gif+set}" = set; then :
4192 with_gif
=$with_features
4196 # Check whether --with-png was given.
4197 if test "${with_png+set}" = set; then :
4200 with_png
=$with_features
4204 # Check whether --with-rsvg was given.
4205 if test "${with_rsvg+set}" = set; then :
4208 with_rsvg
=$with_features
4212 # Check whether --with-xml2 was given.
4213 if test "${with_xml2+set}" = set; then :
4216 with_xml2
=$with_features
4220 # Check whether --with-imagemagick was given.
4221 if test "${with_imagemagick+set}" = set; then :
4222 withval
=$with_imagemagick;
4224 with_imagemagick
=$with_features
4229 # Check whether --with-xft was given.
4230 if test "${with_xft+set}" = set; then :
4233 with_xft
=$with_features
4237 # Check whether --with-libotf was given.
4238 if test "${with_libotf+set}" = set; then :
4239 withval
=$with_libotf;
4241 with_libotf
=$with_features
4245 # Check whether --with-m17n-flt was given.
4246 if test "${with_m17n_flt+set}" = set; then :
4247 withval
=$with_m17n_flt;
4249 with_m17n_flt
=$with_features
4254 # Check whether --with-toolkit-scroll-bars was given.
4255 if test "${with_toolkit_scroll_bars+set}" = set; then :
4256 withval
=$with_toolkit_scroll_bars;
4258 with_toolkit_scroll_bars
=$with_features
4262 # Check whether --with-xaw3d was given.
4263 if test "${with_xaw3d+set}" = set; then :
4264 withval
=$with_xaw3d;
4266 with_xaw3d
=$with_features
4270 # Check whether --with-xim was given.
4271 if test "${with_xim+set}" = set; then :
4274 with_xim
=$with_features
4278 # Check whether --with-ns was given.
4279 if test "${with_ns+set}" = set; then :
4286 # Check whether --with-w32 was given.
4287 if test "${with_w32+set}" = set; then :
4295 # Check whether --with-gpm was given.
4296 if test "${with_gpm+set}" = set; then :
4299 with_gpm
=$with_features
4303 # Check whether --with-dbus was given.
4304 if test "${with_dbus+set}" = set; then :
4307 with_dbus
=$with_features
4311 # Check whether --with-gconf was given.
4312 if test "${with_gconf+set}" = set; then :
4313 withval
=$with_gconf;
4315 with_gconf
=$with_features
4319 # Check whether --with-gsettings was given.
4320 if test "${with_gsettings+set}" = set; then :
4321 withval
=$with_gsettings;
4323 with_gsettings
=$with_features
4327 # Check whether --with-selinux was given.
4328 if test "${with_selinux+set}" = set; then :
4329 withval
=$with_selinux;
4331 with_selinux
=$with_features
4335 # Check whether --with-gnutls was given.
4336 if test "${with_gnutls+set}" = set; then :
4337 withval
=$with_gnutls;
4339 with_gnutls
=$with_features
4344 # Check whether --with-file-notification was given.
4345 if test "${with_file_notification+set}" = set; then :
4346 withval
=$with_file_notification; case "${withval}" in
4347 y | ye |
yes ) val
=yes ;;
4349 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4350 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4351 w | w3 | w32
) val
=w32
;;
4352 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4353 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4354 \`yes' is a synonym for \`w32' on MS-Windows, and for \`gfile' otherwise." "$LINENO" 5
4357 with_file_notification
=$val
4360 with_file_notification
=$with_features
4364 ## For the times when you want to build Emacs but don't have
4365 ## a suitable makeinfo, and can live without the manuals.
4367 # Check whether --with-makeinfo was given.
4368 if test "${with_makeinfo+set}" = set; then :
4369 withval
=$with_makeinfo;
4371 with_makeinfo
=$with_features
4375 ## Makefile.in needs the cache file name.
4378 ## This is an option because I do not know if all info/man support
4379 ## compressed files, nor how to test if they do so.
4381 # Check whether --with-compress-info was given.
4382 if test "${with_compress_info+set}" = set; then :
4383 withval
=$with_compress_info;
4385 with_compress_info
=$with_features
4388 if test $with_compress_info = yes; then
4396 # Check whether --with-pkg-config-prog was given.
4397 if test "${with_pkg_config_prog+set}" = set; then :
4398 withval
=$with_pkg_config_prog;
4401 if test "X${with_pkg_config_prog}" != X
; then
4402 if test "${with_pkg_config_prog}" != yes; then
4403 PKG_CONFIG
="${with_pkg_config_prog}"
4408 # Check whether --with-gameuser was given.
4409 if test "${with_gameuser+set}" = set; then :
4410 withval
=$with_gameuser;
4413 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4414 && gameuser
="${with_gameuser}"
4415 test "X$gameuser" = X
&& gameuser
=games
4418 # Check whether --with-gnustep-conf was given.
4419 if test "${with_gnustep_conf+set}" = set; then :
4420 withval
=$with_gnustep_conf;
4423 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4424 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4425 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4426 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4428 # Check whether --enable-ns-self-contained was given.
4429 if test "${enable_ns_self_contained+set}" = set; then :
4430 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4432 EN_NS_SELF_CONTAINED
=yes
4436 # Check whether --enable-locallisppath was given.
4437 if test "${enable_locallisppath+set}" = set; then :
4438 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4440 elif test "${enableval}" != "yes"; then
4441 locallisppath
=${enableval}
4446 # Check whether --enable-checking was given.
4447 if test "${enable_checking+set}" = set; then :
4448 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4451 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4452 for check
in $ac_checking_flags
4455 # these set all the flags to specific states
4456 yes) ac_enable_checking
=1 ;;
4457 no
) ac_enable_checking
= ;
4458 ac_gc_check_stringbytes
= ;
4459 ac_gc_check_string_overrun
= ;
4460 ac_gc_check_string_free_list
= ;
4461 ac_xmalloc_overrun
= ;
4462 ac_gc_check_cons_list
= ;
4464 all
) ac_enable_checking
=1 ;
4465 ac_gc_check_stringbytes
=1 ;
4466 ac_gc_check_string_overrun
=1 ;
4467 ac_gc_check_string_free_list
=1 ;
4468 ac_xmalloc_overrun
=1 ;
4469 ac_gc_check_cons_list
=1 ;
4470 ac_glyphs_debug
=1 ;;
4471 # these enable particular checks
4472 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4473 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4474 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4475 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4476 conslist
) ac_gc_check_cons_list
=1 ;;
4477 glyphs
) ac_glyphs_debug
=1 ;;
4478 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4483 if test x
$ac_enable_checking != x
; then
4485 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4488 if test x
$ac_gc_check_stringbytes != x
; then
4490 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4493 if test x
$ac_gc_check_string_overrun != x
; then
4495 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4498 if test x
$ac_gc_check_string_free_list != x
; then
4500 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4503 if test x
$ac_xmalloc_overrun != x
; then
4505 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4508 if test x
$ac_gc_check_cons_list != x
; then
4510 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4513 if test x
$ac_glyphs_debug != x
; then
4515 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4519 # Check whether --enable-check-lisp-object-type was given.
4520 if test "${enable_check_lisp_object_type+set}" = set; then :
4521 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4523 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4530 # Check whether --enable-profiling was given.
4531 if test "${enable_profiling+set}" = set; then :
4532 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4535 if test x
$ac_enable_profiling != x
; then
4536 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4542 # Check whether --enable-autodepend was given.
4543 if test "${enable_autodepend+set}" = set; then :
4544 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4546 ac_enable_autodepend
=yes
4550 # Check whether --enable-gtk-deprecation-warnings was given.
4551 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4552 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4556 #### Make srcdir absolute, if it isn't already. It's important to
4557 #### avoid running the file name through pwd unnecessarily, since pwd can
4558 #### give you automounter prefixes, which can go away. We do all this
4559 #### so Emacs can find its files when run uninstalled.
4560 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4563 [\\/]* | ?
:[\\/]*) ;;
4565 ## We may be able to use the $PWD environment variable to make this
4566 ## absolute. But sometimes PWD is inaccurate.
4567 ## Note: we used to use $PWD at the end instead of `pwd`,
4568 ## but that tested only for a well-formed and valid PWD,
4569 ## it did not object when PWD was well-formed and valid but just wrong.
4570 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4574 srcdir
=`(cd "$srcdir"; pwd)`
4577 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4580 ### Canonicalize the configuration name.
4582 # Make sure we can run config.sub.
4583 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4584 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4587 $as_echo_n "checking build system type... " >&6; }
4588 if test "${ac_cv_build+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4591 ac_build_alias
=$build_alias
4592 test "x$ac_build_alias" = x
&&
4593 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4594 test "x$ac_build_alias" = x
&&
4595 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4596 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4597 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4601 $as_echo "$ac_cv_build" >&6; }
4602 case $ac_cv_build in
4604 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4607 ac_save_IFS
=$IFS; IFS
='-'
4613 # Remember, the first character of IFS is used to create $*,
4614 # except with old shells:
4617 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4621 $as_echo_n "checking host system type... " >&6; }
4622 if test "${ac_cv_host+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test "x$host_alias" = x
; then
4626 ac_cv_host
=$ac_cv_build
4628 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4629 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4634 $as_echo "$ac_cv_host" >&6; }
4637 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4640 ac_save_IFS
=$IFS; IFS
='-'
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4650 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4654 configuration
=${host_alias-${build_alias-$host}}
4658 ### If you add support for a new configuration, add code to this
4659 ### switch statement to recognize your configuration name and select
4660 ### the appropriate operating system file.
4662 ### You would hope that you could choose an s/*.h
4663 ### file based on the operating system portion. However, it turns out
4664 ### that each s/*.h file is pretty manufacturer-specific.
4665 ### So we basically have to have a special case for each
4666 ### configuration name.
4668 ### As far as handling version numbers on operating systems is
4669 ### concerned, make sure things will fail in a fixable way. If
4670 ### /etc/MACHINES doesn't say anything about version numbers, be
4671 ### prepared to handle anything reasonably. If version numbers
4672 ### matter, be sure /etc/MACHINES says something about it.
4674 opsys
='' unported
=no
4675 case "${canonical}" in
4677 ## GNU/Linux and similar ports
4692 ## FreeBSD kernel + glibc based userland
4707 ## Apple Darwin / Mac OS X
4709 case "${canonical}" in
4716 ## Use fink packages if available.
4717 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4718 ## if test -d /sw/include && test -d /sw/lib; then
4719 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4720 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4729 ## HP 9000 series 700 and 800, running HP/UX
4730 hppa
*-hp-hpux10.2
* )
4733 hppa
*-hp-hpux1[1-9]* )
4735 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4739 rs6000-ibm-aix4.
[23]* )
4742 powerpc-ibm-aix4.
[23]* )
4745 rs6000-ibm-aix
[56]* )
4748 powerpc-ibm-aix
[56]* )
4752 ## Silicon Graphics machines
4756 # Without defining _LANGUAGE_C, things get masked out in the headers
4757 # so that, for instance, grepping for `free' in stdlib.h fails and
4758 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4759 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4764 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4765 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4766 case "${canonical}" in
4768 amd64-
*-*|x86_64-
*-*) ;;
4772 case "${canonical}" in
4773 *-sunos5.6
* |
*-solaris2.6
* )
4777 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4779 emacs_check_sunpro_c
=yes
4781 *-sunos5* |
*-solaris* )
4783 emacs_check_sunpro_c
=yes
4786 ## Watch out for a compiler that we know will not work.
4787 case "${canonical}" in
4788 *-solaris* |
*-sunos5* )
4789 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4790 ## /usr/ucb/cc doesn't work;
4791 ## we should find some other compiler that does work.
4799 ## Intel 386 machines where we don't care about the manufacturer.
4801 case "${canonical}" in
4802 *-darwin* ) opsys
=darwin
;;
4805 # MinGW overrides and adds some system headers in nt/inc.
4806 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4808 *-sysv4.2uw
* ) opsys
=unixware
;;
4809 *-sysv5uw* ) opsys
=unixware
;;
4810 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4811 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4820 ### If the code above didn't choose an operating system, just choose
4821 ### an operating system based on the configuration name. You really
4822 ### only want to use this when you have no idea what the right
4823 ### operating system is; if you know what operating systems a machine
4824 ### runs, it's cleaner to make it explicit in the case statement
4826 if test x
"${opsys}" = x
; then
4827 case "${canonical}" in
4828 *-gnu* ) opsys
=gnu
;;
4837 if test $unported = yes; then
4838 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4839 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4843 #### Choose a compiler.
4846 ac_cpp
='$CPP $CPPFLAGS'
4847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4852 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC
="$CC" # Let the user override the test.
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir
=.
4866 for ac_exec_ext
in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4889 if test -z "$ac_cv_prog_CC"; then
4891 # Extract the first word of "gcc", so it can be a program name with args.
4892 set dummy gcc
; ac_word
=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$ac_ct_CC"; then
4899 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir
=.
4906 for ac_exec_ext
in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_CC
="gcc"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4919 if test -n "$ac_ct_CC"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4921 $as_echo "$ac_ct_CC" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4927 if test "x$ac_ct_CC" = x
; then
4930 case $cross_compiling:$ac_tool_warned in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned
=yes ;;
4942 if test -z "$CC"; then
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4945 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_CC+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 if test -n "$CC"; then
4952 ac_cv_prog_CC
="$CC" # Let the user override the test.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 if test -n "$CC"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4974 $as_echo "$CC" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4983 if test -z "$CC"; then
4984 # Extract the first word of "cc", so it can be a program name with args.
4985 set dummy cc
; ac_word
=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -n "$CC"; then
4992 ac_cv_prog_CC
="$CC" # Let the user override the test.
4995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir
=.
5000 for ac_exec_ext
in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5003 ac_prog_rejected
=yes
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 if test $ac_prog_rejected = yes; then
5015 # We found a bogon in the path, so make sure we never use it.
5016 set dummy
$ac_cv_prog_CC
5018 if test $# != 0; then
5019 # We chose a different compiler from the bogus one.
5020 # However, it has the same basename, so the bogon will be chosen
5021 # first if we set CC to just the basename; use the full file name.
5023 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5029 if test -n "$CC"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5031 $as_echo "$CC" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5039 if test -z "$CC"; then
5040 if test -n "$ac_tool_prefix"; then
5041 for ac_prog
in cl.exe
5043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_CC+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$CC"; then
5051 ac_cv_prog_CC
="$CC" # Let the user override the test.
5053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir
=.
5058 for ac_exec_ext
in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 if test -n "$CC"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5073 $as_echo "$CC" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5080 test -n "$CC" && break
5083 if test -z "$CC"; then
5085 for ac_prog
in cl.exe
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy
$ac_prog; ac_word
=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$ac_ct_CC"; then
5095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir
=.
5102 for ac_exec_ext
in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_ac_ct_CC
="$ac_prog"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5115 if test -n "$ac_ct_CC"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5117 $as_echo "$ac_ct_CC" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5124 test -n "$ac_ct_CC" && break
5127 if test "x$ac_ct_CC" = x
; then
5130 case $cross_compiling:$ac_tool_warned in
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134 ac_tool_warned
=yes ;;
5143 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5145 as_fn_error
"no acceptable C compiler found in \$PATH
5146 See \`config.log' for more details." "$LINENO" 5; }
5148 # Provide some information about the compiler.
5149 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5152 for ac_option
in --version -v -V -qversion; do
5153 { { ac_try
="$ac_compiler $ac_option >&5"
5155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5159 $as_echo "$ac_try_echo"; } >&5
5160 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5162 if test -s conftest.err; then
5164 ... rest of stderr output deleted ...
5165 10q' conftest.err >conftest.er1
5166 cat conftest.er1 >&5
5168 rm -f conftest.er1 conftest.err
5169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5170 test $ac_status = 0; }
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5184 ac_clean_files_save=$ac_clean_files
5185 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5186 # Try to create an executable without -o first, disregard a.out.
5187 # It will help us diagnose broken compilers, and finding out an intuition
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5190 $as_echo_n "checking whether the C compiler works... " >&6; }
5191 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5193 # The possible output files:
5194 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5197 for ac_file in $ac_files
5200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5206 if { { ac_try="$ac_link_default"
5208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5209 *) ac_try_echo
=$ac_try;;
5211 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5212 $as_echo "$ac_try_echo"; } >&5
5213 (eval "$ac_link_default") 2>&5
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }; then :
5217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5219 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5220 # so that the user can short-circuit this test for compilers unknown to
5222 for ac_file
in $ac_files ''
5224 test -f "$ac_file" ||
continue
5226 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5229 # We found the default executable, but exeext='' is most
5233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5235 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5237 # We set ac_cv_exeext here because the later test for it is not
5238 # safe: cross compilers may not add the suffix if given an `-o'
5239 # argument, so we may need to know it at that point already.
5240 # Even if this section looks crufty: it has the advantage of
5247 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5252 if test -z "$ac_file"; then :
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 $as_echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.
$ac_ext >&5
5258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260 { as_fn_set_status
77
5261 as_fn_error
"C compiler cannot create executables
5262 See \`config.log' for more details." "$LINENO" 5; }; }
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5265 $as_echo "yes" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5268 $as_echo_n "checking for C compiler default output file name... " >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5270 $as_echo "$ac_file" >&6; }
5271 ac_exeext
=$ac_cv_exeext
5273 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5274 ac_clean_files
=$ac_clean_files_save
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5276 $as_echo_n "checking for suffix of executables... " >&6; }
5277 if { { ac_try
="$ac_link"
5279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 $as_echo "$ac_try_echo"; } >&5
5284 (eval "$ac_link") 2>&5
5286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }; then :
5288 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5289 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5290 # work properly (i.e., refer to `conftest.exe'), while it won't with
5292 for ac_file
in conftest.exe conftest conftest.
*; do
5293 test -f "$ac_file" ||
continue
5295 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5296 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5305 See \`config.log' for more details." "$LINENO" 5; }
5307 rm -f conftest conftest
$ac_cv_exeext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5309 $as_echo "$ac_cv_exeext" >&6; }
5311 rm -f conftest.
$ac_ext
5312 EXEEXT
=$ac_cv_exeext
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5320 FILE *f = fopen ("conftest.out", "w");
5321 return ferror (f) || fclose (f) != 0;
5327 ac_clean_files
="$ac_clean_files conftest.out"
5328 # Check that the compiler produces executables we can run. If not, either
5329 # the compiler is broken, or we cross compile.
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5331 $as_echo_n "checking whether we are cross compiling... " >&6; }
5332 if test "$cross_compiling" != yes; then
5333 { { ac_try
="$ac_link"
5335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5339 $as_echo "$ac_try_echo"; } >&5
5340 (eval "$ac_link") 2>&5
5342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343 test $ac_status = 0; }
5344 if { ac_try='./conftest$ac_cv_exeext'
5345 { { case "(($ac_try" in
5346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5347 *) ac_try_echo
=$ac_try;;
5349 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5350 $as_echo "$ac_try_echo"; } >&5
5351 (eval "$ac_try") 2>&5
5353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5354 test $ac_status = 0; }; }; then
5357 if test "$cross_compiling" = maybe
; then
5360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5362 as_fn_error
"cannot run C compiled programs.
5363 If you meant to cross compile, use \`--host'.
5364 See \`config.log' for more details." "$LINENO" 5; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5369 $as_echo "$cross_compiling" >&6; }
5371 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5372 ac_clean_files
=$ac_clean_files_save
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5374 $as_echo_n "checking for suffix of object files... " >&6; }
5375 if test "${ac_cv_objext+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5389 rm -f conftest.o conftest.obj
5390 if { { ac_try
="$ac_compile"
5392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396 $as_echo "$ac_try_echo"; } >&5
5397 (eval "$ac_compile") 2>&5
5399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5400 test $ac_status = 0; }; then :
5401 for ac_file in conftest.o conftest.obj conftest.*; do
5402 test -f "$ac_file" || continue;
5404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5410 $as_echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415 as_fn_error "cannot compute suffix of object files
: cannot compile
5416 See \
`config.log' for more details." "$LINENO" 5; }
5418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5421 $as_echo "$ac_cv_objext" >&6; }
5422 OBJEXT=$ac_cv_objext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5426 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5443 if ac_fn_c_try_compile "$LINENO"; then :
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5454 if test $ac_compiler_gnu = yes; then
5459 ac_test_CFLAGS=${CFLAGS+set}
5460 ac_save_CFLAGS=$CFLAGS
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5463 if test "${ac_cv_prog_cc_g+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5466 ac_save_c_werror_flag=$ac_c_werror_flag
5467 ac_c_werror_flag=yes
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5481 if ac_fn_c_try_compile "$LINENO"; then :
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5496 if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_c_werror_flag=$ac_save_c_werror_flag
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5512 if ac_fn_c_try_compile "$LINENO"; then :
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5523 $as_echo "$ac_cv_prog_cc_g" >&6; }
5524 if test "$ac_test_CFLAGS" = set; then
5525 CFLAGS=$ac_save_CFLAGS
5526 elif test $ac_cv_prog_cc_g = yes; then
5527 if test "$GCC" = yes; then
5533 if test "$GCC" = yes; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5541 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5544 ac_cv_prog_cc_c89=no
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5550 #include <sys/types.h>
5551 #include <sys/stat.h>
5552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5553 struct buf { int x; };
5554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5555 static char *e (p, i)
5561 static char *f (char * (*g) (char **, int), char **p, ...)
5566 s = g (p, va_arg (v,int));
5571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5572 function prototypes and stuff, but not '\xHH' hex character constants.
5573 These don't provoke an error unfortunately, instead are silently treated
5574 as 'x'. The following induces an error, until -std is added to get
5575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5576 array size at least. It's necessary to write '\x00'==0 to get something
5577 that's true only with -std. */
5578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5581 inside strings and character constants. */
5583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5585 int test (int i, double x);
5586 struct s1 {int (*f) (int a);};
5587 struct s2 {int (*f) (double a);};
5588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5602 CC="$ac_save_CC $ac_arg"
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_cv_prog_cc_c89=$ac_arg
5606 rm -f core conftest.err conftest.$ac_objext
5607 test "x$ac_cv_prog_cc_c89" != "xno" && break
5609 rm -f conftest.$ac_ext
5614 case "x$ac_cv_prog_cc_c89" in
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5617 $as_echo "none needed" >&6; } ;;
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5620 $as_echo "unsupported" >&6; } ;;
5622 CC="$CC $ac_cv_prog_cc_c89"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5626 if test "x$ac_cv_prog_cc_c89" != xno; then :
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 DEPDIR="${am__leading_dot}deps"
5637 ac_config_commands="$ac_config_commands depfiles"
5640 am_make=${MAKE-make}
5641 cat > confinc << 'END'
5643 @echo this is the am__doit target
5646 # If we don't find an include directive, just comment out the code.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5648 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5652 # First try GNU make style include.
5653 echo "include confinc" > confmf
5654 # Ignore all kinds of additional output from `make'.
5655 case `$am_make -s -f confmf 2> /dev/null` in #(
5656 *the\ am__doit\ target*)
5662 # Now try BSD make style include.
5663 if test "$am__include" = "#"; then
5664 echo '.include
"confinc"' > confmf
5665 case `$am_make -s -f confmf 2> /dev/null` in #(
5666 *the\ am__doit\ target*)
5667 am__include=.include
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5676 $as_echo "$_am_result" >&6; }
5677 rm -f confinc confmf
5679 # Check whether --enable-dependency-tracking was given.
5680 if test "${enable_dependency_tracking+set}" = set; then :
5681 enableval=$enable_dependency_tracking;
5684 if test "x$enable_dependency_tracking" != xno; then
5685 am_depcomp="$ac_aux_dir/depcomp"
5688 if test "x$enable_dependency_tracking" != xno
; then
5698 depcc
="$CC" am_compiler_list
=
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5701 $as_echo_n "checking dependency style of $depcc... " >&6; }
5702 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5706 # We make a subdir and do the tests there. Otherwise we can end up
5707 # making bogus files that we don't know about and never remove. For
5708 # instance it was reported that on HP-UX the gcc test will end up
5709 # making a dummy file named `D' -- because `-MD' means `put the output
5712 # Copy depcomp to subdir because otherwise we won't find it if we're
5713 # using a relative directory.
5714 cp "$am_depcomp" conftest.dir
5716 # We will build objects and dependencies in a subdirectory because
5717 # it helps to detect inapplicable dependency modes. For instance
5718 # both Tru64's cc and ICC support -MD to output dependencies as a
5719 # side effect of compilation, but ICC will put the dependencies in
5720 # the current directory while Tru64 will put them in the object
5724 am_cv_CC_dependencies_compiler_type
=none
5725 if test "$am_compiler_list" = ""; then
5726 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5729 case " $depcc " in #(
5730 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5733 for depmode
in $am_compiler_list; do
5734 # Setup a source with many dependencies, because some compilers
5735 # like to wrap large dependency lists on column 80 (with \), and
5736 # we should not choose a depcomp mode which is confused by this.
5738 # We need to recreate these files for each test, as the compiler may
5739 # overwrite some of them when testing with obscure command lines.
5740 # This happens at least with the AIX C compiler.
5742 for i
in 1 2 3 4 5 6; do
5743 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745 # Solaris 8's {/usr,}/bin/sh.
5746 touch sub
/conftst
$i.h
5748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5751 # mode. It turns out that the SunPro C++ compiler does not properly
5752 # handle `-M -o', and we need to detect this. Also, some Intel
5753 # versions had trouble with output in subdirs
5754 am__obj
=sub
/conftest.
${OBJEXT-o}
5755 am__minus_obj
="-o $am__obj"
5758 # This depmode causes a compiler race in universal mode.
5759 test "$am__universal" = false ||
continue
5762 # after this tag, mechanisms are not by side-effect, so they'll
5763 # only be used when explicitly requested
5764 if test "x$enable_dependency_tracking" = xyes
; then
5770 msvisualcpp | msvcmsys
)
5771 # This compiler won't grok `-c -o', but also, the minuso test has
5772 # not run yet. These depmodes are late enough in the game, and
5773 # so weak that their functioning should not be impacted.
5774 am__obj
=conftest.
${OBJEXT-o}
5779 if depmode
=$depmode \
5780 source=sub
/conftest.c object
=$am__obj \
5781 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5782 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5783 >/dev
/null
2>conftest.err
&&
5784 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5785 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5786 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5787 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5788 # icc doesn't choke on unknown options, it will just issue warnings
5789 # or remarks (even with -Werror). So we grep stderr for any message
5790 # that says an option was ignored or not supported.
5791 # When given -MP, icc 7.0 and 7.1 complain thusly:
5792 # icc: Command line warning: ignoring option '-M'; no argument required
5793 # The diagnosis changed in icc 8.0:
5794 # icc: Command line remark: option '-MP' not supported
5795 if (grep 'ignoring option' conftest.err ||
5796 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5797 am_cv_CC_dependencies_compiler_type
=$depmode
5806 am_cv_CC_dependencies_compiler_type
=none
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5811 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5812 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5815 test "x$enable_dependency_tracking" != xno \
5816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5818 am__fastdepCC_FALSE
='#'
5820 am__fastdepCC_TRUE
='#'
5821 am__fastdepCC_FALSE
=
5825 if test "x$CC" != xcc
; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5827 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5830 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5832 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5833 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5834 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5835 $as_echo_n "(cached) " >&6
5837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5848 # Make sure it works both with $CC and with simple cc.
5849 # We do the test twice because some compilers refuse to overwrite an
5850 # existing .o file with -o, though they will create one.
5851 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5853 if { { case "(($ac_try" in
5854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5858 $as_echo "$ac_try_echo"; } >&5
5859 (eval "$ac_try") 2>&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; } &&
5863 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5865 *) ac_try_echo
=$ac_try;;
5867 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5868 $as_echo "$ac_try_echo"; } >&5
5869 (eval "$ac_try") 2>&5
5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872 test $ac_status = 0; };
5874 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5875 if test "x$CC" != xcc
; then
5876 # Test first that cc exists at all.
5877 if { ac_try
='cc -c conftest.$ac_ext >&5'
5878 { { case "(($ac_try" in
5879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5883 $as_echo "$ac_try_echo"; } >&5
5884 (eval "$ac_try") 2>&5
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }; }; then
5888 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5890 if { { case "(($ac_try" in
5891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5892 *) ac_try_echo
=$ac_try;;
5894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5895 $as_echo "$ac_try_echo"; } >&5
5896 (eval "$ac_try") 2>&5
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; } &&
5900 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5905 $as_echo "$ac_try_echo"; } >&5
5906 (eval "$ac_try") 2>&5
5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909 test $ac_status = 0; };
5914 # cc exists but doesn't like -o.
5915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5920 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5922 rm -f core conftest*
5925 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5932 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5936 # FIXME: we rely on the cache variable name because
5937 # there is no other way.
5939 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5940 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5941 if test "$am_t" != yes; then
5942 # Losing compiler, so override with the script.
5943 # FIXME: It is wrong to rewrite CC.
5944 # But if we don't then we get into trouble of one sort or another.
5945 # A longer-term fix would be to have automake use am__CC in this case,
5946 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5947 CC="$am_aux_dir/compile $CC"
5952 if test x$GCC = xyes; then
5953 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5955 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5958 if test "x$opsys" = "xmingw32"; then
5959 BUILDING_FOR_WINDOWSNT_TRUE=
5960 BUILDING_FOR_WINDOWSNT_FALSE='#'
5962 BUILDING_FOR_WINDOWSNT_TRUE='#'
5963 BUILDING_FOR_WINDOWSNT_FALSE=
5967 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5968 # as we don't use them.
5970 # Avoid gnulib's threadlib module, as we do threads our own way.
5973 # Initialize gnulib right after choosing the compiler.
5976 ac_cpp='$CPP $CPPFLAGS'
5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5982 # On Suns, sometimes $CPP names a directory.
5983 if test -n "$CPP" && test -d "$CPP"; then
5986 if test -z "$CPP"; then
5987 if test "${ac_cv_prog_CPP+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 # Double quotes because CPP needs to be expanded
5991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5994 for ac_c_preproc_warn_flag in '' yes
5996 # Use a header file that comes with gcc, so configuring glibc
5997 # with a fresh cross-compiler works.
5998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5999 # <limits.h> exists even on freestanding compilers.
6000 # On the NeXT, cc -E runs the code through the compiler's parser,
6001 # not just through cpp. "Syntax error" is here to catch this case.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6005 # include <limits.h>
6007 # include <assert.h>
6011 if ac_fn_c_try_cpp "$LINENO"; then :
6014 # Broken: fails on valid input.
6017 rm -f conftest.err conftest.$ac_ext
6019 # OK, works on sane cases. Now check whether nonexistent headers
6020 # can be detected and how.
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <ac_nonexistent.h>
6025 if ac_fn_c_try_cpp "$LINENO"; then :
6026 # Broken: success on invalid input.
6029 # Passes both tests.
6033 rm -f conftest.err conftest.$ac_ext
6036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6037 rm -f conftest.err conftest.
$ac_ext
6038 if $ac_preproc_ok; then :
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6051 $as_echo "$CPP" >&6; }
6053 for ac_c_preproc_warn_flag
in '' yes
6055 # Use a header file that comes with gcc, so configuring glibc
6056 # with a fresh cross-compiler works.
6057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6058 # <limits.h> exists even on freestanding compilers.
6059 # On the NeXT, cc -E runs the code through the compiler's parser,
6060 # not just through cpp. "Syntax error" is here to catch this case.
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6064 # include <limits.h>
6066 # include <assert.h>
6070 if ac_fn_c_try_cpp
"$LINENO"; then :
6073 # Broken: fails on valid input.
6076 rm -f conftest.err conftest.
$ac_ext
6078 # OK, works on sane cases. Now check whether nonexistent headers
6079 # can be detected and how.
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <ac_nonexistent.h>
6084 if ac_fn_c_try_cpp
"$LINENO"; then :
6085 # Broken: success on invalid input.
6088 # Passes both tests.
6092 rm -f conftest.err conftest.
$ac_ext
6095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096 rm -f conftest.err conftest.
$ac_ext
6097 if $ac_preproc_ok; then :
6100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6102 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6103 See \`config.log' for more details." "$LINENO" 5; }
6107 ac_cpp
='$CPP $CPPFLAGS'
6108 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6114 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6115 if test "${ac_cv_path_GREP+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -z "$GREP"; then
6119 ac_path_GREP_found
=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6122 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6125 test -z "$as_dir" && as_dir
=.
6126 for ac_prog
in grep ggrep
; do
6127 for ac_exec_ext
in '' $ac_executable_extensions; do
6128 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6129 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6130 # Check for GNU ac_path_GREP and select it if it is found.
6131 # Check for GNU $ac_path_GREP
6132 case `"$ac_path_GREP" --version 2>&1` in
6134 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6137 $as_echo_n 0123456789 >"conftest.in"
6140 cat "conftest.in" "conftest.in" >"conftest.tmp"
6141 mv "conftest.tmp" "conftest.in"
6142 cp "conftest.in" "conftest.nl"
6143 $as_echo 'GREP' >> "conftest.nl"
6144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6145 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6146 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6148 # Best one so far, save it but keep looking for a better one
6149 ac_cv_path_GREP
="$ac_path_GREP"
6150 ac_path_GREP_max
=$ac_count
6152 # 10*(2^10) chars as input seems more than enough
6153 test $ac_count -gt 10 && break
6155 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6158 $ac_path_GREP_found && break 3
6163 if test -z "$ac_cv_path_GREP"; then
6164 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6167 ac_cv_path_GREP
=$GREP
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6172 $as_echo "$ac_cv_path_GREP" >&6; }
6173 GREP
="$ac_cv_path_GREP"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6177 $as_echo_n "checking for egrep... " >&6; }
6178 if test "${ac_cv_path_EGREP+set}" = set; then :
6179 $as_echo_n "(cached) " >&6
6181 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6182 then ac_cv_path_EGREP
="$GREP -E"
6184 if test -z "$EGREP"; then
6185 ac_path_EGREP_found
=false
6186 # Loop through the user's path and test for each of PROGNAME-LIST
6187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6188 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6191 test -z "$as_dir" && as_dir
=.
6192 for ac_prog
in egrep; do
6193 for ac_exec_ext
in '' $ac_executable_extensions; do
6194 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6195 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6196 # Check for GNU ac_path_EGREP and select it if it is found.
6197 # Check for GNU $ac_path_EGREP
6198 case `"$ac_path_EGREP" --version 2>&1` in
6200 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6203 $as_echo_n 0123456789 >"conftest.in"
6206 cat "conftest.in" "conftest.in" >"conftest.tmp"
6207 mv "conftest.tmp" "conftest.in"
6208 cp "conftest.in" "conftest.nl"
6209 $as_echo 'EGREP' >> "conftest.nl"
6210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6211 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6212 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6214 # Best one so far, save it but keep looking for a better one
6215 ac_cv_path_EGREP
="$ac_path_EGREP"
6216 ac_path_EGREP_max
=$ac_count
6218 # 10*(2^10) chars as input seems more than enough
6219 test $ac_count -gt 10 && break
6221 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6224 $ac_path_EGREP_found && break 3
6229 if test -z "$ac_cv_path_EGREP"; then
6230 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6233 ac_cv_path_EGREP
=$EGREP
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6239 $as_echo "$ac_cv_path_EGREP" >&6; }
6240 EGREP
="$ac_cv_path_EGREP"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6246 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6247 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6261 gl_cv_c_amsterdam_compiler
=yes
6263 gl_cv_c_amsterdam_compiler
=no
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6270 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6271 if test -z "$AR"; then
6272 if test $gl_cv_c_amsterdam_compiler = yes; then
6274 if test -z "$ARFLAGS"; then
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6280 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if test "${ac_cv_prog_AR+set}" = set; then :
6284 $as_echo_n "(cached) " >&6
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR
="$AR" # Let the user override the test.
6289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir
=.
6294 for ac_exec_ext
in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 if test -n "$AR"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6309 $as_echo "$AR" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6317 if test -z "$ac_cv_prog_AR"; then
6319 # Extract the first word of "ar", so it can be a program name with args.
6320 set dummy
ar; ac_word
=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6326 if test -n "$ac_ct_AR"; then
6327 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6333 test -z "$as_dir" && as_dir
=.
6334 for ac_exec_ext
in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_AR
="ar"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6347 if test -n "$ac_ct_AR"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6349 $as_echo "$ac_ct_AR" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6355 if test "x$ac_ct_AR" = x
; then
6358 case $cross_compiling:$ac_tool_warned in
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned
=yes ;;
6370 if test -z "$ARFLAGS"; then
6375 if test -z "$ARFLAGS"; then
6381 if test -z "$RANLIB"; then
6382 if test $gl_cv_c_amsterdam_compiler = yes; then
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$RANLIB"; then
6394 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir
=.
6401 for ac_exec_ext
in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 RANLIB
=$ac_cv_prog_RANLIB
6414 if test -n "$RANLIB"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6416 $as_echo "$RANLIB" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6424 if test -z "$ac_cv_prog_RANLIB"; then
6425 ac_ct_RANLIB
=$RANLIB
6426 # Extract the first word of "ranlib", so it can be a program name with args.
6427 set dummy ranlib
; ac_word
=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6433 if test -n "$ac_ct_RANLIB"; then
6434 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir
=.
6441 for ac_exec_ext
in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6454 if test -n "$ac_ct_RANLIB"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6456 $as_echo "$ac_ct_RANLIB" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6462 if test "x$ac_ct_RANLIB" = x
; then
6465 case $cross_compiling:$ac_tool_warned in
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned
=yes ;;
6471 RANLIB
=$ac_ct_RANLIB
6474 RANLIB
="$ac_cv_prog_RANLIB"
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6482 $as_echo_n "checking for ANSI C header files... " >&6; }
6483 if test "${ac_cv_header_stdc+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6501 if ac_fn_c_try_compile
"$LINENO"; then :
6502 ac_cv_header_stdc
=yes
6504 ac_cv_header_stdc
=no
6506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6508 if test $ac_cv_header_stdc = yes; then
6509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6516 $EGREP "memchr" >/dev
/null
2>&1; then :
6519 ac_cv_header_stdc
=no
6525 if test $ac_cv_header_stdc = yes; then
6526 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
6536 ac_cv_header_stdc
=no
6542 if test $ac_cv_header_stdc = yes; then
6543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6544 if test "$cross_compiling" = yes; then :
6547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 #if ((' ' & 0x0FF) == 0x020)
6552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6555 # define ISLOWER(c) \
6556 (('a' <= (c) && (c) <= 'i') \
6557 || ('j' <= (c) && (c) <= 'r') \
6558 || ('s' <= (c) && (c) <= 'z'))
6559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6567 for (i = 0; i < 256; i++)
6568 if (XOR (islower (i), ISLOWER (i))
6569 || toupper (i) != TOUPPER (i))
6574 if ac_fn_c_try_run
"$LINENO"; then :
6577 ac_cv_header_stdc
=no
6579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6586 $as_echo "$ac_cv_header_stdc" >&6; }
6587 if test $ac_cv_header_stdc = yes; then
6589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6594 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6595 inttypes.h stdint.h unistd.h
6597 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6598 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6600 eval as_val
=\$
$as_ac_Header
6601 if test "x$as_val" = x
""yes; then :
6602 cat >>confdefs.h
<<_ACEOF
6603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6613 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6620 if test "$MINIX" = yes; then
6622 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6625 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6628 $as_echo "#define _MINIX 1" >>confdefs.h
6631 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6637 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6638 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6644 # define __EXTENSIONS__ 1
6645 $ac_includes_default
6654 if ac_fn_c_try_compile
"$LINENO"; then :
6655 ac_cv_safe_to_define___extensions__
=yes
6657 ac_cv_safe_to_define___extensions__
=no
6659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6662 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6663 test $ac_cv_safe_to_define___extensions__ = yes &&
6664 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6666 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6668 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6670 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6672 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6674 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6677 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6678 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 ac_cv_should_define__xopen_source
=no
6682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6695 if ac_fn_c_try_compile
"$LINENO"; then :
6698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6701 #define _XOPEN_SOURCE 500
6712 if ac_fn_c_try_compile
"$LINENO"; then :
6713 ac_cv_should_define__xopen_source
=yes
6715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6720 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6721 test $ac_cv_should_define__xopen_source = yes &&
6722 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6731 # Check whether --enable-largefile was given.
6732 if test "${enable_largefile+set}" = set; then :
6733 enableval
=$enable_largefile;
6736 if test "$enable_largefile" != no
; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6739 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6740 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 ac_cv_sys_largefile_CC
=no
6744 if test "$GCC" != yes; then
6747 # IRIX 6.2 and later do not support large files by default,
6748 # so use the C compiler's -n32 option if that helps.
6749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 /* Check that off_t can represent 2**63 - 1 correctly.
6753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6754 since some C++ compilers masquerading as C compilers
6755 incorrectly reject 9223372036854775807. */
6756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6758 && LARGE_OFF_T % 2147483647 == 1)
6768 if ac_fn_c_try_compile
"$LINENO"; then :
6771 rm -f core conftest.err conftest.
$ac_objext
6773 if ac_fn_c_try_compile
"$LINENO"; then :
6774 ac_cv_sys_largefile_CC
=' -n32'; break
6776 rm -f core conftest.err conftest.
$ac_objext
6780 rm -f conftest.
$ac_ext
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6784 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6785 if test "$ac_cv_sys_largefile_CC" != no
; then
6786 CC
=$CC$ac_cv_sys_largefile_CC
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6790 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6791 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6798 /* Check that off_t can represent 2**63 - 1 correctly.
6799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6800 since some C++ compilers masquerading as C compilers
6801 incorrectly reject 9223372036854775807. */
6802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6804 && LARGE_OFF_T % 2147483647 == 1)
6814 if ac_fn_c_try_compile
"$LINENO"; then :
6815 ac_cv_sys_file_offset_bits
=no
; break
6817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #define _FILE_OFFSET_BITS 64
6821 #include <sys/types.h>
6822 /* Check that off_t can represent 2**63 - 1 correctly.
6823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6824 since some C++ compilers masquerading as C compilers
6825 incorrectly reject 9223372036854775807. */
6826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6828 && LARGE_OFF_T % 2147483647 == 1)
6838 if ac_fn_c_try_compile
"$LINENO"; then :
6839 ac_cv_sys_file_offset_bits
=64; break
6841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6842 ac_cv_sys_file_offset_bits
=unknown
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6847 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6848 case $ac_cv_sys_file_offset_bits in #(
6851 cat >>confdefs.h
<<_ACEOF
6852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6857 if test $ac_cv_sys_file_offset_bits = unknown
; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6859 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6860 if test "${ac_cv_sys_large_files+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <sys/types.h>
6867 /* Check that off_t can represent 2**63 - 1 correctly.
6868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6869 since some C++ compilers masquerading as C compilers
6870 incorrectly reject 9223372036854775807. */
6871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6873 && LARGE_OFF_T % 2147483647 == 1)
6883 if ac_fn_c_try_compile
"$LINENO"; then :
6884 ac_cv_sys_large_files
=no
; break
6886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 #define _LARGE_FILES 1
6890 #include <sys/types.h>
6891 /* Check that off_t can represent 2**63 - 1 correctly.
6892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6893 since some C++ compilers masquerading as C compilers
6894 incorrectly reject 9223372036854775807. */
6895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6897 && LARGE_OFF_T % 2147483647 == 1)
6907 if ac_fn_c_try_compile
"$LINENO"; then :
6908 ac_cv_sys_large_files
=1; break
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 ac_cv_sys_large_files
=unknown
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6916 $as_echo "$ac_cv_sys_large_files" >&6; }
6917 case $ac_cv_sys_large_files in #(
6920 cat >>confdefs.h
<<_ACEOF
6921 #define _LARGE_FILES $ac_cv_sys_large_files
6929 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6933 case $ac_cv_prog_cc_stdc in #(
6935 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6938 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6939 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6942 ac_cv_prog_cc_c99
=no
6944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6947 #include <stdbool.h>
6952 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6953 #define debug(...) fprintf (stderr, __VA_ARGS__)
6954 #define showlist(...) puts (#__VA_ARGS__)
6955 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6957 test_varargs_macros (void)
6962 debug ("X = %d\n", x);
6963 showlist (The first, second, and third items.);
6964 report (x>y, "x is %d but y is %d", x, y);
6967 // Check long long types.
6968 #define BIG64 18446744073709551615ull
6969 #define BIG32 4294967295ul
6970 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6972 your preprocessor is broken;
6976 your preprocessor is broken;
6978 static long long int bignum = -9223372036854775807LL;
6979 static unsigned long long int ubignum = BIG64;
6981 struct incomplete_array
6989 const wchar_t *name;
6993 typedef const char *ccp;
6996 test_restrict (ccp restrict text)
6998 // See if C++-style comments work.
6999 // Iterate through items via the restricted pointer.
7000 // Also check for declarations in for loops.
7001 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7006 // Check varargs and va_copy.
7008 test_varargs (const char *format, ...)
7011 va_start (args, format);
7013 va_copy (args_copy, args);
7024 str = va_arg (args_copy, const char *);
7027 number = va_arg (args_copy, int);
7030 fnumber = va_arg (args_copy, double);
7045 _Bool success = false;
7048 if (test_restrict ("String literal") == 0)
7050 char *restrict newvar = "Another string";
7053 test_varargs ("s, d' f .", "string", 65, 34.234);
7054 test_varargs_macros ();
7056 // Check flexible array members.
7057 struct incomplete_array *ia =
7058 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7060 for (int i = 0; i < ia->datasize; ++i)
7061 ia->data[i] = i * 1.234;
7063 // Check named initializers.
7064 struct named_init ni = {
7066 .name = L"Test wide string",
7067 .average = 543.34343,
7072 int dynamic_array[ni.number];
7073 dynamic_array[ni.number - 1] = 543;
7075 // work around unused variable warnings
7076 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7077 || dynamic_array[ni.number - 1] != 543);
7083 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7085 CC
="$ac_save_CC $ac_arg"
7086 if ac_fn_c_try_compile
"$LINENO"; then :
7087 ac_cv_prog_cc_c99
=$ac_arg
7089 rm -f core conftest.err conftest.
$ac_objext
7090 test "x$ac_cv_prog_cc_c99" != "xno" && break
7092 rm -f conftest.
$ac_ext
7097 case "x$ac_cv_prog_cc_c99" in
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7100 $as_echo "none needed" >&6; } ;;
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7103 $as_echo "unsupported" >&6; } ;;
7105 CC
="$CC $ac_cv_prog_cc_c99"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7107 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7109 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7110 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7117 ac_cv_prog_cc_c89
=no
7119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 #include <sys/types.h>
7124 #include <sys/stat.h>
7125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7126 struct buf { int x; };
7127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7128 static char *e (p, i)
7134 static char *f (char * (*g) (char **, int), char **p, ...)
7139 s = g (p, va_arg (v,int));
7144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7145 function prototypes and stuff, but not '\xHH' hex character constants.
7146 These don't provoke an error unfortunately, instead are silently treated
7147 as 'x'. The following induces an error, until -std is added to get
7148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7149 array size at least. It's necessary to write '\x00'==0 to get something
7150 that's true only with -std. */
7151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7154 inside strings and character constants. */
7156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7158 int test (int i, double x);
7159 struct s1 {int (*f) (int a);};
7160 struct s2 {int (*f) (double a);};
7161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7172 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7175 CC
="$ac_save_CC $ac_arg"
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 ac_cv_prog_cc_c89
=$ac_arg
7179 rm -f core conftest.err conftest.
$ac_objext
7180 test "x$ac_cv_prog_cc_c89" != "xno" && break
7182 rm -f conftest.
$ac_ext
7187 case "x$ac_cv_prog_cc_c89" in
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7190 $as_echo "none needed" >&6; } ;;
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7193 $as_echo "unsupported" >&6; } ;;
7195 CC
="$CC $ac_cv_prog_cc_c89"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7199 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7200 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7202 ac_cv_prog_cc_stdc
=no
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7209 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7210 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7214 case $ac_cv_prog_cc_stdc in #(
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7217 $as_echo "unsupported" >&6; } ;; #(
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7220 $as_echo "none needed" >&6; } ;; #(
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7223 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7228 # Code from module alloca-opt:
7229 # Code from module allocator:
7230 # Code from module at-internal:
7231 # Code from module binary-io:
7232 # Code from module c-ctype:
7233 # Code from module c-strcase:
7234 # Code from module careadlinkat:
7235 # Code from module clock-time:
7236 # Code from module close-stream:
7237 # Code from module crypto/md5:
7238 # Code from module crypto/sha1:
7239 # Code from module crypto/sha256:
7240 # Code from module crypto/sha512:
7241 # Code from module dirent:
7242 # Code from module dosname:
7243 # Code from module dtoastr:
7244 # Code from module dtotimespec:
7245 # Code from module dup2:
7246 # Code from module environ:
7247 # Code from module errno:
7248 # Code from module euidaccess:
7249 # Code from module execinfo:
7250 # Code from module extensions:
7252 # Code from module extern-inline:
7253 # Code from module faccessat:
7254 # Code from module fcntl:
7255 # Code from module fcntl-h:
7256 # Code from module fdatasync:
7257 # Code from module fdopendir:
7258 # Code from module filemode:
7259 # Code from module fpending:
7260 # Code from module fstatat:
7261 # Code from module fsync:
7262 # Code from module getdtablesize:
7263 # Code from module getgroups:
7264 # Code from module getloadavg:
7265 # Code from module getopt-gnu:
7266 # Code from module getopt-posix:
7267 # Code from module gettext-h:
7268 # Code from module gettime:
7269 # Code from module gettimeofday:
7270 # Code from module group-member:
7271 # Code from module include_next:
7272 # Code from module intprops:
7273 # Code from module inttypes-incomplete:
7274 # Code from module largefile:
7276 # Code from module lstat:
7277 # Code from module manywarnings:
7278 # Code from module memrchr:
7279 # Code from module mktime:
7280 # Code from module multiarch:
7281 # Code from module nocrash:
7282 # Code from module openat-h:
7283 # Code from module pathmax:
7284 # Code from module pipe2:
7285 # Code from module pselect:
7286 # Code from module pthread_sigmask:
7287 # Code from module putenv:
7288 # Code from module qacl:
7289 # Code from module readlink:
7290 # Code from module readlinkat:
7291 # Code from module root-uid:
7292 # Code from module sig2str:
7293 # Code from module signal-h:
7294 # Code from module snippet/_Noreturn:
7295 # Code from module snippet/arg-nonnull:
7296 # Code from module snippet/c++defs:
7297 # Code from module snippet/warn-on-use:
7298 # Code from module socklen:
7299 # Code from module ssize_t:
7300 # Code from module stat:
7301 # Code from module stat-time:
7302 # Code from module stdalign:
7303 # Code from module stdarg:
7307 # Code from module stdbool:
7308 # Code from module stddef:
7309 # Code from module stdint:
7310 # Code from module stdio:
7311 # Code from module stdlib:
7312 # Code from module strftime:
7313 # Code from module string:
7314 # Code from module strtoimax:
7315 # Code from module strtoll:
7316 # Code from module strtoull:
7317 # Code from module strtoumax:
7318 # Code from module symlink:
7319 # Code from module sys_select:
7320 # Code from module sys_stat:
7321 # Code from module sys_time:
7322 # Code from module time:
7323 # Code from module time_r:
7324 # Code from module timer-time:
7325 # Code from module timespec:
7326 # Code from module timespec-add:
7327 # Code from module timespec-sub:
7328 # Code from module u64:
7329 # Code from module unistd:
7330 # Code from module unsetenv:
7331 # Code from module utimens:
7332 # Code from module verify:
7333 # Code from module warnings:
7334 # Code from module xalloc-oversized:
7337 if test "$ac_test_CFLAGS" != set; then
7338 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7339 # if -g3 works and the user does not specify CFLAGS.
7340 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7343 emacs_g3_CFLAGS
='-g3';;
7345 emacs_g3_CFLAGS
='-g3 -O2';;
7347 emacs_g3_CFLAGS
='';;
7349 if test -n "$emacs_g3_CFLAGS"; then
7350 emacs_save_CFLAGS
=$CFLAGS
7351 CFLAGS
=$emacs_g3_CFLAGS
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7353 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7354 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7368 if ac_fn_c_try_link
"$LINENO"; then :
7369 emacs_cv_prog_cc_g3
=yes
7371 emacs_cv_prog_cc_g3
=no
7373 rm -f core conftest.err conftest.
$ac_objext \
7374 conftest
$ac_exeext conftest.
$ac_ext
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7377 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7378 if test $emacs_cv_prog_cc_g3 != yes; then
7379 CFLAGS
=$emacs_save_CFLAGS
7381 if test $opsys = mingw32
; then
7382 CFLAGS
="$CFLAGS -gdwarf-2"
7389 # No optimization flag was inferred for this non-GCC compiler.
7390 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7391 emacs_save_CFLAGS
=$CFLAGS
7392 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7395 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7396 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7410 if ac_fn_c_try_link
"$LINENO"; then :
7411 emacs_cv_prog_cc_o
=yes
7413 emacs_cv_prog_cc_o
=no
7415 rm -f core conftest.err conftest.
$ac_objext \
7416 conftest
$ac_exeext conftest.
$ac_ext
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7419 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7420 if test $emacs_cv_prog_cc_o != yes; then
7421 CFLAGS
=$emacs_save_CFLAGS
7426 # Check whether --enable-gcc-warnings was given.
7427 if test "${enable_gcc_warnings+set}" = set; then :
7428 enableval
=$enable_gcc_warnings; case $enableval in
7430 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7432 gl_gcc_warnings
=$enableval
7439 # Check whether --enable-link-time-optimization was given.
7440 if test "${enable_link_time_optimization+set}" = set; then :
7441 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7443 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7445 if test x
$GCC = xyes
; then
7446 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7447 if test x
$CPUS != x
; then
7453 CFLAGS
="$CFLAGS $LTO"
7454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7465 if ac_fn_c_try_compile
"$LINENO"; then :
7466 ac_lto_supported
=yes
7470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7471 CFLAGS
="$old_CFLAGS"
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7474 $as_echo "$ac_lto_supported" >&6; }
7475 if test "$ac_lto_supported" = "yes"; then
7476 CFLAGS
="$CFLAGS $LTO"
7482 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7483 # ------------------------------------------------
7484 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7485 # Otherwise, run RUN-IF-NOT-FOUND.
7488 # When compiling with GCC, prefer -isystem to -I when including system
7489 # include files, to avoid generating useless diagnostics for the files.
7490 if test "$gl_gcc_warnings" != yes; then
7495 # This, $nw, is the list of warnings we disable.
7498 case $with_x_toolkit in
7499 lucid | athena | motif
)
7500 # Old toolkits mishandle 'const'.
7501 nw
="$nw -Wwrite-strings"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7505 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7506 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7510 gl_save_compiler_FLAGS
="$CFLAGS"
7511 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7523 if ac_fn_c_try_compile
"$LINENO"; then :
7524 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7526 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 CFLAGS
="$gl_save_compiler_FLAGS"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7533 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7534 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7535 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7537 gl_unknown_warnings_are_errors
=
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7542 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7543 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7547 gl_save_compiler_FLAGS
="$CFLAGS"
7548 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7560 if ac_fn_c_try_compile
"$LINENO"; then :
7561 gl_cv_warn_c__Werror
=yes
7563 gl_cv_warn_c__Werror
=no
7565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7566 CFLAGS
="$gl_save_compiler_FLAGS"
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7570 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7571 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7572 as_fn_append WERROR_CFLAGS
" -Werror"
7580 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7581 nw
="$nw -Woverlength-strings" # Not a problem these days
7582 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7583 nw
="$nw -Wformat-nonliteral" # we do this a lot
7584 nw
="$nw -Wvla" # warnings in gettext.h
7585 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7586 nw
="$nw -Wswitch-default" # Too many warnings for now
7587 nw
="$nw -Winline" # OK to ignore 'inline'
7588 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7589 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7590 # signed overflow has undefined behavior
7591 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7592 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7593 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7595 # Emacs doesn't care about shadowing; see
7596 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7599 # Emacs's use of alloca inhibits protecting the stack.
7600 nw
="$nw -Wstack-protector"
7602 # The following line should be removable at some point.
7603 nw
="$nw -Wsuggest-attribute=pure"
7605 # clang is unduly picky about some things.
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7607 $as_echo_n "checking whether the compiler is clang... " >&6; }
7608 if test "${emacs_cv_clang+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7626 if ac_fn_c_try_compile
"$LINENO"; then :
7631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7634 $as_echo "$emacs_cv_clang" >&6; }
7635 if test $emacs_cv_clang = yes; then
7636 nw
="$nw -Wcast-align"
7641 if test -n "$GCC"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7644 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7645 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7649 gl_save_CFLAGS
="$CFLAGS"
7650 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7662 if ac_fn_c_try_compile
"$LINENO"; then :
7663 gl_cv_cc_nomfi_supported
=yes
7665 gl_cv_cc_nomfi_supported
=no
7667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 CFLAGS
="$gl_save_CFLAGS"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7672 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7674 if test "$gl_cv_cc_nomfi_supported" = yes; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7676 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7677 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7681 gl_save_CFLAGS
="$CFLAGS"
7682 CFLAGS
="$CFLAGS -W -Werror"
7683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7687 typedef struct { int a; int b; } s_t;
7699 if ac_fn_c_try_compile
"$LINENO"; then :
7700 gl_cv_cc_nomfi_needed
=no
7702 gl_cv_cc_nomfi_needed
=yes
7704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7705 CFLAGS
="$gl_save_CFLAGS"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7710 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7714 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7715 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7719 gl_save_CFLAGS
="$CFLAGS"
7720 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7732 if ac_fn_c_try_compile
"$LINENO"; then :
7733 gl_cv_cc_uninitialized_supported
=yes
7735 gl_cv_cc_uninitialized_supported
=no
7737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 CFLAGS
="$gl_save_CFLAGS"
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7742 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7746 # List all gcc warning categories.
7748 for gl_manywarn_item
in \
7752 -Waggressive-loop-optimizations \
7756 -Wbad-function-cast \
7757 -Wbuiltin-macro-redefined \
7763 -Wcoverage-mismatch \
7766 -Wdeprecated-declarations \
7767 -Wdisabled-optimization \
7769 -Wdouble-promotion \
7774 -Wformat-contains-nul \
7775 -Wformat-extra-args \
7776 -Wformat-nonliteral \
7779 -Wformat-zero-length \
7780 -Wfree-nonheap-object \
7781 -Wignored-qualifiers \
7783 -Wimplicit-function-declaration \
7787 -Wint-to-pointer-cast \
7788 -Winvalid-memory-model \
7790 -Wjump-misses-init \
7793 -Wmaybe-uninitialized \
7795 -Wmissing-declarations \
7796 -Wmissing-field-initializers \
7797 -Wmissing-include-dirs \
7798 -Wmissing-parameter-type \
7799 -Wmissing-prototypes \
7806 -Wold-style-declaration \
7807 -Wold-style-definition \
7809 -Woverlength-strings \
7812 -Wpacked-bitfield-compat \
7816 -Wpointer-to-int-cast \
7818 -Wreturn-local-addr \
7822 -Wsizeof-pointer-memaccess \
7826 -Wstrict-prototypes \
7827 -Wsuggest-attribute=const \
7828 -Wsuggest-attribute=format \
7829 -Wsuggest-attribute=noreturn \
7830 -Wsuggest-attribute=pure \
7840 -Wunsafe-loop-optimizations \
7842 -Wunused-but-set-parameter \
7843 -Wunused-but-set-variable \
7846 -Wunused-local-typedefs \
7848 -Wunused-parameter \
7854 -Wvector-operation-performance \
7856 -Wvolatile-register-var \
7860 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7863 # Disable specific options as needed.
7864 if test "$gl_cv_cc_nomfi_needed" = yes; then
7865 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7868 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7869 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7880 *" $gl_warn_item "*)
7883 gl_warn_set
="$gl_warn_set $gl_warn_item"
7891 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7893 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7894 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7895 $as_echo_n "(cached) " >&6
7898 gl_save_compiler_FLAGS
="$CFLAGS"
7899 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $w"
7900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7911 if ac_fn_c_try_compile
"$LINENO"; then :
7912 eval "$as_gl_Warn=yes"
7914 eval "$as_gl_Warn=no"
7916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 CFLAGS
="$gl_save_compiler_FLAGS"
7920 eval ac_res
=\$
$as_gl_Warn
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7922 $as_echo "$ac_res" >&6; }
7923 eval as_val
=\$
$as_gl_Warn
7924 if test "x$as_val" = x
""yes; then :
7925 as_fn_append WARN_CFLAGS
" $w"
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7932 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7933 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7937 gl_save_compiler_FLAGS
="$CFLAGS"
7938 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7950 if ac_fn_c_try_compile
"$LINENO"; then :
7951 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7953 gl_cv_warn_c__Wno_missing_field_initializers
=no
7955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7956 CFLAGS
="$gl_save_compiler_FLAGS"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7960 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7961 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7962 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7968 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7969 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7973 gl_save_compiler_FLAGS
="$CFLAGS"
7974 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-sign-compare"
7975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7986 if ac_fn_c_try_compile
"$LINENO"; then :
7987 gl_cv_warn_c__Wno_sign_compare
=yes
7989 gl_cv_warn_c__Wno_sign_compare
=no
7991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 CFLAGS
="$gl_save_compiler_FLAGS"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7996 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7997 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7998 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
8001 # Too many warnings for now
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8004 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8005 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8009 gl_save_compiler_FLAGS
="$CFLAGS"
8010 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-type-limits"
8011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8022 if ac_fn_c_try_compile
"$LINENO"; then :
8023 gl_cv_warn_c__Wno_type_limits
=yes
8025 gl_cv_warn_c__Wno_type_limits
=no
8027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8028 CFLAGS
="$gl_save_compiler_FLAGS"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8032 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8033 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8034 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8037 # Too many warnings for now
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8040 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8041 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8045 gl_save_compiler_FLAGS
="$CFLAGS"
8046 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-switch"
8047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8058 if ac_fn_c_try_compile
"$LINENO"; then :
8059 gl_cv_warn_c__Wno_switch
=yes
8061 gl_cv_warn_c__Wno_switch
=no
8063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8064 CFLAGS
="$gl_save_compiler_FLAGS"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8068 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8069 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8070 as_fn_append WARN_CFLAGS
" -Wno-switch"
8073 # Too many warnings for now
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8076 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8077 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8081 gl_save_compiler_FLAGS
="$CFLAGS"
8082 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8094 if ac_fn_c_try_compile
"$LINENO"; then :
8095 gl_cv_warn_c__Wno_unused_parameter
=yes
8097 gl_cv_warn_c__Wno_unused_parameter
=no
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8100 CFLAGS
="$gl_save_compiler_FLAGS"
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8104 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8105 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8106 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8109 # Too many warnings for now
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8112 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8113 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8117 gl_save_compiler_FLAGS
="$CFLAGS"
8118 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8130 if ac_fn_c_try_compile
"$LINENO"; then :
8131 gl_cv_warn_c__Wno_format_nonliteral
=yes
8133 gl_cv_warn_c__Wno_format_nonliteral
=no
8135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8136 CFLAGS
="$gl_save_compiler_FLAGS"
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8140 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8141 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8142 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8147 # In spite of excluding -Wlogical-op above, it is enabled, as of
8148 # gcc 4.5.0 20090517.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8151 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8152 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8156 gl_save_compiler_FLAGS
="$CFLAGS"
8157 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-logical-op"
8158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8169 if ac_fn_c_try_compile
"$LINENO"; then :
8170 gl_cv_warn_c__Wno_logical_op
=yes
8172 gl_cv_warn_c__Wno_logical_op
=no
8174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 CFLAGS
="$gl_save_compiler_FLAGS"
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8179 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8180 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8181 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8186 # More things that clang is unduly picky about.
8187 if test $emacs_cv_clang = yes; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8190 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8191 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8195 gl_save_compiler_FLAGS
="$CFLAGS"
8196 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8208 if ac_fn_c_try_compile
"$LINENO"; then :
8209 gl_cv_warn_c__Wno_format_extra_args
=yes
8211 gl_cv_warn_c__Wno_format_extra_args
=no
8213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8214 CFLAGS
="$gl_save_compiler_FLAGS"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8218 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8219 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8220 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8226 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8227 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8231 gl_save_compiler_FLAGS
="$CFLAGS"
8232 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8244 if ac_fn_c_try_compile
"$LINENO"; then :
8245 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8247 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 CFLAGS
="$gl_save_compiler_FLAGS"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8254 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8255 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8256 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8262 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8263 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8267 gl_save_compiler_FLAGS
="$CFLAGS"
8268 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8280 if ac_fn_c_try_compile
"$LINENO"; then :
8281 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8283 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8286 CFLAGS
="$gl_save_compiler_FLAGS"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8290 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8291 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8292 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8298 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8299 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8303 gl_save_compiler_FLAGS
="$CFLAGS"
8304 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-value"
8305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8316 if ac_fn_c_try_compile
"$LINENO"; then :
8317 gl_cv_warn_c__Wno_unused_value
=yes
8319 gl_cv_warn_c__Wno_unused_value
=no
8321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8322 CFLAGS
="$gl_save_compiler_FLAGS"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8326 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8327 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8328 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8336 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8337 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8341 gl_save_compiler_FLAGS
="$CFLAGS"
8342 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8354 if ac_fn_c_try_compile
"$LINENO"; then :
8355 gl_cv_warn_c__fdiagnostics_show_option
=yes
8357 gl_cv_warn_c__fdiagnostics_show_option
=no
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 CFLAGS
="$gl_save_compiler_FLAGS"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8364 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8365 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8366 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8372 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8373 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8377 gl_save_compiler_FLAGS
="$CFLAGS"
8378 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8390 if ac_fn_c_try_compile
"$LINENO"; then :
8391 gl_cv_warn_c__funit_at_a_time
=yes
8393 gl_cv_warn_c__funit_at_a_time
=no
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 CFLAGS
="$gl_save_compiler_FLAGS"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8400 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8401 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8402 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8408 $as_echo "#define lint 1" >>confdefs.h
8412 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8415 # We use a slightly smaller set of warning options for lib/.
8416 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8418 nw
="$nw -Wunused-macros"
8422 set x
$WARN_CFLAGS; shift
8426 *" $gl_warn_item "*)
8429 gl_warn_set
="$gl_warn_set $gl_warn_item"
8433 GNULIB_WARN_CFLAGS
=$gl_warn_set
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8444 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8445 rm -f conf$$ conf$$.
file
8447 LN_S_FILEONLY
='cp -p'
8449 if (echo >conf$$.
file) 2>/dev
/null
; then
8450 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8451 LN_S_FILEONLY
='ln -s'
8452 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8457 rm -f conf$$ conf$$.
file
8459 if test "$LN_S_FILEONLY" = "ln -s"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8461 $as_echo "yes" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8464 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8470 if test "$opsys" = "mingw32"; then
8474 # Extract the first word of "install-info", so it can be a program name with args.
8475 set dummy install-info
; ac_word
=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8481 case $INSTALL_INFO in
8483 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8487 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8490 test -z "$as_dir" && as_dir
=.
8491 for ac_exec_ext
in '' $ac_executable_extensions; do
8492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8493 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8505 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8506 if test -n "$INSTALL_INFO"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8508 $as_echo "$INSTALL_INFO" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8515 # Extract the first word of "gzip", so it can be a program name with args.
8516 set dummy
gzip; ac_word
=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8524 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir
=.
8532 for ac_exec_ext
in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8546 if test -n "$GZIP_PROG"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8548 $as_echo "$GZIP_PROG" >&6; }
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8556 if test $opsys = gnu-linux
; then
8557 # Extract the first word of "paxctl", so it can be a program name with args.
8558 set dummy paxctl
; ac_word
=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8566 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8570 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8573 test -z "$as_dir" && as_dir
=.
8574 for ac_exec_ext
in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 PAXCTL
=$ac_cv_path_PAXCTL
8588 if test -n "$PAXCTL"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8590 $as_echo "$PAXCTL" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8597 if test "X$PAXCTL" != X
; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8599 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8611 if ac_fn_c_try_link
"$LINENO"; then :
8612 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8613 $as_echo "yes" >&6; }
8614 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }; PAXCTL
=""; fi
8617 rm -f core conftest.err conftest.
$ac_objext \
8618 conftest
$ac_exeext conftest.
$ac_ext
8622 ## Need makeinfo >= 4.7 (?) to build the manuals.
8623 # Extract the first word of "makeinfo", so it can be a program name with args.
8624 set dummy makeinfo
; ac_word
=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8632 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir
=.
8640 for ac_exec_ext
in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8654 MAKEINFO
=$ac_cv_path_MAKEINFO
8655 if test -n "$MAKEINFO"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8657 $as_echo "$MAKEINFO" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8664 if test "$MAKEINFO" != "no"; then
8666 $MAKEINFO --version 2> /dev/null |
8667 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8673 ## Makeinfo is unusual. For a released Emacs, the manuals are
8674 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8675 ## therefore in the category of "special tools" not normally required, which
8676 ## configure does not have to check for (eg autoconf itself).
8677 ## In a Bazaar checkout on the other hand, the manuals are not included.
8678 ## So makeinfo is a requirement to build from Bazaar, and configure
8679 ## should test for it as it does for any other build requirement.
8680 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8681 ## with pre-built manuals, from a Bazaar checkout.
8684 if test "$MAKEINFO" = "no"; then
8686 if test "x${with_makeinfo}" = "xno"; then
8688 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8689 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8690 source tree does not seem to have pre-built manuals in the \`info' directory.
8691 Either install a suitable version of makeinfo, or re-run configure
8692 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8698 INFO_OPTS
=--no-split
8703 if test x
$GCC = xyes
; then
8704 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8705 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8707 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8708 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8712 late_LDFLAGS
=$LDFLAGS
8713 if test x
$GCC = xyes
; then
8714 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8716 LDFLAGS
="$LDFLAGS -znocombreloc"
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8720 $as_echo_n "checking for -znocombreloc... " >&6; }
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8732 if ac_fn_c_try_link
"$LINENO"; then :
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8734 $as_echo "yes" >&6; }
8736 LDFLAGS
=$late_LDFLAGS
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8740 rm -f core conftest.err conftest.
$ac_objext \
8741 conftest
$ac_exeext conftest.
$ac_ext
8744 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8746 your-opsys-here
) CANNOT_DUMP
=yes ;;
8749 test "$CANNOT_DUMP" = "yes" && \
8751 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8757 UNEXEC_OBJ
=unexelf.o
8759 # MSDOS uses unexcoff.o
8761 UNEXEC_OBJ
=unexaix.o
8767 UNEXEC_OBJ
=unexmacosx.o
8770 UNEXEC_OBJ
=unexhp9k800.o
8773 UNEXEC_OBJ
=unexw32.o
8776 # Use the Solaris dldump() function, called from unexsol.c, to dump
8777 # emacs, instead of the generic ELF dump code found in unexelf.c.
8778 # The resulting binary has a complete symbol table, and is better
8779 # for debugging and other observability tools (debuggers, pstack, etc).
8781 # If you encounter a problem using dldump(), please consider sending
8782 # a message to the OpenSolaris tools-linking mailing list:
8783 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8785 # It is likely that dldump() works with older Solaris too, but this has
8786 # not been tested, so for now this change is for Solaris 10 or newer.
8787 UNEXEC_OBJ
=unexsol.o
8794 ## Let `ld' find image libs and similar things in /usr/local/lib.
8795 ## The system compiler, GCC, has apparently been modified to not
8796 ## look there, contrary to what a stock GCC would do.
8797 ### It's not our place to do this. See bug#10313#17.
8798 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8803 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8804 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8808 ### It's not our place to do this. See bug#10313#17.
8809 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8814 ## Han Boetes <han@boetes.org> says this is necessary,
8815 ## otherwise Emacs dumps core on elf systems.
8816 LD_SWITCH_SYSTEM
="-Z"
8821 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8823 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8824 ## which has not been defined yet. When this was handled with cpp,
8825 ## it was expanded to null when configure sourced the s/*.h file.
8826 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8827 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8828 ## (or somesuch), but because it is supposed to go at the _front_
8829 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8830 ## Compare with the gnu-linux case below, which added to the end
8831 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8832 ## LD_SWITCH_SYSTEM_TEMACS.
8835 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8842 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8843 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8847 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8848 ## With ELF, make sure that all common symbols get allocated to in the
8849 ## data section. Otherwise, the dump of temacs may miss variables in
8850 ## the shared library that have been initialized. For example, with
8851 ## GNU libc, __malloc_initialized would normally be resolved to the
8852 ## shared library's .bss section, which is fatal.
8853 if test "x$GCC" = "xyes"; then
8854 C_SWITCH_MACHINE
="-fno-common"
8856 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8859 UNEXEC_OBJ
=unexalpha.o
8868 ## Some programs in src produce warnings saying certain subprograms
8869 ## are too complex and need a MAXMEM value greater than 2000 for
8870 ## additional optimization. --nils@exp-math.uni-essen.de
8871 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8872 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8873 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8874 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8875 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8881 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8882 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8884 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8886 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8888 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8890 ## Motif needs -lgen.
8891 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8896 ### Make sure subsequent tests use flags consistent with the build flags.
8898 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8899 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8901 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8904 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8906 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8911 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8918 ## Adding -lm confuses the dynamic linker, so omit it.
8921 freebsd | dragonfly
)
8922 SYSTEM_TYPE
=berkeley-unix
8924 gnu-linux | gnu-kfreebsd
)
8926 hpux10-20 | hpux11
)
8930 SYSTEM_TYPE
=windows-nt
8933 SYSTEM_TYPE
=berkeley-unix
8937 SYSTEM_TYPE
=usg-unix-v
8944 cat >>confdefs.h
<<_ACEOF
8945 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8950 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8951 pre_PKG_CONFIG_LIBS
=$LIBS
8953 # Extract the first word of "pkg-config", so it can be a program name with args.
8954 set dummy pkg-config
; ac_word
=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8962 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8969 test -z "$as_dir" && as_dir
=.
8970 for ac_exec_ext
in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8984 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8985 if test -n "$PKG_CONFIG"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8987 $as_echo "$PKG_CONFIG" >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8997 if test "${with_sound}" != "no"; then
8998 # Sound support for GNU/Linux, the free BSDs, and MinGW.
8999 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
9001 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
9004 #define WIN32_LEAN_AND_MEAN
9005 #include <windows.h>
9009 eval as_val
=\$
$as_ac_Header
9010 if test "x$as_val" = x
""yes; then :
9011 cat >>confdefs.h
<<_ACEOF
9012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 have_sound_header
=yes
9019 # Emulation library used on NetBSD.
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9021 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9022 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9025 ac_check_lib_save_LIBS
=$LIBS
9026 LIBS
="-lossaudio $LIBS"
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9040 return _oss_ioctl ();
9045 if ac_fn_c_try_link
"$LINENO"; then :
9046 ac_cv_lib_ossaudio__oss_ioctl
=yes
9048 ac_cv_lib_ossaudio__oss_ioctl
=no
9050 rm -f core conftest.err conftest.
$ac_objext \
9051 conftest
$ac_exeext conftest.
$ac_ext
9052 LIBS
=$ac_check_lib_save_LIBS
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9055 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9056 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9065 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9069 if test "$PKG_CONFIG" = "no" ; then
9072 PKG_CONFIG_MIN_VERSION
=0.9.0
9073 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9075 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9077 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9078 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9079 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9086 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9087 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9089 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9096 ## If we have a custom action on failure, don't print errors, but
9097 ## do set a variable so people can do so. Do it in a subshell
9098 ## to capture any diagnostics in invoking pkg-config.
9099 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9111 if test $succeeded = yes; then
9117 if test $HAVE_ALSA = yes; then
9118 SAVE_CFLAGS
="$CFLAGS"
9120 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9121 LIBS
="$ALSA_LIBS $LIBS"
9122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 #include <asoundlib.h>
9128 snd_lib_error_set_handler (0);
9133 if ac_fn_c_try_compile
"$LINENO"; then :
9134 emacs_alsa_normal
=yes
9136 emacs_alsa_normal
=no
9138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 if test "$emacs_alsa_normal" != yes; then
9140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 #include <alsa/asoundlib.h>
9146 snd_lib_error_set_handler (0);
9151 if ac_fn_c_try_compile
"$LINENO"; then :
9152 emacs_alsa_subdir
=yes
9154 emacs_alsa_subdir
=no
9156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9157 if test "$emacs_alsa_subdir" != yes; then
9158 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9160 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9163 CFLAGS
="$SAVE_CFLAGS"
9165 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9166 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9168 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9172 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9174 gnu-linux|freebsd|netbsd|mingw32
)
9176 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9188 for ac_header
in $ac_header_list
9190 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9193 eval as_val
=\$
$as_ac_Header
9194 if test "x$as_val" = x
""yes; then :
9195 cat >>confdefs.h
<<_ACEOF
9196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9222 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <sys/personality.h>
9229 personality (PER_LINUX32)
9234 if ac_fn_c_try_compile
"$LINENO"; then :
9235 emacs_cv_personality_linux32
=yes
9237 emacs_cv_personality_linux32
=no
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9241 $as_echo "$emacs_cv_personality_linux32" >&6; }
9243 if test $emacs_cv_personality_linux32 = yes; then
9245 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9249 for ac_header
in term.h
9251 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9252 if test "x$ac_cv_header_term_h" = x
""yes; then :
9253 cat >>confdefs.h
<<_ACEOF
9254 #define HAVE_TERM_H 1
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9262 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9263 if test "${ac_cv_header_time+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/time.h>
9275 if ((struct tm *) 0)
9281 if ac_fn_c_try_compile
"$LINENO"; then :
9282 ac_cv_header_time
=yes
9284 ac_cv_header_time
=no
9286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9289 $as_echo "$ac_cv_header_time" >&6; }
9290 if test $ac_cv_header_time = yes; then
9292 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9296 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9299 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9305 cat >>confdefs.h
<<_ACEOF
9306 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9309 if test $ac_cv_have_decl_sys_siglist != yes; then
9310 # For Tru64, at least:
9311 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9314 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9320 cat >>confdefs.h
<<_ACEOF
9321 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9326 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9327 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 #include <sys/types.h>
9333 #include <sys/wait.h>
9335 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9338 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9346 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9351 if ac_fn_c_try_compile
"$LINENO"; then :
9352 ac_cv_header_sys_wait_h
=yes
9354 ac_cv_header_sys_wait_h
=no
9356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9359 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9360 if test $ac_cv_header_sys_wait_h = yes; then
9362 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9370 for ac_header
in net
/if.h
9372 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9373 #if HAVE_SYS_SOCKET_H
9374 #include <sys/socket.h>
9377 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9378 cat >>confdefs.h
<<_ACEOF
9379 #define HAVE_NET_IF_H 1
9386 for ac_header
in ifaddrs.h
9388 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9389 #if HAVE_SYS_SOCKET_H
9390 #include <sys/socket.h>
9393 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9394 cat >>confdefs.h
<<_ACEOF
9395 #define HAVE_IFADDRS_H 1
9402 for ac_header
in net
/if_dl.h
9404 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9405 #if HAVE_SYS_SOCKET_H
9406 #include <sys/socket.h>
9409 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9410 cat >>confdefs.h
<<_ACEOF
9411 #define HAVE_NET_IF_DL_H 1
9419 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9420 #if HAVE_SYS_SOCKET_H
9421 #include <sys/socket.h>
9427 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9429 cat >>confdefs.h
<<_ACEOF
9430 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9435 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9436 #if HAVE_SYS_SOCKET_H
9437 #include <sys/socket.h>
9443 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9445 cat >>confdefs.h
<<_ACEOF
9446 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9451 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9452 #if HAVE_SYS_SOCKET_H
9453 #include <sys/socket.h>
9459 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9461 cat >>confdefs.h
<<_ACEOF
9462 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9467 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9468 #if HAVE_SYS_SOCKET_H
9469 #include <sys/socket.h>
9475 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9477 cat >>confdefs.h
<<_ACEOF
9478 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9483 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9484 #if HAVE_SYS_SOCKET_H
9485 #include <sys/socket.h>
9491 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9493 cat >>confdefs.h
<<_ACEOF
9494 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9499 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9500 #if HAVE_SYS_SOCKET_H
9501 #include <sys/socket.h>
9507 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9509 cat >>confdefs.h
<<_ACEOF
9510 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9522 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9524 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9526 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9527 if test "x$testval" != x
; then
9530 ac_enable_autodepend
=no
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9533 $as_echo "$HAVE_GNU_MAKE" >&6; }
9534 if test $HAVE_GNU_MAKE = yes; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9536 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9537 SAVE_CFLAGS
="$CFLAGS"
9538 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9550 if ac_fn_c_try_compile
"$LINENO"; then :
9553 ac_enable_autodepend
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 CFLAGS
="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend
=no
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9562 if test $ac_enable_autodepend = yes; then
9563 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9564 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9565 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9566 deps_frag
=autodeps.mk
9569 deps_frag
=$srcdir/src
/$deps_frag
9575 lisp_frag
=$srcdir/src
/lisp.mk
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9580 $as_echo_n "checking for long file names... " >&6; }
9581 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9584 ac_cv_sys_long_file_names
=yes
9585 # Test for long file names in all the places we know might matter:
9586 # . the current directory, where building will happen
9587 # $prefix/lib where we will be installing things
9588 # $exec_prefix/lib likewise
9589 # $TMPDIR if set, where it might want to write temporary files
9590 # /tmp where it might want to write temporary files
9593 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9594 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9595 # in the usual case where exec_prefix is '${prefix}'.
9597 . |
/* | ?
:[\\/]*) ;; #(
9600 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9601 ac_xdir
=$ac_dir/cf$$
9602 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9603 ac_tf1
=$ac_xdir/conftest9012345
9604 ac_tf2
=$ac_xdir/conftest9012346
9605 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9606 ac_cv_sys_long_file_names
=no
9607 rm -f -r "$ac_xdir" 2>/dev
/null
9608 test $ac_cv_sys_long_file_names = no
&& break
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9612 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9613 if test $ac_cv_sys_long_file_names = yes; then
9615 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9620 #### Choose a window system.
9622 ## We leave window_system equal to none if
9623 ## we end up building without one. Any new window system should
9624 ## set window_system to an appropriate value and add objects to
9625 ## window-system-specific substs.
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9629 $as_echo_n "checking for X... " >&6; }
9632 # Check whether --with-x was given.
9633 if test "${with_x+set}" = set; then :
9637 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9638 if test "x$with_x" = xno
; then
9639 # The user explicitly disabled X.
9642 case $x_includes,$x_libraries in #(
9643 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9644 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9645 $as_echo_n "(cached) " >&6
9647 # One or both of the vars are not set, and there is no cached value.
9648 ac_x_includes
=no ac_x_libraries
=no
9649 rm -f -r conftest.dir
9650 if mkdir conftest.dir
; then
9652 cat >Imakefile
<<'_ACEOF'
9654 @echo incroot='${INCROOT}'
9656 @echo usrlibdir='${USRLIBDIR}'
9658 @echo libdir='${LIBDIR}'
9660 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9662 for ac_var
in incroot usrlibdir libdir
; do
9663 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9665 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9666 for ac_extension
in a so sl dylib la dll
; do
9667 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9668 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9669 ac_im_usrlibdir
=$ac_im_libdir; break
9672 # Screen out bogus values from the imake configuration. They are
9673 # bogus both because they are the default anyway, and because
9674 # using them would break gcc on systems where it needs fixed includes.
9675 case $ac_im_incroot in
9676 /usr
/include
) ac_x_includes
= ;;
9677 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9679 case $ac_im_usrlibdir in
9680 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9681 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9685 rm -f -r conftest.dir
9688 # Standard set of common directories for X headers.
9689 # Check X11 before X11Rn because it is often a symlink to the current release.
9703 /usr/local/X11/include
9704 /usr/local/X11R7/include
9705 /usr/local/X11R6/include
9706 /usr/local/X11R5/include
9707 /usr/local/X11R4/include
9709 /usr/local/include/X11
9710 /usr/local/include/X11R7
9711 /usr/local/include/X11R6
9712 /usr/local/include/X11R5
9713 /usr/local/include/X11R4
9717 /usr/XFree86/include/X11
9721 /usr/unsupported/include
9723 /usr/local/x11r5/include
9724 /usr/lpp/Xamples/include
9726 /usr/openwin/include
9727 /usr/openwin/share/include'
9729 if test "$ac_x_includes" = no
; then
9730 # Guess where to find include files, by looking for Xlib.h.
9731 # First, try using that file with no special directory specified.
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 #include <X11/Xlib.h>
9736 if ac_fn_c_try_cpp
"$LINENO"; then :
9737 # We can compile using X headers with no special include directory.
9740 for ac_dir
in $ac_x_header_dirs; do
9741 if test -r "$ac_dir/X11/Xlib.h"; then
9742 ac_x_includes
=$ac_dir
9747 rm -f conftest.err conftest.
$ac_ext
9748 fi # $ac_x_includes = no
9750 if test "$ac_x_libraries" = no
; then
9751 # Check for the libraries.
9752 # See if we find them without any special options.
9753 # Don't add to $LIBS permanently.
9756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 #include <X11/Xlib.h>
9767 if ac_fn_c_try_link
"$LINENO"; then :
9769 # We can link X programs with no special library path.
9773 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9775 # Don't even attempt the hair of trying to link an X program!
9776 for ac_extension
in a so sl dylib la dll
; do
9777 if test -r "$ac_dir/libX11.$ac_extension"; then
9778 ac_x_libraries
=$ac_dir
9784 rm -f core conftest.err conftest.
$ac_objext \
9785 conftest
$ac_exeext conftest.
$ac_ext
9786 fi # $ac_x_libraries = no
9788 case $ac_x_includes,$ac_x_libraries in #(
9790 # Didn't find X, or a directory has "'" in its name.
9791 ac_cv_have_x
="have_x=no";; #(
9793 # Record where we found X for the cache.
9794 ac_cv_have_x
="have_x=yes\
9795 ac_x_includes='$ac_x_includes'\
9796 ac_x_libraries='$ac_x_libraries'"
9802 eval "$ac_cv_have_x"
9805 if test "$have_x" != yes; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9807 $as_echo "$have_x" >&6; }
9810 # If each of the values was on the command line, it overrides each guess.
9811 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9812 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9813 # Update the cache value to reflect the command line values.
9814 ac_cv_have_x
="have_x=yes\
9815 ac_x_includes='$x_includes'\
9816 ac_x_libraries='$x_libraries'"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9818 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9821 if test "$no_x" != yes; then
9825 LD_SWITCH_X_SITE_RPATH
=
9826 if test "${x_libraries}" != NONE
; then
9827 if test -n "${x_libraries}"; then
9828 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9829 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9831 x_default_search_path
=""
9832 x_search_path
=${x_libraries}
9833 if test -z "${x_search_path}"; then
9834 x_search_path
=/usr
/lib
9836 for x_library
in `echo ${x_search_path}: | \
9837 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9839 ${x_library}/X11/%L/%T/%N%C%S:\
9840 ${x_library}/X11/%l/%T/%N%C%S:\
9841 ${x_library}/X11/%T/%N%C%S:\
9842 ${x_library}/X11/%L/%T/%N%S:\
9843 ${x_library}/X11/%l/%T/%N%S:\
9844 ${x_library}/X11/%T/%N%S"
9845 if test x
"${x_default_search_path}" = x
; then
9846 x_default_search_path
=${x_search_path}
9848 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9854 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9855 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9858 if test x
"${x_includes}" = x
; then
9859 bitmapdir
=/usr
/include
/X11
/bitmaps
9861 # accumulate include directories that have X11 bitmap subdirectories
9863 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9864 if test -d "${bmd}/X11/bitmaps"; then
9865 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9867 if test -d "${bmd}/bitmaps"; then
9868 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9871 if test ${bmd_acc} != "dummyval"; then
9872 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9879 tmp_CPPFLAGS
="$CPPFLAGS"
9880 tmp_CFLAGS
="$CFLAGS"
9881 CPPFLAGS
="$CPPFLAGS -x objective-c"
9882 CFLAGS
="$CFLAGS -x objective-c"
9885 if test "${with_ns}" != no
; then
9886 if test "${opsys}" = darwin
; then
9888 ns_appdir
=`pwd`/nextstep
/Emacs.app
9889 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9890 ns_appresdir
=${ns_appdir}/Contents
/Resources
9891 ns_appsrc
=Cocoa
/Emacs.base
9892 elif test -f $GNUSTEP_CONFIG_FILE; then
9894 ns_appdir
=`pwd`/nextstep
/Emacs.app
9895 ns_appbindir
=${ns_appdir}
9896 ns_appresdir
=${ns_appdir}/Resources
9897 ns_appsrc
=GNUstep
/Emacs.base
9898 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9899 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9900 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9901 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9902 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9903 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9904 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9905 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9906 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9907 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9908 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9909 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9911 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9912 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <GNUstepBase/GSConfig.h>
9921 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9930 if ac_fn_c_try_compile
"$LINENO"; then :
9931 emacs_cv_objc_exceptions
=yes
9933 emacs_cv_objc_exceptions
=no
9935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9938 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9939 if test $emacs_cv_objc_exceptions = yes; then
9941 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9943 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9947 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9949 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9950 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9953 as_fn_error
"\`--with-ns' was specified, but the include
9954 files are missing or cannot be compiled." "$LINENO" 5
9959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 #include <AppKit/AppKit.h>
9966 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9967 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9970 #error "OSX 10.4 or newer required"
9978 if ac_fn_c_try_compile
"$LINENO"; then :
9983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986 #include <Foundation/NSObjCRuntime.h>
9995 if ac_fn_c_try_compile
"$LINENO"; then :
9996 ns_have_nsinteger
=yes
9998 ns_have_nsinteger
=no
10000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 if test $ns_osx_have_104 = no
; then
10002 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10004 if test $ns_have_nsinteger = yes; then
10006 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10013 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10014 ns_self_contained
=no
10017 if test "${HAVE_NS}" = yes; then
10018 if test "$with_toolkit_scroll_bars" = "no"; then
10019 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10022 window_system
=nextstep
10023 # set up packaging dirs
10024 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10025 ns_self_contained
=yes
10026 prefix
=${ns_appresdir}
10027 exec_prefix
=${ns_appbindir}
10028 libexecdir
="\${ns_appbindir}/libexec"
10029 archlibdir
="\${ns_appbindir}/libexec"
10030 docdir
="\${ns_appresdir}/etc"
10031 etcdir
="\${ns_appresdir}/etc"
10032 infodir
="\${ns_appresdir}/info"
10033 mandir
="\${ns_appresdir}/man"
10034 lispdir
="\${ns_appresdir}/lisp"
10035 leimdir
="\${ns_appresdir}/leim"
10036 INSTALL_ARCH_INDEP_EXTRA
=
10038 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10040 CFLAGS
="$tmp_CFLAGS"
10041 CPPFLAGS
="$tmp_CPPFLAGS"
10055 if test "${with_w32}" != no
; then
10058 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10059 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10062 as_fn_error
"\`--with-w32' was specified, but windows.h
10063 cannot be found." "$LINENO" 5
10069 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10072 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10077 if test "${opsys}" = "mingw32"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10079 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 #include <windows.h>
10088 PIMAGE_NT_HEADERS pHeader;
10089 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10094 if ac_fn_c_try_compile
"$LINENO"; then :
10095 emacs_cv_w32api
=yes
10100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10102 $as_echo "$emacs_cv_w32api" >&6; }
10103 if test "${emacs_cv_w32api}" = "no"; then
10104 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10115 if test "${HAVE_W32}" = "yes"; then
10117 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10119 if test -n "$ac_tool_prefix"; then
10120 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10121 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10127 if test -n "$WINDRES"; then
10128 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10131 for as_dir
in $PATH
10134 test -z "$as_dir" && as_dir
=.
10135 for ac_exec_ext
in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10137 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 WINDRES
=$ac_cv_prog_WINDRES
10148 if test -n "$WINDRES"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10150 $as_echo "$WINDRES" >&6; }
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10158 if test -z "$ac_cv_prog_WINDRES"; then
10159 ac_ct_WINDRES
=$WINDRES
10160 # Extract the first word of "windres", so it can be a program name with args.
10161 set dummy windres
; ac_word
=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10167 if test -n "$ac_ct_WINDRES"; then
10168 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10171 for as_dir
in $PATH
10174 test -z "$as_dir" && as_dir
=.
10175 for ac_exec_ext
in '' $ac_executable_extensions; do
10176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10177 ac_cv_prog_ac_ct_WINDRES
="windres"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10188 if test -n "$ac_ct_WINDRES"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10190 $as_echo "$ac_ct_WINDRES" >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193 $as_echo "no" >&6; }
10196 if test "x$ac_ct_WINDRES" = x
; then
10197 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10199 case $cross_compiling:$ac_tool_warned in
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10203 ac_tool_warned
=yes ;;
10205 WINDRES
=$ac_ct_WINDRES
10208 WINDRES
="$ac_cv_prog_WINDRES"
10211 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10212 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10213 EMACSRES
="emacs.res"
10214 case "$canonical" in
10215 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10216 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10218 if test "${opsys}" = "cygwin"; then
10219 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10220 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10221 # Tell the linker that emacs.res is an object (which we compile from
10222 # the rc file), not a linker script.
10223 W32_RES_LINK
="-Wl,emacs.res"
10225 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10226 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10227 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10228 W32_RES_LINK
="\$(EMACSRES)"
10229 CLIENTRES
="emacsclient.res"
10230 CLIENTW
="emacsclientw\$(EXEEXT)"
10231 FIRSTFILE_OBJ
=firstfile.o
10234 LIBS_ECLIENT
="-lcomctl32"
10235 LIB_WSOCK32
="-lwsock32"
10236 NTLIB
="ntlib.$ac_objext"
10237 XARGS_LIMIT
="-s 10000"
10255 if test "${HAVE_W32}" = "yes"; then
10260 ## $window_system is now set to the window system we will
10268 case "${window_system}" in
10272 term_header
=xterm.h
10273 case "${with_x_toolkit}" in
10274 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10275 motif
) USE_X_TOOLKIT
=MOTIF
;;
10277 term_header
=gtkutil.h
10278 USE_X_TOOLKIT
=none
;;
10279 gtk2
) with_gtk2
=yes
10280 term_header
=gtkutil.h
10281 USE_X_TOOLKIT
=none
;;
10282 gtk3
) with_gtk3
=yes
10283 term_header
=gtkutil.h
10284 USE_X_TOOLKIT
=none
;;
10285 no
) USE_X_TOOLKIT
=none
;;
10286 * ) USE_X_TOOLKIT
=maybe
;;
10290 term_header
=nsterm.h
10293 term_header
=w32term.h
10297 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10298 # Extract the first word of "X", so it can be a program name with args.
10299 set dummy X
; ac_word
=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10305 if test -n "$HAVE_XSERVER"; then
10306 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10309 for as_dir
in $PATH
10312 test -z "$as_dir" && as_dir
=.
10313 for ac_exec_ext
in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_prog_HAVE_XSERVER
="true"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10326 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10327 if test -n "$HAVE_XSERVER"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10329 $as_echo "$HAVE_XSERVER" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 if test "$HAVE_XSERVER" = true ||
10337 test -n "$DISPLAY" ||
10338 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10339 as_fn_error
"You seem to be running X, but no X development libraries
10340 were found. You should install the relevant development files for X
10341 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10342 sure you have development files for image handling, i.e.
10343 tiff, gif, jpeg, png and xpm.
10344 If you are sure you want Emacs compiled without X window support, pass
10346 to configure." "$LINENO" 5
10350 ### If we're using X11, we should use the X menu package.
10352 case ${HAVE_X11} in
10353 yes ) HAVE_MENUS
=yes ;;
10356 # Does the opsystem file prohibit the use of the GNU malloc?
10357 # Assume not, until told otherwise.
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10361 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10362 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 #include <malloc.h>
10368 static void hook (void) {}
10372 malloc_set_state (malloc_get_state ());
10373 __after_morecore_hook = hook;
10374 __malloc_initialize_hook = hook;
10379 if ac_fn_c_try_link
"$LINENO"; then :
10380 emacs_cv_var_doug_lea_malloc
=yes
10382 emacs_cv_var_doug_lea_malloc
=no
10384 rm -f core conftest.err conftest.
$ac_objext \
10385 conftest
$ac_exeext conftest.
$ac_ext
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10388 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10389 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10394 ## darwin ld insists on the use of malloc routines in the System framework.
10395 darwin|sol2-10
) system_malloc
=yes ;;
10398 if test "${system_malloc}" = "yes"; then
10400 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10403 GNU_MALLOC_reason
="
10404 (The GNU allocators don't work with this system configuration.)"
10408 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10409 VMLIMIT_OBJ
=vm-limit.o
10411 for ac_header
in sys
/vlimit.h
10413 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10414 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10415 cat >>confdefs.h
<<_ACEOF
10416 #define HAVE_SYS_VLIMIT_H 1
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10424 $as_echo_n "checking for data_start... " >&6; }
10425 if test "${emacs_cv_data_start+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 extern char data_start[]; char ch;
10434 return data_start < &ch;
10439 if ac_fn_c_try_link
"$LINENO"; then :
10440 emacs_cv_data_start
=yes
10442 emacs_cv_data_start
=no
10444 rm -f core conftest.err conftest.
$ac_objext \
10445 conftest
$ac_exeext conftest.
$ac_ext
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10448 $as_echo "$emacs_cv_data_start" >&6; }
10449 if test $emacs_cv_data_start = yes; then
10451 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10458 if test "$doug_lea_malloc" = "yes" ; then
10459 if test "$GNU_MALLOC" = yes ; then
10460 GNU_MALLOC_reason
="
10461 (Using Doug Lea's new malloc from the GNU C Library.)"
10464 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10467 ## Use mmap directly for allocating larger buffers.
10468 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10469 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10470 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10472 gnu
*) REL_ALLOC
=no
;;
10476 if test x
"${REL_ALLOC}" = x
; then
10477 REL_ALLOC
=${GNU_MALLOC}
10480 use_mmap_for_buffers
=no
10482 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10492 for ac_func
in getpagesize
10494 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10495 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10496 cat >>confdefs.h
<<_ACEOF
10497 #define HAVE_GETPAGESIZE 1
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10504 $as_echo_n "checking for working mmap... " >&6; }
10505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10508 if test "$cross_compiling" = yes; then :
10509 ac_cv_func_mmap_fixed_mapped
=no
10511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513 $ac_includes_default
10514 /* malloc might have been renamed as rpl_malloc. */
10517 /* Thanks to Mike Haertel and Jim Avera for this test.
10518 Here is a matrix of mmap possibilities:
10519 mmap private not fixed
10520 mmap private fixed at somewhere currently unmapped
10521 mmap private fixed at somewhere already mapped
10522 mmap shared not fixed
10523 mmap shared fixed at somewhere currently unmapped
10524 mmap shared fixed at somewhere already mapped
10525 For private mappings, we should verify that changes cannot be read()
10526 back from the file, nor mmap's back from the file at a different
10527 address. (There have been systems where private was not correctly
10528 implemented like the infamous i386 svr4.0, and systems where the
10529 VM page cache was not coherent with the file system buffer cache
10530 like early versions of FreeBSD and possibly contemporary NetBSD.)
10531 For shared mappings, we should conversely verify that changes get
10532 propagated back to all the places they're supposed to be.
10534 Grep wants private fixed already mapped.
10535 The main things grep needs to know about mmap are:
10536 * does it exist and is it safe to write into the mmap'd area
10537 * how to use it (BSD variants) */
10540 #include <sys/mman.h>
10542 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10546 /* This mess was copied from the GNU getpagesize.h. */
10547 #ifndef HAVE_GETPAGESIZE
10548 # ifdef _SC_PAGESIZE
10549 # define getpagesize() sysconf(_SC_PAGESIZE)
10550 # else /* no _SC_PAGESIZE */
10551 # ifdef HAVE_SYS_PARAM_H
10552 # include <sys/param.h>
10553 # ifdef EXEC_PAGESIZE
10554 # define getpagesize() EXEC_PAGESIZE
10555 # else /* no EXEC_PAGESIZE */
10557 # define getpagesize() NBPG * CLSIZE
10560 # endif /* no CLSIZE */
10561 # else /* no NBPG */
10563 # define getpagesize() NBPC
10564 # else /* no NBPC */
10566 # define getpagesize() PAGESIZE
10567 # endif /* PAGESIZE */
10568 # endif /* no NBPC */
10569 # endif /* no NBPG */
10570 # endif /* no EXEC_PAGESIZE */
10571 # else /* no HAVE_SYS_PARAM_H */
10572 # define getpagesize() 8192 /* punt totally */
10573 # endif /* no HAVE_SYS_PARAM_H */
10574 # endif /* no _SC_PAGESIZE */
10576 #endif /* no HAVE_GETPAGESIZE */
10581 char *data, *data2, *data3;
10582 const char *cdata2;
10586 pagesize = getpagesize ();
10588 /* First, make a file with some known garbage in it. */
10589 data = (char *) malloc (pagesize);
10592 for (i = 0; i < pagesize; ++i)
10593 *(data + i) = rand ();
10595 fd = creat ("conftest.mmap", 0600);
10598 if (write (fd, data, pagesize) != pagesize)
10602 /* Next, check that the tail of a page is zero-filled. File must have
10603 non-zero length, otherwise we risk SIGBUS for entire page. */
10604 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10608 if (write (fd2, cdata2, 1) != 1)
10610 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10611 if (data2 == MAP_FAILED)
10613 for (i = 0; i < pagesize; ++i)
10617 if (munmap (data2, pagesize))
10620 /* Next, try to mmap the file at a fixed address which already has
10621 something else allocated at it. If we can, also make sure that
10622 we see the same garbage. */
10623 fd = open ("conftest.mmap", O_RDWR);
10626 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10627 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10629 for (i = 0; i < pagesize; ++i)
10630 if (*(data + i) != *(data2 + i))
10633 /* Finally, make sure that changes to the mapped area do not
10634 percolate back to the file as seen by read(). (This is a bug on
10635 some variants of i386 svr4.0.) */
10636 for (i = 0; i < pagesize; ++i)
10637 *(data2 + i) = *(data2 + i) + 1;
10638 data3 = (char *) malloc (pagesize);
10641 if (read (fd, data3, pagesize) != pagesize)
10643 for (i = 0; i < pagesize; ++i)
10644 if (*(data + i) != *(data3 + i))
10650 if ac_fn_c_try_run
"$LINENO"; then :
10651 ac_cv_func_mmap_fixed_mapped
=yes
10653 ac_cv_func_mmap_fixed_mapped
=no
10655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10661 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10664 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10667 rm -f conftest.mmap conftest.txt
10669 if test $use_mmap_for_buffers = yes; then
10671 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10676 LIBS
="$LIBS_SYSTEM $LIBS"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10679 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10683 ac_check_lib_save_LIBS
=$LIBS
10684 LIBS
="-ldnet $LIBS"
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10698 return dnet_ntoa ();
10703 if ac_fn_c_try_link
"$LINENO"; then :
10704 ac_cv_lib_dnet_dnet_ntoa
=yes
10706 ac_cv_lib_dnet_dnet_ntoa
=no
10708 rm -f core conftest.err conftest.
$ac_objext \
10709 conftest
$ac_exeext conftest.
$ac_ext
10710 LIBS
=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10713 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10714 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10715 cat >>confdefs.h
<<_ACEOF
10716 #define HAVE_LIBDNET 1
10719 LIBS
="-ldnet $LIBS"
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10725 $as_echo_n "checking for main in -lXbsd... " >&6; }
10726 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10729 ac_check_lib_save_LIBS
=$LIBS
10730 LIBS
="-lXbsd $LIBS"
10731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10743 if ac_fn_c_try_link
"$LINENO"; then :
10744 ac_cv_lib_Xbsd_main
=yes
10746 ac_cv_lib_Xbsd_main
=no
10748 rm -f core conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 LIBS
=$ac_check_lib_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10753 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10754 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10755 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10763 if test "$ac_cv_header_pthread_h"; then
10764 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10765 emacs_pthread_function
=pthread_atfork
10767 emacs_pthread_function
=pthread_self
10769 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10771 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10772 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10773 $as_echo_n "(cached) " >&6
10775 ac_check_lib_save_LIBS
=$LIBS
10776 LIBS
="-lpthread $LIBS"
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10786 char $emacs_pthread_function ();
10790 return $emacs_pthread_function ();
10795 if ac_fn_c_try_link
"$LINENO"; then :
10796 eval "$as_ac_Lib=yes"
10798 eval "$as_ac_Lib=no"
10800 rm -f core conftest.err conftest.
$ac_objext \
10801 conftest
$ac_exeext conftest.
$ac_ext
10802 LIBS
=$ac_check_lib_save_LIBS
10804 eval ac_res
=\$
$as_ac_Lib
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10806 $as_echo "$ac_res" >&6; }
10807 eval as_val
=\$
$as_ac_Lib
10808 if test "x$as_val" = x
""yes; then :
10813 if test "$HAVE_PTHREAD" = yes; then
10814 case "${canonical}" in
10816 *) LIB_PTHREAD
="-lpthread"
10817 LIBS
="$LIB_PTHREAD $LIBS" ;;
10820 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10826 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10827 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10830 ac_check_lib_save_LIBS
=$LIBS
10831 LIBS
="-lpthreads $LIBS"
10832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10845 return cma_open ();
10850 if ac_fn_c_try_link
"$LINENO"; then :
10851 ac_cv_lib_pthreads_cma_open
=yes
10853 ac_cv_lib_pthreads_cma_open
=no
10855 rm -f core conftest.err conftest.
$ac_objext \
10856 conftest
$ac_exeext conftest.
$ac_ext
10857 LIBS
=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10860 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10861 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10862 cat >>confdefs.h
<<_ACEOF
10863 #define HAVE_LIBPTHREADS 1
10866 LIBS
="-lpthreads $LIBS"
10871 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10872 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10873 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10874 ## added to LIBS in configure would never contain the pthreads part,
10875 ## but the value used in Makefiles might. FIXME?
10877 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10878 ## be harmless on older versions of X where it happens to exist.
10879 test "$opsys" = "aix4-2" && \
10880 test $ac_cv_lib_pthreads_cma_open = yes && \
10881 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10887 $as_echo_n "checking for -bbigtoc option... " >&6; }
10888 if test "${gdb_cv_bigtoc+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10893 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10894 *) gdb_cv_bigtoc
=-bbigtoc ;;
10897 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10909 if ac_fn_c_try_link
"$LINENO"; then :
10914 rm -f core conftest.err conftest.
$ac_objext \
10915 conftest
$ac_exeext conftest.
$ac_ext
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10919 $as_echo "$gdb_cv_bigtoc" >&6; }
10923 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10924 # used for the tests that follow. We set them back to REAL_CFLAGS and
10925 # REAL_CPPFLAGS later on.
10927 REAL_CFLAGS
="$CFLAGS"
10928 REAL_CPPFLAGS
="$CPPFLAGS"
10930 if test "${HAVE_X11}" = "yes"; then
10931 DEFS
="$C_SWITCH_X_SITE $DEFS"
10932 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10934 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10935 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10937 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10938 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10939 # but it's more convenient here to set LD_RUN_PATH since this
10940 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10941 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10942 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10946 if test "${opsys}" = "gnu-linux"; then
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10948 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10955 XOpenDisplay ("foo");
10960 if ac_fn_c_try_link
"$LINENO"; then :
10961 xgnu_linux_first_failure
=no
10963 xgnu_linux_first_failure
=yes
10965 rm -f core conftest.err conftest.
$ac_objext \
10966 conftest
$ac_exeext conftest.
$ac_ext
10967 if test "${xgnu_linux_first_failure}" = "yes"; then
10968 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10969 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10970 OLD_CPPFLAGS
="$CPPFLAGS"
10972 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10973 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10974 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10975 LIBS
="$LIBS -b i486-linuxaout"
10976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10982 XOpenDisplay ("foo");
10987 if ac_fn_c_try_link
"$LINENO"; then :
10988 xgnu_linux_second_failure
=no
10990 xgnu_linux_second_failure
=yes
10992 rm -f core conftest.err conftest.
$ac_objext \
10993 conftest
$ac_exeext conftest.
$ac_ext
10994 if test "${xgnu_linux_second_failure}" = "yes"; then
10995 # If we get the same failure with -b, there is no use adding -b.
10996 # So take it out. This plays safe.
10997 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10998 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10999 CPPFLAGS
="$OLD_CPPFLAGS"
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11005 $as_echo "yes" >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11013 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11014 # header files included from there.
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11016 $as_echo_n "checking for Xkb... " >&6; }
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 #include <X11/Xlib.h>
11020 #include <X11/XKBlib.h>
11024 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11029 if ac_fn_c_try_link
"$LINENO"; then :
11034 rm -f core conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11037 $as_echo "$emacs_xkb" >&6; }
11038 if test $emacs_xkb = yes; then
11040 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11044 for ac_func
in XrmSetDatabase XScreenResourceString \
11045 XScreenNumberOfScreen
11047 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11049 eval as_val
=\$
$as_ac_var
11050 if test "x$as_val" = x
""yes; then :
11051 cat >>confdefs.h
<<_ACEOF
11052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 if test "${window_system}" = "x11"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11062 $as_echo_n "checking X11 version 6... " >&6; }
11063 if test "${emacs_cv_x11_version_6+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068 #include <X11/Xlib.h>
11072 #if XlibSpecificationRelease < 6
11080 if ac_fn_c_try_link
"$LINENO"; then :
11081 emacs_cv_x11_version_6
=yes
11083 emacs_cv_x11_version_6
=no
11085 rm -f core conftest.err conftest.
$ac_objext \
11086 conftest
$ac_exeext conftest.
$ac_ext
11089 if test $emacs_cv_x11_version_6 = yes; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11091 $as_echo "6 or newer" >&6; }
11093 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11096 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11098 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11103 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11109 $as_echo "before 6" >&6; }
11114 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11116 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11117 if test "${with_rsvg}" != "no"; then
11118 RSVG_REQUIRED
=2.11.0
11119 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11124 if test "$PKG_CONFIG" = "no" ; then
11127 PKG_CONFIG_MIN_VERSION
=0.9.0
11128 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11130 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11132 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11133 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11134 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11141 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11142 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11144 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11151 ## If we have a custom action on failure, don't print errors, but
11152 ## do set a variable so people can do so. Do it in a subshell
11153 ## to capture any diagnostics in invoking pkg-config.
11154 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11161 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11162 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11166 if test $succeeded = yes; then
11175 if test $HAVE_RSVG = yes; then
11177 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11179 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11180 LIBS
="$RSVG_LIBS $LIBS"
11185 HAVE_IMAGEMAGICK
=no
11186 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11187 if test "${with_imagemagick}" != "no"; then
11188 ## 6.2.8 is the earliest version known to work, but earlier versions
11189 ## might work - let us know if you find one.
11190 ## 6.0.7 does not work. See bug#7955.
11191 ## 6.8.2 makes Emacs crash; see Bug#13867.
11192 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11196 if test "$PKG_CONFIG" = "no" ; then
11199 PKG_CONFIG_MIN_VERSION
=0.9.0
11200 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11202 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11204 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11205 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11206 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11213 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11214 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11216 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11221 IMAGEMAGICK_CFLAGS
=""
11222 IMAGEMAGICK_LIBS
=""
11223 ## If we have a custom action on failure, don't print errors, but
11224 ## do set a variable so people can do so. Do it in a subshell
11225 ## to capture any diagnostics in invoking pkg-config.
11226 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11233 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11234 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11238 if test $succeeded = yes; then
11239 HAVE_IMAGEMAGICK
=yes
11247 if test $HAVE_IMAGEMAGICK = yes; then
11249 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11251 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11252 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11253 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11255 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11257 eval as_val
=\$
$as_ac_var
11258 if test "x$as_val" = x
""yes; then :
11259 cat >>confdefs.h
<<_ACEOF
11260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11273 gtk_term_header
=$term_header
11276 if test "${opsys}" != "mingw32"; then
11277 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11280 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11285 if test "$PKG_CONFIG" = "no" ; then
11288 PKG_CONFIG_MIN_VERSION
=0.9.0
11289 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11291 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11293 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11294 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11295 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11302 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11303 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11305 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11312 ## If we have a custom action on failure, don't print errors, but
11313 ## do set a variable so people can do so. Do it in a subshell
11314 ## to capture any diagnostics in invoking pkg-config.
11315 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11327 if test $succeeded = yes; then
11333 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11334 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11336 if test "$pkg_check_gtk" = "yes"; then
11338 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11340 GTK_OBJ
=emacsgtkfixed.o
11341 gtk_term_header
=gtkutil.h
11342 USE_GTK_TOOLKIT
="GTK3"
11343 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11344 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11345 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11349 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11353 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11356 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11361 if test "$PKG_CONFIG" = "no" ; then
11364 PKG_CONFIG_MIN_VERSION
=0.9.0
11365 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11367 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11369 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11370 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11371 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11378 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11379 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11381 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11388 ## If we have a custom action on failure, don't print errors, but
11389 ## do set a variable so people can do so. Do it in a subshell
11390 ## to capture any diagnostics in invoking pkg-config.
11391 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11398 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11399 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11403 if test $succeeded = yes; then
11409 if test "$pkg_check_gtk" = "no" &&
11410 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11412 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11414 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11418 if test x
"$pkg_check_gtk" = xyes
; then
11422 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11423 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11424 LIBS
="$GTK_LIBS $LIBS"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11426 $as_echo_n "checking whether GTK compiles... " >&6; }
11428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 /* Check the Gtk and Glib APIs. */
11431 #include <gtk/gtk.h>
11432 #include <glib-object.h>
11434 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11441 GtkSettings *gs = 0;
11442 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11443 strict C prohibits this. Use gtk_main_iteration to test that the
11444 libraries are there. */
11445 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11446 0, 0, 0, G_CALLBACK (callback), 0))
11447 gtk_main_iteration ();
11453 if ac_fn_c_try_link
"$LINENO"; then :
11456 rm -f core conftest.err conftest.
$ac_objext \
11457 conftest
$ac_exeext conftest.
$ac_ext
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11459 $as_echo "$GTK_COMPILES" >&6; }
11460 if test "${GTK_COMPILES}" != "yes"; then
11462 if test "$USE_X_TOOLKIT" != "maybe"; then
11463 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11468 $as_echo "#define USE_GTK 1" >>confdefs.h
11470 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11471 term_header
=$gtk_term_header
11473 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11477 closing open displays. This is no problem if you just use
11478 one display, but if you use more than one and close one of them
11479 Emacs may crash." >&5
11480 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11481 closing open displays. This is no problem if you just use
11482 one display, but if you use more than one and close one of them
11483 Emacs may crash." >&2;}
11492 if test "${HAVE_GTK}" = "yes"; then
11494 if test "$with_toolkit_scroll_bars" != no
; then
11495 with_toolkit_scroll_bars
=yes
11498 HAVE_GTK_FILE_SELECTION
=no
11499 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11500 #include <gtk/gtk.h>
11502 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11503 HAVE_GTK_FILE_SELECTION
=yes
11505 HAVE_GTK_FILE_SELECTION
=no
11508 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11509 for ac_func
in gtk_file_selection_new
11511 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11512 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11513 cat >>confdefs.h
<<_ACEOF
11514 #define HAVE_GTK_FILE_SELECTION_NEW 1
11522 HAVE_GTK_HANDLE_BOX
=no
11523 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11524 #include <gtk/gtk.h>
11526 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11527 HAVE_GTK_HANDLE_BOX
=yes
11529 HAVE_GTK_HANDLE_BOX
=no
11532 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11533 for ac_func
in gtk_handle_box_new
11535 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11536 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11537 cat >>confdefs.h
<<_ACEOF
11538 #define HAVE_GTK_HANDLE_BOX_NEW 1
11546 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11547 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11548 #include <gtk/gtk.h>
11550 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11551 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11553 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11556 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11557 for ac_func
in gtk_tearoff_menu_item_new
11559 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11560 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11561 cat >>confdefs.h
<<_ACEOF
11562 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11570 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11571 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11572 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11573 gtk_orientable_set_orientation \
11574 gtk_window_set_has_resize_grip
11576 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11577 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11578 eval as_val
=\$
$as_ac_var
11579 if test "x$as_val" = x
""yes; then :
11580 cat >>confdefs.h
<<_ACEOF
11581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11588 term_header
=gtkutil.h
11593 if test "${with_dbus}" = "yes"; then
11597 if test "$PKG_CONFIG" = "no" ; then
11600 PKG_CONFIG_MIN_VERSION
=0.9.0
11601 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11603 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11605 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11606 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11607 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11614 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11615 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11617 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11624 ## If we have a custom action on failure, don't print errors, but
11625 ## do set a variable so people can do so. Do it in a subshell
11626 ## to capture any diagnostics in invoking pkg-config.
11627 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11639 if test $succeeded = yes; then
11645 if test "$HAVE_DBUS" = yes; then
11646 LIBS
="$LIBS $DBUS_LIBS"
11648 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11650 for ac_func
in dbus_watch_get_unix_fd \
11651 dbus_type_is_valid \
11652 dbus_validate_bus_name \
11653 dbus_validate_path \
11654 dbus_validate_interface \
11655 dbus_validate_member
11657 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11659 eval as_val
=\$
$as_ac_var
11660 if test "x$as_val" = x
""yes; then :
11661 cat >>confdefs.h
<<_ACEOF
11662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11668 DBUS_OBJ
=dbusbind.o
11674 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11678 if test "$PKG_CONFIG" = "no" ; then
11681 PKG_CONFIG_MIN_VERSION
=0.9.0
11682 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11684 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11686 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11687 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11688 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11695 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11696 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11698 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 GSETTINGS_CFLAGS
=""
11705 ## If we have a custom action on failure, don't print errors, but
11706 ## do set a variable so people can do so. Do it in a subshell
11707 ## to capture any diagnostics in invoking pkg-config.
11708 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11720 if test $succeeded = yes; then
11726 if test "$HAVE_GSETTINGS" = "yes"; then
11728 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11730 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11731 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11736 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11740 if test "$PKG_CONFIG" = "no" ; then
11743 PKG_CONFIG_MIN_VERSION
=0.9.0
11744 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11746 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11748 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11749 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11750 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11757 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11758 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11760 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11767 ## If we have a custom action on failure, don't print errors, but
11768 ## do set a variable so people can do so. Do it in a subshell
11769 ## to capture any diagnostics in invoking pkg-config.
11770 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 if test $succeeded = yes; then
11788 if test "$HAVE_GCONF" = yes; then
11790 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11792 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11793 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11797 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11801 if test "$PKG_CONFIG" = "no" ; then
11804 PKG_CONFIG_MIN_VERSION
=0.9.0
11805 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11807 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11809 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11810 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11811 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11818 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11819 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11821 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11828 ## If we have a custom action on failure, don't print errors, but
11829 ## do set a variable so people can do so. Do it in a subshell
11830 ## to capture any diagnostics in invoking pkg-config.
11831 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11839 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11843 if test $succeeded = yes; then
11849 if test "$HAVE_GOBJECT" = "yes"; then
11850 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11851 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11853 SAVE_CFLAGS
="$CFLAGS"
11855 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11856 LIBS
="$SETTINGS_LIBS $LIBS"
11857 for ac_func
in g_type_init
11859 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11860 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11861 cat >>confdefs.h
<<_ACEOF
11862 #define HAVE_G_TYPE_INIT 1
11868 CFLAGS
="$SAVE_CFLAGS"
11877 if test "${with_selinux}" = "yes"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11879 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11880 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11883 ac_check_lib_save_LIBS
=$LIBS
11884 LIBS
="-lselinux $LIBS"
11885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11894 char lgetfilecon ();
11898 return lgetfilecon ();
11903 if ac_fn_c_try_link
"$LINENO"; then :
11904 ac_cv_lib_selinux_lgetfilecon
=yes
11906 ac_cv_lib_selinux_lgetfilecon
=no
11908 rm -f core conftest.err conftest.
$ac_objext \
11909 conftest
$ac_exeext conftest.
$ac_ext
11910 LIBS
=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11913 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11914 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11915 HAVE_LIBSELINUX
=yes
11920 if test "$HAVE_LIBSELINUX" = yes; then
11922 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11924 LIBSELINUX_LIBS
=-lselinux
11930 if test "${with_gnutls}" = "yes" ; then
11934 if test "$PKG_CONFIG" = "no" ; then
11937 PKG_CONFIG_MIN_VERSION
=0.9.0
11938 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11940 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11942 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11943 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11944 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11951 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11952 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11954 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 LIBGNUTLS_CFLAGS
=""
11961 ## If we have a custom action on failure, don't print errors, but
11962 ## do set a variable so people can do so. Do it in a subshell
11963 ## to capture any diagnostics in invoking pkg-config.
11964 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11976 if test $succeeded = yes; then
11982 if test "${HAVE_GNUTLS}" = "yes"; then
11984 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11988 # Windows loads GnuTLS dynamically
11989 if test "${opsys}" = "mingw32"; then
11992 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11993 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12003 if test "${with_file_notification}" = "yes"; then
12004 if test "${opsys}" = "mingw32"; then
12005 with_file_notification
=w32
12007 if test "${with_ns}" != yes; then
12008 with_file_notification
=gfile
12013 if test "${with_file_notification}" = "gfile"; then
12017 if test "$PKG_CONFIG" = "no" ; then
12018 HAVE_GFILENOTIFY
=no
12020 PKG_CONFIG_MIN_VERSION
=0.9.0
12021 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12023 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12025 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12026 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12027 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12034 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12035 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12037 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042 GFILENOTIFY_CFLAGS
=""
12043 GFILENOTIFY_LIBS
=""
12044 ## If we have a custom action on failure, don't print errors, but
12045 ## do set a variable so people can do so. Do it in a subshell
12046 ## to capture any diagnostics in invoking pkg-config.
12047 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12059 if test $succeeded = yes; then
12060 HAVE_GFILENOTIFY
=yes
12062 HAVE_GFILENOTIFY
=no
12065 if test "$HAVE_GFILENOTIFY" = "yes"; then
12067 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12069 NOTIFY_OBJ
=gfilenotify.o
12070 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12073 if test "${with_file_notification}" = "inotify"; then
12074 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12075 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12080 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12081 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12082 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12086 if test "$ac_cv_func_inotify_init1" = yes; then
12088 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12090 NOTIFY_OBJ
=inotify.o
12091 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12095 if test "${with_file_notification}" = "w32"; then
12096 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12097 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12102 if test "$ac_cv_header_windows_h" = yes ; then
12104 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12106 NOTIFY_OBJ
=w32notify.o
12107 NOTIFY_SUMMARY
="yes (w32)"
12110 if test -n "$NOTIFY_OBJ"; then
12112 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12121 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12122 if test "$with_xaw3d" != no
; then
12123 if test "${emacs_cv_xaw3d+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12129 #include <X11/Intrinsic.h>
12130 #include <X11/Xaw3d/Simple.h>
12139 if ac_fn_c_try_link
"$LINENO"; then :
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12141 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12142 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12145 ac_check_lib_save_LIBS
=$LIBS
12146 LIBS
="-lXaw3d $LIBS"
12147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12156 char XawScrollbarSetThumb ();
12160 return XawScrollbarSetThumb ();
12165 if ac_fn_c_try_link
"$LINENO"; then :
12166 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12168 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12170 rm -f core conftest.err conftest.
$ac_objext \
12171 conftest
$ac_exeext conftest.
$ac_ext
12172 LIBS
=$ac_check_lib_save_LIBS
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12175 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12176 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12185 rm -f core conftest.err conftest.
$ac_objext \
12186 conftest
$ac_exeext conftest.
$ac_ext
12192 if test $emacs_cv_xaw3d = yes; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12194 $as_echo_n "checking for xaw3d... " >&6; }
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12196 $as_echo "yes; using Lucid toolkit" >&6; }
12197 USE_X_TOOLKIT
=LUCID
12201 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12205 $as_echo_n "checking for xaw3d... " >&6; }
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12209 $as_echo_n "checking for libXaw... " >&6; }
12210 if test "${emacs_cv_xaw+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12216 #include <X11/Intrinsic.h>
12217 #include <X11/Xaw/Simple.h>
12226 if ac_fn_c_try_link
"$LINENO"; then :
12231 rm -f core conftest.err conftest.
$ac_objext \
12232 conftest
$ac_exeext conftest.
$ac_ext
12235 if test $emacs_cv_xaw = yes; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12237 $as_echo "yes; using Lucid toolkit" >&6; }
12238 USE_X_TOOLKIT
=LUCID
12240 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12241 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12243 as_fn_error
"No X toolkit could be found.
12244 If you are sure you want Emacs compiled without an X toolkit, pass
12245 --with-x-toolkit=no
12246 to configure. Otherwise, install the development libraries for the toolkit
12247 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12252 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12255 if test "${USE_X_TOOLKIT}" != "none"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12257 $as_echo_n "checking X11 toolkit version... " >&6; }
12258 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263 #include <X11/Intrinsic.h>
12267 #if XtSpecificationRelease < 6
12275 if ac_fn_c_try_link
"$LINENO"; then :
12276 emacs_cv_x11_toolkit_version_6
=yes
12278 emacs_cv_x11_toolkit_version_6
=no
12280 rm -f core conftest.err conftest.
$ac_objext \
12281 conftest
$ac_exeext conftest.
$ac_ext
12284 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12285 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12287 $as_echo "6 or newer" >&6; }
12289 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12291 LIBXTR6
="-lSM -lICE"
12293 ## Use libw.a along with X11R6 Xt.
12294 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12298 $as_echo "before 6" >&6; }
12302 if test x
$HAVE_X11XTR6 = xyes
; then
12303 LIBS
="-lXt -lSM -lICE $LIBS"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12308 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12309 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12312 ac_check_lib_save_LIBS
=$LIBS
12314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12317 /* Override any GCC internal prototype to avoid an error.
12318 Use char because int might match the return type of a GCC
12319 builtin and then its argument prototype would still apply. */
12323 char XmuConvertStandardSelection ();
12327 return XmuConvertStandardSelection ();
12332 if ac_fn_c_try_link
"$LINENO"; then :
12333 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12335 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12337 rm -f core conftest.err conftest.
$ac_objext \
12338 conftest
$ac_exeext conftest.
$ac_ext
12339 LIBS
=$ac_check_lib_save_LIBS
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12342 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12343 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12344 cat >>confdefs.h
<<_ACEOF
12345 #define HAVE_LIBXMU 1
12352 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12358 ## These systems don't supply Xmu.
12360 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12368 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12369 if test "${HAVE_X11}" = "yes"; then
12370 if test "${USE_X_TOOLKIT}" != "none"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12372 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12373 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12376 ac_check_lib_save_LIBS
=$LIBS
12377 LIBS
="-lXext $LIBS"
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12387 char XShapeQueryExtension ();
12391 return XShapeQueryExtension ();
12396 if ac_fn_c_try_link
"$LINENO"; then :
12397 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12399 ac_cv_lib_Xext_XShapeQueryExtension
=no
12401 rm -f core conftest.err conftest.
$ac_objext \
12402 conftest
$ac_exeext conftest.
$ac_ext
12403 LIBS
=$ac_check_lib_save_LIBS
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12406 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12407 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12408 cat >>confdefs.h
<<_ACEOF
12409 #define HAVE_LIBXEXT 1
12412 LIBS
="-lXext $LIBS"
12420 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12421 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12422 if test -d /usr
/include
/openmotif
; then
12423 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12424 emacs_cv_openmotif
=yes
12425 case "$canonical" in
12426 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12427 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12430 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12433 emacs_cv_openmotif
=no
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12436 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12437 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12446 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12449 Motif version prior to 2.1.
12455 if ac_fn_c_try_compile
"$LINENO"; then :
12456 emacs_cv_motif_version_2_1
=yes
12458 emacs_cv_motif_version_2_1
=no
12460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12463 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12464 if test $emacs_cv_motif_version_2_1 = yes; then
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12466 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12467 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12470 ac_check_lib_save_LIBS
=$LIBS
12472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12481 char XpCreateContext ();
12485 return XpCreateContext ();
12490 if ac_fn_c_try_link
"$LINENO"; then :
12491 ac_cv_lib_Xp_XpCreateContext
=yes
12493 ac_cv_lib_Xp_XpCreateContext
=no
12495 rm -f core conftest.err conftest.
$ac_objext \
12496 conftest
$ac_exeext conftest.
$ac_ext
12497 LIBS
=$ac_check_lib_save_LIBS
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12500 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12501 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12505 if test x
$emacs_cv_openmotif = xyes
; then
12506 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12510 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12511 if test "${emacs_cv_lesstif+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12514 # We put this in CFLAGS temporarily to precede other -I options
12515 # that might be in CFLAGS temporarily.
12516 # We put this in CPPFLAGS where it precedes the other -I options.
12517 OLD_CPPFLAGS
=$CPPFLAGS
12519 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12520 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12532 if ac_fn_c_try_compile
"$LINENO"; then :
12533 emacs_cv_lesstif
=yes
12535 emacs_cv_lesstif
=no
12537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12540 $as_echo "$emacs_cv_lesstif" >&6; }
12541 if test $emacs_cv_lesstif = yes; then
12542 # Make sure this -I option remains in CPPFLAGS after it is set
12543 # back to REAL_CPPFLAGS.
12544 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12545 # have those other -I options anyway. Ultimately, having this
12546 # directory ultimately in CPPFLAGS will be enough.
12547 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12548 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12551 CPPFLAGS
=$OLD_CPPFLAGS
12554 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12555 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12558 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12565 USE_TOOLKIT_SCROLL_BARS
=no
12566 if test "${with_toolkit_scroll_bars}" != "no"; then
12567 if test "${USE_X_TOOLKIT}" != "none"; then
12568 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12569 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12572 USE_TOOLKIT_SCROLL_BARS
=yes
12573 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12574 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12576 USE_TOOLKIT_SCROLL_BARS
=yes
12578 elif test "${HAVE_GTK}" = "yes"; then
12579 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12581 USE_TOOLKIT_SCROLL_BARS
=yes
12582 elif test "${HAVE_NS}" = "yes"; then
12583 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12585 USE_TOOLKIT_SCROLL_BARS
=yes
12586 elif test "${HAVE_W32}" = "yes"; then
12587 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12589 USE_TOOLKIT_SCROLL_BARS
=yes
12593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 #include <X11/Xlib.h>
12597 #include <X11/Xresource.h>
12606 if ac_fn_c_try_compile
"$LINENO"; then :
12609 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12617 if test "${with_xim}" != "no"; then
12619 $as_echo "#define USE_XIM 1" >>confdefs.h
12624 if test "${HAVE_XIM}" != "no"; then
12625 late_CFLAGS
=$CFLAGS
12626 if test "$GCC" = yes; then
12627 CFLAGS
="$CFLAGS --pedantic-errors"
12629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 #include <X11/Xlib.h>
12633 #include <X11/Xresource.h>
12642 XPointer *client_data;
12644 /* If we're not using GCC, it's probably not XFree86, and this is
12645 probably right, but we can't use something like --pedantic-errors. */
12646 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12647 char*, XIMProc, XPointer*);
12649 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12655 if ac_fn_c_try_compile
"$LINENO"; then :
12656 emacs_cv_arg6_star
=yes
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12659 if test "$emacs_cv_arg6_star" = yes; then
12660 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12663 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12666 CFLAGS
=$late_CFLAGS
12669 ### Start of font-backend (under any platform) section.
12670 # (nothing here yet -- this is a placeholder)
12671 ### End of font-backend (under any platform) section.
12673 ### Start of font-backend (under X11) section.
12674 if test "${HAVE_X11}" = "yes"; then
12678 if test "$PKG_CONFIG" = "no" ; then
12681 PKG_CONFIG_MIN_VERSION
=0.9.0
12682 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12684 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12686 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12687 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12688 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12695 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12696 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12698 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12703 FONTCONFIG_CFLAGS
=""
12705 ## If we have a custom action on failure, don't print errors, but
12706 ## do set a variable so people can do so. Do it in a subshell
12707 ## to capture any diagnostics in invoking pkg-config.
12708 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12720 if test $succeeded = yes; then
12727 ## Use -lXft if available, unless `--with-xft=no'.
12729 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12732 if test "x${with_xft}" != "xno"; then
12737 if test "$PKG_CONFIG" = "no" ; then
12740 PKG_CONFIG_MIN_VERSION
=0.9.0
12741 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12743 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12745 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12746 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12747 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12754 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12755 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12757 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12764 ## If we have a custom action on failure, don't print errors, but
12765 ## do set a variable so people can do so. Do it in a subshell
12766 ## to capture any diagnostics in invoking pkg-config.
12767 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12779 if test $succeeded = yes; then
12785 ## Because xftfont.c uses XRenderQueryExtension, we also
12786 ## need to link to -lXrender.
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12789 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12790 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12793 ac_check_lib_save_LIBS
=$LIBS
12794 LIBS
="-lXrender $LIBS"
12795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12798 /* Override any GCC internal prototype to avoid an error.
12799 Use char because int might match the return type of a GCC
12800 builtin and then its argument prototype would still apply. */
12804 char XRenderQueryExtension ();
12808 return XRenderQueryExtension ();
12813 if ac_fn_c_try_link
"$LINENO"; then :
12814 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12816 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12818 rm -f core conftest.err conftest.
$ac_objext \
12819 conftest
$ac_exeext conftest.
$ac_ext
12820 LIBS
=$ac_check_lib_save_LIBS
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12823 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12824 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12828 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12829 OLD_CPPFLAGS
="$CPPFLAGS"
12830 OLD_CFLAGS
="$CFLAGS"
12832 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12833 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12834 XFT_LIBS
="-lXrender $XFT_LIBS"
12835 LIBS
="$XFT_LIBS $LIBS"
12836 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12838 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12840 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12841 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 ac_check_lib_save_LIBS
=$LIBS
12845 LIBS
="-lXft $XFT_LIBS $LIBS"
12846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12849 /* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12855 char XftFontOpen ();
12859 return XftFontOpen ();
12864 if ac_fn_c_try_link
"$LINENO"; then :
12865 ac_cv_lib_Xft_XftFontOpen
=yes
12867 ac_cv_lib_Xft_XftFontOpen
=no
12869 rm -f core conftest.err conftest.
$ac_objext \
12870 conftest
$ac_exeext conftest.
$ac_ext
12871 LIBS
=$ac_check_lib_save_LIBS
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12874 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12875 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12883 if test "${HAVE_XFT}" = "yes"; then
12885 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12888 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12890 CPPFLAGS
="$OLD_CPPFLAGS"
12891 CFLAGS
="$OLD_CFLAGS"
12893 fi # "${HAVE_XFT}" = "yes"
12894 fi # "$HAVE_XFT" != no
12895 fi # "x${with_xft}" != "xno"
12897 ## We used to allow building with FreeType and without Xft.
12898 ## However, the ftx font backend driver is not in good shape.
12899 if test "$HAVE_XFT" != "yes"; then
12906 if test "$PKG_CONFIG" = "no" ; then
12909 PKG_CONFIG_MIN_VERSION
=0.9.0
12910 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12912 $as_echo_n "checking for freetype2... " >&6; }
12914 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12915 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12916 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12923 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12924 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12926 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12933 ## If we have a custom action on failure, don't print errors, but
12934 ## do set a variable so people can do so. Do it in a subshell
12935 ## to capture any diagnostics in invoking pkg-config.
12936 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12943 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12944 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12948 if test $succeeded = yes; then
12955 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
12959 if test "${HAVE_FREETYPE}" = "yes"; then
12961 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12963 if test "${with_libotf}" != "no"; then
12967 if test "$PKG_CONFIG" = "no" ; then
12970 PKG_CONFIG_MIN_VERSION
=0.9.0
12971 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12973 $as_echo_n "checking for libotf... " >&6; }
12975 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12976 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12977 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12984 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12985 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12987 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12994 ## If we have a custom action on failure, don't print errors, but
12995 ## do set a variable so people can do so. Do it in a subshell
12996 ## to capture any diagnostics in invoking pkg-config.
12997 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13009 if test $succeeded = yes; then
13015 if test "$HAVE_LIBOTF" = "yes"; then
13017 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13020 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13021 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13022 $as_echo_n "(cached) " >&6
13024 ac_check_lib_save_LIBS
=$LIBS
13026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13035 char OTF_get_variation_glyphs ();
13039 return OTF_get_variation_glyphs ();
13044 if ac_fn_c_try_link
"$LINENO"; then :
13045 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13047 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13049 rm -f core conftest.err conftest.
$ac_objext \
13050 conftest
$ac_exeext conftest.
$ac_ext
13051 LIBS
=$ac_check_lib_save_LIBS
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13054 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13055 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13056 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13058 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13061 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13063 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13071 if test "${HAVE_LIBOTF}" = yes; then
13072 if test "${with_m17n_flt}" != "no"; then
13076 if test "$PKG_CONFIG" = "no" ; then
13079 PKG_CONFIG_MIN_VERSION
=0.9.0
13080 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13082 $as_echo_n "checking for m17n-flt... " >&6; }
13084 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13085 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13086 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13093 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13094 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13096 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13103 ## If we have a custom action on failure, don't print errors, but
13104 ## do set a variable so people can do so. Do it in a subshell
13105 ## to capture any diagnostics in invoking pkg-config.
13106 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13113 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13114 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13118 if test $succeeded = yes; then
13124 if test "$HAVE_M17N_FLT" = "yes"; then
13126 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13138 ### End of font-backend (under X11) section.
13149 ### Use -lXpm if available, unless `--with-xpm=no'.
13150 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13153 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13154 if test "${with_xpm}" != "no"; then
13155 SAVE_CPPFLAGS
="$CPPFLAGS"
13156 SAVE_LDFLAGS
="$LDFLAGS"
13157 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13158 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13159 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13160 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13162 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13163 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13166 ac_check_lib_save_LIBS
=$LIBS
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13177 char XpmReadFileToImage ();
13181 return XpmReadFileToImage ();
13186 if ac_fn_c_try_link
"$LINENO"; then :
13187 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13189 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13191 rm -f core conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13193 LIBS
=$ac_check_lib_save_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13196 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13197 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13204 if test "${HAVE_XPM}" = "yes"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13206 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 #include "X11/xpm.h"
13210 #ifndef XpmReturnAllocPixels
13211 no_return_alloc_pixels
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13224 if test "${HAVE_XPM}" = "yes"; then
13225 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13227 $as_echo "yes" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231 CPPFLAGS
="$SAVE_CPPFLAGS"
13232 LDFLAGS
="$SAVE_LDFLAGS"
13237 if test "${HAVE_XPM}" = "yes"; then
13239 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13245 if test "${HAVE_X11}" = "yes"; then
13246 if test "${with_xpm}" != "no"; then
13247 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13248 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13250 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13251 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13252 $as_echo_n "(cached) " >&6
13254 ac_check_lib_save_LIBS
=$LIBS
13255 LIBS
="-lXpm -lX11 $LIBS"
13256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13265 char XpmReadFileToPixmap ();
13269 return XpmReadFileToPixmap ();
13274 if ac_fn_c_try_link
"$LINENO"; then :
13275 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13277 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13279 rm -f core conftest.err conftest.
$ac_objext \
13280 conftest
$ac_exeext conftest.
$ac_ext
13281 LIBS
=$ac_check_lib_save_LIBS
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13284 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13285 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13292 if test "${HAVE_XPM}" = "yes"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13294 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297 #include "X11/xpm.h"
13298 #ifndef XpmReturnAllocPixels
13299 no_return_alloc_pixels
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13312 if test "${HAVE_XPM}" = "yes"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13314 $as_echo "yes" >&6; }
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13322 if test "${HAVE_XPM}" = "yes"; then
13324 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13330 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13331 ### slightly different requirements wrt image libraries (it doesn't
13332 ### use -lXpm because it loads the xpm shared library dynamically at
13334 if test "${opsys}" = "mingw32"; then
13335 if test "${with_xpm}" != "no"; then
13336 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13339 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13348 if test "${HAVE_XPM}" = "yes"; then
13350 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13357 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13358 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13361 if test "${opsys}" = "mingw32"; then
13362 if test "${with_jpeg}" != "no"; then
13363 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13364 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13372 if test "${HAVE_JPEG}" = "yes"; then
13373 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 #include <jpeglib.h>
13378 version=JPEG_LIB_VERSION
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13383 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13387 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13393 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13394 if test "${with_jpeg}" != "no"; then
13395 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13396 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13398 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13399 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13402 ac_check_lib_save_LIBS
=$LIBS
13403 LIBS
="-ljpeg $LIBS"
13404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13407 /* Override any GCC internal prototype to avoid an error.
13408 Use char because int might match the return type of a GCC
13409 builtin and then its argument prototype would still apply. */
13413 char jpeg_destroy_compress ();
13417 return jpeg_destroy_compress ();
13422 if ac_fn_c_try_link
"$LINENO"; then :
13423 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13425 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13427 rm -f core conftest.err conftest.
$ac_objext \
13428 conftest
$ac_exeext conftest.
$ac_ext
13429 LIBS
=$ac_check_lib_save_LIBS
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13432 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13433 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13442 if test "${HAVE_JPEG}" = "yes"; then
13443 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 #include <jpeglib.h>
13448 version=JPEG_LIB_VERSION
13451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13452 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13453 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13457 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13463 if test "${HAVE_JPEG}" = "yes"; then
13469 ### Use -lpng if available, unless `--with-png=no'.
13470 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13473 if test "${opsys}" = "mingw32"; then
13474 if test "${with_png}" != "no"; then
13475 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13476 if test "x$ac_cv_header_png_h" = x
""yes; then :
13484 if test "${HAVE_PNG}" = "yes"; then
13486 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13489 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13490 # include <libpng/png.h>
13496 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13500 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13505 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13506 if test "${with_png}" != "no"; then
13507 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13508 # in /usr/include/libpng.
13509 for ac_header
in png.h libpng
/png.h
13511 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13513 eval as_val
=\$
$as_ac_Header
13514 if test "x$as_val" = x
""yes; then :
13515 cat >>confdefs.h
<<_ACEOF
13516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13523 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13525 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13526 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13529 ac_check_lib_save_LIBS
=$LIBS
13530 LIBS
="-lpng -lz -lm $LIBS"
13531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13534 /* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13540 char png_get_channels ();
13544 return png_get_channels ();
13549 if ac_fn_c_try_link
"$LINENO"; then :
13550 ac_cv_lib_png_png_get_channels
=yes
13552 ac_cv_lib_png_png_get_channels
=no
13554 rm -f core conftest.err conftest.
$ac_objext \
13555 conftest
$ac_exeext conftest.
$ac_ext
13556 LIBS
=$ac_check_lib_save_LIBS
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13559 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13560 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13567 if test "${HAVE_PNG}" = "yes"; then
13569 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13571 LIBPNG
="-lpng -lz -lm"
13573 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13574 # include <libpng/png.h>
13580 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13584 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13592 ### Use -ltiff if available, unless `--with-tiff=no'.
13593 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13596 if test "${opsys}" = "mingw32"; then
13597 if test "${with_tiff}" != "no"; then
13598 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13599 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13607 if test "${HAVE_TIFF}" = "yes"; then
13609 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13612 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13613 if test "${with_tiff}" != "no"; then
13614 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13615 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13617 # At least one tiff package requires the jpeg library.
13618 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13620 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13621 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13624 ac_check_lib_save_LIBS
=$LIBS
13625 LIBS
="-ltiff $tifflibs $LIBS"
13626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13635 char TIFFGetVersion ();
13639 return TIFFGetVersion ();
13644 if ac_fn_c_try_link
"$LINENO"; then :
13645 ac_cv_lib_tiff_TIFFGetVersion
=yes
13647 ac_cv_lib_tiff_TIFFGetVersion
=no
13649 rm -f core conftest.err conftest.
$ac_objext \
13650 conftest
$ac_exeext conftest.
$ac_ext
13651 LIBS
=$ac_check_lib_save_LIBS
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13654 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13655 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13664 if test "${HAVE_TIFF}" = "yes"; then
13666 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13673 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13674 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13677 if test "${opsys}" = "mingw32"; then
13678 if test "${with_gif}" != "no"; then
13679 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13680 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13688 if test "${HAVE_GIF}" = "yes"; then
13690 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13693 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13694 ||
test "${HAVE_W32}" = "yes"; then
13695 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13696 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13697 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13698 # Earlier versions can crash Emacs.
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13700 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13701 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
13704 ac_check_lib_save_LIBS
=$LIBS
13706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13709 /* Override any GCC internal prototype to avoid an error.
13710 Use char because int might match the return type of a GCC
13711 builtin and then its argument prototype would still apply. */
13715 char EGifPutExtensionLast ();
13719 return EGifPutExtensionLast ();
13724 if ac_fn_c_try_link
"$LINENO"; then :
13725 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13727 ac_cv_lib_gif_EGifPutExtensionLast
=no
13729 rm -f core conftest.err conftest.
$ac_objext \
13730 conftest
$ac_exeext conftest.
$ac_ext
13731 LIBS
=$ac_check_lib_save_LIBS
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13734 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13735 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13745 if test "$HAVE_GIF" = yes; then
13747 elif test "$HAVE_GIF" = maybe
; then
13748 # If gif_lib.h but no libgif, try libungif.
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13750 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13751 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13752 $as_echo_n "(cached) " >&6
13754 ac_check_lib_save_LIBS
=$LIBS
13755 LIBS
="-lungif $LIBS"
13756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13765 char EGifPutExtensionLast ();
13769 return EGifPutExtensionLast ();
13774 if ac_fn_c_try_link
"$LINENO"; then :
13775 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13777 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13779 rm -f core conftest.err conftest.
$ac_objext \
13780 conftest
$ac_exeext conftest.
$ac_ext
13781 LIBS
=$ac_check_lib_save_LIBS
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13784 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13785 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13791 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13794 if test "${HAVE_GIF}" = "yes"; then
13796 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13802 if test "${HAVE_X11}" = "yes"; then
13805 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13806 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13807 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13808 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13809 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13810 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13811 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13812 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13813 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13814 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13816 if test "X${MISSING}" != X
; then
13817 as_fn_error
"The following required libraries were not found:
13819 Maybe some development libraries/packages are missing?
13820 If you don't want to link with them give
13822 as options to configure" "$LINENO" 5
13826 ### Use -lgpm if available, unless `--with-gpm=no'.
13829 if test "${with_gpm}" != "no"; then
13830 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13831 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13833 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13834 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS
=$LIBS
13839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13852 return Gpm_Open ();
13857 if ac_fn_c_try_link
"$LINENO"; then :
13858 ac_cv_lib_gpm_Gpm_Open
=yes
13860 ac_cv_lib_gpm_Gpm_Open
=no
13862 rm -f core conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13864 LIBS
=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13867 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13868 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13876 if test "${HAVE_GPM}" = "yes"; then
13878 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13890 ### Use NeXTstep API to implement GUI.
13891 if test "${HAVE_NS}" = "yes"; then
13893 $as_echo "#define HAVE_NS 1" >>confdefs.h
13895 if test "${NS_IMPL_COCOA}" = "yes"; then
13897 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13900 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13902 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13904 # See also .m.o rule in Makefile.in */
13905 # FIXME: are all these flags really needed? Document here why. */
13906 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13907 ## Extra CFLAGS applied to src/*.m files.
13908 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"
13910 # We also have mouse menus.
13915 if test "${HAVE_W32}" = "yes"; then
13919 ### Use session management (-lSM -lICE) if available
13922 if test "${HAVE_X11}" = "yes"; then
13923 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13924 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13926 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13927 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13930 ac_check_lib_save_LIBS
=$LIBS
13931 LIBS
="-lSM -lICE $LIBS"
13932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13935 /* Override any GCC internal prototype to avoid an error.
13936 Use char because int might match the return type of a GCC
13937 builtin and then its argument prototype would still apply. */
13941 char SmcOpenConnection ();
13945 return SmcOpenConnection ();
13950 if ac_fn_c_try_link
"$LINENO"; then :
13951 ac_cv_lib_SM_SmcOpenConnection
=yes
13953 ac_cv_lib_SM_SmcOpenConnection
=no
13955 rm -f core conftest.err conftest.
$ac_objext \
13956 conftest
$ac_exeext conftest.
$ac_ext
13957 LIBS
=$ac_check_lib_save_LIBS
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13960 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13961 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
13969 if test "${HAVE_X_SM}" = "yes"; then
13971 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13973 LIBXSM
="-lSM -lICE"
13976 *) LIBS
="$LIBXSM $LIBS" ;;
13982 ### Use XRandr (-lXrandr) if available
13984 if test "${HAVE_X11}" = "yes"; then
13985 XRANDR_REQUIRED
=1.2.2
13986 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
13990 if test "$PKG_CONFIG" = "no" ; then
13993 PKG_CONFIG_MIN_VERSION
=0.9.0
13994 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
13996 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
13998 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
13999 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14000 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14007 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14008 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14010 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14017 ## If we have a custom action on failure, don't print errors, but
14018 ## do set a variable so people can do so. Do it in a subshell
14019 ## to capture any diagnostics in invoking pkg-config.
14020 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14027 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14028 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14032 if test $succeeded = yes; then
14038 if test $HAVE_XRANDR = no
; then
14039 # Test old way in case pkg-config doesn't have it (older machines).
14040 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14041 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14043 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14044 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14047 ac_check_lib_save_LIBS
=$LIBS
14048 LIBS
="-lXrandr $LIBS"
14049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14058 char XRRGetScreenResources ();
14062 return XRRGetScreenResources ();
14067 if ac_fn_c_try_link
"$LINENO"; then :
14068 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14070 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14072 rm -f core conftest.err conftest.
$ac_objext \
14073 conftest
$ac_exeext conftest.
$ac_ext
14074 LIBS
=$ac_check_lib_save_LIBS
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14077 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14078 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14085 if test $HAVE_XRANDR = yes; then
14086 XRANDR_LIBS
=-lXrandr
14090 if test $HAVE_XRANDR = yes; then
14091 SAVE_CFLAGS
="$CFLAGS"
14093 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14094 LIBS
="$XRANDR_LIBS $LIBS"
14095 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14097 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14098 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14099 eval as_val
=\$
$as_ac_var
14100 if test "x$as_val" = x
""yes; then :
14101 cat >>confdefs.h
<<_ACEOF
14102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14108 CFLAGS
="$SAVE_CFLAGS"
14112 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14117 ### Use Xinerama (-lXinerama) if available
14119 if test "${HAVE_X11}" = "yes"; then
14120 XINERAMA_REQUIRED
=1.0.2
14121 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14125 if test "$PKG_CONFIG" = "no" ; then
14128 PKG_CONFIG_MIN_VERSION
=0.9.0
14129 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14131 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14133 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14134 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14135 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14142 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14143 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14145 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14152 ## If we have a custom action on failure, don't print errors, but
14153 ## do set a variable so people can do so. Do it in a subshell
14154 ## to capture any diagnostics in invoking pkg-config.
14155 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14162 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14163 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14167 if test $succeeded = yes; then
14173 if test $HAVE_XINERAMA = no
; then
14174 # Test old way in case pkg-config doesn't have it (older machines).
14175 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14176 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14178 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14179 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14182 ac_check_lib_save_LIBS
=$LIBS
14183 LIBS
="-lXinerama $LIBS"
14184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14193 char XineramaQueryExtension ();
14197 return XineramaQueryExtension ();
14202 if ac_fn_c_try_link
"$LINENO"; then :
14203 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14205 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14207 rm -f core conftest.err conftest.
$ac_objext \
14208 conftest
$ac_exeext conftest.
$ac_ext
14209 LIBS
=$ac_check_lib_save_LIBS
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14212 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14213 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14220 if test $HAVE_XINERAMA = yes; then
14221 XINERAMA_LIBS
=-lXinerama
14225 if test $HAVE_XINERAMA = yes; then
14227 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14233 ### Use libxml (-lxml2) if available
14234 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14236 if test "${with_xml2}" != "no"; then
14237 ### I'm not sure what the version number should be, so I just guessed.
14241 if test "$PKG_CONFIG" = "no" ; then
14244 PKG_CONFIG_MIN_VERSION
=0.9.0
14245 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14247 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14249 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14250 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14251 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14258 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14259 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14261 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14268 ## If we have a custom action on failure, don't print errors, but
14269 ## do set a variable so people can do so. Do it in a subshell
14270 ## to capture any diagnostics in invoking pkg-config.
14271 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14278 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14279 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14283 if test $succeeded = yes; then
14289 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14290 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14291 SAVE_CPPFLAGS
="$CPPFLAGS"
14292 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14293 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14294 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14295 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14297 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14304 CPPFLAGS
="$SAVE_CPPFLAGS"
14305 if test "${HAVE_LIBXML2}" = "yes"; then
14306 LIBXML2_LIBS
="-lxml2"
14307 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14310 if test "${HAVE_LIBXML2}" = "yes"; then
14311 if test "${opsys}" != "mingw32"; then
14312 LIBS
="$LIBXML2_LIBS $LIBS"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14314 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14315 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14318 ac_check_lib_save_LIBS
=$LIBS
14319 LIBS
="-lxml2 $LIBS"
14320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14323 /* Override any GCC internal prototype to avoid an error.
14324 Use char because int might match the return type of a GCC
14325 builtin and then its argument prototype would still apply. */
14329 char htmlReadMemory ();
14333 return htmlReadMemory ();
14338 if ac_fn_c_try_link
"$LINENO"; then :
14339 ac_cv_lib_xml2_htmlReadMemory
=yes
14341 ac_cv_lib_xml2_htmlReadMemory
=no
14343 rm -f core conftest.err conftest.
$ac_objext \
14344 conftest
$ac_exeext conftest.
$ac_ext
14345 LIBS
=$ac_check_lib_save_LIBS
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14348 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14349 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14358 if test "${HAVE_LIBXML2}" = "yes"; then
14360 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14371 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14372 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14373 if test "${opsys}" = "mingw32"; then
14374 emacs_cv_netdb_declares_h_errno
=yes
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14377 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14378 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14379 $as_echo_n "(cached) " >&6
14381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14392 if ac_fn_c_try_link
"$LINENO"; then :
14393 emacs_cv_netdb_declares_h_errno
=yes
14395 emacs_cv_netdb_declares_h_errno
=no
14397 rm -f core conftest.err conftest.
$ac_objext \
14398 conftest
$ac_exeext conftest.
$ac_ext
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14401 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14402 if test $emacs_cv_netdb_declares_h_errno = yes; then
14404 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14408 # sqrt and other floating-point functions such as fmod and frexp
14409 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14410 if test "${opsys}" != "mingw32"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14412 $as_echo_n "checking for sqrt in -lm... " >&6; }
14413 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14416 ac_check_lib_save_LIBS
=$LIBS
14418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14421 /* Override any GCC internal prototype to avoid an error.
14422 Use char because int might match the return type of a GCC
14423 builtin and then its argument prototype would still apply. */
14436 if ac_fn_c_try_link
"$LINENO"; then :
14437 ac_cv_lib_m_sqrt
=yes
14439 ac_cv_lib_m_sqrt
=no
14441 rm -f core conftest.err conftest.
$ac_objext \
14442 conftest
$ac_exeext conftest.
$ac_ext
14443 LIBS
=$ac_check_lib_save_LIBS
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14446 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14447 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14448 cat >>confdefs.h
<<_ACEOF
14449 #define HAVE_LIBM 1
14458 # Check for mail-locking functions in a "mail" library. Probably this should
14459 # have the same check as for liblockfile below.
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14461 $as_echo_n "checking for maillock in -lmail... " >&6; }
14462 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14463 $as_echo_n "(cached) " >&6
14465 ac_check_lib_save_LIBS
=$LIBS
14466 LIBS
="-lmail $LIBS"
14467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14470 /* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
14480 return maillock ();
14485 if ac_fn_c_try_link
"$LINENO"; then :
14486 ac_cv_lib_mail_maillock
=yes
14488 ac_cv_lib_mail_maillock
=no
14490 rm -f core conftest.err conftest.
$ac_objext \
14491 conftest
$ac_exeext conftest.
$ac_ext
14492 LIBS
=$ac_check_lib_save_LIBS
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14495 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14496 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14502 if test $have_mail = yes; then
14504 LIBS
="$LIBS_MAIL $LIBS"
14506 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14512 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14513 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14516 ac_check_lib_save_LIBS
=$LIBS
14517 LIBS
="-llockfile $LIBS"
14518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14531 return maillock ();
14536 if ac_fn_c_try_link
"$LINENO"; then :
14537 ac_cv_lib_lockfile_maillock
=yes
14539 ac_cv_lib_lockfile_maillock
=no
14541 rm -f core conftest.err conftest.
$ac_objext \
14542 conftest
$ac_exeext conftest.
$ac_ext
14543 LIBS
=$ac_check_lib_save_LIBS
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14546 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14547 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14553 if test $have_lockfile = yes; then
14554 LIBS_MAIL
=-llockfile
14555 LIBS
="$LIBS_MAIL $LIBS"
14557 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14560 # If we have the shared liblockfile, assume we must use it for mail
14561 # locking (e.g. Debian). If we couldn't link against liblockfile
14562 # (no liblockfile.a installed), ensure that we don't need to.
14563 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14564 set dummy liblockfile.so
; ac_word
=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566 $as_echo_n "checking for $ac_word... " >&6; }
14567 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14570 if test -n "$liblockfile"; then
14571 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14574 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14575 for as_dir
in $as_dummy
14578 test -z "$as_dir" && as_dir
=.
14579 for ac_exec_ext
in '' $ac_executable_extensions; do
14580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14581 ac_cv_prog_liblockfile
="yes"
14582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14589 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14592 liblockfile
=$ac_cv_prog_liblockfile
14593 if test -n "$liblockfile"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14595 $as_echo "$liblockfile" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14602 if test $ac_cv_prog_liblockfile = yes; then
14603 as_fn_error
"Shared liblockfile found but can't link against it.
14604 This probably means that movemail could lose mail.
14605 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14613 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14614 ## interlock access to the mail spool. The alternative is a lock file named
14615 ## /usr/spool/mail/$USER.lock.
14618 aix4-2
) mail_lock
="lockf" ;;
14620 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14622 ## On GNU/Linux systems, both methods are used by various mail programs.
14623 ## I assume most people are using newer mailers that have heard of flock.
14624 ## Change this if you need to.
14625 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14626 ## configure gets the right answers, and that means *NOT* using flock.
14627 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14628 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14629 ## Debian maintainer hasn't provided a clean fix for Emacs.
14630 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14631 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14632 ## correct logic. -- fx
14633 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14634 ## liblockfile is a Free Software replacement for libmail, used on
14635 ## Debian systems and elsewhere. -rfr.
14638 if test $have_mail = yes ||
test $have_lockfile = yes; then
14639 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14644 mail_lock
="none-needed" ;;
14648 case "$mail_lock" in
14650 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14654 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14659 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14664 for ac_func
in accept4 gethostname \
14665 getrusage get_current_dir_name \
14667 select getpagesize setlocale \
14668 getrlimit setrlimit shutdown getaddrinfo \
14669 strsignal setitimer \
14670 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14671 gai_strerror mkostemp mkstemp getline getdelim sync \
14672 difftime posix_memalign \
14673 getpwent endpwent getgrent endgrent \
14675 cfmakeraw cfsetspeed copysign __executable_start log2
14677 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14678 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14679 eval as_val
=\$
$as_ac_var
14680 if test "x$as_val" = x
""yes; then :
14681 cat >>confdefs.h
<<_ACEOF
14682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14689 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14690 ## has a broken `rint' in some library versions including math library
14691 ## version number A.09.05.
14692 ## You can fix the math library by installing patch number PHSS_4630.
14693 ## But we can fix it more reliably for Emacs by just not using rint.
14694 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14697 *) for ac_func
in random rint
14699 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14701 eval as_val
=\$
$as_ac_var
14702 if test "x$as_val" = x
""yes; then :
14703 cat >>confdefs.h
<<_ACEOF
14704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14713 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14714 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14723 __builtin_unwind_init ();
14728 if ac_fn_c_try_link
"$LINENO"; then :
14729 emacs_cv_func___builtin_unwind_init
=yes
14731 emacs_cv_func___builtin_unwind_init
=no
14733 rm -f core conftest.err conftest.
$ac_objext \
14734 conftest
$ac_exeext conftest.
$ac_ext
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14737 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14738 if test $emacs_cv_func___builtin_unwind_init = yes; then
14740 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14749 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14750 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14751 $as_echo_n "(cached) " >&6
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <sys/types.h> /* for off_t */
14761 int (*fp) (FILE *, off_t, int) = fseeko;
14762 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14767 if ac_fn_c_try_link
"$LINENO"; then :
14768 ac_cv_sys_largefile_source
=no
; break
14770 rm -f core conftest.err conftest.
$ac_objext \
14771 conftest
$ac_exeext conftest.
$ac_ext
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #define _LARGEFILE_SOURCE 1
14775 #include <sys/types.h> /* for off_t */
14780 int (*fp) (FILE *, off_t, int) = fseeko;
14781 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14786 if ac_fn_c_try_link
"$LINENO"; then :
14787 ac_cv_sys_largefile_source
=1; break
14789 rm -f core conftest.err conftest.
$ac_objext \
14790 conftest
$ac_exeext conftest.
$ac_ext
14791 ac_cv_sys_largefile_source
=unknown
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14796 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14797 case $ac_cv_sys_largefile_source in #(
14800 cat >>confdefs.h
<<_ACEOF
14801 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14807 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14808 # in glibc 2.1.3, but that breaks too many other things.
14809 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14810 if test $ac_cv_sys_largefile_source != unknown
; then
14812 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14818 for ac_func
in grantpt
14820 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14821 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14822 cat >>confdefs.h
<<_ACEOF
14823 #define HAVE_GRANTPT 1
14830 # PTY-related GNU extensions.
14831 for ac_func
in getpt posix_openpt
14833 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14834 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14835 eval as_val
=\$
$as_ac_var
14836 if test "x$as_val" = x
""yes; then :
14837 cat >>confdefs.h
<<_ACEOF
14838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14845 # Check this now, so that we will NOT find the above functions in ncurses.
14846 # That is because we have not set up to link ncurses in lib-src.
14847 # It's better to believe a function is not available
14848 # than to expect to find it in ncurses.
14849 # Also we need tputs and friends to be able to build at all.
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14851 $as_echo_n "checking for library containing tputs... " >&6; }
14852 # Run a test program that contains a call to tputs, a call that is
14853 # never executed. This tests whether a pre-'main' dynamic linker
14854 # works with the library. It's too much trouble to actually call
14855 # tputs in the test program, due to portability hassles. When
14856 # cross-compiling, assume the test program will run if it links.
14858 if test "${opsys}" = "mingw32"; then
14859 msg
='none required'
14861 # Maybe curses should be tried earlier?
14862 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14863 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14865 if test -z "$tputs_library"; then
14867 msg
='none required'
14869 LIBS_TERMCAP
=-l$tputs_library
14871 LIBS
="$LIBS_TERMCAP $LIBS"
14873 if test "$cross_compiling" = yes; then :
14874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14877 extern void tputs (const char *, int, int (*)(int));
14878 int main (int argc, char **argv)
14881 tputs (argv[0], 0, 0);
14886 if ac_fn_c_try_link
"$LINENO"; then :
14891 rm -f core conftest.err conftest.
$ac_objext \
14892 conftest
$ac_exeext conftest.
$ac_ext
14894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14897 extern void tputs (const char *, int, int (*)(int));
14898 int main (int argc, char **argv)
14901 tputs (argv[0], 0, 0);
14906 if ac_fn_c_try_run
"$LINENO"; then :
14911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14916 if test "X$msg" != Xno
; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14922 $as_echo "$msg" >&6; }
14923 if test "X$msg" = Xno
; then
14924 as_fn_error
"The required function \`tputs' was not found in any library.
14925 The following libraries were tried (in order):
14926 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14927 Please try installing whichever of these libraries is most appropriate
14928 for your system, together with its header files.
14929 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14932 ## Use termcap instead of terminfo?
14933 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14935 ## FIXME? In the cases below where we unconditionally set
14936 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14937 ## if that was found above to have tputs.
14938 ## Should we use the gnu* logic everywhere?
14940 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14941 ## The ncurses library has been moved out of the System framework in
14942 ## Mac OS X 10.2. So if configure detects it, set the command-line
14943 ## option to use it.
14944 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14946 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14950 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14951 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 #include <osreldate.h>
14960 #if __FreeBSD_version < 400000
14968 if ac_fn_c_try_link
"$LINENO"; then :
14969 emacs_cv_freebsd_terminfo
=yes
14971 emacs_cv_freebsd_terminfo
=no
14973 rm -f core conftest.err conftest.
$ac_objext \
14974 conftest
$ac_exeext conftest.
$ac_ext
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14979 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14981 if test $emacs_cv_freebsd_terminfo = yes; then
14982 LIBS_TERMCAP
="-lncurses"
14985 LIBS_TERMCAP
="-ltermcap"
14995 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14997 LIBS_TERMCAP
="-ltermcap"
15001 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15003 ## hpux: Make sure we get select from libc rather than from libcurses
15004 ## because libcurses on HPUX 10.10 has a broken version of select.
15005 ## We used to use -lc -lcurses, but this may be cleaner.
15006 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15007 # set that way, now it uses the default). Isn't this a contradiction?
15008 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15012 TERMCAP_OBJ
=tparam.o
15013 if test $TERMINFO = yes; then
15015 $as_echo "#define TERMINFO 1" >>confdefs.h
15017 TERMCAP_OBJ
=terminfo.o
15023 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15024 # On Darwin, res_init appears not to be useful: see bug#562 and
15025 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15028 if test $opsys != darwin
; then
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #include <netinet/in.h>
15033 #include <arpa/nameser.h>
15034 #include <resolv.h>
15043 if ac_fn_c_try_link
"$LINENO"; then :
15048 rm -f core conftest.err conftest.
$ac_objext \
15049 conftest
$ac_exeext conftest.
$ac_ext
15050 if test "$have_res_init" = no
; then
15052 LIBS
="$LIBS -lresolv"
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15054 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <netinet/in.h>
15058 #include <arpa/nameser.h>
15059 #include <resolv.h>
15068 if ac_fn_c_try_link
"$LINENO"; then :
15073 rm -f core conftest.err conftest.
$ac_objext \
15074 conftest
$ac_exeext conftest.
$ac_ext
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15076 $as_echo "$have_res_init" >&6; }
15077 if test "$have_res_init" = yes ; then
15083 if test "$have_res_init" = yes; then
15085 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15089 # Do we need the Hesiod library to provide the support routines?
15091 if test "$with_hesiod" != no
; then
15092 # Don't set $LIBS here -- see comments above. FIXME which comments?
15093 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15094 if test "x$ac_cv_func_res_send" = x
""yes; then :
15097 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15098 if test "x$ac_cv_func___res_send" = x
""yes; then :
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15102 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15103 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15104 $as_echo_n "(cached) " >&6
15106 ac_check_lib_save_LIBS
=$LIBS
15107 LIBS
="-lresolv $LIBS"
15108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15111 /* Override any GCC internal prototype to avoid an error.
15112 Use char because int might match the return type of a GCC
15113 builtin and then its argument prototype would still apply. */
15121 return res_send ();
15126 if ac_fn_c_try_link
"$LINENO"; then :
15127 ac_cv_lib_resolv_res_send
=yes
15129 ac_cv_lib_resolv_res_send
=no
15131 rm -f core conftest.err conftest.
$ac_objext \
15132 conftest
$ac_exeext conftest.
$ac_ext
15133 LIBS
=$ac_check_lib_save_LIBS
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15136 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15137 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15141 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15142 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15143 $as_echo_n "(cached) " >&6
15145 ac_check_lib_save_LIBS
=$LIBS
15146 LIBS
="-lresolv $LIBS"
15147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15150 /* Override any GCC internal prototype to avoid an error.
15151 Use char because int might match the return type of a GCC
15152 builtin and then its argument prototype would still apply. */
15156 char __res_send ();
15160 return __res_send ();
15165 if ac_fn_c_try_link
"$LINENO"; then :
15166 ac_cv_lib_resolv___res_send
=yes
15168 ac_cv_lib_resolv___res_send
=no
15170 rm -f core conftest.err conftest.
$ac_objext \
15171 conftest
$ac_exeext conftest.
$ac_ext
15172 LIBS
=$ac_check_lib_save_LIBS
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15175 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15176 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15186 if test "$resolv" = yes ; then
15191 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15192 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15196 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15197 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15198 $as_echo_n "(cached) " >&6
15200 ac_check_lib_save_LIBS
=$LIBS
15201 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15211 char hes_getmailhost ();
15215 return hes_getmailhost ();
15220 if ac_fn_c_try_link
"$LINENO"; then :
15221 ac_cv_lib_hesiod_hes_getmailhost
=yes
15223 ac_cv_lib_hesiod_hes_getmailhost
=no
15225 rm -f core conftest.err conftest.
$ac_objext \
15226 conftest
$ac_exeext conftest.
$ac_ext
15227 LIBS
=$ac_check_lib_save_LIBS
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15230 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15231 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15240 if test x
"$hesiod" = xyes
; then
15246 # Do we need libresolv (due to res_init or Hesiod)?
15247 if test "$resolv" = yes && test $opsys != darwin
; then
15254 # These tell us which Kerberos-related libraries to use.
15261 if test "${with_kerberos}" != no
; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15263 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15264 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15267 ac_check_lib_save_LIBS
=$LIBS
15268 LIBS
="-lcom_err $LIBS"
15269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15287 if ac_fn_c_try_link
"$LINENO"; then :
15288 ac_cv_lib_com_err_com_err
=yes
15290 ac_cv_lib_com_err_com_err
=no
15292 rm -f core conftest.err conftest.
$ac_objext \
15293 conftest
$ac_exeext conftest.
$ac_ext
15294 LIBS
=$ac_check_lib_save_LIBS
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15297 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15298 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15304 if test $have_com_err = yes; then
15305 COM_ERRLIB
=-lcom_err
15306 LIBS
="$COM_ERRLIB $LIBS"
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15309 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15310 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15313 ac_check_lib_save_LIBS
=$LIBS
15314 LIBS
="-lcrypto $LIBS"
15315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15324 char mit_des_cbc_encrypt ();
15328 return mit_des_cbc_encrypt ();
15333 if ac_fn_c_try_link
"$LINENO"; then :
15334 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15336 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15338 rm -f core conftest.err conftest.
$ac_objext \
15339 conftest
$ac_exeext conftest.
$ac_ext
15340 LIBS
=$ac_check_lib_save_LIBS
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15343 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15344 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15350 if test $have_crypto = yes; then
15352 LIBS
="$CRYPTOLIB $LIBS"
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15355 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15356 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15357 $as_echo_n "(cached) " >&6
15359 ac_check_lib_save_LIBS
=$LIBS
15360 LIBS
="-lk5crypto $LIBS"
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15364 /* Override any GCC internal prototype to avoid an error.
15365 Use char because int might match the return type of a GCC
15366 builtin and then its argument prototype would still apply. */
15370 char mit_des_cbc_encrypt ();
15374 return mit_des_cbc_encrypt ();
15379 if ac_fn_c_try_link
"$LINENO"; then :
15380 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15384 rm -f core conftest.err conftest.
$ac_objext \
15385 conftest
$ac_exeext conftest.
$ac_ext
15386 LIBS
=$ac_check_lib_save_LIBS
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15389 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15390 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15396 if test $have_k5crypto = yes; then
15397 CRYPTOLIB
=-lk5crypto
15398 LIBS
="$CRYPTOLIB $LIBS"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15401 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15402 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15405 ac_check_lib_save_LIBS
=$LIBS
15406 LIBS
="-lkrb5 $LIBS"
15407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15410 /* Override any GCC internal prototype to avoid an error.
15411 Use char because int might match the return type of a GCC
15412 builtin and then its argument prototype would still apply. */
15416 char krb5_init_context ();
15420 return krb5_init_context ();
15425 if ac_fn_c_try_link
"$LINENO"; then :
15426 ac_cv_lib_krb5_krb5_init_context
=yes
15428 ac_cv_lib_krb5_krb5_init_context
=no
15430 rm -f core conftest.err conftest.
$ac_objext \
15431 conftest
$ac_exeext conftest.
$ac_ext
15432 LIBS
=$ac_check_lib_save_LIBS
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15435 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15436 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15442 if test $have_krb5=yes; then
15444 LIBS
="$KRB5LIB $LIBS"
15446 if test "${with_kerberos5}" = no
; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15448 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15449 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15450 $as_echo_n "(cached) " >&6
15452 ac_check_lib_save_LIBS
=$LIBS
15453 LIBS
="-ldes425 $LIBS"
15454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15457 /* Override any GCC internal prototype to avoid an error.
15458 Use char because int might match the return type of a GCC
15459 builtin and then its argument prototype would still apply. */
15463 char des_cbc_encrypt ();
15467 return des_cbc_encrypt ();
15472 if ac_fn_c_try_link
"$LINENO"; then :
15473 ac_cv_lib_des425_des_cbc_encrypt
=yes
15475 ac_cv_lib_des425_des_cbc_encrypt
=no
15477 rm -f core conftest.err conftest.
$ac_objext \
15478 conftest
$ac_exeext conftest.
$ac_ext
15479 LIBS
=$ac_check_lib_save_LIBS
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15482 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15483 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15489 if test $have_des425 = yes; then
15491 LIBS
="$DESLIB $LIBS"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15494 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15495 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15498 ac_check_lib_save_LIBS
=$LIBS
15500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15503 /* Override any GCC internal prototype to avoid an error.
15504 Use char because int might match the return type of a GCC
15505 builtin and then its argument prototype would still apply. */
15509 char des_cbc_encrypt ();
15513 return des_cbc_encrypt ();
15518 if ac_fn_c_try_link
"$LINENO"; then :
15519 ac_cv_lib_des_des_cbc_encrypt
=yes
15521 ac_cv_lib_des_des_cbc_encrypt
=no
15523 rm -f core conftest.err conftest.
$ac_objext \
15524 conftest
$ac_exeext conftest.
$ac_ext
15525 LIBS
=$ac_check_lib_save_LIBS
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15528 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15529 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15535 if test $have_des = yes; then
15537 LIBS
="$DESLIB $LIBS"
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15541 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15542 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15543 $as_echo_n "(cached) " >&6
15545 ac_check_lib_save_LIBS
=$LIBS
15546 LIBS
="-lkrb4 $LIBS"
15547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15550 /* Override any GCC internal prototype to avoid an error.
15551 Use char because int might match the return type of a GCC
15552 builtin and then its argument prototype would still apply. */
15556 char krb_get_cred ();
15560 return krb_get_cred ();
15565 if ac_fn_c_try_link
"$LINENO"; then :
15566 ac_cv_lib_krb4_krb_get_cred
=yes
15568 ac_cv_lib_krb4_krb_get_cred
=no
15570 rm -f core conftest.err conftest.
$ac_objext \
15571 conftest
$ac_exeext conftest.
$ac_ext
15572 LIBS
=$ac_check_lib_save_LIBS
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15575 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15576 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15582 if test $have_krb4 = yes; then
15584 LIBS
="$KRB4LIB $LIBS"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15587 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15588 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15591 ac_check_lib_save_LIBS
=$LIBS
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15596 /* Override any GCC internal prototype to avoid an error.
15597 Use char because int might match the return type of a GCC
15598 builtin and then its argument prototype would still apply. */
15602 char krb_get_cred ();
15606 return krb_get_cred ();
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 ac_cv_lib_krb_krb_get_cred
=yes
15614 ac_cv_lib_krb_krb_get_cred
=no
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15618 LIBS
=$ac_check_lib_save_LIBS
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15621 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15622 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15628 if test $have_krb = yes; then
15630 LIBS
="$KRB4LIB $LIBS"
15635 if test "${with_kerberos5}" != no
; then
15636 for ac_header
in krb5.h
15638 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15639 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15640 cat >>confdefs.h
<<_ACEOF
15641 #define HAVE_KRB5_H 1
15643 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15645 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15647 cat >>confdefs.h
<<_ACEOF
15648 #define HAVE_KRB5_ERROR_TEXT 1
15653 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15655 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15657 cat >>confdefs.h
<<_ACEOF
15658 #define HAVE_KRB5_ERROR_E_TEXT 1
15669 for ac_header
in krb.h
15671 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15672 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15673 cat >>confdefs.h
<<_ACEOF
15674 #define HAVE_KRB_H 1
15678 for ac_header
in kerberosIV
/krb.h
15680 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15681 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15682 cat >>confdefs.h
<<_ACEOF
15683 #define HAVE_KERBEROSIV_KRB_H 1
15687 for ac_header
in kerberos
/krb.h
15689 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15690 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15691 cat >>confdefs.h
<<_ACEOF
15692 #define HAVE_KERBEROS_KRB_H 1
15708 for ac_header
in com_err.h
15710 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15712 cat >>confdefs.h
<<_ACEOF
15713 #define HAVE_COM_ERR_H 1
15731 for ac_func
in $ac_func_list
15733 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15734 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15735 eval as_val
=\$
$as_ac_var
15736 if test "x$as_val" = x
""yes; then :
15737 cat >>confdefs.h
<<_ACEOF
15738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15748 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15749 if test "${emacs_cv_localtime_cache+set}" = set; then :
15750 $as_echo_n "(cached) " >&6
15752 if test x
$ac_cv_func_tzset = xyes
; then
15753 if test "$cross_compiling" = yes; then :
15754 # If we have tzset, assume the worst when cross-compiling.
15755 emacs_cv_localtime_cache
=yes
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15760 char TZ_GMT0[] = "TZ=GMT0";
15761 char TZ_PST8[] = "TZ=PST8";
15764 time_t now = time ((time_t *) 0);
15765 int hour_GMT0, hour_unset;
15766 if (putenv (TZ_GMT0) != 0)
15768 hour_GMT0 = localtime (&now)->tm_hour;
15770 hour_unset = localtime (&now)->tm_hour;
15771 if (putenv (TZ_PST8) != 0)
15773 if (localtime (&now)->tm_hour == hour_GMT0)
15776 if (localtime (&now)->tm_hour != hour_unset)
15781 if ac_fn_c_try_run
"$LINENO"; then :
15782 emacs_cv_localtime_cache
=no
15784 emacs_cv_localtime_cache
=yes
15786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15791 # If we lack tzset, report that localtime does not cache TZ,
15792 # since we can't invalidate the cache if we don't have tzset.
15793 emacs_cv_localtime_cache
=no
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15797 $as_echo "$emacs_cv_localtime_cache" >&6; }
15798 if test $emacs_cv_localtime_cache = yes; then
15800 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15805 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15806 if test "x$ac_cv_func_socket" = x
""yes; then :
15812 if test $ok_so_far = yes; then
15813 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15814 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15822 if test $ok_so_far = yes; then
15823 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15824 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15832 if test $ok_so_far = yes; then
15834 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15839 *-solaris2.4 |
*-solaris2.4.
*)
15840 : ${ac_cv_func_vfork_works=no};;
15843 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15844 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15848 cat >>confdefs.h
<<_ACEOF
15854 for ac_header
in vfork.h
15856 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15857 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15858 cat >>confdefs.h
<<_ACEOF
15859 #define HAVE_VFORK_H 1
15866 for ac_func
in fork vfork
15868 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15869 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15870 eval as_val
=\$
$as_ac_var
15871 if test "x$as_val" = x
""yes; then :
15872 cat >>confdefs.h
<<_ACEOF
15873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879 if test "x$ac_cv_func_fork" = xyes
; then
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15881 $as_echo_n "checking for working fork... " >&6; }
15882 if test "${ac_cv_func_fork_works+set}" = set; then :
15883 $as_echo_n "(cached) " >&6
15885 if test "$cross_compiling" = yes; then :
15886 ac_cv_func_fork_works
=cross
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15890 $ac_includes_default
15895 /* By Ruediger Kuhlmann. */
15896 return fork () < 0;
15902 if ac_fn_c_try_run
"$LINENO"; then :
15903 ac_cv_func_fork_works
=yes
15905 ac_cv_func_fork_works
=no
15907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15913 $as_echo "$ac_cv_func_fork_works" >&6; }
15916 ac_cv_func_fork_works
=$ac_cv_func_fork
15918 if test "x$ac_cv_func_fork_works" = xcross
; then
15920 *-*-amigaos* |
*-*-msdosdjgpp*)
15921 # Override, as these systems have only a dummy fork() stub
15922 ac_cv_func_fork_works
=no
15925 ac_cv_func_fork_works
=yes
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15929 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15931 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15932 if test "x$ac_cv_func_vfork" = xyes
; then
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15934 $as_echo_n "checking for working vfork... " >&6; }
15935 if test "${ac_cv_func_vfork_works+set}" = set; then :
15936 $as_echo_n "(cached) " >&6
15938 if test "$cross_compiling" = yes; then :
15939 ac_cv_func_vfork_works
=cross
15941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 /* Thanks to Paul Eggert for this test. */
15944 $ac_includes_default
15945 #include <sys/wait.h>
15946 #ifdef HAVE_VFORK_H
15947 # include <vfork.h>
15949 /* On some sparc systems, changes by the child to local and incoming
15950 argument registers are propagated back to the parent. The compiler
15951 is told about this with #include <vfork.h>, but some compilers
15952 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15953 static variable whose address is put into a register that is
15954 clobbered by the vfork. */
15957 sparc_address_test (int arg)
15959 sparc_address_test (arg) int arg;
15962 static pid_t child;
15980 pid_t parent = getpid ();
15983 sparc_address_test (0);
15988 /* Here is another test for sparc vfork register problems. This
15989 test uses lots of local variables, at least as many local
15990 variables as main has allocated so far including compiler
15991 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15992 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15993 reuse the register of parent for one of the local variables,
15994 since it will think that parent can't possibly be used any more
15995 in this routine. Assigning to the local variable will thus
15996 munge parent in the parent process. */
15998 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15999 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16000 /* Convince the compiler that p..p7 are live; otherwise, it might
16001 use the same hardware register for all 8 local variables. */
16002 if (p != p1 || p != p2 || p != p3 || p != p4
16003 || p != p5 || p != p6 || p != p7)
16006 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16007 from child file descriptors. If the child closes a descriptor
16008 before it execs or exits, this munges the parent's descriptor
16009 as well. Test for this by closing stdout in the child. */
16010 _exit(close(fileno(stdout)) != 0);
16015 while (wait(&status) != child)
16018 /* Was there some problem with vforking? */
16021 /* Did the child fail? (This shouldn't happen.) */
16024 /* Did the vfork/compiler bug occur? */
16025 || parent != getpid()
16027 /* Did the file descriptor bug occur? */
16028 || fstat(fileno(stdout), &st) != 0
16033 if ac_fn_c_try_run
"$LINENO"; then :
16034 ac_cv_func_vfork_works
=yes
16036 ac_cv_func_vfork_works
=no
16038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16039 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16044 $as_echo "$ac_cv_func_vfork_works" >&6; }
16047 if test "x$ac_cv_func_fork_works" = xcross
; then
16048 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16050 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16053 if test "x$ac_cv_func_vfork_works" = xyes
; then
16055 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16059 $as_echo "#define vfork fork" >>confdefs.h
16062 if test "x$ac_cv_func_fork_works" = xyes
; then
16064 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16069 for ac_func
in snprintf
16071 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16072 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16073 cat >>confdefs.h
<<_ACEOF
16074 #define HAVE_SNPRINTF 1
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16083 $as_echo_n "checking whether GLib is linked in... " >&6; }
16084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16091 g_print ("Hello world");
16096 if ac_fn_c_try_link
"$LINENO"; then :
16101 rm -f core conftest.err conftest.
$ac_objext \
16102 conftest
$ac_exeext conftest.
$ac_ext
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16104 $as_echo "$links_glib" >&6; }
16105 if test "${links_glib}" = "yes"; then
16107 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16109 if test "$HAVE_NS" = no
;then
16110 XGSELOBJ
=xgselect.o
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16116 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16117 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16118 $as_echo_n "(cached) " >&6
16120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <langinfo.h>
16126 char* cs = nl_langinfo(CODESET);
16131 if ac_fn_c_try_link
"$LINENO"; then :
16132 emacs_cv_langinfo_codeset
=yes
16134 emacs_cv_langinfo_codeset
=no
16136 rm -f core conftest.err conftest.
$ac_objext \
16137 conftest
$ac_exeext conftest.
$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16141 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16142 if test $emacs_cv_langinfo_codeset = yes; then
16144 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16149 $as_echo_n "checking for mbstate_t... " >&6; }
16150 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16151 $as_echo_n "(cached) " >&6
16153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 $ac_includes_default
16156 # include <wchar.h>
16160 mbstate_t x; return sizeof x;
16165 if ac_fn_c_try_compile
"$LINENO"; then :
16166 ac_cv_type_mbstate_t
=yes
16168 ac_cv_type_mbstate_t
=no
16170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16173 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16174 if test $ac_cv_type_mbstate_t = yes; then
16176 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16180 $as_echo "#define mbstate_t int" >>confdefs.h
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16185 $as_echo_n "checking for C restricted array declarations... " >&6; }
16186 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16187 $as_echo_n "(cached) " >&6
16189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 void fred (int x[__restrict]);
16200 if ac_fn_c_try_compile
"$LINENO"; then :
16201 emacs_cv_c_restrict_arr
=yes
16203 emacs_cv_c_restrict_arr
=no
16205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16208 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16209 if test "$emacs_cv_c_restrict_arr" = yes; then
16211 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16216 if test "${opsys}" != "mingw32"; then
16218 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16223 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16226 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16227 if test "${opsys}" != "mingw32"; then
16229 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16234 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16240 if test "${opsys}" = "mingw32"; then
16241 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16244 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16249 if test "${opsys}" = "mingw32"; then
16250 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16253 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16258 $as_echo "#define subprocesses 1" >>confdefs.h
16262 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16267 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16270 if test "${opsys}" = "mingw32"; then
16272 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16276 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16280 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16284 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16288 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16292 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16300 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16301 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16307 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16314 irix6-5 | sol2
* | unixware
)
16316 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16321 emacs_broken_SIGIO
=no
16324 hpux
* | irix6-5 | openbsd | sol2
* | unixware | gnu-kfreebsd
)
16325 emacs_broken_SIGIO
=yes
16330 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16336 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16344 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16350 darwin | dragonfly | freebsd | netbsd | openbsd
)
16352 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16358 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16359 *) sound_device
="/dev/dsp" ;;
16363 cat >>confdefs.h
<<_ACEOF
16364 #define DEFAULT_SOUND_DEVICE "$sound_device"
16370 darwin | gnu-linux | gnu-kfreebsd
)
16372 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16379 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16381 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16395 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16397 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16399 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16404 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16406 $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
16408 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16410 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16415 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16417 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16419 $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
16421 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16423 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16428 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16432 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16433 if test "x$ac_cv_func_grantpt" = xyes
; then
16435 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16437 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16439 $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, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
16441 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16442 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY)" >>confdefs.h
16444 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16446 elif test "x$ac_cv_func_getpt" = xyes
; then
16447 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16449 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16452 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16456 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16462 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16464 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16466 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16471 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16473 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16475 $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
16477 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16479 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16484 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
16489 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
16497 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16499 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16502 $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
16511 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16512 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16516 gnu-linux | gnu-kfreebsd
)
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16519 $as_echo_n "checking for signals via characters... " >&6; }
16520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16523 #include <linux/version.h>
16524 #if LINUX_VERSION_CODE < 0x20400
16525 # error "Linux version too old"
16536 if ac_fn_c_try_cpp
"$LINENO"; then :
16537 emacs_signals_via_chars
=yes
16539 emacs_signals_via_chars
=no
16541 rm -f conftest.err conftest.
$ac_ext
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16544 $as_echo "$emacs_signals_via_chars" >&6; }
16545 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16555 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16559 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16563 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16572 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16575 gnu | dragonfly | freebsd | netbsd | openbsd
)
16577 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16579 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16583 gnu-linux | gnu-kfreebsd
)
16584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16599 if ac_fn_c_try_cpp
"$LINENO"; then :
16601 $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
16604 rm -f conftest.err conftest.
$ac_ext
16609 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16619 gnu-linux | gnu-kfreebsd
)
16620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16623 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16624 || defined __alpha__ || defined __mips__ || defined __s390__ \
16625 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16626 || defined __ia64__ || defined __sh__
16629 # error "setjmp not known to work on this arch"
16640 if ac_fn_c_try_cpp
"$LINENO"; then :
16641 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16644 rm -f conftest.err conftest.
$ac_ext
16649 if test x
$GCC = xyes
; then
16650 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16654 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16655 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16661 $as_echo_n "checking for _setjmp... " >&6; }
16662 if test "${emacs_cv_func__setjmp+set}" = set; then :
16663 $as_echo_n "(cached) " >&6
16665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 #include <setjmp.h>
16669 # define _longjmp longjmp
16682 if ac_fn_c_try_link
"$LINENO"; then :
16683 emacs_cv_func__setjmp
=yes
16685 emacs_cv_func__setjmp
=no
16687 rm -f core conftest.err conftest.
$ac_objext \
16688 conftest
$ac_exeext conftest.
$ac_ext
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16691 $as_echo "$emacs_cv_func__setjmp" >&6; }
16692 if test $emacs_cv_func__setjmp = yes; then
16694 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16698 $as_echo_n "checking for sigsetjmp... " >&6; }
16699 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16700 $as_echo_n "(cached) " >&6
16702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 #include <setjmp.h>
16710 if (! sigsetjmp (j, 1))
16716 if ac_fn_c_try_link
"$LINENO"; then :
16717 emacs_cv_func_sigsetjmp
=yes
16719 emacs_cv_func_sigsetjmp
=no
16721 rm -f core conftest.err conftest.
$ac_objext \
16722 conftest
$ac_exeext conftest.
$ac_ext
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16725 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16726 if test $emacs_cv_func_sigsetjmp = yes; then
16728 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16736 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16745 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16758 $as_echo "#define USG /**/" >>confdefs.h
16760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16764 # error "_AIX not defined"
16775 if ac_fn_c_try_cpp
"$LINENO"; then :
16779 $as_echo "#define _AIX /**/" >>confdefs.h
16782 rm -f conftest.err conftest.
$ac_ext
16787 $as_echo "#define CYGWIN 1" >>confdefs.h
16793 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16797 gnu-linux | gnu-kfreebsd
)
16798 $as_echo "#define USG /**/" >>confdefs.h
16801 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16806 $as_echo "#define USG /**/" >>confdefs.h
16809 $as_echo "#define HPUX /**/" >>confdefs.h
16814 $as_echo "#define USG /**/" >>confdefs.h
16816 $as_echo "#define USG5_4 /**/" >>confdefs.h
16819 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16824 $as_echo "#define DOS_NT /**/" >>confdefs.h
16827 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16829 if test "x$ac_enable_checking" != "x" ; then
16831 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16837 $as_echo "#define USG /**/" >>confdefs.h
16839 $as_echo "#define USG5_4 /**/" >>confdefs.h
16842 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16847 $as_echo "#define USG /**/" >>confdefs.h
16849 $as_echo "#define USG5_4 /**/" >>confdefs.h
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16855 $as_echo_n "checking for usable FIONREAD... " >&6; }
16856 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16857 $as_echo_n "(cached) " >&6
16861 emacs_cv_usable_FIONREAD
=no
16865 emacs_cv_usable_FIONREAD
=yes
16869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <sys/types.h>
16872 #include <sys/ioctl.h>
16874 # include <sys/filio.h>
16880 int foo = ioctl (0, FIONREAD, &foo);
16885 if ac_fn_c_try_compile
"$LINENO"; then :
16886 emacs_cv_usable_FIONREAD
=yes
16888 emacs_cv_usable_FIONREAD
=no
16890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16895 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16896 if test $emacs_cv_usable_FIONREAD = yes; then
16898 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16901 if test $emacs_broken_SIGIO = no
; then
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16903 $as_echo_n "checking for usable SIGIO... " >&6; }
16904 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16905 $as_echo_n "(cached) " >&6
16907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16910 #include <signal.h>
16915 int foo = SIGIO | F_SETFL | FASYNC;
16920 if ac_fn_c_try_compile
"$LINENO"; then :
16921 emacs_cv_usable_SIGIO
=yes
16923 emacs_cv_usable_SIGIO
=no
16925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16928 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16929 if test $emacs_cv_usable_SIGIO = yes; then
16931 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16941 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16947 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16953 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16959 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16964 # Set up the CFLAGS for real compilation, so we can substitute it.
16965 CFLAGS
="$REAL_CFLAGS"
16966 CPPFLAGS
="$REAL_CPPFLAGS"
16968 ## Hack to detect a buggy GCC version.
16969 if test "x$GCC" = xyes \
16970 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16971 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16972 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16973 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16976 version
=$PACKAGE_VERSION
16978 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
16980 cat >>confdefs.h
<<_ACEOF
16981 #define COPYRIGHT "$copyright"
16986 ### Specify what sort of things we'll be editing into Makefile and config.h.
16987 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17013 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17014 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17015 ## end of LIBX_BASE, but nothing ever set it.
17020 ## Used in lwlib/Makefile.in.
17029 if test -n "${term_header}"; then
17031 cat >>confdefs.h
<<_ACEOF
17032 #define TERM_HEADER "${term_header}"
17038 cat >>confdefs.h
<<_ACEOF
17039 #define EMACS_CONFIGURATION "${canonical}"
17042 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
17044 cat >>confdefs.h
<<_ACEOF
17045 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17052 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17060 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17062 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17065 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17067 if test "$HAVE_XFT" = "yes"; then
17068 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17069 elif test "$HAVE_FREETYPE" = "yes"; then
17070 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17080 if test "${USE_X_TOOLKIT}" != "none" ; then
17081 WIDGET_OBJ
=widget.o
17083 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17085 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17087 $as_echo "#define USE_LUCID 1" >>confdefs.h
17089 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17091 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17096 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17097 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17101 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17102 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17103 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17107 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17108 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17111 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17117 case "$USE_X_TOOLKIT" in
17118 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17119 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17120 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17124 if test "${opsys}" != "mingw32"; then
17125 if test "$USE_X_TOOLKIT" = "none"; then
17126 LIBXT_OTHER
="\$(LIBXSM)"
17127 OLDXMENU_TARGET
="really-oldXMenu"
17129 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17130 OLDXMENU_TARGET
="really-lwlib"
17135 ## The X Menu stuff is present in the X10 distribution, but missing
17136 ## from X11. If we have X10, just use the installed library;
17137 ## otherwise, use our own copy.
17138 if test "${HAVE_X11}" = "yes" ; then
17140 $as_echo "#define HAVE_X11 1" >>confdefs.h
17143 if test "$USE_X_TOOLKIT" = "none"; then
17144 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17146 OLDXMENU
="\${lwlibdir}/liblw.a"
17148 LIBXMENU
="\$(OLDXMENU)"
17149 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17150 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17152 ## For a syntactically valid Makefile; not actually used for anything.
17153 ## See comments in src/Makefile.in.
17155 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17156 if test "${HAVE_X_WINDOWS}" = "yes"; then
17165 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17178 if test "${HAVE_MENUS}" = "yes" ; then
17180 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17184 if test "${GNU_MALLOC}" = "yes" ; then
17186 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17191 if test "${REL_ALLOC}" = "yes" ; then
17193 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17196 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17200 if test "$opsys" = "cygwin"; then
17201 CYGWIN_OBJ
="sheap.o cygw32.o"
17202 ## Cygwin differs because of its unexec().
17204 POST_ALLOC_OBJ
=lastfile.o
17205 elif test "$opsys" = "mingw32"; then
17208 POST_ALLOC_OBJ
=lastfile.o
17211 PRE_ALLOC_OBJ
=lastfile.o
17218 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17219 # it temporarily reverts them to their pre-pkg-config values,
17220 # because gnulib needs to work with both src (which uses the
17221 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17222 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17223 # and it therefore needs to run in an environment where LIBS does not
17224 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17225 # for some package unrelated to lib-src.
17226 SAVE_CFLAGS
=$CFLAGS
17228 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17229 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17241 LIBC_FATAL_STDERR_
=1
17242 export LIBC_FATAL_STDERR_
17244 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17245 # for constant arguments. Useless!
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17247 $as_echo_n "checking for working alloca.h... " >&6; }
17248 if test "${ac_cv_working_alloca_h+set}" = set; then :
17249 $as_echo_n "(cached) " >&6
17251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 #include <alloca.h>
17257 char *p = (char *) alloca (2 * sizeof (int));
17263 if ac_fn_c_try_link
"$LINENO"; then :
17264 ac_cv_working_alloca_h
=yes
17266 ac_cv_working_alloca_h
=no
17268 rm -f core conftest.err conftest.
$ac_objext \
17269 conftest
$ac_exeext conftest.
$ac_ext
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17272 $as_echo "$ac_cv_working_alloca_h" >&6; }
17273 if test $ac_cv_working_alloca_h = yes; then
17275 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17280 $as_echo_n "checking for alloca... " >&6; }
17281 if test "${ac_cv_func_alloca_works+set}" = set; then :
17282 $as_echo_n "(cached) " >&6
17284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17287 # define alloca __builtin_alloca
17290 # include <malloc.h>
17291 # define alloca _alloca
17293 # ifdef HAVE_ALLOCA_H
17294 # include <alloca.h>
17299 # ifndef alloca /* predefined by HP cc +Olibcalls */
17310 char *p = (char *) alloca (1);
17316 if ac_fn_c_try_link
"$LINENO"; then :
17317 ac_cv_func_alloca_works
=yes
17319 ac_cv_func_alloca_works
=no
17321 rm -f core conftest.err conftest.
$ac_objext \
17322 conftest
$ac_exeext conftest.
$ac_ext
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17325 $as_echo "$ac_cv_func_alloca_works" >&6; }
17327 if test $ac_cv_func_alloca_works = yes; then
17329 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17332 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17333 # that cause trouble. Some versions do not even contain alloca or
17334 # contain a buggy version. If you still want to use their alloca,
17335 # use ar to extract alloca.o from them instead of compiling alloca.c.
17341 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17343 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17347 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17348 if test "${ac_cv_os_cray+set}" = set; then :
17349 $as_echo_n "(cached) " >&6
17351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17353 #if defined CRAY && ! defined CRAY2
17360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17361 $EGREP "webecray" >/dev
/null
2>&1; then :
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17370 $as_echo "$ac_cv_os_cray" >&6; }
17371 if test $ac_cv_os_cray = yes; then
17372 for ac_func
in _getb67 GETB67 getb67
; do
17373 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17374 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17375 eval as_val
=\$
$as_ac_var
17376 if test "x$as_val" = x
""yes; then :
17378 cat >>confdefs.h
<<_ACEOF
17379 #define CRAY_STACKSEG_END $ac_func
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17389 $as_echo_n "checking stack direction for C alloca... " >&6; }
17390 if test "${ac_cv_c_stack_direction+set}" = set; then :
17391 $as_echo_n "(cached) " >&6
17393 if test "$cross_compiling" = yes; then :
17394 ac_cv_c_stack_direction
=0
17396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 $ac_includes_default
17400 find_stack_direction (int *addr, int depth)
17402 int dir, dummy = 0;
17405 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17406 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17407 return dir + dummy;
17411 main (int argc, char **argv)
17413 return find_stack_direction (0, argc + !argv + 20) < 0;
17416 if ac_fn_c_try_run
"$LINENO"; then :
17417 ac_cv_c_stack_direction
=1
17419 ac_cv_c_stack_direction
=-1
17421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17427 $as_echo "$ac_cv_c_stack_direction" >&6; }
17428 cat >>confdefs.h
<<_ACEOF
17429 #define STACK_DIRECTION $ac_cv_c_stack_direction
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17439 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17440 if test "${ac_cv_c_bigendian+set}" = set; then :
17441 $as_echo_n "(cached) " >&6
17443 ac_cv_c_bigendian
=unknown
17444 # See if we're dealing with a universal compiler.
17445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447 #ifndef __APPLE_CC__
17448 not a universal capable compiler
17453 if ac_fn_c_try_compile
"$LINENO"; then :
17455 # Check for potential -arch flags. It is not universal unless
17456 # there are at least two -arch flags with different values.
17459 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17460 if test -n "$ac_prev"; then
17462 i?
86 | x86_64 | ppc | ppc64
)
17463 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17466 ac_cv_c_bigendian
=universal
17472 elif test "x$ac_word" = "x-arch"; then
17477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17478 if test $ac_cv_c_bigendian = unknown
; then
17479 # See if sys/param.h defines the BYTE_ORDER macro.
17480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <sys/types.h>
17483 #include <sys/param.h>
17488 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17489 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17491 bogus endian macros
17498 if ac_fn_c_try_compile
"$LINENO"; then :
17499 # It does; now see whether it defined to BIG_ENDIAN or not.
17500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 #include <sys/types.h>
17503 #include <sys/param.h>
17508 #if BYTE_ORDER != BIG_ENDIAN
17516 if ac_fn_c_try_compile
"$LINENO"; then :
17517 ac_cv_c_bigendian
=yes
17519 ac_cv_c_bigendian
=no
17521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17525 if test $ac_cv_c_bigendian = unknown
; then
17526 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <limits.h>
17534 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17535 bogus endian macros
17542 if ac_fn_c_try_compile
"$LINENO"; then :
17543 # It does; now see whether it defined to _BIG_ENDIAN or not.
17544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #include <limits.h>
17551 #ifndef _BIG_ENDIAN
17559 if ac_fn_c_try_compile
"$LINENO"; then :
17560 ac_cv_c_bigendian
=yes
17562 ac_cv_c_bigendian
=no
17564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17568 if test $ac_cv_c_bigendian = unknown
; then
17569 # Compile a test program.
17570 if test "$cross_compiling" = yes; then :
17571 # Try to guess by grepping values from an object file.
17572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17574 short int ascii_mm[] =
17575 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17576 short int ascii_ii[] =
17577 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17578 int use_ascii (int i) {
17579 return ascii_mm[i] + ascii_ii[i];
17581 short int ebcdic_ii[] =
17582 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17583 short int ebcdic_mm[] =
17584 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17585 int use_ebcdic (int i) {
17586 return ebcdic_mm[i] + ebcdic_ii[i];
17593 return use_ascii (foo) == use_ebcdic (foo);
17598 if ac_fn_c_try_compile
"$LINENO"; then :
17599 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17600 ac_cv_c_bigendian
=yes
17602 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17603 if test "$ac_cv_c_bigendian" = unknown
; then
17604 ac_cv_c_bigendian
=no
17606 # finding both strings is unlikely to happen, but who knows?
17607 ac_cv_c_bigendian
=unknown
17611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 $ac_includes_default
17620 /* Are we little or big endian? From Harbison&Steele. */
17624 char c[sizeof (long int)];
17627 return u.c[sizeof (long int) - 1] == 1;
17633 if ac_fn_c_try_run
"$LINENO"; then :
17634 ac_cv_c_bigendian
=no
17636 ac_cv_c_bigendian
=yes
17638 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17639 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17645 $as_echo "$ac_cv_c_bigendian" >&6; }
17646 case $ac_cv_c_bigendian in #(
17648 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17654 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17658 as_fn_error
"unknown endianness
17659 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17671 GNULIB_EUIDACCESS
=0;
17672 GNULIB_FACCESSAT
=0;
17675 GNULIB_FDATASYNC
=0;
17677 GNULIB_FTRUNCATE
=0;
17679 GNULIB_GETDOMAINNAME
=0;
17680 GNULIB_GETDTABLESIZE
=0;
17681 GNULIB_GETGROUPS
=0;
17682 GNULIB_GETHOSTNAME
=0;
17684 GNULIB_GETLOGIN_R
=0;
17685 GNULIB_GETPAGESIZE
=0;
17686 GNULIB_GETUSERSHELL
=0;
17687 GNULIB_GROUP_MEMBER
=0;
17699 GNULIB_READLINKAT
=0;
17701 GNULIB_SETHOSTNAME
=0;
17704 GNULIB_SYMLINKAT
=0;
17705 GNULIB_TTYNAME_R
=0;
17706 GNULIB_UNISTD_H_NONBLOCKING
=0;
17707 GNULIB_UNISTD_H_SIGPIPE
=0;
17722 HAVE_GETDTABLESIZE
=1;
17724 HAVE_GETHOSTNAME
=1;
17726 HAVE_GETPAGESIZE
=1;
17727 HAVE_GROUP_MEMBER
=1;
17737 HAVE_SETHOSTNAME
=1;
17743 HAVE_DECL_ENVIRON
=1;
17744 HAVE_DECL_FCHDIR
=1;
17745 HAVE_DECL_FDATASYNC
=1;
17746 HAVE_DECL_GETDOMAINNAME
=1;
17747 HAVE_DECL_GETLOGIN_R
=1;
17748 HAVE_DECL_GETPAGESIZE
=1;
17749 HAVE_DECL_GETUSERSHELL
=1;
17750 HAVE_DECL_SETHOSTNAME
=1;
17751 HAVE_DECL_TTYNAME_R
=1;
17753 HAVE_SYS_PARAM_H
=0;
17758 REPLACE_FCHOWNAT
=0;
17759 REPLACE_FTRUNCATE
=0;
17761 REPLACE_GETDOMAINNAME
=0;
17762 REPLACE_GETLOGIN_R
=0;
17763 REPLACE_GETGROUPS
=0;
17764 REPLACE_GETPAGESIZE
=0;
17773 REPLACE_READLINK
=0;
17777 REPLACE_TTYNAME_R
=0;
17779 REPLACE_UNLINKAT
=0;
17782 UNISTD_H_HAVE_WINSOCK2_H
=0;
17783 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17789 GNULIB_REWINDDIR
=0;
17792 GNULIB_FDOPENDIR
=0;
17794 GNULIB_ALPHASORT
=0;
17800 HAVE_DECL_FDOPENDIR
=1;
17805 REPLACE_CLOSEDIR
=0;
17807 REPLACE_FDOPENDIR
=0;
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17812 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17813 if test "${gl_cv_have_include_next+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17816 rm -rf conftestd1a conftestd1b conftestd2
17817 mkdir conftestd1a conftestd1b conftestd2
17818 cat <<EOF > conftestd1a/conftest.h
17819 #define DEFINED_IN_CONFTESTD1
17820 #include_next <conftest.h>
17821 #ifdef DEFINED_IN_CONFTESTD2
17824 #error "include_next doesn't work"
17827 cat <<EOF > conftestd1b/conftest.h
17828 #define DEFINED_IN_CONFTESTD1
17830 #include_next <conftest.h>
17831 #ifdef DEFINED_IN_CONFTESTD2
17834 #error "include_next doesn't work"
17837 cat <<EOF > conftestd2/conftest.h
17838 #ifndef DEFINED_IN_CONFTESTD1
17839 #error "include_next test doesn't work"
17841 #define DEFINED_IN_CONFTESTD2
17843 gl_save_CPPFLAGS
="$CPPFLAGS"
17844 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847 #include <conftest.h>
17849 if ac_fn_c_try_compile
"$LINENO"; then :
17850 gl_cv_have_include_next
=yes
17852 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <conftest.h>
17857 if ac_fn_c_try_compile
"$LINENO"; then :
17858 gl_cv_have_include_next
=buggy
17860 gl_cv_have_include_next
=no
17862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17866 CPPFLAGS
="$gl_save_CPPFLAGS"
17867 rm -rf conftestd1a conftestd1b conftestd2
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17871 $as_echo "$gl_cv_have_include_next" >&6; }
17872 PRAGMA_SYSTEM_HEADER
=
17873 if test $gl_cv_have_include_next = yes; then
17874 INCLUDE_NEXT
=include_next
17875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17876 if test -n "$GCC"; then
17877 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17880 if test $gl_cv_have_include_next = buggy
; then
17881 INCLUDE_NEXT
=include
17882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17884 INCLUDE_NEXT
=include
17885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17892 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17893 if test "${gl_cv_pragma_columns+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17905 $EGREP "choke me" >/dev
/null
2>&1; then :
17906 gl_cv_pragma_columns
=yes
17908 gl_cv_pragma_columns
=no
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17915 $as_echo "$gl_cv_pragma_columns" >&6; }
17916 if test $gl_cv_pragma_columns = yes; then
17917 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17927 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17928 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17932 /* end confdefs.h. */
17933 /* On HP-UX before 11.23, strtold returns a struct instead of
17934 long double. Reject implementations like that, by requiring
17935 compatibility with the C99 prototype. */
17936 #include <stdlib.h>
17937 static long double (*p) (char const *, char **) = strtold;
17939 test (char const *nptr, char **endptr)
17942 r = strtold (nptr, endptr);
17948 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17953 if ac_fn_c_try_link
"$LINENO"; then :
17954 gl_cv_func_c99_strtold
=yes
17956 gl_cv_func_c99_strtold
=no
17958 rm -f core conftest.err conftest.
$ac_objext \
17959 conftest
$ac_exeext conftest.
$ac_ext
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17962 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17963 if test $gl_cv_func_c99_strtold = yes; then
17965 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17977 $as_echo_n "checking if environ is properly declared... " >&6; }
17978 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17979 $as_echo_n "(cached) " >&6
17982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17985 #include <unistd.h>
17987 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17988 #include <stdlib.h>
17990 extern struct { int foo; } environ;
17999 if ac_fn_c_try_compile
"$LINENO"; then :
18000 gt_cv_var_environ_declaration
=no
18002 gt_cv_var_environ_declaration
=yes
18004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18008 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18009 if test $gt_cv_var_environ_declaration = yes; then
18011 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18016 if test $gt_cv_var_environ_declaration != yes; then
18017 HAVE_DECL_ENVIRON
=0
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18023 $as_echo_n "checking for complete errno.h... " >&6; }
18024 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18025 $as_echo_n "(cached) " >&6
18028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18032 #if !defined ETXTBSY
18035 #if !defined ENOMSG
18041 #if !defined ENOLINK
18044 #if !defined EPROTO
18047 #if !defined EMULTIHOP
18050 #if !defined EBADMSG
18053 #if !defined EOVERFLOW
18056 #if !defined ENOTSUP
18059 #if !defined ENETRESET
18062 #if !defined ECONNABORTED
18065 #if !defined ESTALE
18068 #if !defined EDQUOT
18071 #if !defined ECANCELED
18074 #if !defined EOWNERDEAD
18077 #if !defined ENOTRECOVERABLE
18080 #if !defined EILSEQ
18085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18086 $EGREP "booboo" >/dev
/null
2>&1; then :
18087 gl_cv_header_errno_h_complete
=no
18089 gl_cv_header_errno_h_complete
=yes
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18096 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18097 if test $gl_cv_header_errno_h_complete = yes; then
18108 if test $gl_cv_have_include_next = yes; then
18109 gl_cv_next_errno_h
='<'errno.h
'>'
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18112 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18113 if test "${gl_cv_next_errno_h+set}" = set; then :
18114 $as_echo_n "(cached) " >&6
18117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18123 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18124 *) gl_absname_cpp
="$ac_cpp" ;;
18129 gl_dirsep_regex
='[/\\]'
18132 gl_dirsep_regex
='\/'
18135 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18137 gl_header_literal_regex
=`echo 'errno.h' \
18138 | sed -e "$gl_make_literal_regex_sed"`
18139 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18145 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18146 sed -n "$gl_absolute_header_sed"`'"'
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18151 $as_echo "$gl_cv_next_errno_h" >&6; }
18153 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18155 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18157 gl_next_as_first_directive
='<'errno.h
'>'
18159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18160 gl_next_as_first_directive
=$gl_cv_next_errno_h
18162 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18170 if test -n "$ERRNO_H"; then
18171 GL_GENERATE_ERRNO_H_TRUE
=
18172 GL_GENERATE_ERRNO_H_FALSE
='#'
18174 GL_GENERATE_ERRNO_H_TRUE
='#'
18175 GL_GENERATE_ERRNO_H_FALSE
=
18179 if test -n "$ERRNO_H"; then
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18181 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18182 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18196 $EGREP "yes" >/dev
/null
2>&1; then :
18197 gl_cv_header_errno_h_EMULTIHOP
=yes
18199 gl_cv_header_errno_h_EMULTIHOP
=no
18203 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18207 #define _XOPEN_SOURCE_EXTENDED 1
18214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18215 $EGREP "yes" >/dev
/null
2>&1; then :
18216 gl_cv_header_errno_h_EMULTIHOP
=hidden
18220 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18221 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18222 #define _XOPEN_SOURCE_EXTENDED 1
18224 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18226 #include <stdlib.h>
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18236 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18237 case $gl_cv_header_errno_h_EMULTIHOP in
18239 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18242 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18250 if test -n "$ERRNO_H"; then
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18252 $as_echo_n "checking for ENOLINK value... " >&6; }
18253 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18254 $as_echo_n "(cached) " >&6
18257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18267 $EGREP "yes" >/dev
/null
2>&1; then :
18268 gl_cv_header_errno_h_ENOLINK
=yes
18270 gl_cv_header_errno_h_ENOLINK
=no
18274 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18278 #define _XOPEN_SOURCE_EXTENDED 1
18285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18286 $EGREP "yes" >/dev
/null
2>&1; then :
18287 gl_cv_header_errno_h_ENOLINK
=hidden
18291 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18292 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18293 #define _XOPEN_SOURCE_EXTENDED 1
18295 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18297 #include <stdlib.h>
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18307 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18308 case $gl_cv_header_errno_h_ENOLINK in
18310 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18313 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18321 if test -n "$ERRNO_H"; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18323 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18324 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18325 $as_echo_n "(cached) " >&6
18328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18338 $EGREP "yes" >/dev
/null
2>&1; then :
18339 gl_cv_header_errno_h_EOVERFLOW
=yes
18341 gl_cv_header_errno_h_EOVERFLOW
=no
18345 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 #define _XOPEN_SOURCE_EXTENDED 1
18356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18357 $EGREP "yes" >/dev
/null
2>&1; then :
18358 gl_cv_header_errno_h_EOVERFLOW
=hidden
18362 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18363 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18364 #define _XOPEN_SOURCE_EXTENDED 1
18366 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18368 #include <stdlib.h>
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18378 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18379 case $gl_cv_header_errno_h_EOVERFLOW in
18381 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18384 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18401 GNULIB_NONBLOCKING
=0;
18413 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18414 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18418 cat >>confdefs.h
<<_ACEOF
18424 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18425 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18431 cat >>confdefs.h
<<_ACEOF
18432 #define HAVE_DECL_FDATASYNC $ac_have_decl
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18438 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18439 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18440 $as_echo_n "(cached) " >&6
18442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18445 #include <sys/types.h>
18446 #include <sys/stat.h>
18450 struct stat s; s.st_dm_mode;
18455 if ac_fn_c_try_compile
"$LINENO"; then :
18456 ac_cv_struct_st_dm_mode
=yes
18458 ac_cv_struct_st_dm_mode
=no
18460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18463 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18465 if test $ac_cv_struct_st_dm_mode = yes; then
18467 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18472 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18473 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18479 cat >>confdefs.h
<<_ACEOF
18480 #define HAVE_DECL_STRMODE $ac_have_decl
18500 GNULIB_UTIMENSAT
=0;
18514 REPLACE_FUTIMENS
=0;
18520 REPLACE_UTIMENSAT
=0;
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18524 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18525 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18528 rm -f conftest.sym conftest.
file
18529 echo >conftest.
file
18530 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18531 if test "$cross_compiling" = yes; then :
18533 # Guess yes on glibc systems.
18534 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18535 # If we don't know, assume the worst.
18536 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 $ac_includes_default
18547 /* Linux will dereference the symlink and fail, as required by
18548 POSIX. That is better in the sense that it means we will not
18549 have to compile and use the lstat wrapper. */
18550 return lstat ("conftest.sym/", &sbuf) == 0;
18556 if ac_fn_c_try_run
"$LINENO"; then :
18557 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18559 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18566 # If the 'ln -s' command failed, then we probably don't even
18567 # have an lstat function.
18568 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18570 rm -f conftest.sym conftest.
file
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18574 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18575 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18578 cat >>confdefs.h
<<_ACEOF
18579 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18592 GNULIB_CALLOC_POSIX
=0;
18593 GNULIB_CANONICALIZE_FILE_NAME
=0;
18594 GNULIB_GETLOADAVG
=0;
18595 GNULIB_GETSUBOPT
=0;
18597 GNULIB_MALLOC_POSIX
=0;
18601 GNULIB_MKOSTEMPS
=0;
18604 GNULIB_POSIX_OPENPT
=0;
18606 GNULIB_PTSNAME_R
=0;
18610 GNULIB_REALLOC_POSIX
=0;
18613 GNULIB_SECURE_GETENV
=0;
18618 GNULIB_SYSTEM_POSIX
=0;
18624 HAVE_CANONICALIZE_FILE_NAME
=1;
18625 HAVE_DECL_GETLOADAVG
=1;
18633 HAVE_POSIX_OPENPT
=1;
18641 HAVE_SECURE_GETENV
=1;
18643 HAVE_DECL_SETENV
=1;
18647 HAVE_STRUCT_RANDOM_DATA
=1;
18648 HAVE_SYS_LOADAVG_H
=0;
18650 HAVE_DECL_UNSETENV
=1;
18652 REPLACE_CANONICALIZE_FILE_NAME
=0;
18657 REPLACE_PTSNAME_R
=0;
18659 REPLACE_RANDOM_R
=0;
18661 REPLACE_REALPATH
=0;
18664 REPLACE_UNSETENV
=0;
18682 if test $gl_cv_have_include_next = yes; then
18683 gl_cv_next_getopt_h
='<'getopt.h
'>'
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18686 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18687 if test "${gl_cv_next_getopt_h+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18691 if test $ac_cv_header_getopt_h = yes; then
18694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18696 #include <getopt.h>
18700 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18701 *) gl_absname_cpp
="$ac_cpp" ;;
18706 gl_dirsep_regex
='[/\\]'
18709 gl_dirsep_regex
='\/'
18712 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18714 gl_header_literal_regex
=`echo 'getopt.h' \
18715 | sed -e "$gl_make_literal_regex_sed"`
18716 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18717 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18722 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18723 sed -n "$gl_absolute_header_sed"`'"'
18725 gl_cv_next_getopt_h
='<'getopt.h
'>'
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18731 $as_echo "$gl_cv_next_getopt_h" >&6; }
18733 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18735 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18737 gl_next_as_first_directive
='<'getopt.h
'>'
18739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18740 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18742 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18747 if test $ac_cv_header_getopt_h = yes; then
18756 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18757 for ac_header
in getopt.h
18759 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18760 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18761 cat >>confdefs.h
<<_ACEOF
18762 #define HAVE_GETOPT_H 1
18766 gl_replace_getopt
=yes
18773 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18774 for ac_func
in getopt_long_only
18776 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18777 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18778 cat >>confdefs.h
<<_ACEOF
18779 #define HAVE_GETOPT_LONG_ONLY 1
18783 gl_replace_getopt
=yes
18789 if test -z "$gl_replace_getopt"; then
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18791 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18792 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18793 $as_echo_n "(cached) " >&6
18796 if test $cross_compiling = no
; then
18797 if test "$cross_compiling" = yes; then :
18798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18800 as_fn_error
"cannot run test program while cross compiling
18801 See \`config.log' for more details." "$LINENO" 5; }
18803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 #include <unistd.h>
18807 #include <stdlib.h>
18808 #include <string.h>
18813 static char program[] = "program";
18814 static char a[] = "-a";
18815 static char foo[] = "foo";
18816 static char bar[] = "bar";
18817 char *argv[] = { program, a, foo, bar, NULL };
18820 c = getopt (4, argv, "ab");
18823 c = getopt (4, argv, "ab");
18826 if (!(optind == 2))
18832 if ac_fn_c_try_run
"$LINENO"; then :
18833 gl_cv_func_getopt_posix
=maybe
18835 gl_cv_func_getopt_posix
=no
18837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18841 if test $gl_cv_func_getopt_posix = maybe
; then
18842 if test "$cross_compiling" = yes; then :
18843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18845 as_fn_error
"cannot run test program while cross compiling
18846 See \`config.log' for more details." "$LINENO" 5; }
18848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h. */
18851 #include <unistd.h>
18852 #include <stdlib.h>
18853 #include <string.h>
18858 static char program[] = "program";
18859 static char donald[] = "donald";
18860 static char p[] = "-p";
18861 static char billy[] = "billy";
18862 static char duck[] = "duck";
18863 static char a[] = "-a";
18864 static char bar[] = "bar";
18865 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18868 c = getopt (7, argv, "+abp:q:");
18871 if (!(strcmp (argv[0], "program") == 0))
18873 if (!(strcmp (argv[1], "donald") == 0))
18875 if (!(strcmp (argv[2], "-p") == 0))
18877 if (!(strcmp (argv[3], "billy") == 0))
18879 if (!(strcmp (argv[4], "duck") == 0))
18881 if (!(strcmp (argv[5], "-a") == 0))
18883 if (!(strcmp (argv[6], "bar") == 0))
18885 if (!(optind == 1))
18891 if ac_fn_c_try_run
"$LINENO"; then :
18892 gl_cv_func_getopt_posix
=maybe
18894 gl_cv_func_getopt_posix
=no
18896 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18897 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18901 if test $gl_cv_func_getopt_posix = maybe
; then
18902 if test "$cross_compiling" = yes; then :
18903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18905 as_fn_error
"cannot run test program while cross compiling
18906 See \`config.log' for more details." "$LINENO" 5; }
18908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 #include <unistd.h>
18912 #include <stdlib.h>
18913 #include <string.h>
18918 static char program[] = "program";
18919 static char ab[] = "-ab";
18920 char *argv[3] = { program, ab, NULL };
18921 if (getopt (2, argv, "ab:") != 'a')
18923 if (getopt (2, argv, "ab:") != '?')
18933 if ac_fn_c_try_run
"$LINENO"; then :
18934 gl_cv_func_getopt_posix
=yes
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
18945 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
18946 *) gl_cv_func_getopt_posix
="guessing yes";;
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18952 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18953 case "$gl_cv_func_getopt_posix" in
18954 *no
) gl_replace_getopt
=yes ;;
18958 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
18960 $as_echo_n "checking for working GNU getopt function... " >&6; }
18961 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18964 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
18965 # optstring is necessary for programs like m4 that have POSIX-mandated
18966 # semantics for supporting options interspersed with files.
18967 # Also, since getopt_long is a GNU extension, we require optind=0.
18968 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
18969 # so take care to revert to the correct (non-)export state.
18970 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
18971 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
18972 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
18973 x
) gl_had_POSIXLY_CORRECT
=yes ;;
18974 *) gl_had_POSIXLY_CORRECT
= ;;
18977 export POSIXLY_CORRECT
18978 if test "$cross_compiling" = yes; then :
18979 gl_cv_func_getopt_gnu
="guessing no"
18982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984 #include <getopt.h>
18985 #include <stddef.h>
18986 #include <string.h>
18988 #include <stdlib.h>
18989 #if defined __MACH__ && defined __APPLE__
18990 /* Avoid a crash on Mac OS X. */
18991 #include <mach/mach.h>
18992 #include <mach/mach_error.h>
18993 #include <mach/thread_status.h>
18994 #include <mach/exception.h>
18995 #include <mach/task.h>
18996 #include <pthread.h>
18997 /* The exception port on which our thread listens. */
18998 static mach_port_t our_exception_port;
18999 /* The main function of the thread listening for exceptions of type
19002 mach_exception_thread (void *arg)
19004 /* Buffer for a message to be received. */
19006 mach_msg_header_t head;
19007 mach_msg_body_t msgh_body;
19010 mach_msg_return_t retval;
19011 /* Wait for a message on the exception port. */
19012 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19013 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19014 if (retval != MACH_MSG_SUCCESS)
19019 nocrash_init (void)
19021 mach_port_t self = mach_task_self ();
19022 /* Allocate a port on which the thread shall listen for exceptions. */
19023 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19025 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19026 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19027 MACH_MSG_TYPE_MAKE_SEND)
19029 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19031 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19032 /* Create the thread listening on the exception port. */
19033 pthread_attr_t attr;
19035 if (pthread_attr_init (&attr) == 0
19036 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19037 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19038 pthread_attr_destroy (&attr);
19039 /* Replace the exception port info for these exceptions with our own.
19040 Note that we replace the exception port for the entire task, not only
19041 for a particular thread. This has the effect that when our exception
19042 port gets the message, the thread specific exception port has already
19043 been asked, and we don't need to bother about it.
19044 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19045 task_set_exception_ports (self, mask, our_exception_port,
19046 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19051 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19052 /* Avoid a crash on native Windows. */
19053 #define WIN32_LEAN_AND_MEAN
19054 #include <windows.h>
19055 #include <winerror.h>
19057 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19059 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19061 case EXCEPTION_ACCESS_VIOLATION:
19062 case EXCEPTION_IN_PAGE_ERROR:
19063 case EXCEPTION_STACK_OVERFLOW:
19064 case EXCEPTION_GUARD_PAGE:
19065 case EXCEPTION_PRIV_INSTRUCTION:
19066 case EXCEPTION_ILLEGAL_INSTRUCTION:
19067 case EXCEPTION_DATATYPE_MISALIGNMENT:
19068 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19069 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19072 return EXCEPTION_CONTINUE_SEARCH;
19075 nocrash_init (void)
19077 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19080 /* Avoid a crash on POSIX systems. */
19081 #include <signal.h>
19082 /* A POSIX signal handler. */
19084 exception_handler (int sig)
19089 nocrash_init (void)
19092 signal (SIGSEGV, exception_handler);
19095 signal (SIGBUS, exception_handler);
19109 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19110 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19111 OSF/1 5.1, Solaris 10. */
19113 static char conftest[] = "conftest";
19114 static char plus[] = "-+";
19115 char *argv[3] = { conftest, plus, NULL };
19117 if (getopt (2, argv, "+a") != '?')
19120 /* This code succeeds on glibc 2.8, mingw,
19121 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19122 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19124 static char program[] = "program";
19125 static char p[] = "-p";
19126 static char foo[] = "foo";
19127 static char bar[] = "bar";
19128 char *argv[] = { program, p, foo, bar, NULL };
19131 if (getopt (4, argv, "p::") != 'p')
19133 else if (optarg != NULL)
19135 else if (getopt (4, argv, "p::") != -1)
19137 else if (optind != 2)
19140 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19142 static char program[] = "program";
19143 static char foo[] = "foo";
19144 static char p[] = "-p";
19145 char *argv[] = { program, foo, p, NULL };
19147 if (getopt (3, argv, "-p") != 1)
19149 else if (getopt (3, argv, "-p") != 'p')
19152 /* This code fails on glibc 2.11. */
19154 static char program[] = "program";
19155 static char b[] = "-b";
19156 static char a[] = "-a";
19157 char *argv[] = { program, b, a, NULL };
19158 optind = opterr = 0;
19159 if (getopt (3, argv, "+:a:b") != 'b')
19161 else if (getopt (3, argv, "+:a:b") != ':')
19164 /* This code dumps core on glibc 2.14. */
19166 static char program[] = "program";
19167 static char w[] = "-W";
19168 static char dummy[] = "dummy";
19169 char *argv[] = { program, w, dummy, NULL };
19170 optind = opterr = 1;
19171 if (getopt (3, argv, "W;") != 'W')
19180 if ac_fn_c_try_run
"$LINENO"; then :
19181 gl_cv_func_getopt_gnu
=yes
19183 gl_cv_func_getopt_gnu
=no
19185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19189 case $gl_had_POSIXLY_CORRECT in
19191 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19192 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19197 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19198 if test "$gl_cv_func_getopt_gnu" != yes; then
19199 gl_replace_getopt
=yes
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19202 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19203 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19204 $as_echo_n "(cached) " >&6
19206 if test "$cross_compiling" = yes; then :
19208 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19209 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19214 /* end confdefs.h. */
19215 #include <getopt.h>
19216 #include <stddef.h>
19217 #include <string.h>
19222 static const struct option long_options[] =
19224 { "xtremely-",no_argument, NULL, 1003 },
19225 { "xtra", no_argument, NULL, 1001 },
19226 { "xtreme", no_argument, NULL, 1002 },
19227 { "xtremely", no_argument, NULL, 1003 },
19228 { NULL, 0, NULL, 0 }
19230 /* This code fails on OpenBSD 5.0. */
19232 static char program[] = "program";
19233 static char xtremel[] = "--xtremel";
19234 char *argv[] = { program, xtremel, NULL };
19236 optind = 1; opterr = 0;
19237 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19246 if ac_fn_c_try_run
"$LINENO"; then :
19247 gl_cv_func_getopt_long_gnu
=yes
19249 gl_cv_func_getopt_long_gnu
=no
19251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19258 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19259 case "$gl_cv_func_getopt_long_gnu" in
19261 *) gl_replace_getopt
=yes ;;
19272 if test -n "$gl_replace_getopt"; then
19276 if test $REPLACE_GETOPT = 1; then
19280 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19286 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19287 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19293 cat >>confdefs.h
<<_ACEOF
19294 #define HAVE_DECL_GETENV $ac_have_decl
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19303 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19304 if test "${ac_cv_c_restrict+set}" = set; then :
19305 $as_echo_n "(cached) " >&6
19307 ac_cv_c_restrict
=no
19308 # The order here caters to the fact that C++ does not require restrict.
19309 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19312 typedef int * int_ptr;
19313 int foo (int_ptr $ac_kw ip) {
19320 int * $ac_kw t = s;
19327 if ac_fn_c_try_compile
"$LINENO"; then :
19328 ac_cv_c_restrict
=$ac_kw
19330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19331 test "$ac_cv_c_restrict" != no
&& break
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19336 $as_echo "$ac_cv_c_restrict" >&6; }
19338 case $ac_cv_c_restrict in
19340 no
) $as_echo "#define restrict /**/" >>confdefs.h
19342 *) cat >>confdefs.h
<<_ACEOF
19343 #define restrict $ac_cv_c_restrict
19349 GNULIB_GETTIMEOFDAY
=0;
19350 HAVE_GETTIMEOFDAY
=1;
19351 HAVE_STRUCT_TIMEVAL
=1;
19353 REPLACE_GETTIMEOFDAY
=0;
19354 REPLACE_STRUCT_TIMEVAL
=0;
19371 if test $gl_cv_have_include_next = yes; then
19372 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19375 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19376 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19377 $as_echo_n "(cached) " >&6
19380 if test $ac_cv_header_sys_time_h = yes; then
19383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19385 #include <sys/time.h>
19389 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19390 *) gl_absname_cpp
="$ac_cpp" ;;
19395 gl_dirsep_regex
='[/\\]'
19398 gl_dirsep_regex
='\/'
19401 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19403 gl_header_literal_regex
=`echo 'sys/time.h' \
19404 | sed -e "$gl_make_literal_regex_sed"`
19405 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19406 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19411 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19412 sed -n "$gl_absolute_header_sed"`'"'
19414 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19420 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19422 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19424 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19425 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19426 gl_next_as_first_directive
='<'sys
/time.h
'>'
19428 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19429 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19431 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19437 if test $ac_cv_header_sys_time_h != yes; then
19445 if test $ac_cv_header_sys_socket_h != yes; then
19446 for ac_header
in winsock2.h
19448 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19449 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19450 cat >>confdefs.h
<<_ACEOF
19451 #define HAVE_WINSOCK2_H 1
19459 if test "$ac_cv_header_winsock2_h" = yes; then
19461 UNISTD_H_HAVE_WINSOCK2_H
=1
19462 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19469 $as_echo_n "checking for struct timeval... " >&6; }
19470 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19471 $as_echo_n "(cached) " >&6
19473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475 #if HAVE_SYS_TIME_H
19476 #include <sys/time.h>
19479 #if HAVE_WINSOCK2_H
19480 # include <winsock2.h>
19486 static struct timeval x; x.tv_sec = x.tv_usec;
19491 if ac_fn_c_try_compile
"$LINENO"; then :
19492 gl_cv_sys_struct_timeval
=yes
19494 gl_cv_sys_struct_timeval
=no
19496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19500 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19501 if test $gl_cv_sys_struct_timeval != yes; then
19502 HAVE_STRUCT_TIMEVAL
=0
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19505 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19506 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19507 $as_echo_n "(cached) " >&6
19509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h. */
19511 #if HAVE_SYS_TIME_H
19512 #include <sys/time.h>
19515 #if HAVE_WINSOCK2_H
19516 # include <winsock2.h>
19522 static struct timeval x;
19523 typedef int verify_tv_sec_type[
19524 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19531 if ac_fn_c_try_compile
"$LINENO"; then :
19532 gl_cv_sys_struct_timeval_tv_sec
=yes
19534 gl_cv_sys_struct_timeval_tv_sec
=no
19536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19540 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19541 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19542 REPLACE_STRUCT_TIMEVAL
=1
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19553 $as_echo_n "checking for unsigned long long int... " >&6; }
19554 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19555 $as_echo_n "(cached) " >&6
19557 ac_cv_type_unsigned_long_long_int
=yes
19558 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19562 /* For now, do not test the preprocessor; as of 2007 there are too many
19563 implementations with broken preprocessors. Perhaps this can
19564 be revisited in 2012. In the meantime, code should not expect
19565 #if to work with literals wider than 32 bits. */
19566 /* Test literals. */
19567 long long int ll = 9223372036854775807ll;
19568 long long int nll = -9223372036854775807LL;
19569 unsigned long long int ull = 18446744073709551615ULL;
19570 /* Test constant expressions. */
19571 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19573 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19579 /* Test availability of runtime routines for shift and division. */
19580 long long int llmax = 9223372036854775807ll;
19581 unsigned long long int ullmax = 18446744073709551615ull;
19582 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19583 | (llmax / ll) | (llmax % ll)
19584 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19585 | (ullmax / ull) | (ullmax % ull));
19591 if ac_fn_c_try_link
"$LINENO"; then :
19594 ac_cv_type_unsigned_long_long_int
=no
19596 rm -f core conftest.err conftest.
$ac_objext \
19597 conftest
$ac_exeext conftest.
$ac_ext
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19601 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19602 if test $ac_cv_type_unsigned_long_long_int = yes; then
19604 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19611 $as_echo_n "checking for long long int... " >&6; }
19612 if test "${ac_cv_type_long_long_int+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19615 ac_cv_type_long_long_int
=yes
19616 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19617 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19618 if test $ac_cv_type_long_long_int = yes; then
19619 if test "$cross_compiling" = yes; then :
19622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624 #include <limits.h>
19627 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19628 # define LLONG_MAX (HALF - 1 + HALF)
19633 long long int n = 1;
19637 long long int m = n << i;
19640 if (LLONG_MAX / 2 < m)
19648 if ac_fn_c_try_run
"$LINENO"; then :
19651 ac_cv_type_long_long_int
=no
19653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19661 $as_echo "$ac_cv_type_long_long_int" >&6; }
19662 if test $ac_cv_type_long_long_int = yes; then
19664 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19673 gl_cv_c_multiarch
=no
19674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19675 /* end confdefs.h. */
19676 #ifndef __APPLE_CC__
19677 not a universal capable compiler
19682 if ac_fn_c_try_compile
"$LINENO"; then :
19686 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19687 if test -n "$prev"; then
19689 i?
86 | x86_64 | ppc | ppc64
)
19690 if test -z "$arch" ||
test "$arch" = "$word"; then
19693 gl_cv_c_multiarch
=yes
19699 if test "x$word" = "x-arch"; then
19706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19707 if test $gl_cv_c_multiarch = yes; then
19708 APPLE_UNIVERSAL_BUILD
=1
19710 APPLE_UNIVERSAL_BUILD
=0
19717 if test $ac_cv_type_long_long_int = yes; then
19718 HAVE_LONG_LONG_INT
=1
19720 HAVE_LONG_LONG_INT
=0
19724 if test $ac_cv_type_unsigned_long_long_int = yes; then
19725 HAVE_UNSIGNED_LONG_LONG_INT
=1
19727 HAVE_UNSIGNED_LONG_LONG_INT
=0
19732 if test $ac_cv_header_wchar_h = yes; then
19739 if test $ac_cv_header_inttypes_h = yes; then
19746 if test $ac_cv_header_sys_types_h = yes; then
19762 if test $gl_cv_have_include_next = yes; then
19763 gl_cv_next_stdint_h
='<'stdint.h
'>'
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19766 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19767 if test "${gl_cv_next_stdint_h+set}" = set; then :
19768 $as_echo_n "(cached) " >&6
19771 if test $ac_cv_header_stdint_h = yes; then
19774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19776 #include <stdint.h>
19780 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19781 *) gl_absname_cpp
="$ac_cpp" ;;
19786 gl_dirsep_regex
='[/\\]'
19789 gl_dirsep_regex
='\/'
19792 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19794 gl_header_literal_regex
=`echo 'stdint.h' \
19795 | sed -e "$gl_make_literal_regex_sed"`
19796 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19802 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19803 sed -n "$gl_absolute_header_sed"`'"'
19805 gl_cv_next_stdint_h
='<'stdint.h
'>'
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19811 $as_echo "$gl_cv_next_stdint_h" >&6; }
19813 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19815 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19816 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19817 gl_next_as_first_directive
='<'stdint.h
'>'
19819 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19820 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19822 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19827 if test $ac_cv_header_stdint_h = yes; then
19834 if test $ac_cv_header_stdint_h = yes; then
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19836 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19837 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19838 $as_echo_n "(cached) " >&6
19840 gl_cv_header_working_stdint_h
=no
19841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h. */
19845 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19846 #include <stdint.h>
19847 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19848 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19849 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19853 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19854 included before <wchar.h>. */
19855 #include <stddef.h>
19856 #include <signal.h>
19858 # include <stdio.h>
19860 # include <wchar.h>
19865 int8_t a1 = INT8_MAX;
19866 int8_t a1min = INT8_MIN;
19869 int16_t a2 = INT16_MAX;
19870 int16_t a2min = INT16_MIN;
19873 int32_t a3 = INT32_MAX;
19874 int32_t a3min = INT32_MIN;
19877 int64_t a4 = INT64_MAX;
19878 int64_t a4min = INT64_MIN;
19881 uint8_t b1 = UINT8_MAX;
19883 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19886 uint16_t b2 = UINT16_MAX;
19889 uint32_t b3 = UINT32_MAX;
19892 uint64_t b4 = UINT64_MAX;
19894 int_least8_t c1 = INT8_C (0x7f);
19895 int_least8_t c1max = INT_LEAST8_MAX;
19896 int_least8_t c1min = INT_LEAST8_MIN;
19897 int_least16_t c2 = INT16_C (0x7fff);
19898 int_least16_t c2max = INT_LEAST16_MAX;
19899 int_least16_t c2min = INT_LEAST16_MIN;
19900 int_least32_t c3 = INT32_C (0x7fffffff);
19901 int_least32_t c3max = INT_LEAST32_MAX;
19902 int_least32_t c3min = INT_LEAST32_MIN;
19903 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19904 int_least64_t c4max = INT_LEAST64_MAX;
19905 int_least64_t c4min = INT_LEAST64_MIN;
19906 uint_least8_t d1 = UINT8_C (0xff);
19907 uint_least8_t d1max = UINT_LEAST8_MAX;
19908 uint_least16_t d2 = UINT16_C (0xffff);
19909 uint_least16_t d2max = UINT_LEAST16_MAX;
19910 uint_least32_t d3 = UINT32_C (0xffffffff);
19911 uint_least32_t d3max = UINT_LEAST32_MAX;
19912 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19913 uint_least64_t d4max = UINT_LEAST64_MAX;
19914 int_fast8_t e1 = INT_FAST8_MAX;
19915 int_fast8_t e1min = INT_FAST8_MIN;
19916 int_fast16_t e2 = INT_FAST16_MAX;
19917 int_fast16_t e2min = INT_FAST16_MIN;
19918 int_fast32_t e3 = INT_FAST32_MAX;
19919 int_fast32_t e3min = INT_FAST32_MIN;
19920 int_fast64_t e4 = INT_FAST64_MAX;
19921 int_fast64_t e4min = INT_FAST64_MIN;
19922 uint_fast8_t f1 = UINT_FAST8_MAX;
19923 uint_fast16_t f2 = UINT_FAST16_MAX;
19924 uint_fast32_t f3 = UINT_FAST32_MAX;
19925 uint_fast64_t f4 = UINT_FAST64_MAX;
19927 intptr_t g = INTPTR_MAX;
19928 intptr_t gmin = INTPTR_MIN;
19931 uintptr_t h = UINTPTR_MAX;
19933 intmax_t i = INTMAX_MAX;
19934 uintmax_t j = UINTMAX_MAX;
19936 #include <limits.h> /* for CHAR_BIT */
19937 #define TYPE_MINIMUM(t) \
19938 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19939 #define TYPE_MAXIMUM(t) \
19940 ((t) ((t) 0 < (t) -1 \
19942 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19945 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19946 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19948 /* Detect bug in FreeBSD 6.0 / ia64. */
19949 int check_SIG_ATOMIC:
19950 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19951 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19953 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19955 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19956 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19958 /* Detect bug in mingw. */
19960 WINT_MIN == TYPE_MINIMUM (wint_t)
19961 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19964 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19966 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19967 int check_UINT16_C:
19968 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19970 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19972 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19975 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19978 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19981 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19983 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19984 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19985 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19986 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19987 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19988 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19989 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19990 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19991 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19992 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19993 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20004 if ac_fn_c_try_compile
"$LINENO"; then :
20005 if test "$cross_compiling" = yes; then :
20006 gl_cv_header_working_stdint_h
=yes
20009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20013 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20014 #include <stdint.h>
20017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20018 included before <wchar.h>. */
20019 #include <stddef.h>
20020 #include <signal.h>
20022 # include <stdio.h>
20024 # include <wchar.h>
20029 #include <string.h>
20030 #define MVAL(macro) MVAL1(macro)
20031 #define MVAL1(expression) #expression
20032 static const char *macro_values[] =
20066 for (mv = macro_values; *mv != NULL; mv++)
20068 const char *value = *mv;
20069 /* Test whether it looks like a cast expression. */
20070 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20071 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20072 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20073 || strncmp (value, "((int)"/*)*/, 6) == 0
20074 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20075 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20076 return mv - macro_values + 1;
20084 if ac_fn_c_try_run
"$LINENO"; then :
20085 gl_cv_header_working_stdint_h
=yes
20087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20097 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20099 if test "$gl_cv_header_working_stdint_h" = yes; then
20102 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20105 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20106 eval as_val
=\$
$as_ac_Header
20107 if test "x$as_val" = x
""yes; then :
20108 cat >>confdefs.h
<<_ACEOF
20109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20116 if test $ac_cv_header_sys_inttypes_h = yes; then
20117 HAVE_SYS_INTTYPES_H
=1
20119 HAVE_SYS_INTTYPES_H
=0
20122 if test $ac_cv_header_sys_bitypes_h = yes; then
20123 HAVE_SYS_BITYPES_H
=1
20125 HAVE_SYS_BITYPES_H
=0
20131 if test $APPLE_UNIVERSAL_BUILD = 0; then
20134 for gltype
in ptrdiff_t size_t
; do
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20136 $as_echo_n "checking for bit size of $gltype... " >&6; }
20137 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20138 $as_echo_n "(cached) " >&6
20140 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20142 included before <wchar.h>. */
20143 #include <stddef.h>
20144 #include <signal.h>
20146 # include <stdio.h>
20148 # include <wchar.h>
20151 #include <limits.h>"; then :
20157 eval gl_cv_bitsizeof_
${gltype}=\
$result
20160 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20162 $as_echo "$ac_res" >&6; }
20163 eval result
=\
$gl_cv_bitsizeof_${gltype}
20164 if test $result = unknown
; then
20167 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20168 cat >>confdefs.h
<<_ACEOF
20169 #define BITSIZEOF_${GLTYPE} $result
20172 eval BITSIZEOF_
${GLTYPE}=\
$result
20179 for gltype
in sig_atomic_t wchar_t wint_t
; do
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20181 $as_echo_n "checking for bit size of $gltype... " >&6; }
20182 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20183 $as_echo_n "(cached) " >&6
20185 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20186 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20187 included before <wchar.h>. */
20188 #include <stddef.h>
20189 #include <signal.h>
20191 # include <stdio.h>
20193 # include <wchar.h>
20196 #include <limits.h>"; then :
20202 eval gl_cv_bitsizeof_
${gltype}=\
$result
20205 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20207 $as_echo "$ac_res" >&6; }
20208 eval result
=\
$gl_cv_bitsizeof_${gltype}
20209 if test $result = unknown
; then
20212 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20213 cat >>confdefs.h
<<_ACEOF
20214 #define BITSIZEOF_${GLTYPE} $result
20217 eval BITSIZEOF_
${GLTYPE}=\
$result
20223 for gltype
in sig_atomic_t wchar_t wint_t
; do
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20225 $as_echo_n "checking whether $gltype is signed... " >&6; }
20226 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20227 $as_echo_n "(cached) " >&6
20229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20232 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20233 included before <wchar.h>. */
20234 #include <stddef.h>
20235 #include <signal.h>
20237 # include <stdio.h>
20239 # include <wchar.h>
20242 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20251 if ac_fn_c_try_compile
"$LINENO"; then :
20256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20257 eval gl_cv_type_
${gltype}_signed
=\
$result
20260 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20262 $as_echo "$ac_res" >&6; }
20263 eval result
=\
$gl_cv_type_${gltype}_signed
20264 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20265 if test "$result" = yes; then
20266 cat >>confdefs.h
<<_ACEOF
20267 #define HAVE_SIGNED_${GLTYPE} 1
20270 eval HAVE_SIGNED_
${GLTYPE}=1
20272 eval HAVE_SIGNED_
${GLTYPE}=0
20277 gl_cv_type_ptrdiff_t_signed
=yes
20278 gl_cv_type_size_t_signed
=no
20279 if test $APPLE_UNIVERSAL_BUILD = 0; then
20282 for gltype
in ptrdiff_t size_t
; do
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20284 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20285 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20286 $as_echo_n "(cached) " >&6
20288 eval gl_cv_type_
${gltype}_suffix
=no
20289 eval result
=\
$gl_cv_type_${gltype}_signed
20290 if test "$result" = yes; then
20295 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20297 '') gltype1
='int';;
20298 l
) gltype1
='long int';;
20299 ll
) gltype1
='long long int';;
20300 i64
) gltype1
='__int64';;
20301 u
) gltype1
='unsigned int';;
20302 ul
) gltype1
='unsigned long int';;
20303 ull
) gltype1
='unsigned long long int';;
20304 ui64
)gltype1
='unsigned __int64';;
20306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20310 included before <wchar.h>. */
20311 #include <stddef.h>
20312 #include <signal.h>
20314 # include <stdio.h>
20316 # include <wchar.h>
20319 extern $gltype foo;
20320 extern $gltype1 foo;
20329 if ac_fn_c_try_compile
"$LINENO"; then :
20330 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20333 eval result
=\
$gl_cv_type_${gltype}_suffix
20334 test "$result" != no
&& break
20337 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20339 $as_echo "$ac_res" >&6; }
20340 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20341 eval result
=\
$gl_cv_type_${gltype}_suffix
20342 test "$result" = no
&& result
=
20343 eval ${GLTYPE}_SUFFIX
=\
$result
20344 cat >>confdefs.h
<<_ACEOF
20345 #define ${GLTYPE}_SUFFIX $result
20354 for gltype
in sig_atomic_t wchar_t wint_t
; do
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20356 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20357 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20358 $as_echo_n "(cached) " >&6
20360 eval gl_cv_type_
${gltype}_suffix
=no
20361 eval result
=\
$gl_cv_type_${gltype}_signed
20362 if test "$result" = yes; then
20367 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20369 '') gltype1
='int';;
20370 l
) gltype1
='long int';;
20371 ll
) gltype1
='long long int';;
20372 i64
) gltype1
='__int64';;
20373 u
) gltype1
='unsigned int';;
20374 ul
) gltype1
='unsigned long int';;
20375 ull
) gltype1
='unsigned long long int';;
20376 ui64
)gltype1
='unsigned __int64';;
20378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20379 /* end confdefs.h. */
20381 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20382 included before <wchar.h>. */
20383 #include <stddef.h>
20384 #include <signal.h>
20386 # include <stdio.h>
20388 # include <wchar.h>
20391 extern $gltype foo;
20392 extern $gltype1 foo;
20401 if ac_fn_c_try_compile
"$LINENO"; then :
20402 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20405 eval result
=\
$gl_cv_type_${gltype}_suffix
20406 test "$result" != no
&& break
20409 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20411 $as_echo "$ac_res" >&6; }
20412 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20413 eval result
=\
$gl_cv_type_${gltype}_suffix
20414 test "$result" = no
&& result
=
20415 eval ${GLTYPE}_SUFFIX
=\
$result
20416 cat >>confdefs.h
<<_ACEOF
20417 #define ${GLTYPE}_SUFFIX $result
20424 if test $BITSIZEOF_WINT_T -lt 32; then
20425 BITSIZEOF_WINT_T
=32
20431 if test -n "$STDINT_H"; then
20432 GL_GENERATE_STDINT_H_TRUE
=
20433 GL_GENERATE_STDINT_H_FALSE
='#'
20435 GL_GENERATE_STDINT_H_TRUE
='#'
20436 GL_GENERATE_STDINT_H_FALSE
=
20445 GNULIB_STRTOIMAX
=0;
20446 GNULIB_STRTOUMAX
=0;
20447 HAVE_DECL_IMAXABS
=1;
20448 HAVE_DECL_IMAXDIV
=1;
20449 HAVE_DECL_STRTOIMAX
=1;
20450 HAVE_DECL_STRTOUMAX
=1;
20451 REPLACE_STRTOIMAX
=0;
20452 INT32_MAX_LT_INTMAX_MAX
=1;
20453 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20454 PRI_MACROS_BROKEN
=0;
20455 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20456 UINT32_MAX_LT_UINTMAX_MAX
=1;
20457 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20473 if test $gl_cv_have_include_next = yes; then
20474 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20477 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20478 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20479 $as_echo_n "(cached) " >&6
20482 if test $ac_cv_header_inttypes_h = yes; then
20485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20486 /* end confdefs.h. */
20487 #include <inttypes.h>
20491 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20492 *) gl_absname_cpp
="$ac_cpp" ;;
20497 gl_dirsep_regex
='[/\\]'
20500 gl_dirsep_regex
='\/'
20503 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20505 gl_header_literal_regex
=`echo 'inttypes.h' \
20506 | sed -e "$gl_make_literal_regex_sed"`
20507 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20508 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20513 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20514 sed -n "$gl_absolute_header_sed"`'"'
20516 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20522 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20524 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20526 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20528 gl_next_as_first_directive
='<'inttypes.h
'>'
20530 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20531 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20533 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20548 $as_echo_n "checking for 64-bit off_t... " >&6; }
20549 if test "${gl_cv_type_off_t_64+set}" = set; then :
20550 $as_echo_n "(cached) " >&6
20552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20554 #include <sys/types.h>
20555 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20565 if ac_fn_c_try_compile
"$LINENO"; then :
20566 gl_cv_type_off_t_64
=yes
20568 gl_cv_type_off_t_64
=no
20570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20574 $as_echo "$gl_cv_type_off_t_64" >&6; }
20575 if test $gl_cv_type_off_t_64 = no
; then
20576 WINDOWS_64_BIT_OFF_T
=1
20578 WINDOWS_64_BIT_OFF_T
=0
20580 WINDOWS_64_BIT_ST_SIZE
=1
20583 WINDOWS_64_BIT_OFF_T
=0
20584 WINDOWS_64_BIT_ST_SIZE
=0
20597 GNULIB_RAWMEMCHR
=0;
20600 GNULIB_STRCHRNUL
=0;
20608 GNULIB_STRCASESTR
=0;
20615 GNULIB_MBSCASECMP
=0;
20616 GNULIB_MBSNCASECMP
=0;
20617 GNULIB_MBSPCASECMP
=0;
20618 GNULIB_MBSCASESTR
=0;
20625 GNULIB_STRERROR_R
=0;
20626 GNULIB_STRSIGNAL
=0;
20627 GNULIB_STRVERSCMP
=0;
20632 HAVE_DECL_MEMMEM
=1;
20634 HAVE_DECL_MEMRCHR
=1;
20639 HAVE_DECL_STRDUP
=1;
20640 HAVE_DECL_STRNDUP
=1;
20641 HAVE_DECL_STRNLEN
=1;
20645 HAVE_DECL_STRTOK_R
=1;
20646 HAVE_DECL_STRERROR_R
=1;
20647 HAVE_DECL_STRSIGNAL
=1;
20654 REPLACE_STRCASESTR
=0;
20655 REPLACE_STRCHRNUL
=0;
20656 REPLACE_STRERROR
=0;
20657 REPLACE_STRERROR_R
=0;
20661 REPLACE_STRSIGNAL
=0;
20662 REPLACE_STRTOK_R
=0;
20663 UNDEFINE_STRTOK_R
=0;
20665 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20666 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20672 cat >>confdefs.h
<<_ACEOF
20673 #define HAVE_DECL_MEMRCHR $ac_have_decl
20678 GNULIB_NANOSLEEP
=0;
20682 HAVE_DECL_LOCALTIME_R
=1;
20686 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20687 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20688 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20689 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20691 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20692 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20698 cat >>confdefs.h
<<_ACEOF
20699 #define HAVE_DECL_ALARM $ac_have_decl
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20717 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20718 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20719 $as_echo_n "(cached) " >&6
20722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 #include <sys/select.h>
20733 if ac_fn_c_try_compile
"$LINENO"; then :
20734 gl_cv_header_sys_select_h_selfcontained
=yes
20736 gl_cv_header_sys_select_h_selfcontained
=no
20738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20739 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h. */
20742 #include <sys/select.h>
20746 int memset; int bzero;
20752 if ac_fn_c_try_compile
"$LINENO"; then :
20753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20755 #include <sys/select.h>
20761 #define memset nonexistent_memset
20766 void *memset (void *, int, unsigned long);
20768 #define bzero nonexistent_bzero
20773 void bzero (void *, unsigned long);
20782 if ac_fn_c_try_link
"$LINENO"; then :
20785 gl_cv_header_sys_select_h_selfcontained
=no
20787 rm -f core conftest.err conftest.
$ac_objext \
20788 conftest
$ac_exeext conftest.
$ac_ext
20791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20796 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20806 if test $gl_cv_have_include_next = yes; then
20807 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20810 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20811 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20812 $as_echo_n "(cached) " >&6
20815 if test $ac_cv_header_sys_select_h = yes; then
20818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h. */
20820 #include <sys/select.h>
20824 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20825 *) gl_absname_cpp
="$ac_cpp" ;;
20830 gl_dirsep_regex
='[/\\]'
20833 gl_dirsep_regex
='\/'
20836 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20838 gl_header_literal_regex
=`echo 'sys/select.h' \
20839 | sed -e "$gl_make_literal_regex_sed"`
20840 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20841 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20846 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20847 sed -n "$gl_absolute_header_sed"`'"'
20849 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20855 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20857 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
20859 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20861 gl_next_as_first_directive
='<'sys
/select.h
'>'
20863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20864 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
20866 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
20871 if test $ac_cv_header_sys_select_h = yes; then
20872 HAVE_SYS_SELECT_H
=1
20874 HAVE_SYS_SELECT_H
=0
20881 if test $ac_cv_header_sys_socket_h != yes; then
20882 for ac_header
in winsock2.h
20884 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20885 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
20886 cat >>confdefs.h
<<_ACEOF
20887 #define HAVE_WINSOCK2_H 1
20895 if test "$ac_cv_header_winsock2_h" = yes; then
20897 UNISTD_H_HAVE_WINSOCK2_H
=1
20898 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20910 GNULIB_PTHREAD_SIGMASK
=0;
20912 GNULIB_SIGNAL_H_SIGPIPE
=0;
20913 GNULIB_SIGPROCMASK
=0;
20914 GNULIB_SIGACTION
=0;
20915 HAVE_POSIX_SIGNALBLOCKING
=1;
20916 HAVE_PTHREAD_SIGMASK
=1;
20921 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
20923 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
20925 HAVE_SIGHANDLER_T
=1;
20926 REPLACE_PTHREAD_SIGMASK
=0;
20935 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20936 #include <signal.h>
20937 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20938 #include <sys/types.h>
20941 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
20943 cat >>confdefs.h
<<_ACEOF
20944 #define HAVE_SIGSET_T 1
20947 gl_cv_type_sigset_t
=yes
20949 gl_cv_type_sigset_t
=no
20952 if test $gl_cv_type_sigset_t != yes; then
20958 if test $ac_cv_header_sys_socket_h = no
; then
20959 for ac_header
in ws2tcpip.h
20961 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
20962 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
20963 cat >>confdefs.h
<<_ACEOF
20964 #define HAVE_WS2TCPIP_H 1
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20974 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20975 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20981 #include <stdbool.h>
20983 "error: bool is not defined"
20986 "error: false is not defined"
20989 "error: false is not 0"
20992 "error: true is not defined"
20995 "error: true is not 1"
20997 #ifndef __bool_true_false_are_defined
20998 "error: __bool_true_false_are_defined is not defined"
21001 struct s { _Bool s: 1; _Bool t; } s;
21003 char a[true == 1 ? 1 : -1];
21004 char b[false == 0 ? 1 : -1];
21005 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21006 char d[(bool) 0.5 == true ? 1 : -1];
21007 /* See body of main program for 'e'. */
21008 char f[(_Bool) 0.0 == false ? 1 : -1];
21010 char h[sizeof (_Bool)];
21011 char i[sizeof s.t];
21012 enum { j = false, k = true, l = false * true, m = true * 256 };
21013 /* The following fails for
21014 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21016 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21017 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21018 /* Catch a bug in an HP-UX C compiler. See
21019 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21020 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21032 /* Refer to every declared value, to avoid compiler optimizations. */
21033 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21034 + !m + !n + !o + !p + !q + !pq);
21040 if ac_fn_c_try_compile
"$LINENO"; then :
21041 ac_cv_header_stdbool_h
=yes
21043 ac_cv_header_stdbool_h
=no
21045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21048 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21049 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21050 if test "x$ac_cv_type__Bool" = x
""yes; then :
21052 cat >>confdefs.h
<<_ACEOF
21053 #define HAVE__BOOL 1
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21066 $as_echo_n "checking for wchar_t... " >&6; }
21067 if test "${gt_cv_c_wchar_t+set}" = set; then :
21068 $as_echo_n "(cached) " >&6
21070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21071 /* end confdefs.h. */
21072 #include <stddef.h>
21073 wchar_t foo = (wchar_t)'\0';
21082 if ac_fn_c_try_compile
"$LINENO"; then :
21083 gt_cv_c_wchar_t
=yes
21087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21090 $as_echo "$gt_cv_c_wchar_t" >&6; }
21091 if test $gt_cv_c_wchar_t = yes; then
21093 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21106 GNULIB_FPRINTF_POSIX
=0;
21122 GNULIB_OBSTACK_PRINTF
=0;
21123 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21128 GNULIB_PRINTF_POSIX
=0;
21137 GNULIB_SPRINTF_POSIX
=0;
21138 GNULIB_STDIO_H_NONBLOCKING
=0;
21139 GNULIB_STDIO_H_SIGPIPE
=0;
21141 GNULIB_VASPRINTF
=0;
21146 GNULIB_VFPRINTF_POSIX
=0;
21148 GNULIB_VPRINTF_POSIX
=0;
21149 GNULIB_VSNPRINTF
=0;
21150 GNULIB_VSPRINTF_POSIX
=0;
21151 HAVE_DECL_FPURGE
=1;
21152 HAVE_DECL_FSEEKO
=1;
21153 HAVE_DECL_FTELLO
=1;
21154 HAVE_DECL_GETDELIM
=1;
21155 HAVE_DECL_GETLINE
=1;
21156 HAVE_DECL_OBSTACK_PRINTF
=1;
21157 HAVE_DECL_SNPRINTF
=1;
21158 HAVE_DECL_VSNPRINTF
=1;
21179 REPLACE_GETDELIM
=0;
21181 REPLACE_OBSTACK_PRINTF
=0;
21187 REPLACE_RENAMEAT
=0;
21188 REPLACE_SNPRINTF
=0;
21190 REPLACE_STDIO_READ_FUNCS
=0;
21191 REPLACE_STDIO_WRITE_FUNCS
=0;
21193 REPLACE_VASPRINTF
=0;
21194 REPLACE_VDPRINTF
=0;
21195 REPLACE_VFPRINTF
=0;
21197 REPLACE_VSNPRINTF
=0;
21198 REPLACE_VSPRINTF
=0;
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21201 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21202 if test "${ac_cv_struct_tm+set}" = set; then :
21203 $as_echo_n "(cached) " >&6
21205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21206 /* end confdefs.h. */
21207 #include <sys/types.h>
21214 int *p = &tm.tm_sec;
21220 if ac_fn_c_try_compile
"$LINENO"; then :
21221 ac_cv_struct_tm
=time.h
21223 ac_cv_struct_tm
=sys
/time.h
21225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21228 $as_echo "$ac_cv_struct_tm" >&6; }
21229 if test $ac_cv_struct_tm = sys
/time.h
; then
21231 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21235 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21236 #include <$ac_cv_struct_tm>
21239 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21241 cat >>confdefs.h
<<_ACEOF
21242 #define HAVE_STRUCT_TM_TM_ZONE 1
21248 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21250 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21253 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21255 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21261 cat >>confdefs.h
<<_ACEOF
21262 #define HAVE_DECL_TZNAME $ac_have_decl
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21266 $as_echo_n "checking for tzname... " >&6; }
21267 if test "${ac_cv_var_tzname+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h. */
21273 #if !HAVE_DECL_TZNAME
21274 extern char *tzname[];
21280 return tzname[0][0];
21285 if ac_fn_c_try_link
"$LINENO"; then :
21286 ac_cv_var_tzname
=yes
21288 ac_cv_var_tzname
=no
21290 rm -f core conftest.err conftest.
$ac_objext \
21291 conftest
$ac_exeext conftest.
$ac_ext
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21294 $as_echo "$ac_cv_var_tzname" >&6; }
21295 if test $ac_cv_var_tzname = yes; then
21297 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21303 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21305 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21307 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21323 if test $gl_cv_have_include_next = yes; then
21324 gl_cv_next_string_h
='<'string.h
'>'
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21327 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21328 if test "${gl_cv_next_string_h+set}" = set; then :
21329 $as_echo_n "(cached) " >&6
21332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21333 /* end confdefs.h. */
21334 #include <string.h>
21338 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21339 *) gl_absname_cpp
="$ac_cpp" ;;
21344 gl_dirsep_regex
='[/\\]'
21347 gl_dirsep_regex
='\/'
21350 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21352 gl_header_literal_regex
=`echo 'string.h' \
21353 | sed -e "$gl_make_literal_regex_sed"`
21354 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21355 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21360 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21361 sed -n "$gl_absolute_header_sed"`'"'
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21366 $as_echo "$gl_cv_next_string_h" >&6; }
21368 NEXT_STRING_H
=$gl_cv_next_string_h
21370 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21371 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21372 gl_next_as_first_directive
='<'string.h
'>'
21374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21375 gl_next_as_first_directive
=$gl_cv_next_string_h
21377 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21387 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21388 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21394 cat >>confdefs.h
<<_ACEOF
21395 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21400 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21401 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21407 cat >>confdefs.h
<<_ACEOF
21408 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21414 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21415 if test "${ac_cv_header_stat_broken+set}" = set; then :
21416 $as_echo_n "(cached) " >&6
21418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21420 #include <sys/types.h>
21421 #include <sys/stat.h>
21423 #if defined S_ISBLK && defined S_IFDIR
21424 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21427 #if defined S_ISBLK && defined S_IFCHR
21428 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21431 #if defined S_ISLNK && defined S_IFREG
21432 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21435 #if defined S_ISSOCK && defined S_IFREG
21436 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21440 if ac_fn_c_try_compile
"$LINENO"; then :
21441 ac_cv_header_stat_broken
=no
21443 ac_cv_header_stat_broken
=yes
21445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21448 $as_echo "$ac_cv_header_stat_broken" >&6; }
21449 if test $ac_cv_header_stat_broken = yes; then
21451 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21460 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21461 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21471 static struct timespec x; x.tv_sec = x.tv_nsec;
21476 if ac_fn_c_try_compile
"$LINENO"; then :
21477 gl_cv_sys_struct_timespec_in_time_h
=yes
21479 gl_cv_sys_struct_timespec_in_time_h
=no
21481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21484 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21486 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21487 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21488 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21489 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21490 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21493 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21494 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21499 #include <sys/time.h>
21504 static struct timespec x; x.tv_sec = x.tv_nsec;
21509 if ac_fn_c_try_compile
"$LINENO"; then :
21510 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21512 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21517 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21518 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21519 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21522 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21523 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21524 $as_echo_n "(cached) " >&6
21526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h. */
21528 #include <pthread.h>
21533 static struct timespec x; x.tv_sec = x.tv_nsec;
21538 if ac_fn_c_try_compile
"$LINENO"; then :
21539 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21541 gl_cv_sys_struct_timespec_in_pthread_h
=no
21543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21546 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21547 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21548 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21567 if test $gl_cv_have_include_next = yes; then
21568 gl_cv_next_time_h
='<'time.h
'>'
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21571 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21572 if test "${gl_cv_next_time_h+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21577 /* end confdefs.h. */
21582 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21583 *) gl_absname_cpp
="$ac_cpp" ;;
21588 gl_dirsep_regex
='[/\\]'
21591 gl_dirsep_regex
='\/'
21594 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21596 gl_header_literal_regex
=`echo 'time.h' \
21597 | sed -e "$gl_make_literal_regex_sed"`
21598 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21599 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21604 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21605 sed -n "$gl_absolute_header_sed"`'"'
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21610 $as_echo "$gl_cv_next_time_h" >&6; }
21612 NEXT_TIME_H
=$gl_cv_next_time_h
21614 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21616 gl_next_as_first_directive
='<'time.h
'>'
21618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21619 gl_next_as_first_directive
=$gl_cv_next_time_h
21621 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21636 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21637 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21643 cat >>confdefs.h
<<_ACEOF
21644 #define HAVE_DECL_UNSETENV $ac_have_decl
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21649 $as_echo_n "checking whether the utimes function works... " >&6; }
21650 if test "${gl_cv_func_working_utimes+set}" = set; then :
21651 $as_echo_n "(cached) " >&6
21654 if test "$cross_compiling" = yes; then :
21655 gl_cv_func_working_utimes
=no
21657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h. */
21660 #include <sys/types.h>
21661 #include <sys/stat.h>
21663 #include <sys/time.h>
21665 #include <unistd.h>
21666 #include <stdlib.h>
21671 inorder (time_t a, time_t b, time_t c)
21673 return a <= b && b <= c;
21680 char const *file = "conftest.utimes";
21681 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21683 /* Test whether utimes() essentially works. */
21686 FILE *f = fopen (file, "w");
21689 else if (fclose (f) != 0)
21691 else if (utimes (file, timeval) != 0)
21693 else if (lstat (file, &sbuf) != 0)
21695 else if (!(sbuf.st_atime == timeval[0].tv_sec
21696 && sbuf.st_mtime == timeval[1].tv_sec))
21698 if (unlink (file) != 0)
21702 /* Test whether utimes() with a NULL argument sets the file's timestamp
21703 to the current time. Use 'fstat' as well as 'time' to
21704 determine the "current" time, to accommodate NFS file systems
21705 if there is a time skew between the host and the NFS server. */
21707 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21713 struct stat st0, st1, st2;
21714 if (time (&t0) == (time_t) -1)
21716 else if (fstat (fd, &st0) != 0)
21718 else if (utimes (file, timeval) != 0)
21720 else if (utimes (file, NULL) != 0)
21722 else if (fstat (fd, &st1) != 0)
21724 else if (write (fd, "\n", 1) != 1)
21726 else if (fstat (fd, &st2) != 0)
21728 else if (time (&t2) == (time_t) -1)
21732 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21733 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21734 if (! (st1.st_atime == st1.st_mtime))
21736 if (! (m_ok_POSIX || m_ok_NFS))
21739 if (close (fd) != 0)
21742 if (unlink (file) != 0)
21746 /* Test whether utimes() with a NULL argument works on read-only files. */
21748 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21751 else if (close (fd) != 0)
21753 else if (utimes (file, NULL) != 0)
21755 if (unlink (file) != 0)
21763 if ac_fn_c_try_run
"$LINENO"; then :
21764 gl_cv_func_working_utimes
=yes
21766 gl_cv_func_working_utimes
=no
21768 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21769 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21774 $as_echo "$gl_cv_func_working_utimes" >&6; }
21776 if test $gl_cv_func_working_utimes = yes; then
21778 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21787 $as_echo_n "checking for struct utimbuf... " >&6; }
21788 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21789 $as_echo_n "(cached) " >&6
21791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21793 #if HAVE_SYS_TIME_H
21794 #include <sys/time.h>
21797 #ifdef HAVE_UTIME_H
21804 static struct utimbuf x; x.actime = x.modtime;
21809 if ac_fn_c_try_compile
"$LINENO"; then :
21810 gl_cv_sys_struct_utimbuf
=yes
21812 gl_cv_sys_struct_utimbuf
=no
21814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21817 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21819 if test $gl_cv_sys_struct_utimbuf = yes; then
21821 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21836 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21837 if test "${ac_cv_type_getgroups+set}" = set; then :
21838 $as_echo_n "(cached) " >&6
21840 if test "$cross_compiling" = yes; then :
21841 ac_cv_type_getgroups
=cross
21843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h. */
21845 /* Thanks to Mike Rendell for this test. */
21846 $ac_includes_default
21849 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21854 gid_t gidset[NGID];
21856 union { gid_t gval; long int lval; } val;
21859 for (i = 0; i < NGID; i++)
21860 gidset[i] = val.gval;
21861 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21863 /* Exit non-zero if getgroups seems to require an array of ints. This
21864 happens when gid_t is short int but getgroups modifies an array
21866 return n > 0 && gidset[n] != val.gval;
21869 if ac_fn_c_try_run
"$LINENO"; then :
21870 ac_cv_type_getgroups
=gid_t
21872 ac_cv_type_getgroups
=int
21874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21878 if test $ac_cv_type_getgroups = cross
; then
21879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h. */
21881 #include <unistd.h>
21884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21885 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
21886 ac_cv_type_getgroups
=gid_t
21888 ac_cv_type_getgroups
=int
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21895 $as_echo "$ac_cv_type_getgroups" >&6; }
21897 cat >>confdefs.h
<<_ACEOF
21898 #define GETGROUPS_T $ac_cv_type_getgroups
21907 GL_COND_LIBTOOL_TRUE
=
21908 GL_COND_LIBTOOL_FALSE
='#'
21910 GL_COND_LIBTOOL_TRUE
='#'
21911 GL_COND_LIBTOOL_FALSE
=
21914 gl_cond_libtool
=false
21927 gl_source_base
='lib'
21930 if test $ac_cv_func_alloca_works = no
; then
21934 # Define an additional variable used in the Makefile substitution.
21935 if test $ac_cv_working_alloca_h = yes; then
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21937 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21938 if test "${gl_cv_rpl_alloca+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21951 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
21952 gl_cv_rpl_alloca
=yes
21954 gl_cv_rpl_alloca
=no
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21961 $as_echo "$gl_cv_rpl_alloca" >&6; }
21962 if test $gl_cv_rpl_alloca = yes; then
21964 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21974 if test -n "$ALLOCA_H"; then
21975 GL_GENERATE_ALLOCA_H_TRUE
=
21976 GL_GENERATE_ALLOCA_H_FALSE
='#'
21978 GL_GENERATE_ALLOCA_H_TRUE
='#'
21979 GL_GENERATE_ALLOCA_H_FALSE
=
21987 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
21988 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
21990 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
21991 # programs in the package would end up linked with that potentially-shared
21992 # library, inducing unnecessary run-time overhead.
21995 gl_saved_libs
=$LIBS
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21997 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21998 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22001 ac_func_search_save_LIBS
=$LIBS
22002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22003 /* end confdefs.h. */
22005 /* Override any GCC internal prototype to avoid an error.
22006 Use char because int might match the return type of a GCC
22007 builtin and then its argument prototype would still apply. */
22011 char clock_gettime ();
22015 return clock_gettime ();
22020 for ac_lib
in '' rt posix4
; do
22021 if test -z "$ac_lib"; then
22022 ac_res
="none required"
22025 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22027 if ac_fn_c_try_link
"$LINENO"; then :
22028 ac_cv_search_clock_gettime
=$ac_res
22030 rm -f core conftest.err conftest.
$ac_objext \
22032 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22036 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22039 ac_cv_search_clock_gettime
=no
22041 rm conftest.
$ac_ext
22042 LIBS
=$ac_func_search_save_LIBS
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22045 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22046 ac_res
=$ac_cv_search_clock_gettime
22047 if test "$ac_res" != no
; then :
22048 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22049 test "$ac_cv_search_clock_gettime" = "none required" ||
22050 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22053 for ac_func
in clock_gettime clock_settime
22055 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22056 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22057 eval as_val
=\$
$as_ac_var
22058 if test "x$as_val" = x
""yes; then :
22059 cat >>confdefs.h
<<_ACEOF
22060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22066 LIBS
=$gl_saved_libs
22073 cat >>confdefs.h
<<_ACEOF
22074 #define GNULIB_CLOSE_STREAM 1
22104 if test $gl_cv_have_include_next = yes; then
22105 gl_cv_next_dirent_h
='<'dirent.h
'>'
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22108 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22109 if test "${gl_cv_next_dirent_h+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22113 if test $ac_cv_header_dirent_h = yes; then
22116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22117 /* end confdefs.h. */
22118 #include <dirent.h>
22122 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22123 *) gl_absname_cpp
="$ac_cpp" ;;
22128 gl_dirsep_regex
='[/\\]'
22131 gl_dirsep_regex
='\/'
22134 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22136 gl_header_literal_regex
=`echo 'dirent.h' \
22137 | sed -e "$gl_make_literal_regex_sed"`
22138 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22139 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22144 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22145 sed -n "$gl_absolute_header_sed"`'"'
22147 gl_cv_next_dirent_h
='<'dirent.h
'>'
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22153 $as_echo "$gl_cv_next_dirent_h" >&6; }
22155 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22157 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22159 gl_next_as_first_directive
='<'dirent.h
'>'
22161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22162 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22164 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22169 if test $ac_cv_header_dirent_h = yes; then
22184 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22187 if test $HAVE_DUP2 = 1; then
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22189 $as_echo_n "checking whether dup2 works... " >&6; }
22190 if test "${gl_cv_func_dup2_works+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22193 if test "$cross_compiling" = yes; then :
22195 mingw
*) # on this platform, dup2 always returns 0 for success
22196 gl_cv_func_dup2_works
="guessing no" ;;
22197 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22198 gl_cv_func_dup2_works
="guessing no" ;;
22199 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22200 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22201 gl_cv_func_dup2_works
="guessing no" ;;
22202 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22203 gl_cv_func_dup2_works
="guessing no" ;;
22204 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22205 gl_cv_func_dup2_works
="guessing no" ;;
22206 *) gl_cv_func_dup2_works
="guessing yes" ;;
22209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22210 /* end confdefs.h. */
22212 #include <unistd.h>
22220 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22223 if (dup2 (1, 1) == 0)
22226 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22230 if (dup2 (0, 0) != -1)
22232 /* Many gnulib modules require POSIX conformance of EBADF. */
22233 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22235 /* Flush out a cygwin core dump. */
22236 if (dup2 (2, -1) != -1 || errno != EBADF)
22245 if ac_fn_c_try_run
"$LINENO"; then :
22246 gl_cv_func_dup2_works
=yes
22248 gl_cv_func_dup2_works
=no
22250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22257 $as_echo "$gl_cv_func_dup2_works" >&6; }
22258 case "$gl_cv_func_dup2_works" in
22267 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22276 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22308 EXECINFO_H
='execinfo.h'
22310 if test $ac_cv_header_execinfo_h = yes; then
22311 gl_saved_libs
=$LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22313 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22314 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22317 ac_func_search_save_LIBS
=$LIBS
22318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22319 /* end confdefs.h. */
22321 /* Override any GCC internal prototype to avoid an error.
22322 Use char because int might match the return type of a GCC
22323 builtin and then its argument prototype would still apply. */
22327 char backtrace_symbols_fd ();
22331 return backtrace_symbols_fd ();
22336 for ac_lib
in '' execinfo
; do
22337 if test -z "$ac_lib"; then
22338 ac_res
="none required"
22341 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22343 if ac_fn_c_try_link
"$LINENO"; then :
22344 ac_cv_search_backtrace_symbols_fd
=$ac_res
22346 rm -f core conftest.err conftest.
$ac_objext \
22348 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22352 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22355 ac_cv_search_backtrace_symbols_fd
=no
22357 rm conftest.
$ac_ext
22358 LIBS
=$ac_func_search_save_LIBS
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22361 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22362 ac_res
=$ac_cv_search_backtrace_symbols_fd
22363 if test "$ac_res" != no
; then :
22364 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22365 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22366 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22369 LIBS
=$gl_saved_libs
22370 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22373 if test -n "$EXECINFO_H"; then
22382 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22388 if test -n "$EXECINFO_H"; then
22389 GL_GENERATE_EXECINFO_H_TRUE
=
22390 GL_GENERATE_EXECINFO_H_FALSE
='#'
22392 GL_GENERATE_EXECINFO_H_TRUE
='#'
22393 GL_GENERATE_EXECINFO_H_FALSE
=
22404 if test $ac_cv_func_faccessat = no
; then
22408 if test $HAVE_FACCESSAT = 0; then
22417 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22420 for ac_func
in access
22422 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22423 if test "x$ac_cv_func_access" = x
""yes; then :
22424 cat >>confdefs.h
<<_ACEOF
22425 #define HAVE_ACCESS 1
22435 cat >>confdefs.h
<<_ACEOF
22436 #define GNULIB_FACCESSAT 1
22456 if test $ac_cv_func_fcntl = no
; then
22460 if test $ac_cv_func_fcntl = no
; then
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22468 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22469 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22472 if test "$cross_compiling" = yes; then :
22473 # Guess that it works on glibc systems
22474 case $host_os in #((
22475 *-gnu*) gl_cv_func_fcntl_f_dupfd_works
="guessing yes";;
22476 *) gl_cv_func_fcntl_f_dupfd_works
="guessing no";;
22479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22489 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22490 if (errno != EINVAL) result |= 2;
22497 if ac_fn_c_try_run
"$LINENO"; then :
22498 gl_cv_func_fcntl_f_dupfd_works
=yes
22500 gl_cv_func_fcntl_f_dupfd_works
=no
22502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22508 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22509 case $gl_cv_func_fcntl_f_dupfd_works in
22514 if test $ac_cv_func_fcntl = no
; then
22521 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22526 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22527 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22534 #ifndef F_DUPFD_CLOEXEC
22546 if ac_fn_c_try_compile
"$LINENO"; then :
22547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22551 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22552 it to support the semantics on older kernels that failed with EINVAL. */
22564 if ac_fn_c_try_compile
"$LINENO"; then :
22565 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
22567 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
22569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22571 gl_cv_func_fcntl_f_dupfd_cloexec
=no
22573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22576 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22577 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22581 if test $ac_cv_func_fcntl = no
; then
22591 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
22600 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
22625 if test $gl_cv_have_include_next = yes; then
22626 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22629 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22630 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h. */
22640 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22641 *) gl_absname_cpp
="$ac_cpp" ;;
22646 gl_dirsep_regex
='[/\\]'
22649 gl_dirsep_regex
='\/'
22652 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22654 gl_header_literal_regex
=`echo 'fcntl.h' \
22655 | sed -e "$gl_make_literal_regex_sed"`
22656 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22657 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22662 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22663 sed -n "$gl_absolute_header_sed"`'"'
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22668 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22670 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22672 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22674 gl_next_as_first_directive
='<'fcntl.h
'>'
22676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22677 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22679 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22698 if test $ac_cv_have_decl_fdatasync = no
; then
22699 HAVE_DECL_FDATASYNC
=0
22700 for ac_func
in fdatasync
22702 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22703 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22704 cat >>confdefs.h
<<_ACEOF
22705 #define HAVE_FDATASYNC 1
22711 if test $ac_cv_func_fdatasync = no
; then
22715 gl_saved_libs
=$LIBS
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22717 $as_echo_n "checking for library containing fdatasync... " >&6; }
22718 if test "${ac_cv_search_fdatasync+set}" = set; then :
22719 $as_echo_n "(cached) " >&6
22721 ac_func_search_save_LIBS
=$LIBS
22722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22735 return fdatasync ();
22740 for ac_lib
in '' rt posix4
; do
22741 if test -z "$ac_lib"; then
22742 ac_res
="none required"
22745 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22747 if ac_fn_c_try_link
"$LINENO"; then :
22748 ac_cv_search_fdatasync
=$ac_res
22750 rm -f core conftest.err conftest.
$ac_objext \
22752 if test "${ac_cv_search_fdatasync+set}" = set; then :
22756 if test "${ac_cv_search_fdatasync+set}" = set; then :
22759 ac_cv_search_fdatasync
=no
22761 rm conftest.
$ac_ext
22762 LIBS
=$ac_func_search_save_LIBS
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22765 $as_echo "$ac_cv_search_fdatasync" >&6; }
22766 ac_res
=$ac_cv_search_fdatasync
22767 if test "$ac_res" != no
; then :
22768 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22769 test "$ac_cv_search_fdatasync" = "none required" ||
22770 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22773 LIBS
=$gl_saved_libs
22776 if test $HAVE_FDATASYNC = 0; then
22785 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22804 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22805 #include <dirent.h>
22808 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22814 cat >>confdefs.h
<<_ACEOF
22815 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22817 if test $ac_have_decl = 1; then :
22820 HAVE_DECL_FDOPENDIR
=0
22824 if test $ac_cv_func_fdopendir = no
; then
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22828 $as_echo_n "checking whether fdopendir works... " >&6; }
22829 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22832 if test "$cross_compiling" = yes; then :
22834 # Guess yes on glibc systems.
22835 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
22836 # If we don't know, assume the worst.
22837 *) gl_cv_func_fdopendir_works
="guessing no" ;;
22841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22842 /* end confdefs.h. */
22844 #include <dirent.h>
22846 #include <unistd.h>
22847 #if !HAVE_DECL_FDOPENDIR
22849 # ifdef __cplusplus
22852 DIR *fdopendir (int);
22859 int fd = open ("conftest.c", O_RDONLY);
22860 if (fd < 0) result |= 1;
22861 if (fdopendir (fd)) result |= 2;
22862 if (close (fd)) result |= 4;
22868 if ac_fn_c_try_run
"$LINENO"; then :
22869 gl_cv_func_fdopendir_works
=yes
22871 gl_cv_func_fdopendir_works
=no
22873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22879 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22880 case "$gl_cv_func_fdopendir_works" in
22883 REPLACE_FDOPENDIR
=1
22888 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
22897 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
22913 cat >>confdefs.h
<<_ACEOF
22914 #define GNULIB_FDOPENDIR 1
22926 # include <stdio.h>
22927 # if HAVE_STDIO_EXT_H
22928 # include <stdio_ext.h>
22931 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22933 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
22939 cat >>confdefs.h
<<_ACEOF
22940 #define HAVE_DECL___FPENDING $ac_have_decl
22944 if test $ac_cv_func___fpending = no
; then
22953 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
22957 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
22958 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22965 'fp->_IO_write_ptr - fp->_IO_write_base' \
22967 '# traditional Unix' \
22968 'fp->_ptr - fp->_base' \
22971 'fp->_p - fp->_bf._base' \
22973 '# SCO, Unixware' \
22974 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
22977 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
22980 'fp->__bufp - fp->__buffer' \
22982 '# old glibc iostream?' \
22983 'fp->_pptr - fp->_pbase' \
22986 'fp->_ptr - fp->_buffer' \
22989 'fp->_ptr - fp->_buf' \
22992 'fp->wp - fp->buf' \
22995 '(*fp)->_ptr - (*fp)->_base' \
22997 '# e.g., DGUX R4.11; the info is not available' \
23001 # Skip each embedded comment.
23002 case "$ac_expr" in '#'*) continue;; esac
23004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23005 /* end confdefs.h. */
23010 FILE *fp = stdin; (void) ($ac_expr);
23015 if ac_fn_c_try_compile
"$LINENO"; then :
23019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23020 test "$fp_done" = yes && break
23023 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23028 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23030 cat >>confdefs.h
<<_ACEOF
23031 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23042 if test $ac_cv_func_fstatat = no
; then
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23046 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23047 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23048 $as_echo_n "(cached) " >&6
23050 if test "$cross_compiling" = yes; then :
23052 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23053 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23058 /* end confdefs.h. */
23061 #include <sys/stat.h>
23066 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23070 if ac_fn_c_try_run
"$LINENO"; then :
23071 gl_cv_func_fstatat_zero_flag
=yes
23073 gl_cv_func_fstatat_zero_flag
=no
23075 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23076 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23082 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23084 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23086 *) REPLACE_FSTATAT
=1
23087 case $gl_cv_func_fstatat_zero_flag in
23090 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23098 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23107 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23124 if test $ac_cv_func_fsync = no
; then
23128 if test $HAVE_FSYNC = 0; then
23137 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23154 # Persuade glibc <stdlib.h> to declare getloadavg().
23159 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23160 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23162 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23163 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23166 gl_func_getloadavg_done
=no
23168 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23169 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23170 # to get the right answer into the cache.
23171 # For kstat on solaris, we need to test for libelf and libkvm to force the
23172 # definition of SVR4 below.
23173 if test $gl_func_getloadavg_done = no
; then
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23175 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23176 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23179 ac_check_lib_save_LIBS
=$LIBS
23181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23182 /* end confdefs.h. */
23184 /* Override any GCC internal prototype to avoid an error.
23185 Use char because int might match the return type of a GCC
23186 builtin and then its argument prototype would still apply. */
23194 return elf_begin ();
23199 if ac_fn_c_try_link
"$LINENO"; then :
23200 ac_cv_lib_elf_elf_begin
=yes
23202 ac_cv_lib_elf_elf_begin
=no
23204 rm -f core conftest.err conftest.
$ac_objext \
23205 conftest
$ac_exeext conftest.
$ac_ext
23206 LIBS
=$ac_check_lib_save_LIBS
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23209 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23210 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23215 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23216 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23217 $as_echo_n "(cached) " >&6
23219 ac_check_lib_save_LIBS
=$LIBS
23221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h. */
23224 /* Override any GCC internal prototype to avoid an error.
23225 Use char because int might match the return type of a GCC
23226 builtin and then its argument prototype would still apply. */
23234 return kvm_open ();
23239 if ac_fn_c_try_link
"$LINENO"; then :
23240 ac_cv_lib_kvm_kvm_open
=yes
23242 ac_cv_lib_kvm_kvm_open
=no
23244 rm -f core conftest.err conftest.
$ac_objext \
23245 conftest
$ac_exeext conftest.
$ac_ext
23246 LIBS
=$ac_check_lib_save_LIBS
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23249 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23250 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23254 # Check for the 4.4BSD definition of getloadavg.
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23256 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23257 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23258 $as_echo_n "(cached) " >&6
23260 ac_check_lib_save_LIBS
=$LIBS
23261 LIBS
="-lutil $LIBS"
23262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23265 /* Override any GCC internal prototype to avoid an error.
23266 Use char because int might match the return type of a GCC
23267 builtin and then its argument prototype would still apply. */
23271 char getloadavg ();
23275 return getloadavg ();
23280 if ac_fn_c_try_link
"$LINENO"; then :
23281 ac_cv_lib_util_getloadavg
=yes
23283 ac_cv_lib_util_getloadavg
=no
23285 rm -f core conftest.err conftest.
$ac_objext \
23286 conftest
$ac_exeext conftest.
$ac_ext
23287 LIBS
=$ac_check_lib_save_LIBS
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23290 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23291 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23292 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23297 if test $gl_func_getloadavg_done = no
; then
23298 # There is a commonly available library for RS/6000 AIX.
23299 # Since it is not a standard part of AIX, it might be installed locally.
23300 gl_getloadavg_LIBS
=$LIBS
23301 LIBS
="-L/usr/local/lib $LIBS"
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23303 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23304 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23305 $as_echo_n "(cached) " >&6
23307 ac_check_lib_save_LIBS
=$LIBS
23308 LIBS
="-lgetloadavg $LIBS"
23309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23310 /* end confdefs.h. */
23312 /* Override any GCC internal prototype to avoid an error.
23313 Use char because int might match the return type of a GCC
23314 builtin and then its argument prototype would still apply. */
23318 char getloadavg ();
23322 return getloadavg ();
23327 if ac_fn_c_try_link
"$LINENO"; then :
23328 ac_cv_lib_getloadavg_getloadavg
=yes
23330 ac_cv_lib_getloadavg_getloadavg
=no
23332 rm -f core conftest.err conftest.
$ac_objext \
23333 conftest
$ac_exeext conftest.
$ac_ext
23334 LIBS
=$ac_check_lib_save_LIBS
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23337 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23338 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23339 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23341 LIBS
=$gl_getloadavg_LIBS
23346 # Set up the replacement function if necessary.
23347 if test $gl_func_getloadavg_done = no
; then
23350 # Solaris has libkstat which does not require root.
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23352 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23353 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23356 ac_check_lib_save_LIBS
=$LIBS
23357 LIBS
="-lkstat $LIBS"
23358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23359 /* end confdefs.h. */
23361 /* Override any GCC internal prototype to avoid an error.
23362 Use char because int might match the return type of a GCC
23363 builtin and then its argument prototype would still apply. */
23367 char kstat_open ();
23371 return kstat_open ();
23376 if ac_fn_c_try_link
"$LINENO"; then :
23377 ac_cv_lib_kstat_kstat_open
=yes
23379 ac_cv_lib_kstat_kstat_open
=no
23381 rm -f core conftest.err conftest.
$ac_objext \
23382 conftest
$ac_exeext conftest.
$ac_ext
23383 LIBS
=$ac_check_lib_save_LIBS
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23386 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23387 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23388 cat >>confdefs.h
<<_ACEOF
23389 #define HAVE_LIBKSTAT 1
23392 LIBS
="-lkstat $LIBS"
23396 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23398 # AIX has libperfstat which does not require root
23399 if test $gl_func_getloadavg_done = no
; then
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23401 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23402 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23405 ac_check_lib_save_LIBS
=$LIBS
23406 LIBS
="-lperfstat $LIBS"
23407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23408 /* end confdefs.h. */
23410 /* Override any GCC internal prototype to avoid an error.
23411 Use char because int might match the return type of a GCC
23412 builtin and then its argument prototype would still apply. */
23416 char perfstat_cpu_total ();
23420 return perfstat_cpu_total ();
23425 if ac_fn_c_try_link
"$LINENO"; then :
23426 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23428 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23430 rm -f core conftest.err conftest.
$ac_objext \
23431 conftest
$ac_exeext conftest.
$ac_ext
23432 LIBS
=$ac_check_lib_save_LIBS
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23435 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23436 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23437 cat >>confdefs.h
<<_ACEOF
23438 #define HAVE_LIBPERFSTAT 1
23441 LIBS
="-lperfstat $LIBS"
23445 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23448 if test $gl_func_getloadavg_done = no
; then
23449 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23450 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23451 gl_func_getloadavg_done
=yes
23453 $as_echo "#define DGUX 1" >>confdefs.h
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23456 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23457 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23460 ac_check_lib_save_LIBS
=$LIBS
23462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23465 /* Override any GCC internal prototype to avoid an error.
23466 Use char because int might match the return type of a GCC
23467 builtin and then its argument prototype would still apply. */
23471 char dg_sys_info ();
23475 return dg_sys_info ();
23480 if ac_fn_c_try_link
"$LINENO"; then :
23481 ac_cv_lib_dgc_dg_sys_info
=yes
23483 ac_cv_lib_dgc_dg_sys_info
=no
23485 rm -f core conftest.err conftest.
$ac_objext \
23486 conftest
$ac_exeext conftest.
$ac_ext
23487 LIBS
=$ac_check_lib_save_LIBS
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23490 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23491 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23492 cat >>confdefs.h
<<_ACEOF
23493 #define HAVE_LIBDGC 1
23508 if test "x$gl_save_LIBS" = x
; then
23509 GETLOADAVG_LIBS
=$LIBS
23511 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23516 # Test whether the system declares getloadavg. Solaris has the function
23517 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23518 for ac_header
in sys
/loadavg.h
23520 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23521 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23522 cat >>confdefs.h
<<_ACEOF
23523 #define HAVE_SYS_LOADAVG_H 1
23530 if test $ac_cv_header_sys_loadavg_h = yes; then
23531 HAVE_SYS_LOADAVG_H
=1
23533 HAVE_SYS_LOADAVG_H
=0
23535 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23536 # include <sys/loadavg.h>
23538 #include <stdlib.h>
23540 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23543 HAVE_DECL_GETLOADAVG
=0
23547 if test $HAVE_GETLOADAVG = 0; then
23556 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23559 # Figure out what our getloadavg.c needs.
23563 # On HPUX9, an unprivileged user can get load averages this way.
23564 if test $gl_func_getloadavg_done = no
; then
23565 for ac_func
in pstat_getdynamic
23567 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23568 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23569 cat >>confdefs.h
<<_ACEOF
23570 #define HAVE_PSTAT_GETDYNAMIC 1
23572 gl_func_getloadavg_done
=yes
23578 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23579 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23580 # Irix 4.0.5F has the header but not the library.
23581 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23582 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23583 gl_func_getloadavg_done
=yes
23585 $as_echo "#define SVR4 1" >>confdefs.h
23589 if test $gl_func_getloadavg_done = no
; then
23590 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23591 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23592 gl_func_getloadavg_done
=yes
23594 $as_echo "#define UMAX 1" >>confdefs.h
23597 $as_echo "#define UMAX4_3 1" >>confdefs.h
23604 if test $gl_func_getloadavg_done = no
; then
23605 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23606 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23607 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23614 if test $gl_func_getloadavg_done = no
; then
23615 for ac_header
in mach
/mach.h
23617 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23618 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23619 cat >>confdefs.h
<<_ACEOF
23620 #define HAVE_MACH_MACH_H 1
23629 for ac_header
in nlist.h
23631 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23632 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23633 cat >>confdefs.h
<<_ACEOF
23634 #define HAVE_NLIST_H 1
23636 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23638 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23640 cat >>confdefs.h
<<_ACEOF
23641 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23654 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23655 x.n_un.n_name = "";
23663 if ac_fn_c_try_link
"$LINENO"; then :
23665 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23668 rm -f core conftest.err conftest.
$ac_objext \
23669 conftest
$ac_exeext conftest.
$ac_ext
23681 GNULIB_GETLOADAVG
=1
23692 if test $REPLACE_GETOPT = 1; then
23701 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23711 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23716 GNULIB_GL_UNISTD_H_GETOPT
=1
23726 if test -n "$gl_replace_getopt"; then
23730 if test $REPLACE_GETOPT = 1; then
23734 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23740 if test $REPLACE_GETOPT = 1; then
23749 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23759 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23764 GNULIB_GL_UNISTD_H_GETOPT
=1
23778 gl_gettimeofday_timezone
=void
23779 if test $ac_cv_func_gettimeofday != yes; then
23780 HAVE_GETTIMEOFDAY
=0
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23786 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23787 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23790 if test "$cross_compiling" = yes; then :
23791 # When cross-compiling:
23793 # Guess all is fine on glibc systems.
23794 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23795 # If we don't know, assume the worst.
23796 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23801 /* end confdefs.h. */
23802 #include <string.h>
23803 #include <sys/time.h>
23805 #include <stdlib.h>
23813 struct tm saved_lt;
23815 lt = localtime (&t);
23817 gettimeofday (&tv, NULL);
23818 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23824 if ac_fn_c_try_run
"$LINENO"; then :
23825 gl_cv_func_gettimeofday_clobber
=no
23827 gl_cv_func_gettimeofday_clobber
=yes
23829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23835 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23837 case "$gl_cv_func_gettimeofday_clobber" in
23839 REPLACE_GETTIMEOFDAY
=1
23842 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23845 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23849 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23855 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23856 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23857 $as_echo_n "(cached) " >&6
23859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23860 /* end confdefs.h. */
23861 #include <sys/time.h>
23863 int gettimeofday (struct timeval *restrict, void *restrict);
23868 /* glibc uses struct timezone * rather than the POSIX void *
23869 if _GNU_SOURCE is defined. However, since the only portable
23870 use of gettimeofday uses NULL as the second parameter, and
23871 since the glibc definition is actually more typesafe, it is
23872 not worth wrapping this to get a compliant signature. */
23873 int (*f) (struct timeval *restrict, void *restrict)
23876 return !(x | c.tv_sec | c.tv_usec);
23882 if ac_fn_c_try_compile
"$LINENO"; then :
23883 gl_cv_func_gettimeofday_posix_signature
=yes
23885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23886 /* end confdefs.h. */
23887 #include <sys/time.h>
23888 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23898 if ac_fn_c_try_compile
"$LINENO"; then :
23899 gl_cv_func_gettimeofday_posix_signature
=almost
23901 gl_cv_func_gettimeofday_posix_signature
=no
23903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23908 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23909 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
23910 gl_gettimeofday_timezone
='struct timezone'
23911 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23912 REPLACE_GETTIMEOFDAY
=1
23914 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23915 REPLACE_GETTIMEOFDAY
=1
23920 cat >>confdefs.h
<<_ACEOF
23921 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23925 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
23934 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
23937 for ac_header
in sys
/timeb.h
23939 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23940 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
23941 cat >>confdefs.h
<<_ACEOF
23942 #define HAVE_SYS_TIMEB_H 1
23949 for ac_func
in _ftime
23951 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
23952 if test "x$ac_cv_func__ftime" = x
""yes; then :
23953 cat >>confdefs.h
<<_ACEOF
23954 #define HAVE__FTIME 1
23967 GNULIB_GETTIMEOFDAY
=1
23978 if test $ac_cv_func_lstat = yes; then
23980 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23989 if test $REPLACE_LSTAT = 1; then
23998 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24018 if test $ac_cv_have_decl_memrchr = no
; then
24019 HAVE_DECL_MEMRCHR
=0
24022 for ac_func
in memrchr
24024 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24025 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24026 cat >>confdefs.h
<<_ACEOF
24027 #define HAVE_MEMRCHR 1
24034 if test $ac_cv_func_memrchr = no
; then
24043 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24064 if test $APPLE_UNIVERSAL_BUILD = 1; then
24065 # A universal build on Apple Mac OS X platforms.
24066 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24067 # But we need a configuration result that is valid in both modes.
24068 gl_cv_func_working_mktime
=no
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24071 $as_echo_n "checking for working mktime... " >&6; }
24072 if test "${gl_cv_func_working_mktime+set}" = set; then :
24073 $as_echo_n "(cached) " >&6
24075 if test "$cross_compiling" = yes; then :
24076 gl_cv_func_working_mktime
=no
24078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24079 /* end confdefs.h. */
24080 /* Test program from Paul Eggert and Tony Leneis. */
24081 #include <limits.h>
24082 #include <stdlib.h>
24085 #ifdef HAVE_UNISTD_H
24086 # include <unistd.h>
24089 #if HAVE_DECL_ALARM
24090 # include <signal.h>
24093 /* Work around redefinition to rpl_putenv by other config tests. */
24096 static time_t time_t_max;
24097 static time_t time_t_min;
24099 /* Values we'll use to set the TZ environment variable. */
24100 static char *tz_strings[] = {
24101 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24102 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24104 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24106 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24107 Based on a problem report from Andreas Jaeger. */
24109 spring_forward_gap ()
24111 /* glibc (up to about 1998-10-07) failed this test. */
24114 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24115 instead of "TZ=America/Vancouver" in order to detect the bug even
24116 on systems that don't support the Olson extension, or don't have the
24117 full zoneinfo tables installed. */
24118 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24127 return mktime (&tm) != (time_t) -1;
24131 mktime_test1 (time_t now)
24134 return ! (lt = localtime (&now)) || mktime (lt) == now;
24138 mktime_test (time_t now)
24140 return (mktime_test1 (now)
24141 && mktime_test1 ((time_t) (time_t_max - now))
24142 && mktime_test1 ((time_t) (time_t_min + now)));
24148 /* Based on code from Ariel Faigon. */
24158 return tm.tm_mon == 2 && tm.tm_mday == 31;
24162 bigtime_test (int j)
24166 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24167 now = mktime (&tm);
24168 if (now != (time_t) -1)
24170 struct tm *lt = localtime (&now);
24172 && lt->tm_year == tm.tm_year
24173 && lt->tm_mon == tm.tm_mon
24174 && lt->tm_mday == tm.tm_mday
24175 && lt->tm_hour == tm.tm_hour
24176 && lt->tm_min == tm.tm_min
24177 && lt->tm_sec == tm.tm_sec
24178 && lt->tm_yday == tm.tm_yday
24179 && lt->tm_wday == tm.tm_wday
24180 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24181 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24190 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24191 ignoring leap seconds. */
24192 unsigned long int answer = 2527315200UL;
24196 tm.tm_year = 2050 - 1900;
24199 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
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");
24210 /* Check that the result is either a failure, or close enough
24211 to the correct answer that we can assume the discrepancy is
24212 due to leap seconds. */
24213 return (t == (time_t) -1
24214 || (0 < t && answer - 120 <= t && t <= answer + 120));
24223 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24224 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24226 #if HAVE_DECL_ALARM
24227 /* This test makes some buggy mktime implementations loop.
24228 Give up after 60 seconds; a mktime slower than that
24229 isn't worth using anyway. */
24230 signal (SIGALRM, SIG_DFL);
24234 time_t_max = (! time_t_signed
24236 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24238 time_t_min = (! time_t_signed
24240 : time_t_signed_magnitude
24244 delta = time_t_max / 997; /* a suitable prime number */
24245 for (i = 0; i < N_STRINGS; i++)
24248 putenv (tz_strings[i]);
24250 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24251 if (! mktime_test (t))
24253 if ((result & 2) == 0
24254 && ! (mktime_test ((time_t) 1)
24255 && mktime_test ((time_t) (60 * 60))
24256 && mktime_test ((time_t) (60 * 60 * 24))))
24259 for (j = 1; (result & 4) == 0; j <<= 1)
24261 if (! bigtime_test (j))
24263 if (INT_MAX / 2 < j)
24266 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24269 if (! irix_6_4_bug ())
24271 if (! spring_forward_gap ())
24273 if (! year_2050_test ())
24278 if ac_fn_c_try_run
"$LINENO"; then :
24279 gl_cv_func_working_mktime
=yes
24281 gl_cv_func_working_mktime
=no
24283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24290 $as_echo "$gl_cv_func_working_mktime" >&6; }
24292 if test $gl_cv_func_working_mktime = no
; then
24298 if test $REPLACE_MKTIME = 1; then
24307 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24329 if test $ac_cv_func_pipe2 != yes; then
24349 if test $ac_cv_func_pselect = yes; then
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24351 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24352 if test "${gl_cv_sig_pselect+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h. */
24357 #include <sys/select.h>
24362 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24363 struct timespec const *restrict,
24364 sigset_t const *restrict) = pselect;
24370 if ac_fn_c_try_link
"$LINENO"; then :
24371 gl_cv_sig_pselect
=yes
24373 gl_cv_sig_pselect
=no
24375 rm -f core conftest.err conftest.
$ac_objext \
24376 conftest
$ac_exeext conftest.
$ac_ext
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24379 $as_echo "$gl_cv_sig_pselect" >&6; }
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24382 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24383 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24384 $as_echo_n "(cached) " >&6
24387 if test "$cross_compiling" = yes; then :
24390 # Guess yes on glibc systems.
24391 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24392 # If we don't know, assume the worst.
24393 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24398 /* end confdefs.h. */
24400 #include <sys/types.h>
24401 #include <sys/time.h>
24402 #if HAVE_SYS_SELECT_H
24403 # include <sys/select.h>
24405 #include <unistd.h>
24417 struct timespec timeout;
24418 timeout.tv_sec = 0;
24419 timeout.tv_nsec = 5000;
24420 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24426 if ac_fn_c_try_run
"$LINENO"; then :
24427 gl_cv_func_pselect_detects_ebadf
=yes
24429 gl_cv_func_pselect_detects_ebadf
=no
24431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24438 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24439 case $gl_cv_func_pselect_detects_ebadf in
24441 *) REPLACE_PSELECT
=1 ;;
24445 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24449 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24458 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24476 LIB_PTHREAD_SIGMASK
=
24481 if test "$gl_threads_api" = posix
; then
24482 if test $ac_cv_func_pthread_sigmask = yes; then
24485 if test -n "$LIBMULTITHREAD"; then
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24487 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24488 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gl_save_LIBS
="$LIBS"
24492 LIBS
="$LIBS $LIBMULTITHREAD"
24493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24495 #include <pthread.h>
24496 #include <signal.h>
24501 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24507 if ac_fn_c_try_link
"$LINENO"; then :
24508 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24510 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24512 rm -f core conftest.err conftest.
$ac_objext \
24513 conftest
$ac_exeext conftest.
$ac_ext
24514 LIBS
="$gl_save_LIBS"
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24518 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24519 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24520 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24522 HAVE_PTHREAD_SIGMASK
=0
24525 HAVE_PTHREAD_SIGMASK
=0
24529 if test $ac_cv_func_pthread_sigmask = yes; then
24530 REPLACE_PTHREAD_SIGMASK
=1
24532 HAVE_PTHREAD_SIGMASK
=0
24539 if test $HAVE_PTHREAD_SIGMASK = 1; then
24542 if test -z "$LIB_PTHREAD_SIGMASK"; then
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24544 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24545 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24546 $as_echo_n "(cached) " >&6
24549 if test "$cross_compiling" = yes; then :
24552 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24553 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24555 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 #include <pthread.h>
24563 #include <signal.h>
24564 #include <stddef.h>
24568 sigemptyset (&set);
24569 return pthread_sigmask (1729, &set, NULL) != 0;
24572 if ac_fn_c_try_run
"$LINENO"; then :
24573 gl_cv_func_pthread_sigmask_in_libc_works
=no
24575 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24584 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24585 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24587 REPLACE_PTHREAD_SIGMASK
=1
24589 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24596 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24597 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24601 gl_save_LIBS
="$LIBS"
24602 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24603 if test "$cross_compiling" = yes; then :
24606 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24608 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24613 /* end confdefs.h. */
24615 #include <pthread.h>
24616 #include <signal.h>
24617 #include <stddef.h>
24621 sigemptyset (&set);
24622 if (pthread_sigmask (1729, &set, NULL) == -1)
24627 if ac_fn_c_try_run
"$LINENO"; then :
24628 gl_cv_func_pthread_sigmask_return_works
=yes
24630 gl_cv_func_pthread_sigmask_return_works
=no
24632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24636 LIBS
="$gl_save_LIBS"
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24640 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24641 case "$gl_cv_func_pthread_sigmask_return_works" in
24643 REPLACE_PTHREAD_SIGMASK
=1
24645 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24651 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24652 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24658 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24660 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24662 gl_save_LIBS
="$LIBS"
24663 LIBS
="$LIBS $LIBMULTITHREAD"
24664 if test "$cross_compiling" = yes; then :
24667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24668 /* end confdefs.h. */
24670 #include <pthread.h>
24671 #include <signal.h>
24673 #include <stdlib.h>
24674 #include <unistd.h>
24675 static volatile int sigint_occurred;
24677 sigint_handler (int sig)
24684 int pid = getpid ();
24686 signal (SIGINT, sigint_handler);
24687 sigemptyset (&set);
24688 sigaddset (&set, SIGINT);
24689 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24691 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24692 if (!(system (command) == 0))
24695 if (!(sigint_occurred == 0))
24697 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24699 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24704 if ac_fn_c_try_run
"$LINENO"; then :
24707 gl_cv_func_pthread_sigmask_unblock_works
=no
24709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24713 LIBS
="$gl_save_LIBS"
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24717 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24718 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24720 REPLACE_PTHREAD_SIGMASK
=1
24722 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24728 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24737 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24740 if test $HAVE_PTHREAD_SIGMASK = 1; then
24742 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24752 GNULIB_PTHREAD_SIGMASK
=1
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24761 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24762 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24763 $as_echo_n "(cached) " >&6
24765 if test "$cross_compiling" = yes; then :
24767 # Guess yes on glibc systems.
24768 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24769 # If we don't know, assume the worst.
24770 *) gl_cv_func_svid_putenv
="guessing no" ;;
24774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24775 /* end confdefs.h. */
24776 $ac_includes_default
24781 /* Put it in env. */
24782 if (putenv ("CONFTEST_putenv=val"))
24785 /* Try to remove it. */
24786 if (putenv ("CONFTEST_putenv"))
24789 /* Make sure it was deleted. */
24790 if (getenv ("CONFTEST_putenv") != 0)
24799 if ac_fn_c_try_run
"$LINENO"; then :
24800 gl_cv_func_svid_putenv
=yes
24802 gl_cv_func_svid_putenv
=no
24804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24811 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24812 case "$gl_cv_func_svid_putenv" in
24819 if test $REPLACE_PUTENV = 1; then
24828 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
24831 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24832 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
24838 cat >>confdefs.h
<<_ACEOF
24839 #define HAVE_DECL__PUTENV $ac_have_decl
24856 # Check whether --enable-acl was given.
24857 if test "${enable_acl+set}" = set; then :
24858 enableval
=$enable_acl;
24866 if test "x$enable_acl" != "xno"; then
24867 for ac_header
in sys
/acl.h
24869 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24870 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
24871 cat >>confdefs.h
<<_ACEOF
24872 #define HAVE_SYS_ACL_H 1
24879 if test $ac_cv_header_sys_acl_h = yes; then
24882 if test $use_acl = 0; then
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24884 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24885 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24888 ac_func_search_save_LIBS
=$LIBS
24889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24890 /* end confdefs.h. */
24892 /* Override any GCC internal prototype to avoid an error.
24893 Use char because int might match the return type of a GCC
24894 builtin and then its argument prototype would still apply. */
24898 char acl_get_file ();
24902 return acl_get_file ();
24907 for ac_lib
in '' acl pacl
; do
24908 if test -z "$ac_lib"; then
24909 ac_res
="none required"
24912 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24914 if ac_fn_c_try_link
"$LINENO"; then :
24915 ac_cv_search_acl_get_file
=$ac_res
24917 rm -f core conftest.err conftest.
$ac_objext \
24919 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24923 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24926 ac_cv_search_acl_get_file
=no
24928 rm conftest.
$ac_ext
24929 LIBS
=$ac_func_search_save_LIBS
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
24932 $as_echo "$ac_cv_search_acl_get_file" >&6; }
24933 ac_res
=$ac_cv_search_acl_get_file
24934 if test "$ac_res" != no
; then :
24935 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24936 if test "$ac_cv_search_acl_get_file" != "none required"; then
24937 LIB_ACL
=$ac_cv_search_acl_get_file
24939 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
24940 acl_free acl_from_mode acl_from_text \
24941 acl_delete_def_file acl_extended_file \
24942 acl_delete_fd_np acl_delete_file_np \
24943 acl_copy_ext_native acl_create_entry_np \
24944 acl_to_short_text acl_free_text
24946 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24947 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24948 eval as_val
=\$
$as_ac_var
24949 if test "x$as_val" = x
""yes; then :
24950 cat >>confdefs.h
<<_ACEOF
24951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24957 # If the acl_get_file bug is detected, don't enable the ACL support.
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
24960 $as_echo_n "checking for working acl_get_file... " >&6; }
24961 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24964 if test "$cross_compiling" = yes; then :
24965 gl_cv_func_working_acl_get_file
=cross-compiling
24967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h. */
24969 #include <sys/types.h>
24970 #include <sys/acl.h>
24976 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
24984 if ac_fn_c_try_run
"$LINENO"; then :
24985 gl_cv_func_working_acl_get_file
=yes
24987 gl_cv_func_working_acl_get_file
=no
24989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
24995 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
24997 if test $gl_cv_func_working_acl_get_file = yes; then :
25001 if test $use_acl = 1; then
25002 for ac_header
in acl
/libacl.h
25004 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25005 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
25006 cat >>confdefs.h
<<_ACEOF
25007 #define HAVE_ACL_LIBACL_H 1
25022 for ac_func
in acl_entries
25024 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25025 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
25026 cat >>confdefs.h
<<_ACEOF
25027 #define HAVE_ACL_ENTRIES 1
25032 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25039 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25040 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25041 $as_echo_n "(cached) " >&6
25043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h. */
25045 #include <sys/types.h>
25046 #include <sys/acl.h>
25047 int type = ACL_FIRST_ENTRY;
25056 if ac_fn_c_try_compile
"$LINENO"; then :
25057 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25059 gl_cv_acl_ACL_FIRST_ENTRY
=no
25061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25064 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25065 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25067 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25071 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25072 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25073 $as_echo_n "(cached) " >&6
25075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25076 /* end confdefs.h. */
25077 #include <sys/types.h>
25078 #include <sys/acl.h>
25079 int type = ACL_TYPE_EXTENDED;
25088 if ac_fn_c_try_compile
"$LINENO"; then :
25089 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25091 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25096 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25097 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25099 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25110 if test $use_acl = 0; then
25111 for ac_func
in facl
25113 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25114 if test "x$ac_cv_func_facl" = x
""yes; then :
25115 cat >>confdefs.h
<<_ACEOF
25116 #define HAVE_FACL 1
25122 if test $ac_cv_func_facl = yes; then
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25124 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25125 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25128 ac_func_search_save_LIBS
=$LIBS
25129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25130 /* end confdefs.h. */
25132 /* Override any GCC internal prototype to avoid an error.
25133 Use char because int might match the return type of a GCC
25134 builtin and then its argument prototype would still apply. */
25138 char acl_trivial ();
25142 return acl_trivial ();
25147 for ac_lib
in '' sec
; do
25148 if test -z "$ac_lib"; then
25149 ac_res
="none required"
25152 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25154 if ac_fn_c_try_link
"$LINENO"; then :
25155 ac_cv_search_acl_trivial
=$ac_res
25157 rm -f core conftest.err conftest.
$ac_objext \
25159 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25163 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25166 ac_cv_search_acl_trivial
=no
25168 rm conftest.
$ac_ext
25169 LIBS
=$ac_func_search_save_LIBS
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25172 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25173 ac_res
=$ac_cv_search_acl_trivial
25174 if test "$ac_res" != no
; then :
25175 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25176 if test "$ac_cv_search_acl_trivial" != "none required"; then
25177 LIB_ACL
=$ac_cv_search_acl_trivial
25182 for ac_func
in acl_trivial
25184 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25185 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25186 cat >>confdefs.h
<<_ACEOF
25187 #define HAVE_ACL_TRIVIAL 1
25197 if test $use_acl = 0; then
25198 for ac_func
in getacl
25200 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25201 if test "x$ac_cv_func_getacl" = x
""yes; then :
25202 cat >>confdefs.h
<<_ACEOF
25203 #define HAVE_GETACL 1
25209 if test $ac_cv_func_getacl = yes; then
25212 for ac_header
in aclv.h
25214 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25216 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25217 cat >>confdefs.h
<<_ACEOF
25218 #define HAVE_ACLV_H 1
25227 if test $use_acl = 0; then
25228 for ac_func
in aclx_get
25230 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25231 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25232 cat >>confdefs.h
<<_ACEOF
25233 #define HAVE_ACLX_GET 1
25239 if test $ac_cv_func_aclx_get = yes; then
25244 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25245 for ac_func
in statacl
25247 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25248 if test "x$ac_cv_func_statacl" = x
""yes; then :
25249 cat >>confdefs.h
<<_ACEOF
25250 #define HAVE_STATACL 1
25256 if test $ac_cv_func_statacl = yes; then
25261 if test $use_acl = 0; then
25262 for ac_func
in aclsort
25264 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25265 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25266 cat >>confdefs.h
<<_ACEOF
25267 #define HAVE_ACLSORT 1
25273 if test $ac_cv_func_aclsort = yes; then
25280 if test "x$enable_acl$use_acl" = "xyes0"; then
25281 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25282 elif test "x$enable_acl$use_acl" = "xauto0"; then
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25284 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25286 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25291 cat >>confdefs.h
<<_ACEOF
25292 #define USE_ACL $use_acl
25301 if test $ac_cv_func_readlink = no
; then
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25305 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25306 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25310 /* end confdefs.h. */
25311 #include <unistd.h>
25312 /* Cause compilation failure if original declaration has wrong type. */
25313 ssize_t readlink (const char *, char *, size_t);
25322 if ac_fn_c_try_compile
"$LINENO"; then :
25323 gl_cv_decl_readlink_works
=yes
25325 gl_cv_decl_readlink_works
=no
25327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25330 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25332 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25333 if test "${gl_cv_func_readlink_works+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25336 # We have readlink, so assume ln -s works.
25337 ln -s conftest.no-such conftest.link
25338 ln -s conftest.link conftest.lnk2
25339 if test "$cross_compiling" = yes; then :
25341 # Guess yes on glibc systems.
25342 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25343 # If we don't know, assume the worst.
25344 *) gl_cv_func_readlink_works
="guessing no" ;;
25348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h. */
25350 #include <unistd.h>
25356 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25361 if ac_fn_c_try_run
"$LINENO"; then :
25362 gl_cv_func_readlink_works
=yes
25364 gl_cv_func_readlink_works
=no
25366 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25367 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25370 rm -f conftest.link conftest.lnk2
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25373 $as_echo "$gl_cv_func_readlink_works" >&6; }
25374 case "$gl_cv_func_readlink_works" in
25376 if test "$gl_cv_decl_readlink_works" != yes; then
25382 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25389 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25398 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25419 if test $ac_cv_func_readlinkat = no
; then
25423 if test $HAVE_READLINKAT = 0; then
25432 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25440 GNULIB_READLINKAT
=1
25447 for ac_func
in sig2str
25449 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25450 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25451 cat >>confdefs.h
<<_ACEOF
25452 #define HAVE_SIG2STR 1
25459 if test $ac_cv_func_sig2str = no
; then
25468 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25485 if test $gl_cv_have_include_next = yes; then
25486 gl_cv_next_signal_h
='<'signal.h
'>'
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25489 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25490 if test "${gl_cv_next_signal_h+set}" = set; then :
25491 $as_echo_n "(cached) " >&6
25494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25495 /* end confdefs.h. */
25496 #include <signal.h>
25500 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25501 *) gl_absname_cpp
="$ac_cpp" ;;
25506 gl_dirsep_regex
='[/\\]'
25509 gl_dirsep_regex
='\/'
25512 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25514 gl_header_literal_regex
=`echo 'signal.h' \
25515 | sed -e "$gl_make_literal_regex_sed"`
25516 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25522 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25523 sed -n "$gl_absolute_header_sed"`'"'
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25528 $as_echo "$gl_cv_next_signal_h" >&6; }
25530 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25532 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25533 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25534 gl_next_as_first_directive
='<'signal.h
'>'
25536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25537 gl_next_as_first_directive
=$gl_cv_next_signal_h
25539 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25545 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25546 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25547 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25548 #include <signal.h>
25551 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25554 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25563 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25564 #include <signal.h>
25567 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25570 HAVE_SIGHANDLER_T
=0
25576 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25577 /* <sys/types.h> is not needed according to POSIX, but the
25578 <sys/socket.h> in i386-unknown-freebsd4.10 and
25579 powerpc-apple-darwin5.5 required it. */
25580 #include <sys/types.h>
25581 #if HAVE_SYS_SOCKET_H
25582 # include <sys/socket.h>
25583 #elif HAVE_WS2TCPIP_H
25584 # include <ws2tcpip.h>
25588 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25592 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25593 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25594 $as_echo_n "(cached) " >&6
25596 # Systems have either "struct sockaddr *" or
25597 # "void *" as the second argument to getpeername
25598 gl_cv_socklen_t_equiv
=
25599 for arg2
in "struct sockaddr" void
; do
25600 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h. */
25603 #include <sys/types.h>
25604 #include <sys/socket.h>
25606 int getpeername (int, $arg2 *, $t *);
25611 getpeername (0, 0, &len);
25616 if ac_fn_c_try_compile
"$LINENO"; then :
25617 gl_cv_socklen_t_equiv
="$t"
25619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25620 test "$gl_cv_socklen_t_equiv" != "" && break
25622 test "$gl_cv_socklen_t_equiv" != "" && break
25627 if test "$gl_cv_socklen_t_equiv" = ""; then
25628 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25631 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25633 cat >>confdefs.h
<<_ACEOF
25634 #define socklen_t $gl_cv_socklen_t_equiv
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25641 $as_echo_n "checking for ssize_t... " >&6; }
25642 if test "${gt_cv_ssize_t+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25646 /* end confdefs.h. */
25647 #include <sys/types.h>
25651 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25657 if ac_fn_c_try_compile
"$LINENO"; then :
25662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25665 $as_echo "$gt_cv_ssize_t" >&6; }
25666 if test $gt_cv_ssize_t = no
; then
25668 $as_echo "#define ssize_t int" >>confdefs.h
25676 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>
25677 #include <sys/stat.h>
25679 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25681 cat >>confdefs.h
<<_ACEOF
25682 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25686 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25687 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25691 /* end confdefs.h. */
25693 #include <sys/types.h>
25694 #include <sys/stat.h>
25695 #if HAVE_SYS_TIME_H
25696 # include <sys/time.h>
25699 struct timespec ts;
25712 if ac_fn_c_try_compile
"$LINENO"; then :
25713 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25715 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25720 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25721 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25723 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25727 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>
25728 #include <sys/stat.h>
25730 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25732 cat >>confdefs.h
<<_ACEOF
25733 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25738 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25739 #include <sys/stat.h>
25741 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25743 cat >>confdefs.h
<<_ACEOF
25744 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25749 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>
25750 #include <sys/stat.h>
25752 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25754 cat >>confdefs.h
<<_ACEOF
25755 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25771 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>
25772 #include <sys/stat.h>
25774 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
25776 cat >>confdefs.h
<<_ACEOF
25777 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25782 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25783 #include <sys/stat.h>
25785 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
25787 cat >>confdefs.h
<<_ACEOF
25788 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25793 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>
25794 #include <sys/stat.h>
25796 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
25798 cat >>confdefs.h
<<_ACEOF
25799 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25812 $as_echo_n "checking for working stdalign.h... " >&6; }
25813 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25817 /* end confdefs.h. */
25818 #include <stdalign.h>
25819 #include <stddef.h>
25821 /* Test that alignof yields a result consistent with offsetof.
25822 This catches GCC bug 52023
25823 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25825 template <class t> struct alignof_helper { char a; t b; };
25826 # define ao(type) offsetof (alignof_helper<type>, b)
25828 # define ao(type) offsetof (struct { char a; type b; }, b)
25830 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25831 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25832 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25834 /* Test _Alignas only on platforms where gnulib can help. */
25836 ((defined __cplusplus && 201103 <= __cplusplus) \
25837 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
25838 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25839 struct alignas_test { char c; char alignas (8) alignas_8; };
25840 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25852 if ac_fn_c_try_compile
"$LINENO"; then :
25853 gl_cv_header_working_stdalign_h
=yes
25855 gl_cv_header_working_stdalign_h
=no
25857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25860 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25862 if test $gl_cv_header_working_stdalign_h = yes; then
25865 STDALIGN_H
='stdalign.h'
25869 if test -n "$STDALIGN_H"; then
25870 GL_GENERATE_STDALIGN_H_TRUE
=
25871 GL_GENERATE_STDALIGN_H_FALSE
='#'
25873 GL_GENERATE_STDALIGN_H_TRUE
='#'
25874 GL_GENERATE_STDALIGN_H_FALSE
=
25880 NEXT_STDARG_H
='<stdarg.h>'
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25882 $as_echo_n "checking for va_copy... " >&6; }
25883 if test "${gl_cv_func_va_copy+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25888 /* end confdefs.h. */
25889 #include <stdarg.h>
25895 void (*func) (va_list, va_list) = va_copy;
25902 if ac_fn_c_try_compile
"$LINENO"; then :
25903 gl_cv_func_va_copy
=yes
25905 gl_cv_func_va_copy
=no
25907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25911 $as_echo "$gl_cv_func_va_copy" >&6; }
25912 if test $gl_cv_func_va_copy = no
; then
25913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h. */
25915 #if defined _AIX && !defined __GNUC__
25920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25921 $EGREP "vaccine" >/dev
/null
2>&1; then :
25928 if test $gl_aixcc = yes; then
25938 if test $gl_cv_have_include_next = yes; then
25939 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25942 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25943 if test "${gl_cv_next_stdarg_h+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25948 /* end confdefs.h. */
25949 #include <stdarg.h>
25953 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25954 *) gl_absname_cpp
="$ac_cpp" ;;
25959 gl_dirsep_regex
='[/\\]'
25962 gl_dirsep_regex
='\/'
25965 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25967 gl_header_literal_regex
=`echo 'stdarg.h' \
25968 | sed -e "$gl_make_literal_regex_sed"`
25969 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25975 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25976 sed -n "$gl_absolute_header_sed"`'"'
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25981 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25983 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
25985 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25986 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25987 gl_next_as_first_directive
='<'stdarg.h
'>'
25989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25990 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
25992 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
25997 if test "$gl_cv_next_stdarg_h" = '""'; then
25998 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
25999 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
26003 saved_as_echo_n
="$as_echo_n"
26005 if test "${gl_cv_func___va_copy+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h. */
26011 #include <stdarg.h>
26024 if ac_fn_c_try_compile
"$LINENO"; then :
26025 gl_cv_func___va_copy
=yes
26027 gl_cv_func___va_copy
=no
26029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26032 as_echo_n
="$saved_as_echo_n"
26034 if test $gl_cv_func___va_copy = yes; then
26036 $as_echo "#define va_copy __va_copy" >>confdefs.h
26041 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26047 if test -n "$STDARG_H"; then
26048 GL_GENERATE_STDARG_H_TRUE
=
26049 GL_GENERATE_STDARG_H_FALSE
='#'
26051 GL_GENERATE_STDARG_H_TRUE
='#'
26052 GL_GENERATE_STDARG_H_FALSE
=
26060 # Define two additional variables used in the Makefile substitution.
26062 if test "$ac_cv_header_stdbool_h" = yes; then
26065 STDBOOL_H
='stdbool.h'
26068 if test -n "$STDBOOL_H"; then
26069 GL_GENERATE_STDBOOL_H_TRUE
=
26070 GL_GENERATE_STDBOOL_H_FALSE
='#'
26072 GL_GENERATE_STDBOOL_H_TRUE
='#'
26073 GL_GENERATE_STDBOOL_H_FALSE
=
26077 if test "$ac_cv_type__Bool" = yes; then
26088 if test $gt_cv_c_wchar_t = no
; then
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26093 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26094 if test "${gl_cv_decl_null_works+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26099 #include <stddef.h>
26100 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26110 if ac_fn_c_try_compile
"$LINENO"; then :
26111 gl_cv_decl_null_works
=yes
26113 gl_cv_decl_null_works
=no
26115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26118 $as_echo "$gl_cv_decl_null_works" >&6; }
26119 if test $gl_cv_decl_null_works = no
; then
26124 if test -n "$STDDEF_H"; then
26125 GL_GENERATE_STDDEF_H_TRUE
=
26126 GL_GENERATE_STDDEF_H_FALSE
='#'
26128 GL_GENERATE_STDDEF_H_TRUE
='#'
26129 GL_GENERATE_STDDEF_H_FALSE
=
26132 if test -n "$STDDEF_H"; then
26141 if test $gl_cv_have_include_next = yes; then
26142 gl_cv_next_stddef_h
='<'stddef.h
'>'
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26145 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26146 if test "${gl_cv_next_stddef_h+set}" = set; then :
26147 $as_echo_n "(cached) " >&6
26150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26151 /* end confdefs.h. */
26152 #include <stddef.h>
26156 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26157 *) gl_absname_cpp
="$ac_cpp" ;;
26162 gl_dirsep_regex
='[/\\]'
26165 gl_dirsep_regex
='\/'
26168 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26170 gl_header_literal_regex
=`echo 'stddef.h' \
26171 | sed -e "$gl_make_literal_regex_sed"`
26172 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26178 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26179 sed -n "$gl_absolute_header_sed"`'"'
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26184 $as_echo "$gl_cv_next_stddef_h" >&6; }
26186 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26188 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26190 gl_next_as_first_directive
='<'stddef.h
'>'
26192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26193 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26195 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26213 if test $gl_cv_have_include_next = yes; then
26214 gl_cv_next_stdio_h
='<'stdio.h
'>'
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26217 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26218 if test "${gl_cv_next_stdio_h+set}" = set; then :
26219 $as_echo_n "(cached) " >&6
26222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26228 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26229 *) gl_absname_cpp
="$ac_cpp" ;;
26234 gl_dirsep_regex
='[/\\]'
26237 gl_dirsep_regex
='\/'
26240 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26242 gl_header_literal_regex
=`echo 'stdio.h' \
26243 | sed -e "$gl_make_literal_regex_sed"`
26244 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26245 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26250 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26251 sed -n "$gl_absolute_header_sed"`'"'
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26256 $as_echo "$gl_cv_next_stdio_h" >&6; }
26258 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26260 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26262 gl_next_as_first_directive
='<'stdio.h
'>'
26264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26265 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26267 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26276 cat >>confdefs.h
<<_ACEOF
26277 #define GNULIB_FSCANF 1
26284 cat >>confdefs.h
<<_ACEOF
26285 #define GNULIB_SCANF 1
26321 if test $gl_cv_have_include_next = yes; then
26322 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26325 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26326 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26327 $as_echo_n "(cached) " >&6
26330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26331 /* end confdefs.h. */
26332 #include <stdlib.h>
26336 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26337 *) gl_absname_cpp
="$ac_cpp" ;;
26342 gl_dirsep_regex
='[/\\]'
26345 gl_dirsep_regex
='\/'
26348 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26350 gl_header_literal_regex
=`echo 'stdlib.h' \
26351 | sed -e "$gl_make_literal_regex_sed"`
26352 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26353 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26358 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26359 sed -n "$gl_absolute_header_sed"`'"'
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26364 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26366 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26368 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26370 gl_next_as_first_directive
='<'stdlib.h
'>'
26372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26373 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26375 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26385 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26393 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26405 if test "$ac_cv_have_decl_strtoimax" != yes; then
26406 HAVE_DECL_STRTOIMAX
=0
26409 if test $ac_cv_func_strtoimax = yes; then
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26412 $as_echo_n "checking whether strtoimax works... " >&6; }
26413 if test "${gl_cv_func_strtoimax+set}" = set; then :
26414 $as_echo_n "(cached) " >&6
26416 if test "$cross_compiling" = yes; then :
26418 # Guess no on AIX 5.
26419 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26420 # Guess yes otherwise.
26421 *) gl_cv_func_strtoimax
="guessing yes" ;;
26425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26426 /* end confdefs.h. */
26429 #include <string.h>
26430 #include <inttypes.h>
26433 if (sizeof (intmax_t) > sizeof (int))
26435 const char *s = "4294967295";
26439 res = strtoimax (s, &p, 10);
26440 if (p != s + strlen (s))
26444 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26449 const char *s = "2147483647";
26453 res = strtoimax (s, &p, 10);
26454 if (p != s + strlen (s))
26458 if (res != 2147483647)
26465 if ac_fn_c_try_run
"$LINENO"; then :
26466 gl_cv_func_strtoimax
=yes
26468 gl_cv_func_strtoimax
=no
26470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26477 $as_echo "$gl_cv_func_strtoimax" >&6; }
26478 case "$gl_cv_func_strtoimax" in
26479 *no
) REPLACE_STRTOIMAX
=1 ;;
26485 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26494 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26497 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26498 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26504 cat >>confdefs.h
<<_ACEOF
26505 #define HAVE_DECL_STRTOLL $ac_have_decl
26526 if test "$ac_cv_have_decl_strtoumax" != yes; then
26527 HAVE_DECL_STRTOUMAX
=0
26530 if test $ac_cv_func_strtoumax = no
; then
26539 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26542 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26543 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26549 cat >>confdefs.h
<<_ACEOF
26550 #define HAVE_DECL_STRTOULL $ac_have_decl
26569 if test $ac_cv_func_symlink = no
; then
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26573 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26574 if test "${gl_cv_func_symlink_works+set}" = set; then :
26575 $as_echo_n "(cached) " >&6
26577 if test "$cross_compiling" = yes; then :
26579 # Guess yes on glibc systems.
26580 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26581 # If we don't know, assume the worst.
26582 *) gl_cv_func_symlink_works
="guessing no" ;;
26586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26587 /* end confdefs.h. */
26588 #include <unistd.h>
26594 if (!symlink ("a", "conftest.link/"))
26596 if (symlink ("conftest.f", "conftest.lnk2"))
26598 else if (!symlink ("a", "conftest.lnk2/"))
26606 if ac_fn_c_try_run
"$LINENO"; then :
26607 gl_cv_func_symlink_works
=yes
26609 gl_cv_func_symlink_works
=no
26611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26615 rm -f conftest.f conftest.link conftest.lnk2
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26618 $as_echo "$gl_cv_func_symlink_works" >&6; }
26619 case "$gl_cv_func_symlink_works" in
26627 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26636 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26654 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26655 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26656 $as_echo_n "(cached) " >&6
26659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26660 /* end confdefs.h. */
26661 #include <sys/select.h>
26670 if ac_fn_c_try_compile
"$LINENO"; then :
26671 gl_cv_header_sys_select_h_selfcontained
=yes
26673 gl_cv_header_sys_select_h_selfcontained
=no
26675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26676 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h. */
26679 #include <sys/select.h>
26683 int memset; int bzero;
26689 if ac_fn_c_try_compile
"$LINENO"; then :
26690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26691 /* end confdefs.h. */
26692 #include <sys/select.h>
26698 #define memset nonexistent_memset
26703 void *memset (void *, int, unsigned long);
26705 #define bzero nonexistent_bzero
26710 void bzero (void *, unsigned long);
26719 if ac_fn_c_try_link
"$LINENO"; then :
26722 gl_cv_header_sys_select_h_selfcontained
=no
26724 rm -f core conftest.err conftest.
$ac_objext \
26725 conftest
$ac_exeext conftest.
$ac_ext
26728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26733 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26743 if test $gl_cv_have_include_next = yes; then
26744 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26747 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26748 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26749 $as_echo_n "(cached) " >&6
26752 if test $ac_cv_header_sys_select_h = yes; then
26755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26756 /* end confdefs.h. */
26757 #include <sys/select.h>
26761 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26762 *) gl_absname_cpp
="$ac_cpp" ;;
26767 gl_dirsep_regex
='[/\\]'
26770 gl_dirsep_regex
='\/'
26773 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26775 gl_header_literal_regex
=`echo 'sys/select.h' \
26776 | sed -e "$gl_make_literal_regex_sed"`
26777 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26783 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26784 sed -n "$gl_absolute_header_sed"`'"'
26786 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26792 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26794 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
26796 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26798 gl_next_as_first_directive
='<'sys
/select.h
'>'
26800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26801 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
26803 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
26808 if test $ac_cv_header_sys_select_h = yes; then
26809 HAVE_SYS_SELECT_H
=1
26811 HAVE_SYS_SELECT_H
=0
26818 if test $ac_cv_header_sys_socket_h != yes; then
26819 for ac_header
in winsock2.h
26821 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26822 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
26823 cat >>confdefs.h
<<_ACEOF
26824 #define HAVE_WINSOCK2_H 1
26832 if test "$ac_cv_header_winsock2_h" = yes; then
26834 UNISTD_H_HAVE_WINSOCK2_H
=1
26835 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26859 if test $gl_cv_have_include_next = yes; then
26860 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26863 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26864 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26865 $as_echo_n "(cached) " >&6
26868 if test $ac_cv_header_sys_stat_h = yes; then
26871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26872 /* end confdefs.h. */
26873 #include <sys/stat.h>
26877 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26878 *) gl_absname_cpp
="$ac_cpp" ;;
26883 gl_dirsep_regex
='[/\\]'
26886 gl_dirsep_regex
='\/'
26889 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26891 gl_header_literal_regex
=`echo 'sys/stat.h' \
26892 | sed -e "$gl_make_literal_regex_sed"`
26893 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26894 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26899 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26900 sed -n "$gl_absolute_header_sed"`'"'
26902 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26908 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26910 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26912 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26913 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26914 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26917 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26919 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26931 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26933 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26937 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26938 #include <sys/stat.h>
26940 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
26944 $as_echo "#define nlink_t int" >>confdefs.h
26965 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
26967 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
26973 cat >>confdefs.h
<<_ACEOF
26974 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26977 if test $ac_cv_have_decl_localtime_r = no
; then
26978 HAVE_DECL_LOCALTIME_R
=0
26982 if test $ac_cv_func_localtime_r = yes; then
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26985 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26986 if test "${gl_cv_time_r_posix+set}" = set; then :
26987 $as_echo_n "(cached) " >&6
26989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26995 /* We don't need to append 'restrict's to the argument types,
26996 even though the POSIX signature has the 'restrict's,
26997 since C99 says they can't affect type compatibility. */
26998 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27000 /* Check the return type is a pointer.
27001 On HP-UX 10 it is 'int'. */
27002 *localtime_r (0, 0);
27008 if ac_fn_c_try_compile
"$LINENO"; then :
27009 gl_cv_time_r_posix
=yes
27011 gl_cv_time_r_posix
=no
27013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27017 $as_echo "$gl_cv_time_r_posix" >&6; }
27018 if test $gl_cv_time_r_posix = yes; then
27019 REPLACE_LOCALTIME_R
=0
27021 REPLACE_LOCALTIME_R
=1
27027 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27036 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27060 gl_saved_libs
=$LIBS
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27062 $as_echo_n "checking for library containing timer_settime... " >&6; }
27063 if test "${ac_cv_search_timer_settime+set}" = set; then :
27064 $as_echo_n "(cached) " >&6
27066 ac_func_search_save_LIBS
=$LIBS
27067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27068 /* end confdefs.h. */
27070 /* Override any GCC internal prototype to avoid an error.
27071 Use char because int might match the return type of a GCC
27072 builtin and then its argument prototype would still apply. */
27076 char timer_settime ();
27080 return timer_settime ();
27085 for ac_lib
in '' rt posix4
; do
27086 if test -z "$ac_lib"; then
27087 ac_res
="none required"
27090 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27092 if ac_fn_c_try_link
"$LINENO"; then :
27093 ac_cv_search_timer_settime
=$ac_res
27095 rm -f core conftest.err conftest.
$ac_objext \
27097 if test "${ac_cv_search_timer_settime+set}" = set; then :
27101 if test "${ac_cv_search_timer_settime+set}" = set; then :
27104 ac_cv_search_timer_settime
=no
27106 rm conftest.
$ac_ext
27107 LIBS
=$ac_func_search_save_LIBS
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27110 $as_echo "$ac_cv_search_timer_settime" >&6; }
27111 ac_res
=$ac_cv_search_timer_settime
27112 if test "$ac_res" != no
; then :
27113 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27114 test "$ac_cv_search_timer_settime" = "none required" ||
27115 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27119 /* end confdefs.h. */
27121 #include <features.h>
27122 #ifdef __GNU_LIBRARY__
27123 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27124 && !defined __UCLIBC__
27125 Thread emulation available
27130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27131 $EGREP "Thread" >/dev
/null
2>&1; then :
27132 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27136 for ac_func
in timer_settime
27138 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27139 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27140 cat >>confdefs.h
<<_ACEOF
27141 #define HAVE_TIMER_SETTIME 1
27147 LIBS
=$gl_saved_libs
27162 if test $gl_cv_have_include_next = yes; then
27163 gl_cv_next_unistd_h
='<'unistd.h
'>'
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27166 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27167 if test "${gl_cv_next_unistd_h+set}" = set; then :
27168 $as_echo_n "(cached) " >&6
27171 if test $ac_cv_header_unistd_h = yes; then
27174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27175 /* end confdefs.h. */
27176 #include <unistd.h>
27180 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27181 *) gl_absname_cpp
="$ac_cpp" ;;
27186 gl_dirsep_regex
='[/\\]'
27189 gl_dirsep_regex
='\/'
27192 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27194 gl_header_literal_regex
=`echo 'unistd.h' \
27195 | sed -e "$gl_make_literal_regex_sed"`
27196 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27197 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27202 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27203 sed -n "$gl_absolute_header_sed"`'"'
27205 gl_cv_next_unistd_h
='<'unistd.h
'>'
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27211 $as_echo "$gl_cv_next_unistd_h" >&6; }
27213 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27215 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27217 gl_next_as_first_directive
='<'unistd.h
'>'
27219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27220 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27222 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27227 if test $ac_cv_header_unistd_h = yes; then
27243 if test $ac_cv_have_decl_unsetenv = no
; then
27244 HAVE_DECL_UNSETENV
=0
27246 for ac_func
in unsetenv
27248 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27249 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27250 cat >>confdefs.h
<<_ACEOF
27251 #define HAVE_UNSETENV 1
27257 if test $ac_cv_func_unsetenv = no
; then
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27262 $as_echo_n "checking for unsetenv() return type... " >&6; }
27263 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27264 $as_echo_n "(cached) " >&6
27266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27270 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27271 #include <stdlib.h>
27276 int unsetenv (const char *name);
27286 if ac_fn_c_try_compile
"$LINENO"; then :
27287 gt_cv_func_unsetenv_ret
='int'
27289 gt_cv_func_unsetenv_ret
='void'
27291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27294 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27295 if test $gt_cv_func_unsetenv_ret = 'void'; then
27297 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27303 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27304 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27305 $as_echo_n "(cached) " >&6
27307 if test "$cross_compiling" = yes; then :
27309 # Guess yes on glibc systems.
27310 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27311 # If we don't know, assume the worst.
27312 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27317 /* end confdefs.h. */
27319 #include <stdlib.h>
27321 extern char **environ;
27327 char entry1[] = "a=1";
27328 char entry2[] = "b=2";
27329 char *env[] = { entry1, entry2, NULL };
27330 if (putenv ((char *) "a=1")) return 1;
27331 if (putenv (entry2)) return 2;
27334 if (getenv ("a")) return 3;
27335 if (!unsetenv ("") || errno != EINVAL) return 4;
27338 if (!getenv ("a")) return 5;
27341 if (getenv ("a")) return 6;
27347 if ac_fn_c_try_run
"$LINENO"; then :
27348 gl_cv_func_unsetenv_works
=yes
27350 gl_cv_func_unsetenv_works
=no
27352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27358 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27359 case "$gl_cv_func_unsetenv_works" in
27367 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27376 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27400 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27402 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27403 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27404 $as_echo_n "(cached) " >&6
27406 touch conftest.
file
27407 if test "$cross_compiling" = yes; then :
27409 # Guess yes on glibc systems.
27410 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27411 # If we don't know, assume the worst.
27412 *) gl_cv_func_futimesat_works
="guessing no" ;;
27416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27419 #include <stddef.h>
27420 #include <sys/times.h>
27426 int fd = open ("conftest.file", O_RDWR);
27427 if (fd < 0) return 1;
27428 if (futimesat (fd, NULL, NULL)) return 2;
27434 if ac_fn_c_try_run
"$LINENO"; then :
27435 gl_cv_func_futimesat_works
=yes
27437 gl_cv_func_futimesat_works
=no
27439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27443 rm -f conftest.
file
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27446 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27447 case "$gl_cv_func_futimesat_works" in
27451 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27457 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27458 gl_gnulib_enabled_dosname
=false
27459 gl_gnulib_enabled_euidaccess
=false
27460 gl_gnulib_enabled_getdtablesize
=false
27461 gl_gnulib_enabled_getgroups
=false
27462 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27463 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27464 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27465 gl_gnulib_enabled_pathmax
=false
27466 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27467 gl_gnulib_enabled_stat
=false
27468 gl_gnulib_enabled_strtoll
=false
27469 gl_gnulib_enabled_strtoull
=false
27470 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27471 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27473 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27482 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27484 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27487 func_gl_gnulib_m4code_dosname
()
27489 if ! $gl_gnulib_enabled_dosname; then
27490 gl_gnulib_enabled_dosname
=true
27493 func_gl_gnulib_m4code_euidaccess
()
27495 if ! $gl_gnulib_enabled_euidaccess; then
27501 for ac_func
in euidaccess
27503 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27504 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27505 cat >>confdefs.h
<<_ACEOF
27506 #define HAVE_EUIDACCESS 1
27512 if test $ac_cv_func_euidaccess = no
; then
27516 if test $HAVE_EUIDACCESS = 0; then
27525 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27529 for ac_header
in libgen.h
27531 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27532 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27533 cat >>confdefs.h
<<_ACEOF
27534 #define HAVE_LIBGEN_H 1
27542 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27543 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27548 # If we don't yet have getgroups, see if it's in -lbsd.
27549 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27551 if test $ac_cv_func_getgroups = no
; then
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27553 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27554 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27555 $as_echo_n "(cached) " >&6
27557 ac_check_lib_save_LIBS
=$LIBS
27559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27560 /* end confdefs.h. */
27562 /* Override any GCC internal prototype to avoid an error.
27563 Use char because int might match the return type of a GCC
27564 builtin and then its argument prototype would still apply. */
27572 return getgroups ();
27577 if ac_fn_c_try_link
"$LINENO"; then :
27578 ac_cv_lib_bsd_getgroups
=yes
27580 ac_cv_lib_bsd_getgroups
=no
27582 rm -f core conftest.err conftest.
$ac_objext \
27583 conftest
$ac_exeext conftest.
$ac_ext
27584 LIBS
=$ac_check_lib_save_LIBS
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27587 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27588 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27589 GETGROUPS_LIB
=-lbsd
27594 # Run the program to test the functionality of the system-supplied
27595 # getgroups function only if there is such a function.
27596 if test $ac_cv_func_getgroups = yes; then
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27598 $as_echo_n "checking for working getgroups... " >&6; }
27599 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27600 $as_echo_n "(cached) " >&6
27602 if test "$cross_compiling" = yes; then :
27603 case "$host_os" in # ((
27604 # Guess yes on glibc systems.
27605 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27606 # If we don't know, assume the worst.
27607 *) ac_cv_func_getgroups_works
="guessing no" ;;
27611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27612 /* end confdefs.h. */
27613 $ac_includes_default
27617 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27618 return getgroups (0, 0) == -1;
27624 if ac_fn_c_try_run
"$LINENO"; then :
27625 ac_cv_func_getgroups_works
=yes
27627 ac_cv_func_getgroups_works
=no
27629 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27630 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27636 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27638 ac_cv_func_getgroups_works
=no
27640 case "$ac_cv_func_getgroups_works" in
27643 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27650 # Solaris 9 and 10 need -lgen to get the eaccess function.
27651 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27652 # programs in the package would end up linked with that potentially-shared
27653 # library, inducing unnecessary run-time overhead.
27656 gl_saved_libs
=$LIBS
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27658 $as_echo_n "checking for library containing eaccess... " >&6; }
27659 if test "${ac_cv_search_eaccess+set}" = set; then :
27660 $as_echo_n "(cached) " >&6
27662 ac_func_search_save_LIBS
=$LIBS
27663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27664 /* end confdefs.h. */
27666 /* Override any GCC internal prototype to avoid an error.
27667 Use char because int might match the return type of a GCC
27668 builtin and then its argument prototype would still apply. */
27681 for ac_lib
in '' gen
; do
27682 if test -z "$ac_lib"; then
27683 ac_res
="none required"
27686 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27688 if ac_fn_c_try_link
"$LINENO"; then :
27689 ac_cv_search_eaccess
=$ac_res
27691 rm -f core conftest.err conftest.
$ac_objext \
27693 if test "${ac_cv_search_eaccess+set}" = set; then :
27697 if test "${ac_cv_search_eaccess+set}" = set; then :
27700 ac_cv_search_eaccess
=no
27702 rm conftest.
$ac_ext
27703 LIBS
=$ac_func_search_save_LIBS
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27706 $as_echo "$ac_cv_search_eaccess" >&6; }
27707 ac_res
=$ac_cv_search_eaccess
27708 if test "$ac_res" != no
; then :
27709 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27710 test "$ac_cv_search_eaccess" = "none required" ||
27711 LIB_EACCESS
=$ac_cv_search_eaccess
27714 for ac_func
in eaccess
27716 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27717 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27718 cat >>confdefs.h
<<_ACEOF
27719 #define HAVE_EACCESS 1
27725 LIBS
=$gl_saved_libs
27733 GNULIB_EUIDACCESS
=1
27739 gl_gnulib_enabled_euidaccess
=true
27740 if test $HAVE_EUIDACCESS = 0; then
27741 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27743 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27744 if test $HAVE_EUIDACCESS = 0; then
27745 func_gl_gnulib_m4code_stat
27749 func_gl_gnulib_m4code_getdtablesize
()
27751 if ! $gl_gnulib_enabled_getdtablesize; then
27755 if test $ac_cv_func_getdtablesize != yes; then
27756 HAVE_GETDTABLESIZE
=0
27759 if test $HAVE_GETDTABLESIZE = 0; then
27768 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
27777 GNULIB_GETDTABLESIZE
=1
27783 gl_gnulib_enabled_getdtablesize
=true
27786 func_gl_gnulib_m4code_getgroups
()
27788 if ! $gl_gnulib_enabled_getgroups; then
27794 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27795 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27800 # If we don't yet have getgroups, see if it's in -lbsd.
27801 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27803 if test $ac_cv_func_getgroups = no
; then
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27805 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27806 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27807 $as_echo_n "(cached) " >&6
27809 ac_check_lib_save_LIBS
=$LIBS
27811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27812 /* end confdefs.h. */
27814 /* Override any GCC internal prototype to avoid an error.
27815 Use char because int might match the return type of a GCC
27816 builtin and then its argument prototype would still apply. */
27824 return getgroups ();
27829 if ac_fn_c_try_link
"$LINENO"; then :
27830 ac_cv_lib_bsd_getgroups
=yes
27832 ac_cv_lib_bsd_getgroups
=no
27834 rm -f core conftest.err conftest.
$ac_objext \
27835 conftest
$ac_exeext conftest.
$ac_ext
27836 LIBS
=$ac_check_lib_save_LIBS
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27839 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27840 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27841 GETGROUPS_LIB
=-lbsd
27846 # Run the program to test the functionality of the system-supplied
27847 # getgroups function only if there is such a function.
27848 if test $ac_cv_func_getgroups = yes; then
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27850 $as_echo_n "checking for working getgroups... " >&6; }
27851 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27852 $as_echo_n "(cached) " >&6
27854 if test "$cross_compiling" = yes; then :
27855 case "$host_os" in # ((
27856 # Guess yes on glibc systems.
27857 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27858 # If we don't know, assume the worst.
27859 *) ac_cv_func_getgroups_works
="guessing no" ;;
27863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27864 /* end confdefs.h. */
27865 $ac_includes_default
27869 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27870 return getgroups (0, 0) == -1;
27876 if ac_fn_c_try_run
"$LINENO"; then :
27877 ac_cv_func_getgroups_works
=yes
27879 ac_cv_func_getgroups_works
=no
27881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27888 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27890 ac_cv_func_getgroups_works
=no
27892 case "$ac_cv_func_getgroups_works" in
27895 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27901 if test $ac_cv_func_getgroups != yes; then
27904 if test "$ac_cv_type_getgroups" != gid_t \
27905 ||
{ case "$ac_cv_func_getgroups_works" in
27910 REPLACE_GETGROUPS
=1
27912 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
27916 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
27917 if test "${gl_cv_func_getgroups_works+set}" = set; then :
27918 $as_echo_n "(cached) " >&6
27920 if test "$cross_compiling" = yes; then :
27922 # Guess yes on glibc systems.
27923 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
27924 # If we don't know, assume the worst.
27925 *) gl_cv_func_getgroups_works
="guessing no" ;;
27929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h. */
27931 $ac_includes_default
27935 int size = getgroups (0, 0);
27936 gid_t *list = malloc (size * sizeof *list);
27937 return getgroups (-1, list) != -1;
27942 if ac_fn_c_try_run
"$LINENO"; then :
27943 gl_cv_func_getgroups_works
=yes
27945 gl_cv_func_getgroups_works
=no
27947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
27953 $as_echo "$gl_cv_func_getgroups_works" >&6; }
27954 case "$gl_cv_func_getgroups_works" in
27956 *) REPLACE_GETGROUPS
=1 ;;
27960 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
27962 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
27971 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
27985 gl_gnulib_enabled_getgroups
=true
27988 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
27990 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27993 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
27996 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
27998 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28004 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
28005 if test "x$ac_cv_func_group_member" = x
""yes; then :
28009 HAVE_GROUP_MEMBER
=0
28014 if test $HAVE_GROUP_MEMBER = 0; then
28023 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
28034 GNULIB_GROUP_MEMBER
=1
28040 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
28041 if test $HAVE_GROUP_MEMBER = 0; then
28042 func_gl_gnulib_m4code_getgroups
28044 if test $HAVE_GROUP_MEMBER = 0; then
28045 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28049 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
28051 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28052 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
28055 func_gl_gnulib_m4code_pathmax
()
28057 if ! $gl_gnulib_enabled_pathmax; then
28061 gl_gnulib_enabled_pathmax
=true
28064 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
28066 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28067 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
28070 func_gl_gnulib_m4code_stat
()
28072 if ! $gl_gnulib_enabled_stat; then
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28077 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28078 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28079 $as_echo_n "(cached) " >&6
28081 if test "$cross_compiling" = yes; then :
28083 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28084 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28088 /* end confdefs.h. */
28089 #include <sys/stat.h>
28094 struct stat st; return stat (".", &st) != stat ("./", &st);
28099 if ac_fn_c_try_run
"$LINENO"; then :
28100 gl_cv_func_stat_dir_slash
=yes
28102 gl_cv_func_stat_dir_slash
=no
28104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28110 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28112 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28113 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28114 $as_echo_n "(cached) " >&6
28117 # Assume that if we have lstat, we can also check symlinks.
28118 if test $ac_cv_func_lstat = yes; then
28119 ln -s conftest.tmp conftest.lnk
28121 if test "$cross_compiling" = yes; then :
28123 # Guess yes on glibc systems.
28124 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28125 # If we don't know, assume the worst.
28126 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28131 /* end confdefs.h. */
28132 #include <sys/stat.h>
28139 if (!stat ("conftest.tmp/", &st))
28142 if (!stat ("conftest.lnk/", &st))
28151 if ac_fn_c_try_run
"$LINENO"; then :
28152 gl_cv_func_stat_file_slash
=yes
28154 gl_cv_func_stat_file_slash
=no
28156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28160 rm -f conftest.tmp conftest.lnk
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28163 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28164 case $gl_cv_func_stat_dir_slash in
28165 *no
) REPLACE_STAT
=1
28167 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28170 case $gl_cv_func_stat_file_slash in
28171 *no
) REPLACE_STAT
=1
28173 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28177 if test $REPLACE_STAT = 1; then
28186 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28201 gl_gnulib_enabled_stat
=true
28202 if test $REPLACE_STAT = 1; then
28203 func_gl_gnulib_m4code_dosname
28205 if test $REPLACE_STAT = 1; then
28206 func_gl_gnulib_m4code_pathmax
28210 func_gl_gnulib_m4code_strtoll
()
28212 if ! $gl_gnulib_enabled_strtoll; then
28216 if test "$ac_cv_type_long_long_int" = yes; then
28217 for ac_func
in strtoll
28219 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28220 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28221 cat >>confdefs.h
<<_ACEOF
28222 #define HAVE_STRTOLL 1
28228 if test $ac_cv_func_strtoll = no
; then
28233 if test $HAVE_STRTOLL = 0; then
28242 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28259 gl_gnulib_enabled_strtoll
=true
28262 func_gl_gnulib_m4code_strtoull
()
28264 if ! $gl_gnulib_enabled_strtoull; then
28268 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28269 for ac_func
in strtoull
28271 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28272 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28273 cat >>confdefs.h
<<_ACEOF
28274 #define HAVE_STRTOULL 1
28280 if test $ac_cv_func_strtoull = no
; then
28285 if test $HAVE_STRTOULL = 0; then
28294 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28311 gl_gnulib_enabled_strtoull
=true
28314 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28316 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28317 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28320 if test $HAVE_FACCESSAT = 0; then
28321 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28323 if test $HAVE_FACCESSAT = 0; then
28324 func_gl_gnulib_m4code_dosname
28326 if test $HAVE_FACCESSAT = 0; then
28327 func_gl_gnulib_m4code_euidaccess
28329 if test $HAVE_FACCESSAT = 0; then
28330 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28332 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
28333 func_gl_gnulib_m4code_getdtablesize
28335 if test $HAVE_FDOPENDIR = 0; then
28336 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28338 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28339 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28341 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28342 func_gl_gnulib_m4code_dosname
28344 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28345 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28347 if test $REPLACE_GETOPT = 1; then
28348 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28350 if test $REPLACE_LSTAT = 1; then
28351 func_gl_gnulib_m4code_dosname
28353 if test $REPLACE_LSTAT = 1; then
28354 func_gl_gnulib_m4code_stat
28356 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28357 func_gl_gnulib_m4code_stat
28359 if test $HAVE_READLINKAT = 0; then
28360 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28362 if test $HAVE_READLINKAT = 0; then
28363 func_gl_gnulib_m4code_dosname
28365 if test $HAVE_READLINKAT = 0; then
28366 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28368 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28369 func_gl_gnulib_m4code_strtoll
28371 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28372 func_gl_gnulib_m4code_strtoull
28375 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28376 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28377 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28379 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28380 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28383 if $gl_gnulib_enabled_dosname; then
28384 gl_GNULIB_ENABLED_dosname_TRUE
=
28385 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28387 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28388 gl_GNULIB_ENABLED_dosname_FALSE
=
28391 if $gl_gnulib_enabled_euidaccess; then
28392 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28393 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28395 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28396 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28399 if $gl_gnulib_enabled_getdtablesize; then
28400 gl_GNULIB_ENABLED_getdtablesize_TRUE
=
28401 gl_GNULIB_ENABLED_getdtablesize_FALSE
='#'
28403 gl_GNULIB_ENABLED_getdtablesize_TRUE
='#'
28404 gl_GNULIB_ENABLED_getdtablesize_FALSE
=
28407 if $gl_gnulib_enabled_getgroups; then
28408 gl_GNULIB_ENABLED_getgroups_TRUE
=
28409 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28411 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28412 gl_GNULIB_ENABLED_getgroups_FALSE
=
28415 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28416 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28417 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28419 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28420 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28423 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28424 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28425 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28427 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28428 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28431 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28432 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28433 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28435 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28436 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28439 if $gl_gnulib_enabled_pathmax; then
28440 gl_GNULIB_ENABLED_pathmax_TRUE
=
28441 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28443 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28444 gl_GNULIB_ENABLED_pathmax_FALSE
=
28447 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28448 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28449 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28451 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28452 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28455 if $gl_gnulib_enabled_stat; then
28456 gl_GNULIB_ENABLED_stat_TRUE
=
28457 gl_GNULIB_ENABLED_stat_FALSE
='#'
28459 gl_GNULIB_ENABLED_stat_TRUE
='#'
28460 gl_GNULIB_ENABLED_stat_FALSE
=
28463 if $gl_gnulib_enabled_strtoll; then
28464 gl_GNULIB_ENABLED_strtoll_TRUE
=
28465 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28467 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28468 gl_GNULIB_ENABLED_strtoll_FALSE
=
28471 if $gl_gnulib_enabled_strtoull; then
28472 gl_GNULIB_ENABLED_strtoull_TRUE
=
28473 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28475 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28476 gl_GNULIB_ENABLED_strtoull_FALSE
=
28479 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28480 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28481 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28483 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28484 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28487 # End of code from modules
28508 gl_source_base
='tests'
28509 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
28511 gl_module_indicator_condition
=$gltests_WITNESS
28522 LIBGNU_LIBDEPS
="$gl_libdeps"
28524 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28527 CFLAGS
=$SAVE_CFLAGS
28530 if test "${opsys}" = "mingw32"; then
28531 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28532 # Remove unneeded switches from the value of CC that goes to Makefiles
28533 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28537 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28540 ## The -headerpad option tells ld (see man page) to leave room at the
28541 ## end of the header for adding load commands. Needed for dumping.
28542 ## 0x690 is the total size of 30 segment load commands (at 56
28543 ## each); under Cocoa 31 commands are required.
28544 if test "$HAVE_NS" = "yes"; then
28545 libs_nsgui
="-framework AppKit"
28546 if test "$NS_IMPL_COCOA" = "yes"; then
28547 libs_nsgui
="$libs_nsgui -framework IOKit"
28549 headerpad_extra
=6C8
28552 headerpad_extra
=690
28554 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28556 ## This is here because src/Makefile.in did some extra fiddling around
28557 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28558 ## LD_SWITCH_SYSTEM_TEMACS instead,
28559 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28560 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28563 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28564 ## find X at run-time.
28565 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28566 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28567 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28568 ## had different values in configure (in ac_link) and src/Makefile.in.
28569 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28570 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28573 ## MinGW64 does not prepend an underscore to symbols, so we must
28574 ## pass a different -entry switch to linker. FIXME: It is better
28575 ## to make the entry points the same by changing unexw32.c.
28576 case "$canonical" in
28577 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28578 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28582 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28584 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28587 if test x
$ac_enable_profiling != x
; then
28589 *freebsd | gnu-linux
) ;;
28590 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28596 ## MinGW-specific post-link processing of temacs.
28597 TEMACS_POST_LINK
=":"
28600 if test "${opsys}" = "mingw32"; then
28601 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28602 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28603 ## Preload heap size of temacs.exe in MB.
28604 case "$canonical" in
28605 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28606 *) EMACS_HEAPSIZE
=27 ;;
28614 ## Common for all window systems
28615 if test "$window_system" != "none"; then
28617 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28619 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28626 #### Report on what we decided to do.
28627 #### Report GTK as a toolkit, even if it doesn't use Xt.
28628 #### It makes printing result more understandable as using GTK sets
28629 #### toolkit_scroll_bars to yes by default.
28630 if test "${HAVE_GTK}" = "yes"; then
28631 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28634 if test $USE_ACL -ne 0; then
28635 acl_summary
="yes $LIB_ACL"
28641 Configured for \`${canonical}'.
28643 Where should the build process find the source code? ${srcdir}
28644 What compiler should emacs be built with? ${CC} ${CFLAGS}
28645 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28646 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28647 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28648 What window system should Emacs use? ${window_system}
28649 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28651 if test -n "${x_includes}"; then
28652 echo " Where do we find X Windows header files? ${x_includes}"
28654 echo " Where do we find X Windows header files? Standard dirs"
28656 if test -n "${x_libraries}"; then
28657 echo " Where do we find X Windows libraries? ${x_libraries}"
28659 echo " Where do we find X Windows libraries? Standard dirs"
28662 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28663 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28664 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28665 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28666 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28667 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28668 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28669 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28671 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28672 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28673 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28674 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28675 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28676 echo " Does Emacs use access control lists? ${acl_summary}"
28677 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28678 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28679 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28681 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28682 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28683 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28684 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28686 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28689 if test -n "${EMACSDATA}"; then
28690 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28692 if test -n "${EMACSDOC}"; then
28693 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28698 if test "$HAVE_NS" = "yes"; then
28700 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28701 The installed application will go to nextstep/Emacs.app and can be
28702 run or moved from there."
28703 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28704 echo "The application will be fully self-contained."
28706 echo "The lisp resources for the application will be installed under ${prefix}.
28707 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28708 to run if these resources are not installed."
28713 if test "${opsys}" = "cygwin"; then
28715 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
28716 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
28722 # Remove any trailing slashes in these variables.
28723 test "${prefix}" != NONE
&&
28724 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
28725 test "${exec_prefix}" != NONE
&&
28726 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
28728 if test "$HAVE_NS" = "yes"; then
28729 if test "$NS_IMPL_GNUSTEP" = yes; then
28730 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"
28733 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"
28738 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"
28740 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"
28743 opt_makefile
=test
/automated
/Makefile
28745 if test -f "$srcdir/$opt_makefile.in"; then
28746 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28747 ac_config_files
="$ac_config_files test/automated/Makefile"
28752 opt_makefile
=admin
/unidata
/Makefile
28754 if test -f "$srcdir/$opt_makefile.in"; then
28755 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28756 ac_config_files
="$ac_config_files admin/unidata/Makefile"
28761 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
28765 ac_config_commands
="$ac_config_commands mkdirs"
28768 ac_config_commands
="$ac_config_commands epaths"
28771 ac_config_commands
="$ac_config_commands gdbinit"
28774 cat >confcache
<<\_ACEOF
28775 # This file is a shell script that caches the results of configure
28776 # tests run on this system so they can be shared between configure
28777 # scripts and configure runs, see configure's option --config-cache.
28778 # It is not useful on other systems. If it contains results you don't
28779 # want to keep, you may remove or edit it.
28781 # config.status only pays attention to the cache file if you give it
28782 # the --recheck option to rerun configure.
28784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28786 # following values.
28790 # The following way of writing the cache mishandles newlines in values,
28791 # but we know of no workaround that is simple, portable, and efficient.
28792 # So, we kill variables containing newlines.
28793 # Ultrix sh set writes to stderr and can't be redirected directly,
28794 # and sets the high bit in the cache file unless we assign to the vars.
28796 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28797 eval ac_val
=\$
$ac_var
28801 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28805 _ | IFS | as_nl
) ;; #(
28806 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28807 *) { eval $ac_var=; unset $ac_var;} ;;
28813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28814 *${as_nl}ac_space
=\
*)
28815 # `set' does not quote correctly, so add quotes: double-quote
28816 # substitution turns \\\\ into \\, and sed turns \\ into \.
28819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28822 # `set' quotes correctly as required by POSIX, so do not add quotes.
28823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28836 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28837 if test -w "$cache_file"; then
28838 test "x$cache_file" != "x/dev/null" &&
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28840 $as_echo "$as_me: updating cache $cache_file" >&6;}
28841 cat confcache
>$cache_file
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28844 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28849 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28850 # Let make expand exec_prefix.
28851 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28853 DEFS
=-DHAVE_CONFIG_H
28857 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28858 # 1. Remove the extension, and $U if already installed.
28859 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28860 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28861 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28862 # will be set to the directory where LIBOBJS objects are built.
28863 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28864 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28866 LIBOBJS
=$ac_libobjs
28868 LTLIBOBJS
=$ac_ltlibobjs
28871 if test -n "$EXEEXT"; then
28873 am__EXEEXT_FALSE
='#'
28875 am__EXEEXT_TRUE
='#'
28879 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28880 as_fn_error
"conditional \"AMDEP\" was never defined.
28881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28884 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
28885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28887 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
28888 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
28889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28891 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28892 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
28893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28895 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28896 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28900 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28901 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28904 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
28905 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
28906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28908 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28909 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28912 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28913 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28916 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28917 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
28918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28920 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28921 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28924 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28925 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28928 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
28929 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
28930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28932 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
28933 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
28934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28936 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
28937 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
28938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28940 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
28941 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
28942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28944 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
28945 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
28946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28948 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
28949 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
28950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28952 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
28953 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
28954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28956 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
28957 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
28958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28960 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
28961 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
28962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28964 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
28965 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
28966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28968 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
28969 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
28970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28972 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
28973 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
28974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28976 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
28977 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
28978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28980 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
28981 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
28982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28987 if test -n "$gl_LIBOBJS"; then
28988 # Remove the extension.
28989 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28990 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28991 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28992 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28995 gl_LIBOBJS
=$gl_libobjs
28997 gl_LTLIBOBJS
=$gl_ltlibobjs
29003 if test -n "$gltests_LIBOBJS"; then
29004 # Remove the extension.
29005 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29006 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29007 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29008 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29011 gltests_LIBOBJS
=$gltests_libobjs
29013 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29017 : ${CONFIG_STATUS=./config.status}
29019 ac_clean_files_save
=$ac_clean_files
29020 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29026 # Generated by $as_me.
29027 # Run this file to recreate the current configuration.
29028 # Compiler output produced by configure, useful for debugging
29029 # configure, is in config.log if it exists.
29032 ac_cs_recheck=false
29035 SHELL=\${CONFIG_SHELL-$SHELL}
29038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29039 ## -------------------- ##
29040 ## M4sh Initialization. ##
29041 ## -------------------- ##
29043 # Be more Bourne compatible
29044 DUALCASE
=1; export DUALCASE
# for MKS sh
29045 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29049 # is contrary to our usage. Disable this feature.
29050 alias -g '${1+"$@"}'='"$@"'
29051 setopt NO_GLOB_SUBST
29053 case `(set -o) 2>/dev/null` in #(
29065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29066 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29069 # Prefer a ksh shell builtin over an external printf program on Solaris,
29070 # but without wasting forks for bash or zsh.
29071 if test -z "$BASH_VERSION$ZSH_VERSION" \
29072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29073 as_echo='print
-r --'
29074 as_echo_n='print
-rn --'
29075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29076 as_echo='printf %s
\n'
29077 as_echo_n='printf %s
'
29079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29080 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29081 as_echo_n='/usr
/ucb
/echo -n'
29083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29084 as_echo_n_body='eval
29088 expr "X$arg" : "X\\(.*\\)$as_nl";
29089 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29091 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29093 export as_echo_n_body
29094 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29096 export as_echo_body
29097 as_echo='sh
-c $as_echo_body as_echo
'
29100 # The user is always right.
29101 if test "${PATH_SEPARATOR+set}" != set; then
29103 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29104 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29111 # We need space, tab and new line, in precisely that order. Quoting is
29112 # there to prevent editors from complaining about space-tab.
29113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29114 # splitting by setting IFS to empty value.)
29117 # Find who we are. Look in the path if we contain no directory separator.
29119 *[\\/]* ) as_myself=$0 ;;
29120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29121 for as_dir in $PATH
29124 test -z "$as_dir" && as_dir=.
29125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29131 # We did not find ourselves, most probably we were run as `sh COMMAND'
29132 # in which case we are not to be found in the path.
29133 if test "x$as_myself" = x
; then
29136 if test ! -f "$as_myself"; then
29137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29141 # Unset variables that we do not need and which cause bugs (e.g. in
29142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29143 # suppresses any "Segmentation fault" message there. '((' could
29144 # trigger a bug in pdksh 5.2.14.
29145 for as_var
in BASH_ENV ENV MAIL MAILPATH
29146 do eval test x\
${$as_var+set} = xset \
29147 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29160 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29163 # as_fn_error ERROR [LINENO LOG_FD]
29164 # ---------------------------------
29165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29167 # script with status $?, using 1 if that was 0.
29170 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29172 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29175 $as_echo "$as_me: error: $1" >&2
29176 as_fn_exit
$as_status
29180 # as_fn_set_status STATUS
29181 # -----------------------
29182 # Set $? to STATUS, without forking.
29183 as_fn_set_status
()
29186 } # as_fn_set_status
29188 # as_fn_exit STATUS
29189 # -----------------
29190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29194 as_fn_set_status
$1
29200 # Portably unset VAR.
29203 { eval $1=; unset $1;}
29205 as_unset
=as_fn_unset
29206 # as_fn_append VAR VALUE
29207 # ----------------------
29208 # Append the text in VALUE to the end of the definition contained in VAR. Take
29209 # advantage of any shell optimizations that allow amortized linear growth over
29210 # repeated appends, instead of the typical quadratic growth present in naive
29212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29213 eval 'as_fn_append ()
29224 # as_fn_arith ARG...
29225 # ------------------
29226 # Perform arithmetic evaluation on the ARGs, and store the result in the
29227 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29228 # must be portable across $(()) and expr.
29229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29230 eval 'as_fn_arith ()
29237 as_val
=`expr "$@" || test $? -eq 1`
29242 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29243 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29249 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29250 as_basename
=basename
29255 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29261 as_me
=`$as_basename -- "$0" ||
29262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29263 X"$0" : 'X\(//\)$' \| \
29264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29266 sed '/^.*\/\([^/][^/]*\)\/*$/{
29280 # Avoid depending upon Character Ranges.
29281 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29282 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29283 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29284 as_cr_digits
='0123456789'
29285 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29287 ECHO_C
= ECHO_N
= ECHO_T
=
29288 case `echo -n x` in #(((((
29290 case `echo 'xy\c'` in
29291 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29293 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29300 rm -f conf$$ conf$$.exe conf$$.
file
29301 if test -d conf$$.dir
; then
29302 rm -f conf$$.dir
/conf$$.
file
29305 mkdir conf$$.dir
2>/dev
/null
29307 if (echo >conf$$.
file) 2>/dev
/null
; then
29308 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29310 # ... but there are two gotchas:
29311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29313 # In both cases, we have to default to `cp -p'.
29314 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29316 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29324 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29325 rmdir conf$$.dir
2>/dev
/null
29330 # Create "$as_dir" as a directory, including parents if necessary.
29335 -*) as_dir
=.
/$as_dir;;
29337 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29341 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29342 *) as_qdir
=$as_dir;;
29344 as_dirs
="'$as_qdir' $as_dirs"
29345 as_dir
=`$as_dirname -- "$as_dir" ||
29346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29347 X"$as_dir" : 'X\(//\)[^/]' \| \
29348 X"$as_dir" : 'X\(//\)$' \| \
29349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29350 $as_echo X"$as_dir" |
29351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29355 /^X\(\/\/\)[^/].*/{
29368 test -d "$as_dir" && break
29370 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29371 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29375 if mkdir
-p .
2>/dev
/null
; then
29376 as_mkdir_p
='mkdir -p "$as_dir"'
29378 test -d .
/-p && rmdir .
/-p
29382 if test -x / >/dev
/null
2>&1; then
29383 as_test_x
='test -x'
29385 if ls -dL / >/dev
/null
2>&1; then
29392 if test -d "$1"; then
29398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29399 ???[sx]*):;;*)false;;esac;fi
29403 as_executable_p
=$as_test_x
29405 # Sed expression to map a string onto a valid CPP name.
29406 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29408 # Sed expression to map a string onto a valid variable name.
29409 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29413 ## ----------------------------------- ##
29414 ## Main body of $CONFIG_STATUS script. ##
29415 ## ----------------------------------- ##
29417 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29420 # Save the log message, to keep $0 and so on meaningful, and to
29421 # report actual input values of CONFIG_FILES etc. instead of their
29422 # values after options handling.
29424 This file was extended by emacs $as_me 24.3.50, which was
29425 generated by GNU Autoconf 2.65. Invocation command line was
29427 CONFIG_FILES = $CONFIG_FILES
29428 CONFIG_HEADERS = $CONFIG_HEADERS
29429 CONFIG_LINKS = $CONFIG_LINKS
29430 CONFIG_COMMANDS = $CONFIG_COMMANDS
29433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29438 case $ac_config_files in *"
29439 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29442 case $ac_config_headers in *"
29443 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29448 # Files that config.status was made for.
29449 config_files="$ac_config_files"
29450 config_headers="$ac_config_headers"
29451 config_commands="$ac_config_commands"
29455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29457 \`$as_me' instantiates files and other configuration actions
29458 from templates according to the current configuration. Unless the files
29459 and actions are specified as TAGs, all are instantiated by default.
29461 Usage: $0 [OPTION]... [TAG]...
29463 -h, --help print this help, then exit
29464 -V, --version print version number and configuration settings, then exit
29465 --config print configuration, then exit
29466 -q, --quiet, --silent
29467 do not print progress messages
29468 -d, --debug don't remove temporary files
29469 --recheck update $as_me by reconfiguring in the same conditions
29470 --file=FILE[:TEMPLATE]
29471 instantiate the configuration file FILE
29472 --header=FILE[:TEMPLATE]
29473 instantiate the configuration header FILE
29475 Configuration files:
29478 Configuration headers:
29481 Configuration commands:
29484 Report bugs to the package provider."
29487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29488 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29490 emacs config.status 24.3.50
29491 configured by $0, generated by GNU Autoconf 2.65,
29492 with options \\"\$ac_cs_config\\"
29494 Copyright (C) 2009 Free Software Foundation, Inc.
29495 This config.status script is free software; the Free Software Foundation
29496 gives unlimited permission to copy, distribute and modify it."
29503 test -n "\$AWK" || AWK=awk
29506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29507 # The default lists apply if the user does not specify any file.
29513 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29514 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29525 # Handling of the options.
29526 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29528 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29529 $as_echo "$ac_cs_version"; exit ;;
29530 --config |
--confi |
--conf |
--con |
--co |
--c )
29531 $as_echo "$ac_cs_config"; exit ;;
29532 --debug |
--debu |
--deb |
--de |
--d |
-d )
29534 --file |
--fil |
--fi |
--f )
29537 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29539 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29540 ac_need_defaults
=false
;;
29541 --header |
--heade |
--head |
--hea )
29544 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29546 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29547 ac_need_defaults
=false
;;
29549 # Conflict between --help and --header
29550 as_fn_error
"ambiguous option: \`$1'
29551 Try \`$0 --help' for more information.";;
29552 --help |
--hel |
-h )
29553 $as_echo "$ac_cs_usage"; exit ;;
29554 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29555 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29558 # This is an error.
29559 -*) as_fn_error
"unrecognized option: \`$1'
29560 Try \`$0 --help' for more information." ;;
29562 *) as_fn_append ac_config_targets
" $1"
29563 ac_need_defaults
=false
;;
29569 ac_configure_extra_args
=
29571 if $ac_cs_silent; then
29573 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29578 if \$ac_cs_recheck; then
29579 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29582 CONFIG_SHELL='$SHELL'
29583 export CONFIG_SHELL
29588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29593 ## Running $as_me. ##
29599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29603 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29604 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29610 # Handling of arguments.
29611 for ac_config_target
in $ac_config_targets
29613 case $ac_config_target in
29614 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29615 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29616 "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" ;;
29617 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29618 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29619 "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" ;;
29620 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29621 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29622 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29623 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29624 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29625 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29626 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29627 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29628 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29629 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29630 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29631 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29632 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29633 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29634 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29635 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29636 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
29637 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
29638 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
29640 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29645 # If the user did not use the arguments to specify the items to instantiate,
29646 # then the envvar interface is used. Set only those that are not.
29647 # We use the long form for the default assignment because of an extremely
29648 # bizarre bug on SunOS 4.1.3.
29649 if $ac_need_defaults; then
29650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29652 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29655 # Have a temporary directory for convenience. Make it in the build tree
29656 # simply because there is no reason against having it here, and in addition,
29657 # creating and moving files from /tmp can sometimes cause problems.
29658 # Hook for its removal unless debugging.
29659 # Note that there is a small window in which the directory will not be cleaned:
29660 # after its creation but before its name has been assigned to `$tmp'.
29664 trap 'exit_status=$?
29665 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29667 trap 'as_fn_exit 1' 1 2 13 15
29669 # Create a (secure) tmp directory for tmp files.
29672 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29673 test -n "$tmp" && test -d "$tmp"
29676 tmp
=.
/conf$$
-$RANDOM
29677 (umask 077 && mkdir
"$tmp")
29678 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29680 # Set up the scripts for CONFIG_FILES section.
29681 # No need to generate them if there are no CONFIG_FILES.
29682 # This happens for instance with `./config.status config.h'.
29683 if test -n "$CONFIG_FILES"; then
29685 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29686 ac_cs_awk_getline
=:
29687 ac_cs_awk_pipe_init
=
29688 ac_cs_awk_read_file
='
29689 while ((getline aline < (F[key])) > 0)
29692 ac_cs_awk_pipe_fini
=
29694 ac_cs_awk_getline
=false
29695 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29696 ac_cs_awk_read_file
='
29698 print "cat " F[key] " &&"
29699 '$ac_cs_awk_pipe_init
29700 # The final `:' finishes the AND list.
29701 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29703 ac_cr
=`echo X | tr X '\015'`
29704 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29705 # But we know of no other shell where ac_cr would be empty at this
29706 # point, so we can use a bashism as a fallback.
29707 if test "x$ac_cr" = x
; then
29708 eval ac_cr
=\$
\'\\r
\'
29710 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29711 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29714 ac_cs_awk_cr
=$ac_cr
29717 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29720 # Create commands to substitute file output variables.
29722 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29723 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29724 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29727 } >conf$
$files.sh
&&
29728 . .
/conf$
$files.sh ||
29729 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29730 rm -f conf$
$files.sh
29733 echo "cat >conf$$subs.awk <<_ACEOF" &&
29734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29736 } >conf$$subs.sh ||
29737 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29738 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29740 for ac_last_try in false false false false false :; do
29741 . ./conf$$subs.sh ||
29742 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29744 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29745 if test $ac_delim_n = $ac_delim_num; then
29747 elif $ac_last_try; then
29748 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29750 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29753 rm -f conf$$subs.sh
29755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29756 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29760 s/^/S["/; s
/!.
*/"]=/
29770 s/\(.\{148\}\)..*/\1/
29772 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29777 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29784 s/\(.\{148\}\)..*/\1/
29786 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29790 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29795 ' <conf$$subs.awk | sed '
29800 ' >>$CONFIG_STATUS || ac_write_fail=1
29801 rm -f conf$$subs.awk
29802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29804 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29805 for (key in S) S_is_set[key] = 1
29807 \$ac_cs_awk_pipe_init
29811 nfields = split(line, field, "@
")
29813 len = length(field[1])
29814 for (i = 2; i < nfields; i++) {
29816 keylen = length(key)
29817 if (S_is_set[key]) {
29819 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29820 len += length(value) + length(field[++i])
29825 if (nfields == 3 && !substed) {
29827 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29828 \$ac_cs_awk_read_file
29834 \$ac_cs_awk_pipe_fini
29837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29838 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29839 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29842 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29843 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29848 # trailing colons and then remove the whole line if VPATH becomes empty
29849 # (actually we leave an empty line to preserve line numbers).
29850 if test "x
$srcdir" = x.; then
29851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29852 s/:*\$(srcdir):*/:/
29853 s/:*\${srcdir}:*/:/
29855 s/^\([^=]*=[ ]*\):*/\1/
29861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29862 fi # test -n "$CONFIG_FILES"
29864 # Set up the scripts for CONFIG_HEADERS section.
29865 # No need to generate them if there are no CONFIG_HEADERS.
29866 # This happens for instance with `./config.status Makefile'.
29867 if test -n "$CONFIG_HEADERS"; then
29868 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29872 # Transform confdefs.h into an awk script `defines.awk', embedded as
29873 # here-document in config.status, that substitutes the proper values into
29874 # config.h.in to produce config.h.
29876 # Create a delimiter string that does not exist in confdefs.h, to ease
29877 # handling of long lines.
29879 for ac_last_try in false false :; do
29880 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29881 if test -z "$ac_t"; then
29883 elif $ac_last_try; then
29884 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29886 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29890 # For the awk script, D is an array of macro values keyed by name,
29891 # likewise P contains macro parameters if any. Preserve backslash
29892 # newline sequences.
29894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29896 s/.\{148\}/&'"$ac_delim"'/g
29899 s/^[ ]*#[ ]*define[ ][ ]*/ /
29906 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29908 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29913 D["\
1"]=" \
3\\\\\\n
"\\/p
29915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29920 s/.\{148\}/&'"$ac_delim"'/g
29925 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29928 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29930 ' <confdefs.h | sed '
29931 s/'"$ac_delim"'/"\\\
29932 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29935 for (key in D) D_is_set[key] = 1
29938 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29940 split(line, arg, " ")
29941 if (arg[1] == "#") {
29945 defundef
= substr
(arg
[1], 2)
29948 split(mac1
, mac2
, "(") #)
29950 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29951 if (D_is_set
[macro
]) {
29952 # Preserve the white space surrounding the "#".
29953 print prefix
"define", macro P
[macro
] D
[macro
]
29956 # Replace #undef with comments. This is necessary, for example,
29957 # in the case of _POSIX_SOURCE, which is predefined and required
29958 # on some systems where configure will not decide to define it.
29959 if (defundef
== "undef") {
29960 print
"/*", prefix defundef
, macro
, "*/"
29968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29969 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29970 fi # test -n "$CONFIG_HEADERS"
29973 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29978 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29980 case $ac_mode$ac_tag in
29982 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29983 :[FH
]-) ac_tag
=-:-;;
29984 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30001 -) ac_f
="$tmp/stdin";;
30002 *) # Look for the file first in the build tree, then in the source tree
30003 # (if the path is not absolute). The absolute path cannot be DOS-style,
30004 # because $ac_f cannot contain `:'.
30008 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30010 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30012 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30013 as_fn_append ac_file_inputs
" '$ac_f'"
30016 # Let's still pretend it is `configure' which instantiates (i.e., don't
30017 # use $as_me), people would be surprised to read:
30018 # /* config.h. Generated by config.status. */
30019 configure_input
='Generated from '`
30020 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30022 if test x
"$ac_file" != x-
; then
30023 configure_input
="$ac_file. $configure_input"
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30025 $as_echo "$as_me: creating $ac_file" >&6;}
30027 # Neutralize special characters interpreted by sed in replacement strings.
30028 case $configure_input in #(
30029 *\
&* |
*\|
* |
*\\* )
30030 ac_sed_conf_input
=`$as_echo "$configure_input" |
30031 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30032 *) ac_sed_conf_input
=$configure_input;;
30036 *:-:* |
*:-) cat >"$tmp/stdin" \
30037 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30042 ac_dir
=`$as_dirname -- "$ac_file" ||
30043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30044 X"$ac_file" : 'X\(//\)[^/]' \| \
30045 X"$ac_file" : 'X\(//\)$' \| \
30046 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30047 $as_echo X"$ac_file" |
30048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30052 /^X\(\/\/\)[^/].*/{
30065 as_dir
="$ac_dir"; as_fn_mkdir_p
30069 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30071 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30072 # A ".." for each directory in $ac_dir_suffix.
30073 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30074 case $ac_top_builddir_sub in
30075 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30076 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30079 ac_abs_top_builddir
=$ac_pwd
30080 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30081 # for backward compatibility:
30082 ac_top_builddir
=$ac_top_build_prefix
30085 .
) # We are building in place.
30087 ac_top_srcdir
=$ac_top_builddir_sub
30088 ac_abs_top_srcdir
=$ac_pwd ;;
30089 [\\/]* | ?
:[\\/]* ) # Absolute name.
30090 ac_srcdir
=$srcdir$ac_dir_suffix;
30091 ac_top_srcdir
=$srcdir
30092 ac_abs_top_srcdir
=$srcdir ;;
30093 *) # Relative name.
30094 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30095 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30096 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30098 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30108 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30109 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30111 ac_MKDIR_P
=$MKDIR_P
30113 [\\/$
]* | ?
:[\\/]* ) ;;
30114 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30119 # If the template does not know about datarootdir, expand it.
30120 # FIXME: This hack should be removed a few years after 2.60.
30121 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30132 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30133 *datarootdir
*) ac_datarootdir_seen
=yes;;
30134 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30136 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30139 ac_datarootdir_hack='
30140 s&@datadir@&$datadir&g
30141 s&@docdir@&$docdir&g
30142 s&@infodir@&$infodir&g
30143 s&@localedir@&$localedir&g
30144 s&@mandir@&$mandir&g
30145 s&\\\${datarootdir}&$datarootdir&g' ;;
30149 # Neutralize VPATH when `$srcdir' = `.'.
30150 # Shell code in configure.ac might set extrasub.
30151 # FIXME: do we really want to maintain this feature?
30152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30153 ac_sed_extra="$ac_vpsub
30156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30158 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30159 s|@configure_input@|
$ac_sed_conf_input|
;t t
30160 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30161 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30162 s
&@srcdir@
&$ac_srcdir&;t t
30163 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30164 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30165 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30166 s
&@builddir@
&$ac_builddir&;t t
30167 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30168 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30169 s
&@INSTALL@
&$ac_INSTALL&;t t
30170 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30171 $ac_datarootdir_hack
30173 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30174 if $ac_cs_awk_getline; then
30175 $AWK -f "$tmp/subs.
awk"
30177 $AWK -f "$tmp/subs.
awk" | $SHELL
30179 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30181 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30182 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30183 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30185 which seems to be undefined. Please make sure it is defined." >&5
30186 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30187 which seems to be undefined. Please make sure it is defined." >&2;}
30191 -) cat "$tmp/out" && rm -f "$tmp/out";;
30192 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30194 || as_fn_error "could not create $ac_file" "$LINENO" 5
30200 if test x"$ac_file" != x-; then
30202 $as_echo "/* $configure_input */" \
30203 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30204 } >"$tmp/config.h" \
30205 || as_fn_error "could not create $ac_file" "$LINENO" 5
30206 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30208 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30211 mv "$tmp/config.h" "$ac_file" \
30212 || as_fn_error "could not create $ac_file" "$LINENO" 5
30215 $as_echo "/* $configure_input */" \
30216 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30217 || as_fn_error "could not create -" "$LINENO" 5
30219 # Compute "$ac_file"'s index
in $config_headers.
30222 for _am_header
in $config_headers :; do
30223 case $_am_header in
30224 $_am_arg |
$_am_arg:* )
30227 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30230 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30231 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30232 X"$_am_arg" : 'X\(//\)[^/]' \| \
30233 X"$_am_arg" : 'X\(//\)$' \| \
30234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30235 $as_echo X"$_am_arg" |
30236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30240 /^X\(\/\/\)[^/].*/{
30252 s/.*/./; q'`/stamp-h
$_am_stamp_count
30255 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30256 $as_echo "$as_me: executing $ac_file commands" >&6;}
30261 case $ac_file$ac_mode in
30262 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30263 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30264 # are listed without --file. Let's play safe and only enable the eval
30265 # if we detect the quoting.
30266 case $CONFIG_FILES in
30267 *\'*) eval set x
"$CONFIG_FILES" ;;
30268 *) set x
$CONFIG_FILES ;;
30273 # Strip MF so we end up with the name of the file.
30274 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30275 # Check whether this is an Automake generated Makefile or not.
30276 # We used to match only the files named `Makefile.in', but
30277 # some people rename them; so instead we look at the file content.
30278 # Grep'ing the first line is not enough: some people post-process
30279 # each Makefile.in and add a new line on top of each file to say so.
30280 # Grep'ing the whole file is not good either: AIX grep has a line
30281 # limit of 2048, but all sed's we know have understand at least 4000.
30282 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30283 dirpart
=`$as_dirname -- "$mf" ||
30284 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30285 X"$mf" : 'X\(//\)[^/]' \| \
30286 X"$mf" : 'X\(//\)$' \| \
30287 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30293 /^X\(\/\/\)[^/].*/{
30309 # Extract the definition of DEPDIR, am__include, and am__quote
30310 # from the Makefile without running `make'.
30311 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30312 test -z "$DEPDIR" && continue
30313 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30314 test -z "am__include" && continue
30315 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30316 # When using ansi2knr, U may be empty or an underscore; expand it
30317 U
=`sed -n 's/^U = //p' < "$mf"`
30318 # Find all dependency output files, they are included files with
30319 # $(DEPDIR) in their names. We invoke sed twice because it is the
30320 # simplest approach to changing $(DEPDIR) to its actual value in the
30322 for file in `sed -n "
30323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30325 # Make sure the directory exists.
30326 test -f "$dirpart/$file" && continue
30327 fdir
=`$as_dirname -- "$file" ||
30328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30329 X"$file" : 'X\(//\)[^/]' \| \
30330 X"$file" : 'X\(//\)$' \| \
30331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30332 $as_echo X"$file" |
30333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30337 /^X\(\/\/\)[^/].*/{
30350 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30351 # echo "creating $dirpart/$file"
30352 echo '# dummy' > "$dirpart/$file"
30358 for dir
in etc lisp
; do
30359 test -d ${dir} || mkdir
${dir}
30363 echo creating src
/epaths.h
30364 if test "${opsys}" = "mingw32"; then
30365 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30367 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30371 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30372 echo creating src
/.gdbinit
30373 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30383 ac_clean_files
=$ac_clean_files_save
30385 test $ac_write_fail = 0 ||
30386 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30389 # configure is writing to config.log, and then calls config.status.
30390 # config.status does its own redirection, appending to config.log.
30391 # Unfortunately, on DOS this fails, as config.log is still kept open
30392 # by configure, so config.status won't be able to write to it; its
30393 # output is simply discarded. So we exec the FD to /dev/null,
30394 # effectively closing config.log, so it can be properly (re)opened and
30395 # appended to by config.status. When coming back to configure, we
30396 # need to make the FD available again.
30397 if test "$no_create" != yes; then
30399 ac_config_status_args
=
30400 test "$silent" = yes &&
30401 ac_config_status_args
="$ac_config_status_args --quiet"
30403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30406 # would make configure fail if this is the last instruction.
30407 $ac_cs_success || as_fn_exit $?
30409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}