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_verify_FALSE
618 gl_GNULIB_ENABLED_verify_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
626 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
627 gl_GNULIB_ENABLED_pathmax_FALSE
628 gl_GNULIB_ENABLED_pathmax_TRUE
629 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
630 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
631 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
632 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
633 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
634 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
635 gl_GNULIB_ENABLED_getgroups_FALSE
636 gl_GNULIB_ENABLED_getgroups_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
" linux/version.h"
3356 as_fn_append ac_header_list
" sys/systeminfo.h"
3357 as_fn_append ac_header_list
" coff.h"
3358 as_fn_append ac_header_list
" pty.h"
3359 as_fn_append ac_header_list
" sys/resource.h"
3360 as_fn_append ac_header_list
" sys/utsname.h"
3361 as_fn_append ac_header_list
" pwd.h"
3362 as_fn_append ac_header_list
" utmp.h"
3363 as_fn_append ac_header_list
" util.h"
3364 as_fn_append ac_header_list
" sys/socket.h"
3365 as_fn_append ac_header_list
" stdlib.h"
3366 as_fn_append ac_header_list
" unistd.h"
3367 as_fn_append ac_header_list
" sys/param.h"
3368 as_fn_append ac_header_list
" pthread.h"
3369 as_fn_append ac_header_list
" malloc/malloc.h"
3370 as_fn_append ac_header_list
" maillock.h"
3371 as_fn_append ac_header_list
" sys/un.h"
3372 as_fn_append ac_func_list
" tzset"
3373 as_fn_append ac_func_list
" readlinkat"
3374 as_fn_append ac_header_list
" dirent.h"
3375 as_fn_append ac_header_list
" execinfo.h"
3376 as_fn_append ac_func_list
" faccessat"
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_header_list
" sys/select.h"
3392 as_fn_append ac_func_list
" pselect"
3393 as_fn_append ac_func_list
" pthread_sigmask"
3394 as_fn_append ac_func_list
" readlink"
3395 as_fn_append ac_func_list
" strtoimax"
3396 as_fn_append ac_func_list
" strtoumax"
3397 as_fn_append ac_func_list
" symlink"
3398 as_fn_append ac_header_list
" sys/stat.h"
3399 as_fn_append ac_func_list
" localtime_r"
3400 as_fn_append ac_header_list
" utime.h"
3401 as_fn_append ac_func_list
" futimes"
3402 as_fn_append ac_func_list
" futimesat"
3403 as_fn_append ac_func_list
" futimens"
3404 as_fn_append ac_func_list
" utimensat"
3405 as_fn_append ac_func_list
" lutimes"
3406 # Check that the precious variables saved in the cache have kept the same
3408 ac_cache_corrupted
=false
3409 for ac_var
in $ac_precious_vars; do
3410 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3411 eval ac_new_set
=\
$ac_env_${ac_var}_set
3412 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3413 eval ac_new_val
=\
$ac_env_${ac_var}_value
3414 case $ac_old_set,$ac_new_set in
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3418 ac_cache_corrupted
=: ;;
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3422 ac_cache_corrupted
=: ;;
3425 if test "x$ac_old_val" != "x$ac_new_val"; then
3426 # differences in whitespace do not lead to failure.
3427 ac_old_val_w
=`echo x $ac_old_val`
3428 ac_new_val_w
=`echo x $ac_new_val`
3429 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3432 ac_cache_corrupted
=:
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3436 eval $ac_var=\
$ac_old_val
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3439 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3441 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3444 # Pass precious variables to config.status.
3445 if test "$ac_new_set" = set; then
3447 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3448 *) ac_arg
=$ac_var=$ac_new_val ;;
3450 case " $ac_configure_args " in
3451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3452 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3456 if $ac_cache_corrupted; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3461 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3463 ## -------------------- ##
3464 ## Main body of script. ##
3465 ## -------------------- ##
3468 ac_cpp
='$CPP $CPPFLAGS'
3469 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3475 emacs_config_options
="$@"
3476 ## Add some environment variables, if they were passed via the environment
3477 ## rather than on the command-line.
3478 for var
in CFLAGS CPPFLAGS LDFLAGS
; do
3479 case "$emacs_config_options" in
3480 *$var=*) continue ;;
3483 test x
"$val" = x
&& continue
3484 emacs_config_options
="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3487 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3491 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3492 for ac_t
in install-sh
install.sh shtool
; do
3493 if test -f "$ac_dir/$ac_t"; then
3495 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3500 if test -z "$ac_aux_dir"; then
3501 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3504 # These three variables are undocumented and unsupported,
3505 # and are intended to be withdrawn in a future Autoconf release.
3506 # They can cause serious problems if a builder's source tree is in a directory
3507 # whose full name contains unusual characters.
3508 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3509 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3510 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3513 am__api_version
='1.11'
3515 # Find a good install program. We prefer a C program (faster),
3516 # so one script is as good as another. But avoid the broken or
3517 # incompatible versions:
3518 # SysV /etc/install, /usr/sbin/install
3519 # SunOS /usr/etc/install
3520 # IRIX /sbin/install
3522 # AmigaOS /C/install, which installs bootblocks on floppy discs
3523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3526 # OS/2's system install, which has a completely different semantic
3527 # ./install, which can be erroneously created by make from ./install.sh.
3528 # Reject install programs that cannot install multiple files.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3531 if test -z "$INSTALL"; then
3532 if test "${ac_cv_path_install+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir
=.
3540 # Account for people who put trailing slashes in PATH elements.
3541 case $as_dir/ in #((
3542 .
/ | .
// |
/[cC
]/* | \
3543 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3544 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3550 for ac_prog
in ginstall scoinst
install; do
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553 if test $ac_prog = install &&
3554 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3557 elif test $ac_prog = install &&
3558 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3562 rm -rf conftest.one conftest.two conftest.dir
3563 echo one
> conftest.one
3564 echo two
> conftest.two
3566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3567 test -s conftest.one
&& test -s conftest.two
&&
3568 test -s conftest.dir
/conftest.one
&&
3569 test -s conftest.dir
/conftest.two
3571 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3584 rm -rf conftest.one conftest.two conftest.dir
3587 if test "${ac_cv_path_install+set}" = set; then
3588 INSTALL
=$ac_cv_path_install
3590 # As a last resort, use the slow shell script. Don't cache a
3591 # value for INSTALL within a source directory, because that will
3592 # break other packages using the cache if that directory is
3593 # removed, or if the value is a relative name.
3594 INSTALL
=$ac_install_sh
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3598 $as_echo "$INSTALL" >&6; }
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3606 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3609 $as_echo_n "checking whether build environment is sane... " >&6; }
3612 echo timestamp
> conftest.
file
3613 # Reject unsafe characters in $srcdir or the absolute working directory
3614 # name. Accept space and tab only in the latter.
3618 *[\\\"\
#\$\&\'\`$am_lf]*)
3619 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3622 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3623 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3626 # Do `set' in a subshell so we don't clobber the current shell's
3627 # arguments. Must try -L first in case configure is actually a
3628 # symlink; some systems play weird games with the mod time of symlinks
3629 # (eg FreeBSD returns the mod time of the symlink's containing
3632 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3633 if test "$*" = "X"; then
3635 set X
`ls -t "$srcdir/configure" conftest.file`
3638 if test "$*" != "X $srcdir/configure conftest.file" \
3639 && test "$*" != "X conftest.file $srcdir/configure"; then
3641 # If neither matched, then we have a broken ls. This can happen
3642 # if, for instance, CONFIG_SHELL is bash and it inherits a
3643 # broken ls alias from the environment. This has actually
3644 # happened. Such a system could not be considered "sane".
3645 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3646 alias in your environment" "$LINENO" 5
3649 test "$2" = conftest.
file
3655 as_fn_error
"newly created file is older than distributed files!
3656 Check your system clock" "$LINENO" 5
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659 $as_echo "yes" >&6; }
3660 test "$program_prefix" != NONE
&&
3661 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3662 # Use a double $ so make ignores it.
3663 test "$program_suffix" != NONE
&&
3664 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3665 # Double any \ or $.
3666 # By default was `s,x,x', remove it if useless.
3667 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3668 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3670 # expand $ac_aux_dir to an absolute path
3671 am_aux_dir
=`cd $ac_aux_dir && pwd`
3673 if test x
"${MISSING+set}" != xset
; then
3676 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3678 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3681 # Use eval to expand $SHELL
3682 if eval "$MISSING --run true"; then
3683 am_missing_run
="$MISSING --run "
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3687 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3690 if test x
"${install_sh}" != xset
; then
3693 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3695 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3699 # Installed binaries are usually stripped using `strip' when the user
3700 # run `make install-strip'. However `strip' might not be the right
3701 # tool to use in cross-compilation environments, therefore Automake
3702 # will honor the `STRIP' environment variable to overrule this program.
3703 if test "$cross_compiling" != no
; then
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3706 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_STRIP+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$STRIP"; then
3713 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir
=.
3720 for ac_exec_ext
in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 STRIP
=$ac_cv_prog_STRIP
3733 if test -n "$STRIP"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3735 $as_echo "$STRIP" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3743 if test -z "$ac_cv_prog_STRIP"; then
3745 # Extract the first word of "strip", so it can be a program name with args.
3746 set dummy strip
; ac_word
=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$ac_ct_STRIP"; then
3753 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir
=.
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_ac_ct_STRIP
="strip"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3773 if test -n "$ac_ct_STRIP"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3775 $as_echo "$ac_ct_STRIP" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3781 if test "x$ac_ct_STRIP" = x
; then
3784 case $cross_compiling:$ac_tool_warned in
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3788 ac_tool_warned
=yes ;;
3793 STRIP
="$ac_cv_prog_STRIP"
3797 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3800 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3801 if test -z "$MKDIR_P"; then
3802 if test "${ac_cv_path_mkdir+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3806 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3809 test -z "$as_dir" && as_dir
=.
3810 for ac_prog
in mkdir gmkdir
; do
3811 for ac_exec_ext
in '' $ac_executable_extensions; do
3812 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3813 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3814 'mkdir (GNU coreutils) '* | \
3815 'mkdir (coreutils) '* | \
3816 'mkdir (fileutils) '4.1*)
3817 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3827 test -d .
/--version && rmdir .
/--version
3828 if test "${ac_cv_path_mkdir+set}" = set; then
3829 MKDIR_P
="$ac_cv_path_mkdir -p"
3831 # As a last resort, use the slow shell script. Don't cache a
3832 # value for MKDIR_P within a source directory, because that will
3833 # break other packages using the cache if that directory is
3834 # removed, or if the value is a relative name.
3835 MKDIR_P
="$ac_install_sh -d"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3839 $as_echo "$MKDIR_P" >&6; }
3843 [\\/$
]* | ?
:[\\/]*) ;;
3844 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3847 for ac_prog
in gawk mawk nawk
awk
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy
$ac_prog; ac_word
=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_prog_AWK+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3856 if test -n "$AWK"; then
3857 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3863 test -z "$as_dir" && as_dir
=.
3864 for ac_exec_ext
in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_AWK
="$ac_prog"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 if test -n "$AWK"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3879 $as_echo "$AWK" >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3886 test -n "$AWK" && break
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3890 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3892 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3893 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3894 $as_echo_n "(cached) " >&6
3896 cat >conftest.
make <<\_ACEOF
3899 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3904 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3906 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3910 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 $as_echo "yes" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 SET_MAKE
="MAKE=${MAKE-make}"
3920 rm -rf .tst
2>/dev
/null
3921 mkdir .tst
2>/dev
/null
3922 if test -d .tst
; then
3927 rmdir .tst
2>/dev
/null
3929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3931 # is not polluted with repeated "-I."
3932 am__isrc
=' -I$(srcdir)'
3933 # test to see if srcdir already configured
3934 if test -f $srcdir/config.status
; then
3935 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3939 # test whether we have cygpath
3940 if test -z "$CYGPATH_W"; then
3941 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3942 CYGPATH_W
='cygpath -w'
3949 # Define the identity of the package.
3954 cat >>confdefs.h
<<_ACEOF
3955 #define PACKAGE "$PACKAGE"
3959 cat >>confdefs.h
<<_ACEOF
3960 #define VERSION "$VERSION"
3963 # Some tools Automake needs.
3965 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3968 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3971 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3974 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3977 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3979 # We need awk for the "check" target. The system "awk" is bad on
3981 # Always define AMTAR for backward compatibility.
3983 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3985 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3994 lispdir
='${datadir}/emacs/${version}/lisp'
3995 leimdir
='${datadir}/emacs/${version}/leim'
3996 standardlisppath
='${lispdir}:${leimdir}'
3997 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3998 '${datadir}/emacs/site-lisp'
3999 lisppath
='${locallisppath}:${standardlisppath}'
4000 etcdir
='${datadir}/emacs/${version}/etc'
4001 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
4002 docdir
='${datadir}/emacs/${version}/etc'
4003 gamedir
='${localstatedir}/games/emacs'
4006 # Check whether --with-all was given.
4007 if test "${with_all+set}" = set; then :
4008 withval
=$with_all; with_features
=$withval
4017 # Check whether --with-pop was given.
4018 if test "${with_pop+set}" = set; then :
4021 with_pop
=$with_features
4024 if test "$with_pop" = yes; then
4025 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4030 # Check whether --with-kerberos was given.
4031 if test "${with_kerberos+set}" = set; then :
4032 withval
=$with_kerberos;
4037 if test "$with_kerberos" != no
; then
4038 $as_echo "#define KERBEROS 1" >>confdefs.h
4043 # Check whether --with-kerberos5 was given.
4044 if test "${with_kerberos5+set}" = set; then :
4045 withval
=$with_kerberos5;
4050 if test "${with_kerberos5}" != no
; then
4051 if test "${with_kerberos}" = no
; then
4053 $as_echo "#define KERBEROS 1" >>confdefs.h
4057 $as_echo "#define KERBEROS5 1" >>confdefs.h
4062 # Check whether --with-hesiod was given.
4063 if test "${with_hesiod+set}" = set; then :
4064 withval
=$with_hesiod;
4069 if test "$with_hesiod" != no
; then
4071 $as_echo "#define HESIOD 1" >>confdefs.h
4076 # Check whether --with-mmdf was given.
4077 if test "${with_mmdf+set}" = set; then :
4083 if test "$with_mmdf" != no
; then
4085 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4090 # Check whether --with-mail-unlink was given.
4091 if test "${with_mail_unlink+set}" = set; then :
4092 withval
=$with_mail_unlink;
4097 if test "$with_mail_unlink" != no
; then
4099 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4104 # Check whether --with-mailhost was given.
4105 if test "${with_mailhost+set}" = set; then :
4106 withval
=$with_mailhost;
4107 cat >>confdefs.h
<<_ACEOF
4108 #define MAILHOST "$withval"
4115 # Check whether --with-sound was given.
4116 if test "${with_sound+set}" = set; then :
4117 withval
=$with_sound;
4119 with_sound
=$with_features
4124 # Check whether --with-x-toolkit was given.
4125 if test "${with_x_toolkit+set}" = set; then :
4126 withval
=$with_x_toolkit; case "${withval}" in
4127 y | ye |
yes ) val
=gtk
;;
4129 l | lu | luc | luci | lucid
) val
=lucid
;;
4130 a |
at | ath | athe | athen | athena
) val
=athena
;;
4131 m | mo | mot | moti | motif
) val
=motif
;;
4132 g | gt | gtk
) val
=gtk
;;
4136 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
4137 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4138 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4139 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4148 # Check whether --with-wide-int was given.
4149 if test "${with_wide_int+set}" = set; then :
4150 withval
=$with_wide_int;
4155 if test "$with_wide_int" = yes; then
4157 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4162 # Check whether --with-xpm was given.
4163 if test "${with_xpm+set}" = set; then :
4166 with_xpm
=$with_features
4170 # Check whether --with-jpeg was given.
4171 if test "${with_jpeg+set}" = set; then :
4174 with_jpeg
=$with_features
4178 # Check whether --with-tiff was given.
4179 if test "${with_tiff+set}" = set; then :
4182 with_tiff
=$with_features
4186 # Check whether --with-gif was given.
4187 if test "${with_gif+set}" = set; then :
4190 with_gif
=$with_features
4194 # Check whether --with-png was given.
4195 if test "${with_png+set}" = set; then :
4198 with_png
=$with_features
4202 # Check whether --with-rsvg was given.
4203 if test "${with_rsvg+set}" = set; then :
4206 with_rsvg
=$with_features
4210 # Check whether --with-xml2 was given.
4211 if test "${with_xml2+set}" = set; then :
4214 with_xml2
=$with_features
4218 # Check whether --with-imagemagick was given.
4219 if test "${with_imagemagick+set}" = set; then :
4220 withval
=$with_imagemagick;
4222 with_imagemagick
=$with_features
4227 # Check whether --with-xft was given.
4228 if test "${with_xft+set}" = set; then :
4231 with_xft
=$with_features
4235 # Check whether --with-libotf was given.
4236 if test "${with_libotf+set}" = set; then :
4237 withval
=$with_libotf;
4239 with_libotf
=$with_features
4243 # Check whether --with-m17n-flt was given.
4244 if test "${with_m17n_flt+set}" = set; then :
4245 withval
=$with_m17n_flt;
4247 with_m17n_flt
=$with_features
4252 # Check whether --with-toolkit-scroll-bars was given.
4253 if test "${with_toolkit_scroll_bars+set}" = set; then :
4254 withval
=$with_toolkit_scroll_bars;
4256 with_toolkit_scroll_bars
=$with_features
4260 # Check whether --with-xaw3d was given.
4261 if test "${with_xaw3d+set}" = set; then :
4262 withval
=$with_xaw3d;
4264 with_xaw3d
=$with_features
4268 # Check whether --with-xim was given.
4269 if test "${with_xim+set}" = set; then :
4272 with_xim
=$with_features
4276 # Check whether --with-ns was given.
4277 if test "${with_ns+set}" = set; then :
4284 # Check whether --with-w32 was given.
4285 if test "${with_w32+set}" = set; then :
4293 # Check whether --with-gpm was given.
4294 if test "${with_gpm+set}" = set; then :
4297 with_gpm
=$with_features
4301 # Check whether --with-dbus was given.
4302 if test "${with_dbus+set}" = set; then :
4305 with_dbus
=$with_features
4309 # Check whether --with-gconf was given.
4310 if test "${with_gconf+set}" = set; then :
4311 withval
=$with_gconf;
4313 with_gconf
=$with_features
4317 # Check whether --with-gsettings was given.
4318 if test "${with_gsettings+set}" = set; then :
4319 withval
=$with_gsettings;
4321 with_gsettings
=$with_features
4325 # Check whether --with-selinux was given.
4326 if test "${with_selinux+set}" = set; then :
4327 withval
=$with_selinux;
4329 with_selinux
=$with_features
4333 # Check whether --with-gnutls was given.
4334 if test "${with_gnutls+set}" = set; then :
4335 withval
=$with_gnutls;
4337 with_gnutls
=$with_features
4342 # Check whether --with-file-notification was given.
4343 if test "${with_file_notification+set}" = set; then :
4344 withval
=$with_file_notification; case "${withval}" in
4345 y | ye |
yes ) val
=yes ;;
4347 g | gf | gfi | gfil | gfile
) val
=gfile
;;
4348 i |
in | ino | inot | inoti | inotif | inotify
) val
=inotify
;;
4349 w | w3 | w32
) val
=w32
;;
4350 * ) as_fn_error
"\`--with-file-notification=$withval' is invalid;
4351 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4352 \`yes' is a synonym for \`w32' on MS-Windows, and for \`gfile' otherwise." "$LINENO" 5
4355 with_file_notification
=$val
4358 with_file_notification
=$with_features
4362 ## For the times when you want to build Emacs but don't have
4363 ## a suitable makeinfo, and can live without the manuals.
4365 # Check whether --with-makeinfo was given.
4366 if test "${with_makeinfo+set}" = set; then :
4367 withval
=$with_makeinfo;
4369 with_makeinfo
=$with_features
4373 ## Makefile.in needs the cache file name.
4376 ## This is an option because I do not know if all info/man support
4377 ## compressed files, nor how to test if they do so.
4379 # Check whether --with-compress-info was given.
4380 if test "${with_compress_info+set}" = set; then :
4381 withval
=$with_compress_info;
4383 with_compress_info
=$with_features
4386 if test $with_compress_info = yes; then
4394 # Check whether --with-pkg-config-prog was given.
4395 if test "${with_pkg_config_prog+set}" = set; then :
4396 withval
=$with_pkg_config_prog;
4399 if test "X${with_pkg_config_prog}" != X
; then
4400 if test "${with_pkg_config_prog}" != yes; then
4401 PKG_CONFIG
="${with_pkg_config_prog}"
4406 # Check whether --with-gameuser was given.
4407 if test "${with_gameuser+set}" = set; then :
4408 withval
=$with_gameuser;
4411 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4412 && gameuser
="${with_gameuser}"
4413 test "X$gameuser" = X
&& gameuser
=games
4416 # Check whether --with-gnustep-conf was given.
4417 if test "${with_gnustep_conf+set}" = set; then :
4418 withval
=$with_gnustep_conf;
4421 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4422 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4423 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4424 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4426 # Check whether --enable-ns-self-contained was given.
4427 if test "${enable_ns_self_contained+set}" = set; then :
4428 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4430 EN_NS_SELF_CONTAINED
=yes
4434 # Check whether --enable-locallisppath was given.
4435 if test "${enable_locallisppath+set}" = set; then :
4436 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4438 elif test "${enableval}" != "yes"; then
4439 locallisppath
=${enableval}
4444 # Check whether --enable-checking was given.
4445 if test "${enable_checking+set}" = set; then :
4446 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4449 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4450 for check
in $ac_checking_flags
4453 # these set all the flags to specific states
4454 yes) ac_enable_checking
=1 ;;
4455 no
) ac_enable_checking
= ;
4456 ac_gc_check_stringbytes
= ;
4457 ac_gc_check_string_overrun
= ;
4458 ac_gc_check_string_free_list
= ;
4459 ac_xmalloc_overrun
= ;
4460 ac_gc_check_cons_list
= ;
4462 all
) ac_enable_checking
=1 ;
4463 ac_gc_check_stringbytes
=1 ;
4464 ac_gc_check_string_overrun
=1 ;
4465 ac_gc_check_string_free_list
=1 ;
4466 ac_xmalloc_overrun
=1 ;
4467 ac_gc_check_cons_list
=1 ;
4468 ac_glyphs_debug
=1 ;;
4469 # these enable particular checks
4470 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4471 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4472 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4473 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4474 conslist
) ac_gc_check_cons_list
=1 ;;
4475 glyphs
) ac_glyphs_debug
=1 ;;
4476 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4481 if test x
$ac_enable_checking != x
; then
4483 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4486 if test x
$ac_gc_check_stringbytes != x
; then
4488 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4491 if test x
$ac_gc_check_string_overrun != x
; then
4493 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4496 if test x
$ac_gc_check_string_free_list != x
; then
4498 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4501 if test x
$ac_xmalloc_overrun != x
; then
4503 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4506 if test x
$ac_gc_check_cons_list != x
; then
4508 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4511 if test x
$ac_glyphs_debug != x
; then
4513 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4517 # Check whether --enable-check-lisp-object-type was given.
4518 if test "${enable_check_lisp_object_type+set}" = set; then :
4519 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4521 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4528 # Check whether --enable-profiling was given.
4529 if test "${enable_profiling+set}" = set; then :
4530 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4533 if test x
$ac_enable_profiling != x
; then
4534 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4540 # Check whether --enable-autodepend was given.
4541 if test "${enable_autodepend+set}" = set; then :
4542 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4544 ac_enable_autodepend
=yes
4548 # Check whether --enable-gtk-deprecation-warnings was given.
4549 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4550 enableval
=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings
="${enableval}"
4554 #### Make srcdir absolute, if it isn't already. It's important to
4555 #### avoid running the file name through pwd unnecessarily, since pwd can
4556 #### give you automounter prefixes, which can go away. We do all this
4557 #### so Emacs can find its files when run uninstalled.
4558 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4561 [\\/]* | ?
:[\\/]*) ;;
4563 ## We may be able to use the $PWD environment variable to make this
4564 ## absolute. But sometimes PWD is inaccurate.
4565 ## Note: we used to use $PWD at the end instead of `pwd`,
4566 ## but that tested only for a well-formed and valid PWD,
4567 ## it did not object when PWD was well-formed and valid but just wrong.
4568 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4572 srcdir
=`(cd "$srcdir"; pwd)`
4575 * ) srcdir
=`(cd "$srcdir"; pwd)` ;;
4578 ### Canonicalize the configuration name.
4580 # Make sure we can run config.sub.
4581 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4582 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4585 $as_echo_n "checking build system type... " >&6; }
4586 if test "${ac_cv_build+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4589 ac_build_alias
=$build_alias
4590 test "x$ac_build_alias" = x
&&
4591 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4592 test "x$ac_build_alias" = x
&&
4593 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4594 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4595 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4599 $as_echo "$ac_cv_build" >&6; }
4600 case $ac_cv_build in
4602 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4605 ac_save_IFS
=$IFS; IFS
='-'
4611 # Remember, the first character of IFS is used to create $*,
4612 # except with old shells:
4615 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4619 $as_echo_n "checking host system type... " >&6; }
4620 if test "${ac_cv_host+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if test "x$host_alias" = x
; then
4624 ac_cv_host
=$ac_cv_build
4626 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4627 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4632 $as_echo "$ac_cv_host" >&6; }
4635 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4638 ac_save_IFS
=$IFS; IFS
='-'
4644 # Remember, the first character of IFS is used to create $*,
4645 # except with old shells:
4648 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4652 configuration
=${host_alias-${build_alias-$host}}
4656 ### If you add support for a new configuration, add code to this
4657 ### switch statement to recognize your configuration name and select
4658 ### the appropriate operating system file.
4660 ### You would hope that you could choose an s/*.h
4661 ### file based on the operating system portion. However, it turns out
4662 ### that each s/*.h file is pretty manufacturer-specific.
4663 ### So we basically have to have a special case for each
4664 ### configuration name.
4666 ### As far as handling version numbers on operating systems is
4667 ### concerned, make sure things will fail in a fixable way. If
4668 ### /etc/MACHINES doesn't say anything about version numbers, be
4669 ### prepared to handle anything reasonably. If version numbers
4670 ### matter, be sure /etc/MACHINES says something about it.
4672 opsys
='' unported
=no
4673 case "${canonical}" in
4675 ## GNU/Linux and similar ports
4690 ## FreeBSD kernel + glibc based userland
4705 ## Apple Darwin / Mac OS X
4707 case "${canonical}" in
4714 ## Use fink packages if available.
4715 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4716 ## if test -d /sw/include && test -d /sw/lib; then
4717 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4718 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4727 ## HP 9000 series 700 and 800, running HP/UX
4728 hppa
*-hp-hpux10.2
* )
4731 hppa
*-hp-hpux1[1-9]* )
4733 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4737 rs6000-ibm-aix4.
[23]* )
4740 powerpc-ibm-aix4.
[23]* )
4743 rs6000-ibm-aix
[56]* )
4746 powerpc-ibm-aix
[56]* )
4750 ## Silicon Graphics machines
4754 # Without defining _LANGUAGE_C, things get masked out in the headers
4755 # so that, for instance, grepping for `free' in stdlib.h fails and
4756 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4757 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4762 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4763 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4764 case "${canonical}" in
4766 amd64-
*-*|x86_64-
*-*) ;;
4770 case "${canonical}" in
4771 *-sunos5.6
* |
*-solaris2.6
* )
4775 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4777 emacs_check_sunpro_c
=yes
4779 *-sunos5* |
*-solaris* )
4781 emacs_check_sunpro_c
=yes
4784 ## Watch out for a compiler that we know will not work.
4785 case "${canonical}" in
4786 *-solaris* |
*-sunos5* )
4787 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4788 ## /usr/ucb/cc doesn't work;
4789 ## we should find some other compiler that does work.
4797 ## Intel 386 machines where we don't care about the manufacturer.
4799 case "${canonical}" in
4800 *-darwin* ) opsys
=darwin
;;
4803 # MinGW overrides and adds some system headers in nt/inc.
4804 GCC_TEST_OPTIONS
="-I $srcdir/nt/inc"
4806 *-sysv4.2uw
* ) opsys
=unixware
;;
4807 *-sysv5uw* ) opsys
=unixware
;;
4808 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4809 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4818 ### If the code above didn't choose an operating system, just choose
4819 ### an operating system based on the configuration name. You really
4820 ### only want to use this when you have no idea what the right
4821 ### operating system is; if you know what operating systems a machine
4822 ### runs, it's cleaner to make it explicit in the case statement
4824 if test x
"${opsys}" = x
; then
4825 case "${canonical}" in
4826 *-gnu* ) opsys
=gnu
;;
4835 if test $unported = yes; then
4836 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4837 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4841 #### Choose a compiler.
4844 ac_cpp
='$CPP $CPPFLAGS'
4845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4850 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC
="$CC" # Let the user override the test.
4859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir
=.
4864 for ac_exec_ext
in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4887 if test -z "$ac_cv_prog_CC"; then
4889 # Extract the first word of "gcc", so it can be a program name with args.
4890 set dummy gcc
; ac_word
=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir
=.
4904 for ac_exec_ext
in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC
="gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4917 if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919 $as_echo "$ac_ct_CC" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4925 if test "x$ac_ct_CC" = x
; then
4928 case $cross_compiling:$ac_tool_warned in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned
=yes ;;
4940 if test -z "$CC"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4943 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC
="$CC" # Let the user override the test.
4952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir
=.
4957 for ac_exec_ext
in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4981 if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983 set dummy cc
; ac_word
=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC
="$CC" # Let the user override the test.
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_exec_ext
in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5001 ac_prog_rejected
=yes
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 if test $ac_prog_rejected = yes; then
5013 # We found a bogon in the path, so make sure we never use it.
5014 set dummy
$ac_cv_prog_CC
5016 if test $# != 0; then
5017 # We chose a different compiler from the bogus one.
5018 # However, it has the same basename, so the bogon will be chosen
5019 # first if we set CC to just the basename; use the full file name.
5021 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5027 if test -n "$CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 $as_echo "$CC" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5037 if test -z "$CC"; then
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog
in cl.exe
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$CC"; then
5049 ac_cv_prog_CC
="$CC" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 if test -n "$CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071 $as_echo "$CC" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$CC" && break
5081 if test -z "$CC"; then
5083 for ac_prog
in cl.exe
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy
$ac_prog; ac_word
=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$ac_ct_CC"; then
5093 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_CC
="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5113 if test -n "$ac_ct_CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5115 $as_echo "$ac_ct_CC" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$ac_ct_CC" && break
5125 if test "x$ac_ct_CC" = x
; then
5128 case $cross_compiling:$ac_tool_warned in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned
=yes ;;
5141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error
"no acceptable C compiler found in \$PATH
5144 See \`config.log' for more details." "$LINENO" 5; }
5146 # Provide some information about the compiler.
5147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5150 for ac_option
in --version -v -V -qversion; do
5151 { { ac_try
="$ac_compiler $ac_option >&5"
5153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5160 if test -s conftest.err; then
5162 ... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5166 rm -f conftest.er1 conftest.err
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5182 ac_clean_files_save=$ac_clean_files
5183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5184 # Try to create an executable without -o first, disregard a.out.
5185 # It will help us diagnose broken compilers, and finding out an intuition
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5188 $as_echo_n "checking whether the C compiler works... " >&6; }
5189 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5191 # The possible output files:
5192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5195 for ac_file in $ac_files
5198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5204 if { { ac_try="$ac_link_default"
5206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5207 *) ac_try_echo
=$ac_try;;
5209 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5210 $as_echo "$ac_try_echo"; } >&5
5211 (eval "$ac_link_default") 2>&5
5213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5214 test $ac_status = 0; }; then :
5215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5217 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5218 # so that the user can short-circuit this test for compilers unknown to
5220 for ac_file
in $ac_files ''
5222 test -f "$ac_file" ||
continue
5224 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5227 # We found the default executable, but exeext='' is most
5231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5233 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5235 # We set ac_cv_exeext here because the later test for it is not
5236 # safe: cross compilers may not add the suffix if given an `-o'
5237 # argument, so we may need to know it at that point already.
5238 # Even if this section looks crufty: it has the advantage of
5245 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5250 if test -z "$ac_file"; then :
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.
$ac_ext >&5
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258 { as_fn_set_status
77
5259 as_fn_error
"C compiler cannot create executables
5260 See \`config.log' for more details." "$LINENO" 5; }; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5266 $as_echo_n "checking for C compiler default output file name... " >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5268 $as_echo "$ac_file" >&6; }
5269 ac_exeext
=$ac_cv_exeext
5271 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5272 ac_clean_files
=$ac_clean_files_save
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5274 $as_echo_n "checking for suffix of executables... " >&6; }
5275 if { { ac_try
="$ac_link"
5277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5281 $as_echo "$ac_try_echo"; } >&5
5282 (eval "$ac_link") 2>&5
5284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5285 test $ac_status = 0; }; then :
5286 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5287 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5288 # work properly (i.e., refer to `conftest.exe'), while it won't with
5290 for ac_file
in conftest.exe conftest conftest.
*; do
5291 test -f "$ac_file" ||
continue
5293 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5294 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5302 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5303 See \`config.log' for more details." "$LINENO" 5; }
5305 rm -f conftest conftest
$ac_cv_exeext
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5307 $as_echo "$ac_cv_exeext" >&6; }
5309 rm -f conftest.
$ac_ext
5310 EXEEXT
=$ac_cv_exeext
5312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5318 FILE *f = fopen ("conftest.out", "w");
5319 return ferror (f) || fclose (f) != 0;
5325 ac_clean_files
="$ac_clean_files conftest.out"
5326 # Check that the compiler produces executables we can run. If not, either
5327 # the compiler is broken, or we cross compile.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5329 $as_echo_n "checking whether we are cross compiling... " >&6; }
5330 if test "$cross_compiling" != yes; then
5331 { { ac_try
="$ac_link"
5333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5337 $as_echo "$ac_try_echo"; } >&5
5338 (eval "$ac_link") 2>&5
5340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341 test $ac_status = 0; }
5342 if { ac_try='./conftest$ac_cv_exeext'
5343 { { case "(($ac_try" in
5344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5345 *) ac_try_echo
=$ac_try;;
5347 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5348 $as_echo "$ac_try_echo"; } >&5
5349 (eval "$ac_try") 2>&5
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }; }; then
5355 if test "$cross_compiling" = maybe
; then
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error
"cannot run C compiled programs.
5361 If you meant to cross compile, use \`--host'.
5362 See \`config.log' for more details." "$LINENO" 5; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5367 $as_echo "$cross_compiling" >&6; }
5369 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5370 ac_clean_files
=$ac_clean_files_save
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5372 $as_echo_n "checking for suffix of object files... " >&6; }
5373 if test "${ac_cv_objext+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5387 rm -f conftest.o conftest.obj
5388 if { { ac_try
="$ac_compile"
5390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5394 $as_echo "$ac_try_echo"; } >&5
5395 (eval "$ac_compile") 2>&5
5397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5398 test $ac_status = 0; }; then :
5399 for ac_file in conftest.o conftest.obj conftest.*; do
5400 test -f "$ac_file" || continue;
5402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5408 $as_echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5413 as_fn_error "cannot compute suffix of object files
: cannot compile
5414 See \
`config.log' for more details." "$LINENO" 5; }
5416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5419 $as_echo "$ac_cv_objext" >&6; }
5420 OBJEXT=$ac_cv_objext
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5424 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5441 if ac_fn_c_try_compile "$LINENO"; then :
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5452 if test $ac_compiler_gnu = yes; then
5457 ac_test_CFLAGS=${CFLAGS+set}
5458 ac_save_CFLAGS=$CFLAGS
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5461 if test "${ac_cv_prog_cc_g+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5464 ac_save_c_werror_flag=$ac_c_werror_flag
5465 ac_c_werror_flag=yes
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5479 if ac_fn_c_try_compile "$LINENO"; then :
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5494 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_c_werror_flag=$ac_save_c_werror_flag
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5510 if ac_fn_c_try_compile "$LINENO"; then :
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 ac_c_werror_flag=$ac_save_c_werror_flag
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5521 $as_echo "$ac_cv_prog_cc_g" >&6; }
5522 if test "$ac_test_CFLAGS" = set; then
5523 CFLAGS=$ac_save_CFLAGS
5524 elif test $ac_cv_prog_cc_g = yes; then
5525 if test "$GCC" = yes; then
5531 if test "$GCC" = yes; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5539 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5542 ac_cv_prog_cc_c89=no
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 #include <sys/stat.h>
5550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5551 struct buf { int x; };
5552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5553 static char *e (p, i)
5559 static char *f (char * (*g) (char **, int), char **p, ...)
5564 s = g (p, va_arg (v,int));
5569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5570 function prototypes and stuff, but not '\xHH' hex character constants.
5571 These don't provoke an error unfortunately, instead are silently treated
5572 as 'x'. The following induces an error, until -std is added to get
5573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5574 array size at least. It's necessary to write '\x00'==0 to get something
5575 that's true only with -std. */
5576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5579 inside strings and character constants. */
5581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5583 int test (int i, double x);
5584 struct s1 {int (*f) (int a);};
5585 struct s2 {int (*f) (double a);};
5586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5600 CC="$ac_save_CC $ac_arg"
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_prog_cc_c89=$ac_arg
5604 rm -f core conftest.err conftest.$ac_objext
5605 test "x$ac_cv_prog_cc_c89" != "xno" && break
5607 rm -f conftest.$ac_ext
5612 case "x$ac_cv_prog_cc_c89" in
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5615 $as_echo "none needed" >&6; } ;;
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5618 $as_echo "unsupported" >&6; } ;;
5620 CC="$CC $ac_cv_prog_cc_c89"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5624 if test "x$ac_cv_prog_cc_c89" != xno; then :
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 DEPDIR="${am__leading_dot}deps"
5635 ac_config_commands="$ac_config_commands depfiles"
5638 am_make=${MAKE-make}
5639 cat > confinc << 'END'
5641 @echo this is the am__doit target
5644 # If we don't find an include directive, just comment out the code.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5646 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5650 # First try GNU make style include.
5651 echo "include confinc" > confmf
5652 # Ignore all kinds of additional output from `make'.
5653 case `$am_make -s -f confmf 2> /dev/null` in #(
5654 *the\ am__doit\ target*)
5660 # Now try BSD make style include.
5661 if test "$am__include" = "#"; then
5662 echo '.include
"confinc"' > confmf
5663 case `$am_make -s -f confmf 2> /dev/null` in #(
5664 *the\ am__doit\ target*)
5665 am__include=.include
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5674 $as_echo "$_am_result" >&6; }
5675 rm -f confinc confmf
5677 # Check whether --enable-dependency-tracking was given.
5678 if test "${enable_dependency_tracking+set}" = set; then :
5679 enableval=$enable_dependency_tracking;
5682 if test "x$enable_dependency_tracking" != xno; then
5683 am_depcomp="$ac_aux_dir/depcomp"
5686 if test "x$enable_dependency_tracking" != xno
; then
5696 depcc
="$CC" am_compiler_list
=
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5699 $as_echo_n "checking dependency style of $depcc... " >&6; }
5700 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5704 # We make a subdir and do the tests there. Otherwise we can end up
5705 # making bogus files that we don't know about and never remove. For
5706 # instance it was reported that on HP-UX the gcc test will end up
5707 # making a dummy file named `D' -- because `-MD' means `put the output
5710 # Copy depcomp to subdir because otherwise we won't find it if we're
5711 # using a relative directory.
5712 cp "$am_depcomp" conftest.dir
5714 # We will build objects and dependencies in a subdirectory because
5715 # it helps to detect inapplicable dependency modes. For instance
5716 # both Tru64's cc and ICC support -MD to output dependencies as a
5717 # side effect of compilation, but ICC will put the dependencies in
5718 # the current directory while Tru64 will put them in the object
5722 am_cv_CC_dependencies_compiler_type
=none
5723 if test "$am_compiler_list" = ""; then
5724 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5727 case " $depcc " in #(
5728 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5731 for depmode
in $am_compiler_list; do
5732 # Setup a source with many dependencies, because some compilers
5733 # like to wrap large dependency lists on column 80 (with \), and
5734 # we should not choose a depcomp mode which is confused by this.
5736 # We need to recreate these files for each test, as the compiler may
5737 # overwrite some of them when testing with obscure command lines.
5738 # This happens at least with the AIX C compiler.
5740 for i
in 1 2 3 4 5 6; do
5741 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5742 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5743 # Solaris 8's {/usr,}/bin/sh.
5744 touch sub
/conftst
$i.h
5746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5748 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5749 # mode. It turns out that the SunPro C++ compiler does not properly
5750 # handle `-M -o', and we need to detect this. Also, some Intel
5751 # versions had trouble with output in subdirs
5752 am__obj
=sub
/conftest.
${OBJEXT-o}
5753 am__minus_obj
="-o $am__obj"
5756 # This depmode causes a compiler race in universal mode.
5757 test "$am__universal" = false ||
continue
5760 # after this tag, mechanisms are not by side-effect, so they'll
5761 # only be used when explicitly requested
5762 if test "x$enable_dependency_tracking" = xyes
; then
5768 msvisualcpp | msvcmsys
)
5769 # This compiler won't grok `-c -o', but also, the minuso test has
5770 # not run yet. These depmodes are late enough in the game, and
5771 # so weak that their functioning should not be impacted.
5772 am__obj
=conftest.
${OBJEXT-o}
5777 if depmode
=$depmode \
5778 source=sub
/conftest.c object
=$am__obj \
5779 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5780 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5781 >/dev
/null
2>conftest.err
&&
5782 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5783 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5784 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5785 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5786 # icc doesn't choke on unknown options, it will just issue warnings
5787 # or remarks (even with -Werror). So we grep stderr for any message
5788 # that says an option was ignored or not supported.
5789 # When given -MP, icc 7.0 and 7.1 complain thusly:
5790 # icc: Command line warning: ignoring option '-M'; no argument required
5791 # The diagnosis changed in icc 8.0:
5792 # icc: Command line remark: option '-MP' not supported
5793 if (grep 'ignoring option' conftest.err ||
5794 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5795 am_cv_CC_dependencies_compiler_type
=$depmode
5804 am_cv_CC_dependencies_compiler_type
=none
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5809 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5810 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5813 test "x$enable_dependency_tracking" != xno \
5814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5816 am__fastdepCC_FALSE
='#'
5818 am__fastdepCC_TRUE
='#'
5819 am__fastdepCC_FALSE
=
5823 if test "x$CC" != xcc
; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5825 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5828 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5830 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5831 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5832 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5833 $as_echo_n "(cached) " >&6
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5846 # Make sure it works both with $CC and with simple cc.
5847 # We do the test twice because some compilers refuse to overwrite an
5848 # existing .o file with -o, though they will create one.
5849 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5851 if { { case "(($ac_try" in
5852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5856 $as_echo "$ac_try_echo"; } >&5
5857 (eval "$ac_try") 2>&5
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; } &&
5861 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5863 *) ac_try_echo
=$ac_try;;
5865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5866 $as_echo "$ac_try_echo"; } >&5
5867 (eval "$ac_try") 2>&5
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; };
5872 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5873 if test "x$CC" != xcc
; then
5874 # Test first that cc exists at all.
5875 if { ac_try
='cc -c conftest.$ac_ext >&5'
5876 { { case "(($ac_try" in
5877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5881 $as_echo "$ac_try_echo"; } >&5
5882 (eval "$ac_try") 2>&5
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; }; then
5886 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5888 if { { case "(($ac_try" in
5889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5890 *) ac_try_echo
=$ac_try;;
5892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5893 $as_echo "$ac_try_echo"; } >&5
5894 (eval "$ac_try") 2>&5
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; } &&
5898 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5903 $as_echo "$ac_try_echo"; } >&5
5904 (eval "$ac_try") 2>&5
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; };
5912 # cc exists but doesn't like -o.
5913 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5918 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5920 rm -f core conftest*
5923 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5925 $as_echo "yes" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5930 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5934 # FIXME: we rely on the cache variable name because
5935 # there is no other way.
5937 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5938 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5939 if test "$am_t" != yes; then
5940 # Losing compiler, so override with the script.
5941 # FIXME: It is wrong to rewrite CC.
5942 # But if we don't then we get into trouble of one sort or another.
5943 # A longer-term fix would be to have automake use am__CC in this case,
5944 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5945 CC="$am_aux_dir/compile $CC"
5950 if test x$GCC = xyes; then
5951 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5953 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5956 if test "x$opsys" = "xmingw32"; then
5957 BUILDING_FOR_WINDOWSNT_TRUE=
5958 BUILDING_FOR_WINDOWSNT_FALSE='#'
5960 BUILDING_FOR_WINDOWSNT_TRUE='#'
5961 BUILDING_FOR_WINDOWSNT_FALSE=
5965 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5966 # as we don't use them.
5968 # Avoid gnulib's threadlib module, as we do threads our own way.
5971 # Initialize gnulib right after choosing the compiler.
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5980 # On Suns, sometimes $CPP names a directory.
5981 if test -n "$CPP" && test -d "$CPP"; then
5984 if test -z "$CPP"; then
5985 if test "${ac_cv_prog_CPP+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 # Double quotes because CPP needs to be expanded
5989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5992 for ac_c_preproc_warn_flag in '' yes
5994 # Use a header file that comes with gcc, so configuring glibc
5995 # with a fresh cross-compiler works.
5996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 # <limits.h> exists even on freestanding compilers.
5998 # On the NeXT, cc -E runs the code through the compiler's parser,
5999 # not just through cpp. "Syntax error" is here to catch this case.
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6003 # include <limits.h>
6005 # include <assert.h>
6009 if ac_fn_c_try_cpp "$LINENO"; then :
6012 # Broken: fails on valid input.
6015 rm -f conftest.err conftest.$ac_ext
6017 # OK, works on sane cases. Now check whether nonexistent headers
6018 # can be detected and how.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <ac_nonexistent.h>
6023 if ac_fn_c_try_cpp "$LINENO"; then :
6024 # Broken: success on invalid input.
6027 # Passes both tests.
6031 rm -f conftest.err conftest.$ac_ext
6034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6035 rm -f conftest.err conftest.
$ac_ext
6036 if $ac_preproc_ok; then :
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6049 $as_echo "$CPP" >&6; }
6051 for ac_c_preproc_warn_flag
in '' yes
6053 # Use a header file that comes with gcc, so configuring glibc
6054 # with a fresh cross-compiler works.
6055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6056 # <limits.h> exists even on freestanding compilers.
6057 # On the NeXT, cc -E runs the code through the compiler's parser,
6058 # not just through cpp. "Syntax error" is here to catch this case.
6059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6062 # include <limits.h>
6064 # include <assert.h>
6068 if ac_fn_c_try_cpp
"$LINENO"; then :
6071 # Broken: fails on valid input.
6074 rm -f conftest.err conftest.
$ac_ext
6076 # OK, works on sane cases. Now check whether nonexistent headers
6077 # can be detected and how.
6078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <ac_nonexistent.h>
6082 if ac_fn_c_try_cpp
"$LINENO"; then :
6083 # Broken: success on invalid input.
6086 # Passes both tests.
6090 rm -f conftest.err conftest.
$ac_ext
6093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6094 rm -f conftest.err conftest.
$ac_ext
6095 if $ac_preproc_ok; then :
6098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6100 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
6101 See \`config.log' for more details." "$LINENO" 5; }
6105 ac_cpp
='$CPP $CPPFLAGS'
6106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6113 if test "${ac_cv_path_GREP+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6116 if test -z "$GREP"; then
6117 ac_path_GREP_found
=false
6118 # Loop through the user's path and test for each of PROGNAME-LIST
6119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6120 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6123 test -z "$as_dir" && as_dir
=.
6124 for ac_prog
in grep ggrep
; do
6125 for ac_exec_ext
in '' $ac_executable_extensions; do
6126 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6128 # Check for GNU ac_path_GREP and select it if it is found.
6129 # Check for GNU $ac_path_GREP
6130 case `"$ac_path_GREP" --version 2>&1` in
6132 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6135 $as_echo_n 0123456789 >"conftest.in"
6138 cat "conftest.in" "conftest.in" >"conftest.tmp"
6139 mv "conftest.tmp" "conftest.in"
6140 cp "conftest.in" "conftest.nl"
6141 $as_echo 'GREP' >> "conftest.nl"
6142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6143 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6144 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6146 # Best one so far, save it but keep looking for a better one
6147 ac_cv_path_GREP
="$ac_path_GREP"
6148 ac_path_GREP_max
=$ac_count
6150 # 10*(2^10) chars as input seems more than enough
6151 test $ac_count -gt 10 && break
6153 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6156 $ac_path_GREP_found && break 3
6161 if test -z "$ac_cv_path_GREP"; then
6162 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6165 ac_cv_path_GREP
=$GREP
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6170 $as_echo "$ac_cv_path_GREP" >&6; }
6171 GREP
="$ac_cv_path_GREP"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6175 $as_echo_n "checking for egrep... " >&6; }
6176 if test "${ac_cv_path_EGREP+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6179 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6180 then ac_cv_path_EGREP
="$GREP -E"
6182 if test -z "$EGREP"; then
6183 ac_path_EGREP_found
=false
6184 # Loop through the user's path and test for each of PROGNAME-LIST
6185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6186 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6189 test -z "$as_dir" && as_dir
=.
6190 for ac_prog
in egrep; do
6191 for ac_exec_ext
in '' $ac_executable_extensions; do
6192 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6194 # Check for GNU ac_path_EGREP and select it if it is found.
6195 # Check for GNU $ac_path_EGREP
6196 case `"$ac_path_EGREP" --version 2>&1` in
6198 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6201 $as_echo_n 0123456789 >"conftest.in"
6204 cat "conftest.in" "conftest.in" >"conftest.tmp"
6205 mv "conftest.tmp" "conftest.in"
6206 cp "conftest.in" "conftest.nl"
6207 $as_echo 'EGREP' >> "conftest.nl"
6208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6209 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6210 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6212 # Best one so far, save it but keep looking for a better one
6213 ac_cv_path_EGREP
="$ac_path_EGREP"
6214 ac_path_EGREP_max
=$ac_count
6216 # 10*(2^10) chars as input seems more than enough
6217 test $ac_count -gt 10 && break
6219 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6222 $ac_path_EGREP_found && break 3
6227 if test -z "$ac_cv_path_EGREP"; then
6228 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6231 ac_cv_path_EGREP
=$EGREP
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6237 $as_echo "$ac_cv_path_EGREP" >&6; }
6238 EGREP
="$ac_cv_path_EGREP"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6244 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6245 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6258 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6259 gl_cv_c_amsterdam_compiler
=yes
6261 gl_cv_c_amsterdam_compiler
=no
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6268 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6269 if test -z "$AR"; then
6270 if test $gl_cv_c_amsterdam_compiler = yes; then
6272 if test -z "$ARFLAGS"; then
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6278 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_AR+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$AR"; then
6285 ac_cv_prog_AR
="$AR" # Let the user override the test.
6287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir
=.
6292 for ac_exec_ext
in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 if test -n "$AR"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6307 $as_echo "$AR" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6315 if test -z "$ac_cv_prog_AR"; then
6317 # Extract the first word of "ar", so it can be a program name with args.
6318 set dummy
ar; ac_word
=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$ac_ct_AR"; then
6325 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir
=.
6332 for ac_exec_ext
in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_ac_ct_AR
="ar"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6345 if test -n "$ac_ct_AR"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6347 $as_echo "$ac_ct_AR" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6353 if test "x$ac_ct_AR" = x
; then
6356 case $cross_compiling:$ac_tool_warned in
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned
=yes ;;
6368 if test -z "$ARFLAGS"; then
6373 if test -z "$ARFLAGS"; then
6379 if test -z "$RANLIB"; then
6380 if test $gl_cv_c_amsterdam_compiler = yes; then
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6385 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$RANLIB"; then
6392 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir
=.
6399 for ac_exec_ext
in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 RANLIB
=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6414 $as_echo "$RANLIB" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6422 if test -z "$ac_cv_prog_RANLIB"; then
6423 ac_ct_RANLIB
=$RANLIB
6424 # Extract the first word of "ranlib", so it can be a program name with args.
6425 set dummy ranlib
; ac_word
=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$ac_ct_RANLIB"; then
6432 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir
=.
6439 for ac_exec_ext
in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6452 if test -n "$ac_ct_RANLIB"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6454 $as_echo "$ac_ct_RANLIB" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6460 if test "x$ac_ct_RANLIB" = x
; then
6463 case $cross_compiling:$ac_tool_warned in
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned
=yes ;;
6469 RANLIB
=$ac_ct_RANLIB
6472 RANLIB
="$ac_cv_prog_RANLIB"
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6480 $as_echo_n "checking for ANSI C header files... " >&6; }
6481 if test "${ac_cv_header_stdc+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6499 if ac_fn_c_try_compile
"$LINENO"; then :
6500 ac_cv_header_stdc
=yes
6502 ac_cv_header_stdc
=no
6504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6506 if test $ac_cv_header_stdc = yes; then
6507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6514 $EGREP "memchr" >/dev
/null
2>&1; then :
6517 ac_cv_header_stdc
=no
6523 if test $ac_cv_header_stdc = yes; then
6524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 $EGREP "free" >/dev
/null
2>&1; then :
6534 ac_cv_header_stdc
=no
6540 if test $ac_cv_header_stdc = yes; then
6541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6542 if test "$cross_compiling" = yes; then :
6545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6553 # define ISLOWER(c) \
6554 (('a' <= (c) && (c) <= 'i') \
6555 || ('j' <= (c) && (c) <= 'r') \
6556 || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565 for (i = 0; i < 256; i++)
6566 if (XOR (islower (i), ISLOWER (i))
6567 || toupper (i) != TOUPPER (i))
6572 if ac_fn_c_try_run
"$LINENO"; then :
6575 ac_cv_header_stdc
=no
6577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6584 $as_echo "$ac_cv_header_stdc" >&6; }
6585 if test $ac_cv_header_stdc = yes; then
6587 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6591 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6592 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6593 inttypes.h stdint.h unistd.h
6595 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6598 eval as_val
=\$
$as_ac_Header
6599 if test "x$as_val" = x
""yes; then :
6600 cat >>confdefs.h
<<_ACEOF
6601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6611 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6618 if test "$MINIX" = yes; then
6620 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6623 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6626 $as_echo "#define _MINIX 1" >>confdefs.h
6629 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6635 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6636 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6642 # define __EXTENSIONS__ 1
6643 $ac_includes_default
6652 if ac_fn_c_try_compile
"$LINENO"; then :
6653 ac_cv_safe_to_define___extensions__
=yes
6655 ac_cv_safe_to_define___extensions__
=no
6657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6660 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6661 test $ac_cv_safe_to_define___extensions__ = yes &&
6662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6666 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6668 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6670 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6672 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6675 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6676 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 ac_cv_should_define__xopen_source
=no
6680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6693 if ac_fn_c_try_compile
"$LINENO"; then :
6696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6699 #define _XOPEN_SOURCE 500
6710 if ac_fn_c_try_compile
"$LINENO"; then :
6711 ac_cv_should_define__xopen_source
=yes
6713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6718 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6719 test $ac_cv_should_define__xopen_source = yes &&
6720 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6729 # Check whether --enable-largefile was given.
6730 if test "${enable_largefile+set}" = set; then :
6731 enableval
=$enable_largefile;
6734 if test "$enable_largefile" != no
; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6737 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6738 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6741 ac_cv_sys_largefile_CC
=no
6742 if test "$GCC" != yes; then
6745 # IRIX 6.2 and later do not support large files by default,
6746 # so use the C compiler's -n32 option if that helps.
6747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <sys/types.h>
6750 /* Check that off_t can represent 2**63 - 1 correctly.
6751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6752 since some C++ compilers masquerading as C compilers
6753 incorrectly reject 9223372036854775807. */
6754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6756 && LARGE_OFF_T % 2147483647 == 1)
6766 if ac_fn_c_try_compile
"$LINENO"; then :
6769 rm -f core conftest.err conftest.
$ac_objext
6771 if ac_fn_c_try_compile
"$LINENO"; then :
6772 ac_cv_sys_largefile_CC
=' -n32'; break
6774 rm -f core conftest.err conftest.
$ac_objext
6778 rm -f conftest.
$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6782 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6783 if test "$ac_cv_sys_largefile_CC" != no
; then
6784 CC
=$CC$ac_cv_sys_largefile_CC
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6788 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6789 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 #include <sys/types.h>
6796 /* Check that off_t can represent 2**63 - 1 correctly.
6797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6798 since some C++ compilers masquerading as C compilers
6799 incorrectly reject 9223372036854775807. */
6800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6802 && LARGE_OFF_T % 2147483647 == 1)
6812 if ac_fn_c_try_compile
"$LINENO"; then :
6813 ac_cv_sys_file_offset_bits
=no
; break
6815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #define _FILE_OFFSET_BITS 64
6819 #include <sys/types.h>
6820 /* Check that off_t can represent 2**63 - 1 correctly.
6821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6822 since some C++ compilers masquerading as C compilers
6823 incorrectly reject 9223372036854775807. */
6824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6826 && LARGE_OFF_T % 2147483647 == 1)
6836 if ac_fn_c_try_compile
"$LINENO"; then :
6837 ac_cv_sys_file_offset_bits
=64; break
6839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6840 ac_cv_sys_file_offset_bits
=unknown
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6845 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6846 case $ac_cv_sys_file_offset_bits in #(
6849 cat >>confdefs.h
<<_ACEOF
6850 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6855 if test $ac_cv_sys_file_offset_bits = unknown
; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6857 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6858 if test "${ac_cv_sys_large_files+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6865 /* Check that off_t can represent 2**63 - 1 correctly.
6866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6867 since some C++ compilers masquerading as C compilers
6868 incorrectly reject 9223372036854775807. */
6869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6871 && LARGE_OFF_T % 2147483647 == 1)
6881 if ac_fn_c_try_compile
"$LINENO"; then :
6882 ac_cv_sys_large_files
=no
; break
6884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #define _LARGE_FILES 1
6888 #include <sys/types.h>
6889 /* Check that off_t can represent 2**63 - 1 correctly.
6890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6891 since some C++ compilers masquerading as C compilers
6892 incorrectly reject 9223372036854775807. */
6893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6895 && LARGE_OFF_T % 2147483647 == 1)
6905 if ac_fn_c_try_compile
"$LINENO"; then :
6906 ac_cv_sys_large_files
=1; break
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 ac_cv_sys_large_files
=unknown
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6914 $as_echo "$ac_cv_sys_large_files" >&6; }
6915 case $ac_cv_sys_large_files in #(
6918 cat >>confdefs.h
<<_ACEOF
6919 #define _LARGE_FILES $ac_cv_sys_large_files
6927 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6931 case $ac_cv_prog_cc_stdc in #(
6933 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6936 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6937 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6940 ac_cv_prog_cc_c99
=no
6942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6945 #include <stdbool.h>
6950 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6951 #define debug(...) fprintf (stderr, __VA_ARGS__)
6952 #define showlist(...) puts (#__VA_ARGS__)
6953 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6955 test_varargs_macros (void)
6960 debug ("X = %d\n", x);
6961 showlist (The first, second, and third items.);
6962 report (x>y, "x is %d but y is %d", x, y);
6965 // Check long long types.
6966 #define BIG64 18446744073709551615ull
6967 #define BIG32 4294967295ul
6968 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6970 your preprocessor is broken;
6974 your preprocessor is broken;
6976 static long long int bignum = -9223372036854775807LL;
6977 static unsigned long long int ubignum = BIG64;
6979 struct incomplete_array
6987 const wchar_t *name;
6991 typedef const char *ccp;
6994 test_restrict (ccp restrict text)
6996 // See if C++-style comments work.
6997 // Iterate through items via the restricted pointer.
6998 // Also check for declarations in for loops.
6999 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7004 // Check varargs and va_copy.
7006 test_varargs (const char *format, ...)
7009 va_start (args, format);
7011 va_copy (args_copy, args);
7022 str = va_arg (args_copy, const char *);
7025 number = va_arg (args_copy, int);
7028 fnumber = va_arg (args_copy, double);
7043 _Bool success = false;
7046 if (test_restrict ("String literal") == 0)
7048 char *restrict newvar = "Another string";
7051 test_varargs ("s, d' f .", "string", 65, 34.234);
7052 test_varargs_macros ();
7054 // Check flexible array members.
7055 struct incomplete_array *ia =
7056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7058 for (int i = 0; i < ia->datasize; ++i)
7059 ia->data[i] = i * 1.234;
7061 // Check named initializers.
7062 struct named_init ni = {
7064 .name = L"Test wide string",
7065 .average = 543.34343,
7070 int dynamic_array[ni.number];
7071 dynamic_array[ni.number - 1] = 543;
7073 // work around unused variable warnings
7074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7075 || dynamic_array[ni.number - 1] != 543);
7081 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
7083 CC
="$ac_save_CC $ac_arg"
7084 if ac_fn_c_try_compile
"$LINENO"; then :
7085 ac_cv_prog_cc_c99
=$ac_arg
7087 rm -f core conftest.err conftest.
$ac_objext
7088 test "x$ac_cv_prog_cc_c99" != "xno" && break
7090 rm -f conftest.
$ac_ext
7095 case "x$ac_cv_prog_cc_c99" in
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7098 $as_echo "none needed" >&6; } ;;
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7101 $as_echo "unsupported" >&6; } ;;
7103 CC
="$CC $ac_cv_prog_cc_c99"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7105 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7107 if test "x$ac_cv_prog_cc_c99" != xno
; then :
7108 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7112 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7115 ac_cv_prog_cc_c89
=no
7117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7121 #include <sys/types.h>
7122 #include <sys/stat.h>
7123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7124 struct buf { int x; };
7125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7126 static char *e (p, i)
7132 static char *f (char * (*g) (char **, int), char **p, ...)
7137 s = g (p, va_arg (v,int));
7142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7143 function prototypes and stuff, but not '\xHH' hex character constants.
7144 These don't provoke an error unfortunately, instead are silently treated
7145 as 'x'. The following induces an error, until -std is added to get
7146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7147 array size at least. It's necessary to write '\x00'==0 to get something
7148 that's true only with -std. */
7149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7152 inside strings and character constants. */
7154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7156 int test (int i, double x);
7157 struct s1 {int (*f) (int a);};
7158 struct s2 {int (*f) (double a);};
7159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7170 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
7171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7173 CC
="$ac_save_CC $ac_arg"
7174 if ac_fn_c_try_compile
"$LINENO"; then :
7175 ac_cv_prog_cc_c89
=$ac_arg
7177 rm -f core conftest.err conftest.
$ac_objext
7178 test "x$ac_cv_prog_cc_c89" != "xno" && break
7180 rm -f conftest.
$ac_ext
7185 case "x$ac_cv_prog_cc_c89" in
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7188 $as_echo "none needed" >&6; } ;;
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7191 $as_echo "unsupported" >&6; } ;;
7193 CC
="$CC $ac_cv_prog_cc_c89"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7197 if test "x$ac_cv_prog_cc_c89" != xno
; then :
7198 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
7200 ac_cv_prog_cc_stdc
=no
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7207 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7208 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7212 case $ac_cv_prog_cc_stdc in #(
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7215 $as_echo "unsupported" >&6; } ;; #(
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7218 $as_echo "none needed" >&6; } ;; #(
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7221 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7226 # Code from module alloca-opt:
7227 # Code from module allocator:
7228 # Code from module at-internal:
7229 # Code from module c-ctype:
7230 # Code from module c-strcase:
7231 # Code from module careadlinkat:
7232 # Code from module clock-time:
7233 # Code from module close-stream:
7234 # Code from module crypto/md5:
7235 # Code from module crypto/sha1:
7236 # Code from module crypto/sha256:
7237 # Code from module crypto/sha512:
7238 # Code from module dirent:
7239 # Code from module dosname:
7240 # Code from module dtoastr:
7241 # Code from module dtotimespec:
7242 # Code from module dup2:
7243 # Code from module environ:
7244 # Code from module errno:
7245 # Code from module euidaccess:
7246 # Code from module execinfo:
7247 # Code from module extensions:
7249 # Code from module extern-inline:
7250 # Code from module faccessat:
7251 # Code from module fcntl-h:
7252 # Code from module fdatasync:
7253 # Code from module fdopendir:
7254 # Code from module filemode:
7255 # Code from module fpending:
7256 # Code from module fstatat:
7257 # Code from module fsync:
7258 # Code from module getgroups:
7259 # Code from module getloadavg:
7260 # Code from module getopt-gnu:
7261 # Code from module getopt-posix:
7262 # Code from module gettext-h:
7263 # Code from module gettime:
7264 # Code from module gettimeofday:
7265 # Code from module group-member:
7266 # Code from module ignore-value:
7267 # Code from module include_next:
7268 # Code from module intprops:
7269 # Code from module inttypes-incomplete:
7270 # Code from module largefile:
7272 # Code from module lstat:
7273 # Code from module manywarnings:
7274 # Code from module memrchr:
7275 # Code from module mktime:
7276 # Code from module multiarch:
7277 # Code from module nocrash:
7278 # Code from module openat-h:
7279 # Code from module pathmax:
7280 # Code from module pselect:
7281 # Code from module pthread_sigmask:
7282 # Code from module putenv:
7283 # Code from module qacl:
7284 # Code from module readlink:
7285 # Code from module readlinkat:
7286 # Code from module root-uid:
7287 # Code from module sig2str:
7288 # Code from module signal-h:
7289 # Code from module snippet/_Noreturn:
7290 # Code from module snippet/arg-nonnull:
7291 # Code from module snippet/c++defs:
7292 # Code from module snippet/warn-on-use:
7293 # Code from module socklen:
7294 # Code from module ssize_t:
7295 # Code from module stat:
7296 # Code from module stat-time:
7297 # Code from module stdalign:
7298 # Code from module stdarg:
7302 # Code from module stdbool:
7303 # Code from module stddef:
7304 # Code from module stdint:
7305 # Code from module stdio:
7306 # Code from module stdlib:
7307 # Code from module strftime:
7308 # Code from module string:
7309 # Code from module strtoimax:
7310 # Code from module strtoll:
7311 # Code from module strtoull:
7312 # Code from module strtoumax:
7313 # Code from module symlink:
7314 # Code from module sys_select:
7315 # Code from module sys_stat:
7316 # Code from module sys_time:
7317 # Code from module time:
7318 # Code from module time_r:
7319 # Code from module timer-time:
7320 # Code from module timespec:
7321 # Code from module timespec-add:
7322 # Code from module timespec-sub:
7323 # Code from module u64:
7324 # Code from module unistd:
7325 # Code from module unsetenv:
7326 # Code from module utimens:
7327 # Code from module verify:
7328 # Code from module warnings:
7329 # Code from module xalloc-oversized:
7332 if test "$ac_test_CFLAGS" != set; then
7333 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7334 # if -g3 works and the user does not specify CFLAGS.
7335 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7338 emacs_g3_CFLAGS
='-g3';;
7340 emacs_g3_CFLAGS
='-g3 -O2';;
7342 emacs_g3_CFLAGS
='';;
7344 if test -n "$emacs_g3_CFLAGS"; then
7345 emacs_save_CFLAGS
=$CFLAGS
7346 CFLAGS
=$emacs_g3_CFLAGS
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7348 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7349 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7363 if ac_fn_c_try_link
"$LINENO"; then :
7364 emacs_cv_prog_cc_g3
=yes
7366 emacs_cv_prog_cc_g3
=no
7368 rm -f core conftest.err conftest.
$ac_objext \
7369 conftest
$ac_exeext conftest.
$ac_ext
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7372 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7373 if test $emacs_cv_prog_cc_g3 != yes; then
7374 CFLAGS
=$emacs_save_CFLAGS
7376 if test $opsys = mingw32
; then
7377 CFLAGS
="$CFLAGS -gdwarf-2"
7384 # No optimization flag was inferred for this non-GCC compiler.
7385 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7386 emacs_save_CFLAGS
=$CFLAGS
7387 test -z "$CFLAGS" || CFLAGS
="$CFLAGS "
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7390 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7391 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7405 if ac_fn_c_try_link
"$LINENO"; then :
7406 emacs_cv_prog_cc_o
=yes
7408 emacs_cv_prog_cc_o
=no
7410 rm -f core conftest.err conftest.
$ac_objext \
7411 conftest
$ac_exeext conftest.
$ac_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7414 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7415 if test $emacs_cv_prog_cc_o != yes; then
7416 CFLAGS
=$emacs_save_CFLAGS
7421 # Check whether --enable-gcc-warnings was given.
7422 if test "${enable_gcc_warnings+set}" = set; then :
7423 enableval
=$enable_gcc_warnings; case $enableval in
7425 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7427 gl_gcc_warnings
=$enableval
7434 # Check whether --enable-link-time-optimization was given.
7435 if test "${enable_link_time_optimization+set}" = set; then :
7436 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7438 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7440 if test x
$GCC = xyes
; then
7441 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7442 if test x
$CPUS != x
; then
7448 CFLAGS
="$CFLAGS $LTO"
7449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7460 if ac_fn_c_try_compile
"$LINENO"; then :
7461 ac_lto_supported
=yes
7465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7466 CFLAGS
="$old_CFLAGS"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7469 $as_echo "$ac_lto_supported" >&6; }
7470 if test "$ac_lto_supported" = "yes"; then
7471 CFLAGS
="$CFLAGS $LTO"
7477 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7478 # ------------------------------------------------
7479 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7480 # Otherwise, run RUN-IF-NOT-FOUND.
7483 # When compiling with GCC, prefer -isystem to -I when including system
7484 # include files, to avoid generating useless diagnostics for the files.
7485 if test "$gl_gcc_warnings" != yes; then
7490 # This, $nw, is the list of warnings we disable.
7493 case $with_x_toolkit in
7494 lucid | athena | motif
)
7495 # Old toolkits mishandle 'const'.
7496 nw
="$nw -Wwrite-strings"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7500 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7501 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7505 gl_save_compiler_FLAGS
="$CFLAGS"
7506 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7518 if ac_fn_c_try_compile
"$LINENO"; then :
7519 gl_cv_warn_c__Werror__Wunknown_warning_option
=yes
7521 gl_cv_warn_c__Werror__Wunknown_warning_option
=no
7523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 CFLAGS
="$gl_save_compiler_FLAGS"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7528 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7529 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x
""yes; then :
7530 gl_unknown_warnings_are_errors
='-Wunknown-warning-option -Werror'
7532 gl_unknown_warnings_are_errors
=
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7537 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7538 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7542 gl_save_compiler_FLAGS
="$CFLAGS"
7543 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Werror"
7544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7555 if ac_fn_c_try_compile
"$LINENO"; then :
7556 gl_cv_warn_c__Werror
=yes
7558 gl_cv_warn_c__Werror
=no
7560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 CFLAGS
="$gl_save_compiler_FLAGS"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7565 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7566 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7567 as_fn_append WERROR_CFLAGS
" -Werror"
7575 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7576 nw
="$nw -Woverlength-strings" # Not a problem these days
7577 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7578 nw
="$nw -Wformat-nonliteral" # we do this a lot
7579 nw
="$nw -Wvla" # warnings in gettext.h
7580 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7581 nw
="$nw -Wswitch-default" # Too many warnings for now
7582 nw
="$nw -Winline" # OK to ignore 'inline'
7583 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7584 nw
="$nw -Wstrict-overflow" # OK to optimize assuming that
7585 # signed overflow has undefined behavior
7586 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7587 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7588 nw
="$nw -Wbad-function-cast" # These casts are no worse than others.
7590 # Emacs doesn't care about shadowing; see
7591 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7594 # Emacs's use of alloca inhibits protecting the stack.
7595 nw
="$nw -Wstack-protector"
7597 # The following line should be removable at some point.
7598 nw
="$nw -Wsuggest-attribute=pure"
7600 # clang is unduly picky about some things.
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7602 $as_echo_n "checking whether the compiler is clang... " >&6; }
7603 if test "${emacs_cv_clang+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7621 if ac_fn_c_try_compile
"$LINENO"; then :
7626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7629 $as_echo "$emacs_cv_clang" >&6; }
7630 if test $emacs_cv_clang = yes; then
7631 nw
="$nw -Wcast-align"
7636 if test -n "$GCC"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7639 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7640 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7644 gl_save_CFLAGS
="$CFLAGS"
7645 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7657 if ac_fn_c_try_compile
"$LINENO"; then :
7658 gl_cv_cc_nomfi_supported
=yes
7660 gl_cv_cc_nomfi_supported
=no
7662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7663 CFLAGS
="$gl_save_CFLAGS"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7667 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7669 if test "$gl_cv_cc_nomfi_supported" = yes; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7671 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7672 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7676 gl_save_CFLAGS
="$CFLAGS"
7677 CFLAGS
="$CFLAGS -W -Werror"
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7682 typedef struct { int a; int b; } s_t;
7694 if ac_fn_c_try_compile
"$LINENO"; then :
7695 gl_cv_cc_nomfi_needed
=no
7697 gl_cv_cc_nomfi_needed
=yes
7699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7700 CFLAGS
="$gl_save_CFLAGS"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7705 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7709 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7710 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7714 gl_save_CFLAGS
="$CFLAGS"
7715 CFLAGS
="$CFLAGS -Werror -Wuninitialized"
7716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7727 if ac_fn_c_try_compile
"$LINENO"; then :
7728 gl_cv_cc_uninitialized_supported
=yes
7730 gl_cv_cc_uninitialized_supported
=no
7732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 CFLAGS
="$gl_save_CFLAGS"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7737 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7741 # List all gcc warning categories.
7743 for gl_manywarn_item
in \
7747 -Waggressive-loop-optimizations \
7751 -Wbad-function-cast \
7752 -Wbuiltin-macro-redefined \
7758 -Wcoverage-mismatch \
7761 -Wdeprecated-declarations \
7762 -Wdisabled-optimization \
7764 -Wdouble-promotion \
7769 -Wformat-contains-nul \
7770 -Wformat-extra-args \
7771 -Wformat-nonliteral \
7774 -Wformat-zero-length \
7775 -Wfree-nonheap-object \
7776 -Wignored-qualifiers \
7778 -Wimplicit-function-declaration \
7782 -Wint-to-pointer-cast \
7783 -Winvalid-memory-model \
7785 -Wjump-misses-init \
7788 -Wmaybe-uninitialized \
7790 -Wmissing-declarations \
7791 -Wmissing-field-initializers \
7792 -Wmissing-include-dirs \
7793 -Wmissing-parameter-type \
7794 -Wmissing-prototypes \
7801 -Wold-style-declaration \
7802 -Wold-style-definition \
7804 -Woverlength-strings \
7807 -Wpacked-bitfield-compat \
7811 -Wpointer-to-int-cast \
7813 -Wreturn-local-addr \
7817 -Wsizeof-pointer-memaccess \
7821 -Wstrict-prototypes \
7822 -Wsuggest-attribute=const \
7823 -Wsuggest-attribute=format \
7824 -Wsuggest-attribute=noreturn \
7825 -Wsuggest-attribute=pure \
7835 -Wunsafe-loop-optimizations \
7837 -Wunused-but-set-parameter \
7838 -Wunused-but-set-variable \
7841 -Wunused-local-typedefs \
7843 -Wunused-parameter \
7849 -Wvector-operation-performance \
7851 -Wvolatile-register-var \
7855 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7858 # Disable specific options as needed.
7859 if test "$gl_cv_cc_nomfi_needed" = yes; then
7860 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7863 if test "$gl_cv_cc_uninitialized_supported" = no
; then
7864 gl_manywarn_set
="$gl_manywarn_set -Wno-uninitialized"
7875 *" $gl_warn_item "*)
7878 gl_warn_set
="$gl_warn_set $gl_warn_item"
7886 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7888 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7889 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7890 $as_echo_n "(cached) " >&6
7893 gl_save_compiler_FLAGS
="$CFLAGS"
7894 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors $w"
7895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7906 if ac_fn_c_try_compile
"$LINENO"; then :
7907 eval "$as_gl_Warn=yes"
7909 eval "$as_gl_Warn=no"
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7912 CFLAGS
="$gl_save_compiler_FLAGS"
7915 eval ac_res
=\$
$as_gl_Warn
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7917 $as_echo "$ac_res" >&6; }
7918 eval as_val
=\$
$as_gl_Warn
7919 if test "x$as_val" = x
""yes; then :
7920 as_fn_append WARN_CFLAGS
" $w"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7927 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7928 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7932 gl_save_compiler_FLAGS
="$CFLAGS"
7933 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7946 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7948 gl_cv_warn_c__Wno_missing_field_initializers
=no
7950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7951 CFLAGS
="$gl_save_compiler_FLAGS"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7955 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7956 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7957 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7963 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7964 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7968 gl_save_compiler_FLAGS
="$CFLAGS"
7969 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-sign-compare"
7970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7981 if ac_fn_c_try_compile
"$LINENO"; then :
7982 gl_cv_warn_c__Wno_sign_compare
=yes
7984 gl_cv_warn_c__Wno_sign_compare
=no
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 CFLAGS
="$gl_save_compiler_FLAGS"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7991 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7992 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7993 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7996 # Too many warnings for now
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7999 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8000 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8004 gl_save_compiler_FLAGS
="$CFLAGS"
8005 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-type-limits"
8006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8017 if ac_fn_c_try_compile
"$LINENO"; then :
8018 gl_cv_warn_c__Wno_type_limits
=yes
8020 gl_cv_warn_c__Wno_type_limits
=no
8022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8023 CFLAGS
="$gl_save_compiler_FLAGS"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8027 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8028 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
8029 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
8032 # Too many warnings for now
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8035 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8036 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8040 gl_save_compiler_FLAGS
="$CFLAGS"
8041 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-switch"
8042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8053 if ac_fn_c_try_compile
"$LINENO"; then :
8054 gl_cv_warn_c__Wno_switch
=yes
8056 gl_cv_warn_c__Wno_switch
=no
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 CFLAGS
="$gl_save_compiler_FLAGS"
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8063 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8064 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
8065 as_fn_append WARN_CFLAGS
" -Wno-switch"
8068 # Too many warnings for now
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8071 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8072 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8076 gl_save_compiler_FLAGS
="$CFLAGS"
8077 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8089 if ac_fn_c_try_compile
"$LINENO"; then :
8090 gl_cv_warn_c__Wno_unused_parameter
=yes
8092 gl_cv_warn_c__Wno_unused_parameter
=no
8094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8095 CFLAGS
="$gl_save_compiler_FLAGS"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8099 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8100 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
8101 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
8104 # Too many warnings for now
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8107 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8108 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8112 gl_save_compiler_FLAGS
="$CFLAGS"
8113 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8125 if ac_fn_c_try_compile
"$LINENO"; then :
8126 gl_cv_warn_c__Wno_format_nonliteral
=yes
8128 gl_cv_warn_c__Wno_format_nonliteral
=no
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8131 CFLAGS
="$gl_save_compiler_FLAGS"
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8135 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8136 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
8137 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
8142 # In spite of excluding -Wlogical-op above, it is enabled, as of
8143 # gcc 4.5.0 20090517.
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8146 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8147 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8151 gl_save_compiler_FLAGS
="$CFLAGS"
8152 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-logical-op"
8153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8164 if ac_fn_c_try_compile
"$LINENO"; then :
8165 gl_cv_warn_c__Wno_logical_op
=yes
8167 gl_cv_warn_c__Wno_logical_op
=no
8169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8170 CFLAGS
="$gl_save_compiler_FLAGS"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8174 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8175 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
8176 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
8181 # More things that clang is unduly picky about.
8182 if test $emacs_cv_clang = yes; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8185 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8186 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8190 gl_save_compiler_FLAGS
="$CFLAGS"
8191 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8203 if ac_fn_c_try_compile
"$LINENO"; then :
8204 gl_cv_warn_c__Wno_format_extra_args
=yes
8206 gl_cv_warn_c__Wno_format_extra_args
=no
8208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8209 CFLAGS
="$gl_save_compiler_FLAGS"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8213 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8214 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x
""yes; then :
8215 as_fn_append WARN_CFLAGS
" -Wno-format-extra-args"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8221 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8222 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8226 gl_save_compiler_FLAGS
="$CFLAGS"
8227 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8239 if ac_fn_c_try_compile
"$LINENO"; then :
8240 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=yes
8242 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare
=no
8244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 CFLAGS
="$gl_save_compiler_FLAGS"
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8249 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8250 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x
""yes; then :
8251 as_fn_append WARN_CFLAGS
" -Wno-tautological-constant-out-of-range-compare"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8257 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8258 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8262 gl_save_compiler_FLAGS
="$CFLAGS"
8263 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8275 if ac_fn_c_try_compile
"$LINENO"; then :
8276 gl_cv_warn_c__Wno_unused_command_line_argument
=yes
8278 gl_cv_warn_c__Wno_unused_command_line_argument
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 CFLAGS
="$gl_save_compiler_FLAGS"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8285 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8286 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x
""yes; then :
8287 as_fn_append WARN_CFLAGS
" -Wno-unused-command-line-argument"
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8293 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8294 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8298 gl_save_compiler_FLAGS
="$CFLAGS"
8299 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -Wno-unused-value"
8300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8311 if ac_fn_c_try_compile
"$LINENO"; then :
8312 gl_cv_warn_c__Wno_unused_value
=yes
8314 gl_cv_warn_c__Wno_unused_value
=no
8316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 CFLAGS
="$gl_save_compiler_FLAGS"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8321 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8322 if test "x$gl_cv_warn_c__Wno_unused_value" = x
""yes; then :
8323 as_fn_append WARN_CFLAGS
" -Wno-unused-value"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8331 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8332 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8336 gl_save_compiler_FLAGS
="$CFLAGS"
8337 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8349 if ac_fn_c_try_compile
"$LINENO"; then :
8350 gl_cv_warn_c__fdiagnostics_show_option
=yes
8352 gl_cv_warn_c__fdiagnostics_show_option
=no
8354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8355 CFLAGS
="$gl_save_compiler_FLAGS"
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8359 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8360 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
8361 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8367 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8368 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8372 gl_save_compiler_FLAGS
="$CFLAGS"
8373 as_fn_append CFLAGS
" $gl_unknown_warnings_are_errors -funit-at-a-time"
8374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8385 if ac_fn_c_try_compile
"$LINENO"; then :
8386 gl_cv_warn_c__funit_at_a_time
=yes
8388 gl_cv_warn_c__funit_at_a_time
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 CFLAGS
="$gl_save_compiler_FLAGS"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8395 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8396 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
8397 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
8403 $as_echo "#define lint 1" >>confdefs.h
8407 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8410 # We use a slightly smaller set of warning options for lib/.
8411 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8413 nw
="$nw -Wunused-macros"
8417 set x
$WARN_CFLAGS; shift
8421 *" $gl_warn_item "*)
8424 gl_warn_set
="$gl_warn_set $gl_warn_item"
8428 GNULIB_WARN_CFLAGS
=$gl_warn_set
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8439 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8440 rm -f conf$$ conf$$.
file
8442 LN_S_FILEONLY
='cp -p'
8444 if (echo >conf$$.
file) 2>/dev
/null
; then
8445 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8446 LN_S_FILEONLY
='ln -s'
8447 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8452 rm -f conf$$ conf$$.
file
8454 if test "$LN_S_FILEONLY" = "ln -s"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8459 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8465 if test "$opsys" = "mingw32"; then
8469 # Extract the first word of "install-info", so it can be a program name with args.
8470 set dummy install-info
; ac_word
=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8476 case $INSTALL_INFO in
8478 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8482 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
8485 test -z "$as_dir" && as_dir
=.
8486 for ac_exec_ext
in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8488 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8500 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8501 if test -n "$INSTALL_INFO"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8503 $as_echo "$INSTALL_INFO" >&6; }
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8510 # Extract the first word of "gzip", so it can be a program name with args.
8511 set dummy
gzip; ac_word
=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8519 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir
=.
8527 for ac_exec_ext
in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8541 if test -n "$GZIP_PROG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8543 $as_echo "$GZIP_PROG" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test $opsys = gnu-linux
; then
8552 # Extract the first word of "paxctl", so it can be a program name with args.
8553 set dummy paxctl
; ac_word
=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8561 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8565 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 PAXCTL
=$ac_cv_path_PAXCTL
8583 if test -n "$PAXCTL"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8585 $as_echo "$PAXCTL" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8592 if test "X$PAXCTL" != X
; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8594 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8606 if ac_fn_c_try_link
"$LINENO"; then :
8607 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8608 $as_echo "yes" >&6; }
8609 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }; PAXCTL
=""; fi
8612 rm -f core conftest.err conftest.
$ac_objext \
8613 conftest
$ac_exeext conftest.
$ac_ext
8617 ## Need makeinfo >= 4.7 (?) to build the manuals.
8618 # Extract the first word of "makeinfo", so it can be a program name with args.
8619 set dummy makeinfo
; ac_word
=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8627 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir
=.
8635 for ac_exec_ext
in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8649 MAKEINFO
=$ac_cv_path_MAKEINFO
8650 if test -n "$MAKEINFO"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8652 $as_echo "$MAKEINFO" >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8659 if test "$MAKEINFO" != "no"; then
8661 $MAKEINFO --version 2> /dev/null |
8662 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8668 ## Makeinfo is unusual. For a released Emacs, the manuals are
8669 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8670 ## therefore in the category of "special tools" not normally required, which
8671 ## configure does not have to check for (eg autoconf itself).
8672 ## In a Bazaar checkout on the other hand, the manuals are not included.
8673 ## So makeinfo is a requirement to build from Bazaar, and configure
8674 ## should test for it as it does for any other build requirement.
8675 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8676 ## with pre-built manuals, from a Bazaar checkout.
8679 if test "$MAKEINFO" = "no"; then
8681 if test "x${with_makeinfo}" = "xno"; then
8683 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8684 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8685 source tree does not seem to have pre-built manuals in the \`info' directory.
8686 Either install a suitable version of makeinfo, or re-run configure
8687 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8693 INFO_OPTS
=--no-split
8698 if test x
$GCC = xyes
; then
8699 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8700 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8702 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8703 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8707 late_LDFLAGS
=$LDFLAGS
8708 if test x
$GCC = xyes
; then
8709 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8711 LDFLAGS
="$LDFLAGS -znocombreloc"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8715 $as_echo_n "checking for -znocombreloc... " >&6; }
8716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8727 if ac_fn_c_try_link
"$LINENO"; then :
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8729 $as_echo "yes" >&6; }
8731 LDFLAGS
=$late_LDFLAGS
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8735 rm -f core conftest.err conftest.
$ac_objext \
8736 conftest
$ac_exeext conftest.
$ac_ext
8739 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8741 your-opsys-here
) CANNOT_DUMP
=yes ;;
8744 test "$CANNOT_DUMP" = "yes" && \
8746 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8752 UNEXEC_OBJ
=unexelf.o
8754 # MSDOS uses unexcoff.o
8756 UNEXEC_OBJ
=unexaix.o
8762 UNEXEC_OBJ
=unexmacosx.o
8765 UNEXEC_OBJ
=unexhp9k800.o
8768 UNEXEC_OBJ
=unexw32.o
8771 # Use the Solaris dldump() function, called from unexsol.c, to dump
8772 # emacs, instead of the generic ELF dump code found in unexelf.c.
8773 # The resulting binary has a complete symbol table, and is better
8774 # for debugging and other observability tools (debuggers, pstack, etc).
8776 # If you encounter a problem using dldump(), please consider sending
8777 # a message to the OpenSolaris tools-linking mailing list:
8778 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8780 # It is likely that dldump() works with older Solaris too, but this has
8781 # not been tested, so for now this change is for Solaris 10 or newer.
8782 UNEXEC_OBJ
=unexsol.o
8789 ## Let `ld' find image libs and similar things in /usr/local/lib.
8790 ## The system compiler, GCC, has apparently been modified to not
8791 ## look there, contrary to what a stock GCC would do.
8792 ### It's not our place to do this. See bug#10313#17.
8793 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8798 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8799 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8803 ### It's not our place to do this. See bug#10313#17.
8804 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8809 ## Han Boetes <han@boetes.org> says this is necessary,
8810 ## otherwise Emacs dumps core on elf systems.
8811 LD_SWITCH_SYSTEM
="-Z"
8816 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8818 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8819 ## which has not been defined yet. When this was handled with cpp,
8820 ## it was expanded to null when configure sourced the s/*.h file.
8821 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8822 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8823 ## (or somesuch), but because it is supposed to go at the _front_
8824 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8825 ## Compare with the gnu-linux case below, which added to the end
8826 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8827 ## LD_SWITCH_SYSTEM_TEMACS.
8830 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8837 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8838 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8842 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8843 ## With ELF, make sure that all common symbols get allocated to in the
8844 ## data section. Otherwise, the dump of temacs may miss variables in
8845 ## the shared library that have been initialized. For example, with
8846 ## GNU libc, __malloc_initialized would normally be resolved to the
8847 ## shared library's .bss section, which is fatal.
8848 if test "x$GCC" = "xyes"; then
8849 C_SWITCH_MACHINE
="-fno-common"
8851 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8854 UNEXEC_OBJ
=unexalpha.o
8863 ## Some programs in src produce warnings saying certain subprograms
8864 ## are too complex and need a MAXMEM value greater than 2000 for
8865 ## additional optimization. --nils@exp-math.uni-essen.de
8866 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8867 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8868 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM
="-mtune=pentium4"
8869 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8870 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8876 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8877 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8879 freebsd|dragonfly
) LIBS_SYSTEM
="-lutil" ;;
8881 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8883 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8885 ## Motif needs -lgen.
8886 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8891 ### Make sure subsequent tests use flags consistent with the build flags.
8893 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8894 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8896 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8899 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8901 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8906 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8913 ## Adding -lm confuses the dynamic linker, so omit it.
8916 freebsd | dragonfly
)
8917 SYSTEM_TYPE
=berkeley-unix
8919 gnu-linux | gnu-kfreebsd
)
8921 hpux10-20 | hpux11
)
8925 SYSTEM_TYPE
=windows-nt
8928 SYSTEM_TYPE
=berkeley-unix
8932 SYSTEM_TYPE
=usg-unix-v
8939 cat >>confdefs.h
<<_ACEOF
8940 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8945 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8946 pre_PKG_CONFIG_LIBS
=$LIBS
8948 # Extract the first word of "pkg-config", so it can be a program name with args.
8949 set dummy pkg-config
; ac_word
=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8953 $as_echo_n "(cached) " >&6
8957 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir
=.
8965 for ac_exec_ext
in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8979 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8980 if test -n "$PKG_CONFIG"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8982 $as_echo "$PKG_CONFIG" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8992 if test "${with_sound}" != "no"; then
8993 # Sound support for GNU/Linux, the free BSDs, and MinGW.
8994 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h mmsystem.h
8996 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
8999 #define WIN32_LEAN_AND_MEAN
9000 #include <windows.h>
9004 eval as_val
=\$
$as_ac_Header
9005 if test "x$as_val" = x
""yes; then :
9006 cat >>confdefs.h
<<_ACEOF
9007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009 have_sound_header
=yes
9014 # Emulation library used on NetBSD.
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9016 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9017 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9020 ac_check_lib_save_LIBS
=$LIBS
9021 LIBS
="-lossaudio $LIBS"
9022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9025 /* Override any GCC internal prototype to avoid an error.
9026 Use char because int might match the return type of a GCC
9027 builtin and then its argument prototype would still apply. */
9035 return _oss_ioctl ();
9040 if ac_fn_c_try_link
"$LINENO"; then :
9041 ac_cv_lib_ossaudio__oss_ioctl
=yes
9043 ac_cv_lib_ossaudio__oss_ioctl
=no
9045 rm -f core conftest.err conftest.
$ac_objext \
9046 conftest
$ac_exeext conftest.
$ac_ext
9047 LIBS
=$ac_check_lib_save_LIBS
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9050 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9051 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
9060 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
9064 if test "$PKG_CONFIG" = "no" ; then
9067 PKG_CONFIG_MIN_VERSION
=0.9.0
9068 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9070 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9072 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9073 ALSA_CFLAGS
=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9074 ALSA_LIBS
=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9081 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9082 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9084 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9091 ## If we have a custom action on failure, don't print errors, but
9092 ## do set a variable so people can do so. Do it in a subshell
9093 ## to capture any diagnostics in invoking pkg-config.
9094 ALSA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9106 if test $succeeded = yes; then
9112 if test $HAVE_ALSA = yes; then
9113 SAVE_CFLAGS
="$CFLAGS"
9115 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
9116 LIBS
="$ALSA_LIBS $LIBS"
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include <asoundlib.h>
9123 snd_lib_error_set_handler (0);
9128 if ac_fn_c_try_compile
"$LINENO"; then :
9129 emacs_alsa_normal
=yes
9131 emacs_alsa_normal
=no
9133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9134 if test "$emacs_alsa_normal" != yes; then
9135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #include <alsa/asoundlib.h>
9141 snd_lib_error_set_handler (0);
9146 if ac_fn_c_try_compile
"$LINENO"; then :
9147 emacs_alsa_subdir
=yes
9149 emacs_alsa_subdir
=no
9151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 if test "$emacs_alsa_subdir" != yes; then
9153 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9155 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9158 CFLAGS
="$SAVE_CFLAGS"
9160 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
9161 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9163 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9167 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9169 gnu-linux|freebsd|netbsd|mingw32
)
9171 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9183 for ac_header
in $ac_header_list
9185 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9188 eval as_val
=\$
$as_ac_Header
9189 if test "x$as_val" = x
""yes; then :
9190 cat >>confdefs.h
<<_ACEOF
9191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9219 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/personality.h>
9226 personality (PER_LINUX32)
9231 if ac_fn_c_try_compile
"$LINENO"; then :
9232 emacs_cv_personality_linux32
=yes
9234 emacs_cv_personality_linux32
=no
9236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9238 $as_echo "$emacs_cv_personality_linux32" >&6; }
9240 if test $emacs_cv_personality_linux32 = yes; then
9242 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9246 for ac_header
in term.h
9248 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9249 if test "x$ac_cv_header_term_h" = x
""yes; then :
9250 cat >>confdefs.h
<<_ACEOF
9251 #define HAVE_TERM_H 1
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9259 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9260 if test "${ac_cv_header_time+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <sys/types.h>
9266 #include <sys/time.h>
9272 if ((struct tm *) 0)
9278 if ac_fn_c_try_compile
"$LINENO"; then :
9279 ac_cv_header_time
=yes
9281 ac_cv_header_time
=no
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9286 $as_echo "$ac_cv_header_time" >&6; }
9287 if test $ac_cv_header_time = yes; then
9289 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9293 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9296 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9302 cat >>confdefs.h
<<_ACEOF
9303 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9306 if test $ac_cv_have_decl_sys_siglist != yes; then
9307 # For Tru64, at least:
9308 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9311 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9317 cat >>confdefs.h
<<_ACEOF
9318 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9321 if test $ac_cv_have_decl___sys_siglist = yes; then
9323 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9328 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9329 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
9332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 #include <sys/types.h>
9335 #include <sys/wait.h>
9337 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9340 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9348 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9353 if ac_fn_c_try_compile
"$LINENO"; then :
9354 ac_cv_header_sys_wait_h
=yes
9356 ac_cv_header_sys_wait_h
=no
9358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9361 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9362 if test $ac_cv_header_sys_wait_h = yes; then
9364 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9370 $as_echo_n "checking for speed_t... " >&6; }
9371 if test "${emacs_cv_speed_t+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <termios.h>
9385 if ac_fn_c_try_compile
"$LINENO"; then :
9386 emacs_cv_speed_t
=yes
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9393 $as_echo "$emacs_cv_speed_t" >&6; }
9394 if test $emacs_cv_speed_t = yes; then
9396 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9403 for ac_header
in net
/if.h
9405 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9406 #if HAVE_SYS_SOCKET_H
9407 #include <sys/socket.h>
9410 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9411 cat >>confdefs.h
<<_ACEOF
9412 #define HAVE_NET_IF_H 1
9419 for ac_header
in ifaddrs.h
9421 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9422 #if HAVE_SYS_SOCKET_H
9423 #include <sys/socket.h>
9426 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9427 cat >>confdefs.h
<<_ACEOF
9428 #define HAVE_IFADDRS_H 1
9435 for ac_header
in net
/if_dl.h
9437 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9438 #if HAVE_SYS_SOCKET_H
9439 #include <sys/socket.h>
9442 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9443 cat >>confdefs.h
<<_ACEOF
9444 #define HAVE_NET_IF_DL_H 1
9452 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9453 #if HAVE_SYS_SOCKET_H
9454 #include <sys/socket.h>
9460 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9462 cat >>confdefs.h
<<_ACEOF
9463 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9468 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9469 #if HAVE_SYS_SOCKET_H
9470 #include <sys/socket.h>
9476 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9478 cat >>confdefs.h
<<_ACEOF
9479 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9484 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9485 #if HAVE_SYS_SOCKET_H
9486 #include <sys/socket.h>
9492 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9494 cat >>confdefs.h
<<_ACEOF
9495 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9500 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9501 #if HAVE_SYS_SOCKET_H
9502 #include <sys/socket.h>
9508 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9510 cat >>confdefs.h
<<_ACEOF
9511 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9516 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9517 #if HAVE_SYS_SOCKET_H
9518 #include <sys/socket.h>
9524 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9526 cat >>confdefs.h
<<_ACEOF
9527 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9532 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9533 #if HAVE_SYS_SOCKET_H
9534 #include <sys/socket.h>
9540 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9542 cat >>confdefs.h
<<_ACEOF
9543 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9555 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9557 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9559 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9560 if test "x$testval" != x
; then
9563 ac_enable_autodepend
=no
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9566 $as_echo "$HAVE_GNU_MAKE" >&6; }
9567 if test $HAVE_GNU_MAKE = yes; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9569 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9570 SAVE_CFLAGS
="$CFLAGS"
9571 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9583 if ac_fn_c_try_compile
"$LINENO"; then :
9586 ac_enable_autodepend
=no
9588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9589 CFLAGS
="$SAVE_CFLAGS"
9590 test -f deps.d || ac_enable_autodepend
=no
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9593 $as_echo "$ac_enable_autodepend" >&6; }
9595 if test $ac_enable_autodepend = yes; then
9596 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9597 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9598 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9599 deps_frag
=autodeps.mk
9602 deps_frag
=$srcdir/src
/$deps_frag
9608 lisp_frag
=$srcdir/src
/lisp.mk
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9613 $as_echo_n "checking for long file names... " >&6; }
9614 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9617 ac_cv_sys_long_file_names
=yes
9618 # Test for long file names in all the places we know might matter:
9619 # . the current directory, where building will happen
9620 # $prefix/lib where we will be installing things
9621 # $exec_prefix/lib likewise
9622 # $TMPDIR if set, where it might want to write temporary files
9623 # /tmp where it might want to write temporary files
9626 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9627 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9628 # in the usual case where exec_prefix is '${prefix}'.
9630 . |
/* | ?
:[\\/]*) ;; #(
9633 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9634 ac_xdir
=$ac_dir/cf$$
9635 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9636 ac_tf1
=$ac_xdir/conftest9012345
9637 ac_tf2
=$ac_xdir/conftest9012346
9638 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9639 ac_cv_sys_long_file_names
=no
9640 rm -f -r "$ac_xdir" 2>/dev
/null
9641 test $ac_cv_sys_long_file_names = no
&& break
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9645 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9646 if test $ac_cv_sys_long_file_names = yes; then
9648 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9653 #### Choose a window system.
9655 ## We leave window_system equal to none if
9656 ## we end up building without one. Any new window system should
9657 ## set window_system to an appropriate value and add objects to
9658 ## window-system-specific substs.
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9662 $as_echo_n "checking for X... " >&6; }
9665 # Check whether --with-x was given.
9666 if test "${with_x+set}" = set; then :
9670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9671 if test "x$with_x" = xno
; then
9672 # The user explicitly disabled X.
9675 case $x_includes,$x_libraries in #(
9676 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9677 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9680 # One or both of the vars are not set, and there is no cached value.
9681 ac_x_includes
=no ac_x_libraries
=no
9682 rm -f -r conftest.dir
9683 if mkdir conftest.dir
; then
9685 cat >Imakefile
<<'_ACEOF'
9687 @echo incroot='${INCROOT}'
9689 @echo usrlibdir='${USRLIBDIR}'
9691 @echo libdir='${LIBDIR}'
9693 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9695 for ac_var
in incroot usrlibdir libdir
; do
9696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9699 for ac_extension
in a so sl dylib la dll
; do
9700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9702 ac_im_usrlibdir
=$ac_im_libdir; break
9705 # Screen out bogus values from the imake configuration. They are
9706 # bogus both because they are the default anyway, and because
9707 # using them would break gcc on systems where it needs fixed includes.
9708 case $ac_im_incroot in
9709 /usr
/include
) ac_x_includes
= ;;
9710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9712 case $ac_im_usrlibdir in
9713 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9718 rm -f -r conftest.dir
9721 # Standard set of common directories for X headers.
9722 # Check X11 before X11Rn because it is often a symlink to the current release.
9736 /usr/local/X11/include
9737 /usr/local/X11R7/include
9738 /usr/local/X11R6/include
9739 /usr/local/X11R5/include
9740 /usr/local/X11R4/include
9742 /usr/local/include/X11
9743 /usr/local/include/X11R7
9744 /usr/local/include/X11R6
9745 /usr/local/include/X11R5
9746 /usr/local/include/X11R4
9750 /usr/XFree86/include/X11
9754 /usr/unsupported/include
9756 /usr/local/x11r5/include
9757 /usr/lpp/Xamples/include
9759 /usr/openwin/include
9760 /usr/openwin/share/include'
9762 if test "$ac_x_includes" = no
; then
9763 # Guess where to find include files, by looking for Xlib.h.
9764 # First, try using that file with no special directory specified.
9765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <X11/Xlib.h>
9769 if ac_fn_c_try_cpp
"$LINENO"; then :
9770 # We can compile using X headers with no special include directory.
9773 for ac_dir
in $ac_x_header_dirs; do
9774 if test -r "$ac_dir/X11/Xlib.h"; then
9775 ac_x_includes
=$ac_dir
9780 rm -f conftest.err conftest.
$ac_ext
9781 fi # $ac_x_includes = no
9783 if test "$ac_x_libraries" = no
; then
9784 # Check for the libraries.
9785 # See if we find them without any special options.
9786 # Don't add to $LIBS permanently.
9789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9791 #include <X11/Xlib.h>
9800 if ac_fn_c_try_link
"$LINENO"; then :
9802 # We can link X programs with no special library path.
9806 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9808 # Don't even attempt the hair of trying to link an X program!
9809 for ac_extension
in a so sl dylib la dll
; do
9810 if test -r "$ac_dir/libX11.$ac_extension"; then
9811 ac_x_libraries
=$ac_dir
9817 rm -f core conftest.err conftest.
$ac_objext \
9818 conftest
$ac_exeext conftest.
$ac_ext
9819 fi # $ac_x_libraries = no
9821 case $ac_x_includes,$ac_x_libraries in #(
9823 # Didn't find X, or a directory has "'" in its name.
9824 ac_cv_have_x
="have_x=no";; #(
9826 # Record where we found X for the cache.
9827 ac_cv_have_x
="have_x=yes\
9828 ac_x_includes='$ac_x_includes'\
9829 ac_x_libraries='$ac_x_libraries'"
9835 eval "$ac_cv_have_x"
9838 if test "$have_x" != yes; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9840 $as_echo "$have_x" >&6; }
9843 # If each of the values was on the command line, it overrides each guess.
9844 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9845 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9846 # Update the cache value to reflect the command line values.
9847 ac_cv_have_x
="have_x=yes\
9848 ac_x_includes='$x_includes'\
9849 ac_x_libraries='$x_libraries'"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9851 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9854 if test "$no_x" != yes; then
9858 LD_SWITCH_X_SITE_RPATH
=
9859 if test "${x_libraries}" != NONE
; then
9860 if test -n "${x_libraries}"; then
9861 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9862 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9864 x_default_search_path
=""
9865 x_search_path
=${x_libraries}
9866 if test -z "${x_search_path}"; then
9867 x_search_path
=/usr
/lib
9869 for x_library
in `echo ${x_search_path}: | \
9870 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9872 ${x_library}/X11/%L/%T/%N%C%S:\
9873 ${x_library}/X11/%l/%T/%N%C%S:\
9874 ${x_library}/X11/%T/%N%C%S:\
9875 ${x_library}/X11/%L/%T/%N%S:\
9876 ${x_library}/X11/%l/%T/%N%S:\
9877 ${x_library}/X11/%T/%N%S"
9878 if test x
"${x_default_search_path}" = x
; then
9879 x_default_search_path
=${x_search_path}
9881 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9887 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9888 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9891 if test x
"${x_includes}" = x
; then
9892 bitmapdir
=/usr
/include
/X11
/bitmaps
9894 # accumulate include directories that have X11 bitmap subdirectories
9896 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9897 if test -d "${bmd}/X11/bitmaps"; then
9898 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9900 if test -d "${bmd}/bitmaps"; then
9901 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9904 if test ${bmd_acc} != "dummyval"; then
9905 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9912 tmp_CPPFLAGS
="$CPPFLAGS"
9913 tmp_CFLAGS
="$CFLAGS"
9914 CPPFLAGS
="$CPPFLAGS -x objective-c"
9915 CFLAGS
="$CFLAGS -x objective-c"
9918 if test "${with_ns}" != no
; then
9919 if test "${opsys}" = darwin
; then
9921 ns_appdir
=`pwd`/nextstep
/Emacs.app
9922 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9923 ns_appresdir
=${ns_appdir}/Contents
/Resources
9924 ns_appsrc
=Cocoa
/Emacs.base
9925 elif test -f $GNUSTEP_CONFIG_FILE; then
9927 ns_appdir
=`pwd`/nextstep
/Emacs.app
9928 ns_appbindir
=${ns_appdir}
9929 ns_appresdir
=${ns_appdir}/Resources
9930 ns_appsrc
=GNUstep
/Emacs.base
9931 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9932 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9933 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9934 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9935 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9936 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9937 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9938 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9939 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9940 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9941 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9942 LIBS_GNUSTEP
="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9944 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9945 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 #include <GNUstepBase/GSConfig.h>
9954 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9963 if ac_fn_c_try_compile
"$LINENO"; then :
9964 emacs_cv_objc_exceptions
=yes
9966 emacs_cv_objc_exceptions
=no
9968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9971 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9972 if test $emacs_cv_objc_exceptions = yes; then
9974 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9976 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9980 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9982 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9983 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9986 as_fn_error
"\`--with-ns' was specified, but the include
9987 files are missing or cannot be compiled." "$LINENO" 5
9992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 #include <AppKit/AppKit.h>
9999 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10000 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10003 #error "OSX 10.4 or newer required"
10011 if ac_fn_c_try_compile
"$LINENO"; then :
10012 ns_osx_have_104
=yes
10016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10019 #include <Foundation/NSObjCRuntime.h>
10028 if ac_fn_c_try_compile
"$LINENO"; then :
10029 ns_have_nsinteger
=yes
10031 ns_have_nsinteger
=no
10033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10034 if test $ns_osx_have_104 = no
; then
10035 as_fn_error
"\`OSX 10.4 or newer is required'" "$LINENO" 5;
10037 if test $ns_have_nsinteger = yes; then
10039 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10046 INSTALL_ARCH_INDEP_EXTRA
=install-etc
10047 ns_self_contained
=no
10050 if test "${HAVE_NS}" = yes; then
10051 if test "$with_toolkit_scroll_bars" = "no"; then
10052 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10055 window_system
=nextstep
10056 # set up packaging dirs
10057 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10058 ns_self_contained
=yes
10059 prefix
=${ns_appresdir}
10060 exec_prefix
=${ns_appbindir}
10061 libexecdir
="\${ns_appbindir}/libexec"
10062 archlibdir
="\${ns_appbindir}/libexec"
10063 docdir
="\${ns_appresdir}/etc"
10064 etcdir
="\${ns_appresdir}/etc"
10065 infodir
="\${ns_appresdir}/info"
10066 mandir
="\${ns_appresdir}/man"
10067 lispdir
="\${ns_appresdir}/lisp"
10068 leimdir
="\${ns_appresdir}/leim"
10069 INSTALL_ARCH_INDEP_EXTRA
=
10071 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10073 CFLAGS
="$tmp_CFLAGS"
10074 CPPFLAGS
="$tmp_CPPFLAGS"
10088 if test "${with_w32}" != no
; then
10091 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10092 if test "x$ac_cv_header_windows_h" = x
""yes; then :
10095 as_fn_error
"\`--with-w32' was specified, but windows.h
10096 cannot be found." "$LINENO" 5
10102 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10105 as_fn_error
"Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10110 if test "${opsys}" = "mingw32"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10112 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 #include <windows.h>
10121 void test(PIMAGE_NT_HEADERS pHeader)
10122 {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}
10127 if ac_fn_c_try_compile
"$LINENO"; then :
10128 emacs_cv_w32api
=yes
10133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10135 $as_echo "$emacs_cv_w32api" >&6; }
10136 if test "${emacs_cv_w32api}" = "no"; then
10137 as_fn_error
"the Windows API headers are too old to support this build." "$LINENO" 5
10148 if test "${HAVE_W32}" = "yes"; then
10150 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10152 if test -n "$ac_tool_prefix"; then
10153 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10154 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10160 if test -n "$WINDRES"; then
10161 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10164 for as_dir
in $PATH
10167 test -z "$as_dir" && as_dir
=.
10168 for ac_exec_ext
in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 WINDRES
=$ac_cv_prog_WINDRES
10181 if test -n "$WINDRES"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10183 $as_echo "$WINDRES" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10191 if test -z "$ac_cv_prog_WINDRES"; then
10192 ac_ct_WINDRES
=$WINDRES
10193 # Extract the first word of "windres", so it can be a program name with args.
10194 set dummy windres
; ac_word
=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 if test -n "$ac_ct_WINDRES"; then
10201 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10204 for as_dir
in $PATH
10207 test -z "$as_dir" && as_dir
=.
10208 for ac_exec_ext
in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_ac_ct_WINDRES
="windres"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10221 if test -n "$ac_ct_WINDRES"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10223 $as_echo "$ac_ct_WINDRES" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10229 if test "x$ac_ct_WINDRES" = x
; then
10230 WINDRES
="as_fn_error "No resource compiler found.
" "$LINENO" 5"
10232 case $cross_compiling:$ac_tool_warned in
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10236 ac_tool_warned
=yes ;;
10238 WINDRES
=$ac_ct_WINDRES
10241 WINDRES
="$ac_cv_prog_WINDRES"
10244 W32_OBJ
="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10245 W32_OBJ
="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10246 EMACSRES
="emacs.res"
10247 case "$canonical" in
10248 x86_64-
*-*) EMACS_MANIFEST
="emacs-x64.manifest" ;;
10249 *) EMACS_MANIFEST
="emacs-x86.manifest" ;;
10251 if test "${opsys}" = "cygwin"; then
10252 W32_LIBS
="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10253 W32_LIBS
="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10254 # Tell the linker that emacs.res is an object (which we compile from
10255 # the rc file), not a linker script.
10256 W32_RES_LINK
="-Wl,emacs.res"
10258 W32_OBJ
="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10259 W32_LIBS
="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10260 W32_LIBS
="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10261 W32_RES_LINK
="\$(EMACSRES)"
10262 CLIENTRES
="emacsclient.res"
10263 CLIENTW
="emacsclientw\$(EXEEXT)"
10264 FIRSTFILE_OBJ
=firstfile.o
10267 LIBS_ECLIENT
="-lcomctl32"
10268 LIB_WSOCK32
="-lwsock32"
10269 NTLIB
="ntlib.$ac_objext"
10270 XARGS_LIMIT
="-s 10000"
10288 if test "${HAVE_W32}" = "yes"; then
10293 ## $window_system is now set to the window system we will
10301 case "${window_system}" in
10305 term_header
=xterm.h
10306 case "${with_x_toolkit}" in
10307 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10308 motif
) USE_X_TOOLKIT
=MOTIF
;;
10310 term_header
=gtkutil.h
10311 USE_X_TOOLKIT
=none
;;
10312 gtk2
) with_gtk2
=yes
10313 term_header
=gtkutil.h
10314 USE_X_TOOLKIT
=none
;;
10315 gtk3
) with_gtk3
=yes
10316 term_header
=gtkutil.h
10317 USE_X_TOOLKIT
=none
;;
10318 no
) USE_X_TOOLKIT
=none
;;
10319 * ) USE_X_TOOLKIT
=maybe
;;
10323 term_header
=nsterm.h
10326 term_header
=w32term.h
10330 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10331 # Extract the first word of "X", so it can be a program name with args.
10332 set dummy X
; ac_word
=$2
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334 $as_echo_n "checking for $ac_word... " >&6; }
10335 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10338 if test -n "$HAVE_XSERVER"; then
10339 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10342 for as_dir
in $PATH
10345 test -z "$as_dir" && as_dir
=.
10346 for ac_exec_ext
in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_prog_HAVE_XSERVER
="true"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10356 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10359 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10360 if test -n "$HAVE_XSERVER"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10362 $as_echo "$HAVE_XSERVER" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10369 if test "$HAVE_XSERVER" = true ||
10370 test -n "$DISPLAY" ||
10371 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10372 as_fn_error
"You seem to be running X, but no X development libraries
10373 were found. You should install the relevant development files for X
10374 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10375 sure you have development files for image handling, i.e.
10376 tiff, gif, jpeg, png and xpm.
10377 If you are sure you want Emacs compiled without X window support, pass
10379 to configure." "$LINENO" 5
10383 ### If we're using X11, we should use the X menu package.
10385 case ${HAVE_X11} in
10386 yes ) HAVE_MENUS
=yes ;;
10389 # Does the opsystem file prohibit the use of the GNU malloc?
10390 # Assume not, until told otherwise.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10394 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10395 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #include <malloc.h>
10401 static void hook (void) {}
10405 malloc_set_state (malloc_get_state ());
10406 __after_morecore_hook = hook;
10407 __malloc_initialize_hook = hook;
10412 if ac_fn_c_try_link
"$LINENO"; then :
10413 emacs_cv_var_doug_lea_malloc
=yes
10415 emacs_cv_var_doug_lea_malloc
=no
10417 rm -f core conftest.err conftest.
$ac_objext \
10418 conftest
$ac_exeext conftest.
$ac_ext
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10421 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10422 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10427 ## darwin ld insists on the use of malloc routines in the System framework.
10428 darwin|sol2-10
) system_malloc
=yes ;;
10431 if test "${system_malloc}" = "yes"; then
10433 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10436 GNU_MALLOC_reason
="
10437 (The GNU allocators don't work with this system configuration.)"
10441 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10442 VMLIMIT_OBJ
=vm-limit.o
10444 for ac_header
in sys
/vlimit.h
10446 ac_fn_c_check_header_mongrel
"$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10447 if test "x$ac_cv_header_sys_vlimit_h" = x
""yes; then :
10448 cat >>confdefs.h
<<_ACEOF
10449 #define HAVE_SYS_VLIMIT_H 1
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10457 $as_echo_n "checking for data_start... " >&6; }
10458 if test "${emacs_cv_data_start+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463 extern char data_start[]; char ch;
10467 return data_start < &ch;
10472 if ac_fn_c_try_link
"$LINENO"; then :
10473 emacs_cv_data_start
=yes
10475 emacs_cv_data_start
=no
10477 rm -f core conftest.err conftest.
$ac_objext \
10478 conftest
$ac_exeext conftest.
$ac_ext
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10481 $as_echo "$emacs_cv_data_start" >&6; }
10482 if test $emacs_cv_data_start = yes; then
10484 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10491 if test "$doug_lea_malloc" = "yes" ; then
10492 if test "$GNU_MALLOC" = yes ; then
10493 GNU_MALLOC_reason
="
10494 (Using Doug Lea's new malloc from the GNU C Library.)"
10497 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10500 ## Use mmap directly for allocating larger buffers.
10501 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10502 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10503 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10505 gnu
*) REL_ALLOC
=no
;;
10509 if test x
"${REL_ALLOC}" = x
; then
10510 REL_ALLOC
=${GNU_MALLOC}
10513 use_mmap_for_buffers
=no
10515 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10525 for ac_func
in getpagesize
10527 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10528 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10529 cat >>confdefs.h
<<_ACEOF
10530 #define HAVE_GETPAGESIZE 1
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10537 $as_echo_n "checking for working mmap... " >&6; }
10538 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10541 if test "$cross_compiling" = yes; then :
10542 ac_cv_func_mmap_fixed_mapped
=no
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 $ac_includes_default
10547 /* malloc might have been renamed as rpl_malloc. */
10550 /* Thanks to Mike Haertel and Jim Avera for this test.
10551 Here is a matrix of mmap possibilities:
10552 mmap private not fixed
10553 mmap private fixed at somewhere currently unmapped
10554 mmap private fixed at somewhere already mapped
10555 mmap shared not fixed
10556 mmap shared fixed at somewhere currently unmapped
10557 mmap shared fixed at somewhere already mapped
10558 For private mappings, we should verify that changes cannot be read()
10559 back from the file, nor mmap's back from the file at a different
10560 address. (There have been systems where private was not correctly
10561 implemented like the infamous i386 svr4.0, and systems where the
10562 VM page cache was not coherent with the file system buffer cache
10563 like early versions of FreeBSD and possibly contemporary NetBSD.)
10564 For shared mappings, we should conversely verify that changes get
10565 propagated back to all the places they're supposed to be.
10567 Grep wants private fixed already mapped.
10568 The main things grep needs to know about mmap are:
10569 * does it exist and is it safe to write into the mmap'd area
10570 * how to use it (BSD variants) */
10573 #include <sys/mman.h>
10575 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10579 /* This mess was copied from the GNU getpagesize.h. */
10580 #ifndef HAVE_GETPAGESIZE
10581 # ifdef _SC_PAGESIZE
10582 # define getpagesize() sysconf(_SC_PAGESIZE)
10583 # else /* no _SC_PAGESIZE */
10584 # ifdef HAVE_SYS_PARAM_H
10585 # include <sys/param.h>
10586 # ifdef EXEC_PAGESIZE
10587 # define getpagesize() EXEC_PAGESIZE
10588 # else /* no EXEC_PAGESIZE */
10590 # define getpagesize() NBPG * CLSIZE
10593 # endif /* no CLSIZE */
10594 # else /* no NBPG */
10596 # define getpagesize() NBPC
10597 # else /* no NBPC */
10599 # define getpagesize() PAGESIZE
10600 # endif /* PAGESIZE */
10601 # endif /* no NBPC */
10602 # endif /* no NBPG */
10603 # endif /* no EXEC_PAGESIZE */
10604 # else /* no HAVE_SYS_PARAM_H */
10605 # define getpagesize() 8192 /* punt totally */
10606 # endif /* no HAVE_SYS_PARAM_H */
10607 # endif /* no _SC_PAGESIZE */
10609 #endif /* no HAVE_GETPAGESIZE */
10614 char *data, *data2, *data3;
10615 const char *cdata2;
10619 pagesize = getpagesize ();
10621 /* First, make a file with some known garbage in it. */
10622 data = (char *) malloc (pagesize);
10625 for (i = 0; i < pagesize; ++i)
10626 *(data + i) = rand ();
10628 fd = creat ("conftest.mmap", 0600);
10631 if (write (fd, data, pagesize) != pagesize)
10635 /* Next, check that the tail of a page is zero-filled. File must have
10636 non-zero length, otherwise we risk SIGBUS for entire page. */
10637 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10641 if (write (fd2, cdata2, 1) != 1)
10643 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10644 if (data2 == MAP_FAILED)
10646 for (i = 0; i < pagesize; ++i)
10650 if (munmap (data2, pagesize))
10653 /* Next, try to mmap the file at a fixed address which already has
10654 something else allocated at it. If we can, also make sure that
10655 we see the same garbage. */
10656 fd = open ("conftest.mmap", O_RDWR);
10659 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10660 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10662 for (i = 0; i < pagesize; ++i)
10663 if (*(data + i) != *(data2 + i))
10666 /* Finally, make sure that changes to the mapped area do not
10667 percolate back to the file as seen by read(). (This is a bug on
10668 some variants of i386 svr4.0.) */
10669 for (i = 0; i < pagesize; ++i)
10670 *(data2 + i) = *(data2 + i) + 1;
10671 data3 = (char *) malloc (pagesize);
10674 if (read (fd, data3, pagesize) != pagesize)
10676 for (i = 0; i < pagesize; ++i)
10677 if (*(data + i) != *(data3 + i))
10683 if ac_fn_c_try_run
"$LINENO"; then :
10684 ac_cv_func_mmap_fixed_mapped
=yes
10686 ac_cv_func_mmap_fixed_mapped
=no
10688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10694 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10697 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10700 rm -f conftest.mmap conftest.txt
10702 if test $use_mmap_for_buffers = yes; then
10704 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10709 LIBS
="$LIBS_SYSTEM $LIBS"
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10712 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10713 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10716 ac_check_lib_save_LIBS
=$LIBS
10717 LIBS
="-ldnet $LIBS"
10718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10731 return dnet_ntoa ();
10736 if ac_fn_c_try_link
"$LINENO"; then :
10737 ac_cv_lib_dnet_dnet_ntoa
=yes
10739 ac_cv_lib_dnet_dnet_ntoa
=no
10741 rm -f core conftest.err conftest.
$ac_objext \
10742 conftest
$ac_exeext conftest.
$ac_ext
10743 LIBS
=$ac_check_lib_save_LIBS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10746 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10747 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10748 cat >>confdefs.h
<<_ACEOF
10749 #define HAVE_LIBDNET 1
10752 LIBS
="-ldnet $LIBS"
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10758 $as_echo_n "checking for main in -lXbsd... " >&6; }
10759 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10762 ac_check_lib_save_LIBS
=$LIBS
10763 LIBS
="-lXbsd $LIBS"
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10776 if ac_fn_c_try_link
"$LINENO"; then :
10777 ac_cv_lib_Xbsd_main
=yes
10779 ac_cv_lib_Xbsd_main
=no
10781 rm -f core conftest.err conftest.
$ac_objext \
10782 conftest
$ac_exeext conftest.
$ac_ext
10783 LIBS
=$ac_check_lib_save_LIBS
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10786 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10787 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10788 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10796 if test "$ac_cv_header_pthread_h"; then
10797 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10798 emacs_pthread_function
=pthread_atfork
10800 emacs_pthread_function
=pthread_self
10802 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10804 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10805 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10806 $as_echo_n "(cached) " >&6
10808 ac_check_lib_save_LIBS
=$LIBS
10809 LIBS
="-lpthread $LIBS"
10810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 /* Override any GCC internal prototype to avoid an error.
10814 Use char because int might match the return type of a GCC
10815 builtin and then its argument prototype would still apply. */
10819 char $emacs_pthread_function ();
10823 return $emacs_pthread_function ();
10828 if ac_fn_c_try_link
"$LINENO"; then :
10829 eval "$as_ac_Lib=yes"
10831 eval "$as_ac_Lib=no"
10833 rm -f core conftest.err conftest.
$ac_objext \
10834 conftest
$ac_exeext conftest.
$ac_ext
10835 LIBS
=$ac_check_lib_save_LIBS
10837 eval ac_res
=\$
$as_ac_Lib
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10839 $as_echo "$ac_res" >&6; }
10840 eval as_val
=\$
$as_ac_Lib
10841 if test "x$as_val" = x
""yes; then :
10846 if test "$HAVE_PTHREAD" = yes; then
10847 case "${canonical}" in
10849 *) LIB_PTHREAD
="-lpthread"
10850 LIBS
="$LIB_PTHREAD $LIBS" ;;
10853 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10859 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10860 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10863 ac_check_lib_save_LIBS
=$LIBS
10864 LIBS
="-lpthreads $LIBS"
10865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10878 return cma_open ();
10883 if ac_fn_c_try_link
"$LINENO"; then :
10884 ac_cv_lib_pthreads_cma_open
=yes
10886 ac_cv_lib_pthreads_cma_open
=no
10888 rm -f core conftest.err conftest.
$ac_objext \
10889 conftest
$ac_exeext conftest.
$ac_ext
10890 LIBS
=$ac_check_lib_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10893 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10894 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10895 cat >>confdefs.h
<<_ACEOF
10896 #define HAVE_LIBPTHREADS 1
10899 LIBS
="-lpthreads $LIBS"
10904 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10905 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10906 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10907 ## added to LIBS in configure would never contain the pthreads part,
10908 ## but the value used in Makefiles might. FIXME?
10910 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10911 ## be harmless on older versions of X where it happens to exist.
10912 test "$opsys" = "aix4-2" && \
10913 test $ac_cv_lib_pthreads_cma_open = yes && \
10914 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10920 $as_echo_n "checking for -bbigtoc option... " >&6; }
10921 if test "${gdb_cv_bigtoc+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10926 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10927 *) gdb_cv_bigtoc
=-bbigtoc ;;
10930 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10942 if ac_fn_c_try_link
"$LINENO"; then :
10947 rm -f core conftest.err conftest.
$ac_objext \
10948 conftest
$ac_exeext conftest.
$ac_ext
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10952 $as_echo "$gdb_cv_bigtoc" >&6; }
10956 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10957 # used for the tests that follow. We set them back to REAL_CFLAGS and
10958 # REAL_CPPFLAGS later on.
10960 REAL_CFLAGS
="$CFLAGS"
10961 REAL_CPPFLAGS
="$CPPFLAGS"
10963 if test "${HAVE_X11}" = "yes"; then
10964 DEFS
="$C_SWITCH_X_SITE $DEFS"
10965 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10967 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10968 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10970 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10971 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10972 # but it's more convenient here to set LD_RUN_PATH since this
10973 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10974 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10975 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10979 if test "${opsys}" = "gnu-linux"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10981 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10988 XOpenDisplay ("foo");
10993 if ac_fn_c_try_link
"$LINENO"; then :
10994 xgnu_linux_first_failure
=no
10996 xgnu_linux_first_failure
=yes
10998 rm -f core conftest.err conftest.
$ac_objext \
10999 conftest
$ac_exeext conftest.
$ac_ext
11000 if test "${xgnu_linux_first_failure}" = "yes"; then
11001 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11002 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11003 OLD_CPPFLAGS
="$CPPFLAGS"
11005 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11006 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11007 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11008 LIBS
="$LIBS -b i486-linuxaout"
11009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11015 XOpenDisplay ("foo");
11020 if ac_fn_c_try_link
"$LINENO"; then :
11021 xgnu_linux_second_failure
=no
11023 xgnu_linux_second_failure
=yes
11025 rm -f core conftest.err conftest.
$ac_objext \
11026 conftest
$ac_exeext conftest.
$ac_ext
11027 if test "${xgnu_linux_second_failure}" = "yes"; then
11028 # If we get the same failure with -b, there is no use adding -b.
11029 # So take it out. This plays safe.
11030 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11031 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11032 CPPFLAGS
="$OLD_CPPFLAGS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038 $as_echo "yes" >&6; }
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11046 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11047 # header files included from there.
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11049 $as_echo_n "checking for Xkb... " >&6; }
11050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052 #include <X11/Xlib.h>
11053 #include <X11/XKBlib.h>
11057 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11062 if ac_fn_c_try_link
"$LINENO"; then :
11067 rm -f core conftest.err conftest.
$ac_objext \
11068 conftest
$ac_exeext conftest.
$ac_ext
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11070 $as_echo "$emacs_xkb" >&6; }
11071 if test $emacs_xkb = yes; then
11073 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11077 for ac_func
in XrmSetDatabase XScreenResourceString \
11078 XScreenNumberOfScreen
11080 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11082 eval as_val
=\$
$as_ac_var
11083 if test "x$as_val" = x
""yes; then :
11084 cat >>confdefs.h
<<_ACEOF
11085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 if test "${window_system}" = "x11"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11095 $as_echo_n "checking X11 version 6... " >&6; }
11096 if test "${emacs_cv_x11_version_6+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101 #include <X11/Xlib.h>
11105 #if XlibSpecificationRelease < 6
11113 if ac_fn_c_try_link
"$LINENO"; then :
11114 emacs_cv_x11_version_6
=yes
11116 emacs_cv_x11_version_6
=no
11118 rm -f core conftest.err conftest.
$ac_objext \
11119 conftest
$ac_exeext conftest.
$ac_ext
11122 if test $emacs_cv_x11_version_6 = yes; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11124 $as_echo "6 or newer" >&6; }
11126 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11129 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11131 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11136 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11142 $as_echo "before 6" >&6; }
11147 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11149 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11150 if test "${with_rsvg}" != "no"; then
11151 RSVG_REQUIRED
=2.11.0
11152 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11157 if test "$PKG_CONFIG" = "no" ; then
11160 PKG_CONFIG_MIN_VERSION
=0.9.0
11161 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11163 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11165 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11166 RSVG_CFLAGS
=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11167 RSVG_LIBS
=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11174 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11175 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11177 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11184 ## If we have a custom action on failure, don't print errors, but
11185 ## do set a variable so people can do so. Do it in a subshell
11186 ## to capture any diagnostics in invoking pkg-config.
11187 RSVG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11199 if test $succeeded = yes; then
11208 if test $HAVE_RSVG = yes; then
11210 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11212 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11213 LIBS
="$RSVG_LIBS $LIBS"
11218 HAVE_IMAGEMAGICK
=no
11219 if test "${HAVE_X11}" = "yes"; then
11220 if test "${with_imagemagick}" != "no"; then
11221 ## 6.2.8 is the earliest version known to work, but earlier versions
11222 ## might work - let us know if you find one.
11223 ## 6.0.7 does not work. See bug#7955.
11224 ## 6.8.2 makes Emacs crash; see Bug#13867.
11225 IMAGEMAGICK_MODULE
="Wand >= 6.2.8 Wand != 6.8.2"
11229 if test "$PKG_CONFIG" = "no" ; then
11232 PKG_CONFIG_MIN_VERSION
=0.9.0
11233 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11235 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11237 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11238 IMAGEMAGICK_CFLAGS
=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11239 IMAGEMAGICK_LIBS
=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11246 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11247 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11249 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 IMAGEMAGICK_CFLAGS
=""
11255 IMAGEMAGICK_LIBS
=""
11256 ## If we have a custom action on failure, don't print errors, but
11257 ## do set a variable so people can do so. Do it in a subshell
11258 ## to capture any diagnostics in invoking pkg-config.
11259 IMAGEMAGICK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11271 if test $succeeded = yes; then
11272 HAVE_IMAGEMAGICK
=yes
11280 if test $HAVE_IMAGEMAGICK = yes; then
11282 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11284 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11285 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11286 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
11288 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11290 eval as_val
=\$
$as_ac_var
11291 if test "x$as_val" = x
""yes; then :
11292 cat >>confdefs.h
<<_ACEOF
11293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 gtk_term_header
=$term_header
11309 if test "${opsys}" != "mingw32"; then
11310 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11313 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11318 if test "$PKG_CONFIG" = "no" ; then
11321 PKG_CONFIG_MIN_VERSION
=0.9.0
11322 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11324 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11326 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11327 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11328 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11335 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11336 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11338 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11345 ## If we have a custom action on failure, don't print errors, but
11346 ## do set a variable so people can do so. Do it in a subshell
11347 ## to capture any diagnostics in invoking pkg-config.
11348 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11360 if test $succeeded = yes; then
11366 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11367 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11369 if test "$pkg_check_gtk" = "yes"; then
11371 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11373 GTK_OBJ
=emacsgtkfixed.o
11374 gtk_term_header
=gtkutil.h
11375 USE_GTK_TOOLKIT
="GTK3"
11376 if test "x$ac_enable_gtk_deprecation_warnings" = x
; then
11377 GTK_CFLAGS
="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11378 GTK_CFLAGS
="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11382 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
11386 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
11389 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11394 if test "$PKG_CONFIG" = "no" ; then
11397 PKG_CONFIG_MIN_VERSION
=0.9.0
11398 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11400 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11402 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11403 GTK_CFLAGS
=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11404 GTK_LIBS
=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11411 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11412 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11414 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11421 ## If we have a custom action on failure, don't print errors, but
11422 ## do set a variable so people can do so. Do it in a subshell
11423 ## to capture any diagnostics in invoking pkg-config.
11424 GTK_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11431 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11432 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11436 if test $succeeded = yes; then
11442 if test "$pkg_check_gtk" = "no" &&
11443 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
11445 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11447 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
11451 if test x
"$pkg_check_gtk" = xyes
; then
11455 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11456 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11457 LIBS
="$GTK_LIBS $LIBS"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11459 $as_echo_n "checking whether GTK compiles... " >&6; }
11461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 /* Check the Gtk and Glib APIs. */
11464 #include <gtk/gtk.h>
11465 #include <glib-object.h>
11467 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11474 GtkSettings *gs = 0;
11475 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11476 strict C prohibits this. Use gtk_main_iteration to test that the
11477 libraries are there. */
11478 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11479 0, 0, 0, G_CALLBACK (callback), 0))
11480 gtk_main_iteration ();
11486 if ac_fn_c_try_link
"$LINENO"; then :
11489 rm -f core conftest.err conftest.
$ac_objext \
11490 conftest
$ac_exeext conftest.
$ac_ext
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11492 $as_echo "$GTK_COMPILES" >&6; }
11493 if test "${GTK_COMPILES}" != "yes"; then
11495 if test "$USE_X_TOOLKIT" != "maybe"; then
11496 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11501 $as_echo "#define USE_GTK 1" >>confdefs.h
11503 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11504 term_header
=$gtk_term_header
11506 if "$PKG_CONFIG" --atleast-version=2.10 gtk
+-2.0
; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11510 closing open displays. This is no problem if you just use
11511 one display, but if you use more than one and close one of them
11512 Emacs may crash." >&5
11513 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11514 closing open displays. This is no problem if you just use
11515 one display, but if you use more than one and close one of them
11516 Emacs may crash." >&2;}
11525 if test "${HAVE_GTK}" = "yes"; then
11527 if test "$with_toolkit_scroll_bars" != no
; then
11528 with_toolkit_scroll_bars
=yes
11531 HAVE_GTK_FILE_SELECTION
=no
11532 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11533 #include <gtk/gtk.h>
11535 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11536 HAVE_GTK_FILE_SELECTION
=yes
11538 HAVE_GTK_FILE_SELECTION
=no
11541 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11542 for ac_func
in gtk_file_selection_new
11544 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11545 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11546 cat >>confdefs.h
<<_ACEOF
11547 #define HAVE_GTK_FILE_SELECTION_NEW 1
11555 HAVE_GTK_HANDLE_BOX
=no
11556 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11557 #include <gtk/gtk.h>
11559 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x
""yes; then :
11560 HAVE_GTK_HANDLE_BOX
=yes
11562 HAVE_GTK_HANDLE_BOX
=no
11565 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11566 for ac_func
in gtk_handle_box_new
11568 ac_fn_c_check_func
"$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11569 if test "x$ac_cv_func_gtk_handle_box_new" = x
""yes; then :
11570 cat >>confdefs.h
<<_ACEOF
11571 #define HAVE_GTK_HANDLE_BOX_NEW 1
11579 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11580 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11581 #include <gtk/gtk.h>
11583 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x
""yes; then :
11584 HAVE_GTK_TEAROFF_MENU_ITEM
=yes
11586 HAVE_GTK_TEAROFF_MENU_ITEM
=no
11589 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11590 for ac_func
in gtk_tearoff_menu_item_new
11592 ac_fn_c_check_func
"$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11593 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x
""yes; then :
11594 cat >>confdefs.h
<<_ACEOF
11595 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11603 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11604 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11605 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11606 gtk_orientable_set_orientation \
11607 gtk_window_set_has_resize_grip
11609 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11611 eval as_val
=\$
$as_ac_var
11612 if test "x$as_val" = x
""yes; then :
11613 cat >>confdefs.h
<<_ACEOF
11614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 term_header
=gtkutil.h
11626 if test "${with_dbus}" = "yes"; then
11630 if test "$PKG_CONFIG" = "no" ; then
11633 PKG_CONFIG_MIN_VERSION
=0.9.0
11634 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11636 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11638 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11639 DBUS_CFLAGS
=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11640 DBUS_LIBS
=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11647 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11648 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11650 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11657 ## If we have a custom action on failure, don't print errors, but
11658 ## do set a variable so people can do so. Do it in a subshell
11659 ## to capture any diagnostics in invoking pkg-config.
11660 DBUS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11672 if test $succeeded = yes; then
11678 if test "$HAVE_DBUS" = yes; then
11679 LIBS
="$LIBS $DBUS_LIBS"
11681 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11683 for ac_func
in dbus_watch_get_unix_fd \
11684 dbus_type_is_valid \
11685 dbus_validate_bus_name \
11686 dbus_validate_path \
11687 dbus_validate_interface \
11688 dbus_validate_member
11690 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11691 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11692 eval as_val
=\$
$as_ac_var
11693 if test "x$as_val" = x
""yes; then :
11694 cat >>confdefs.h
<<_ACEOF
11695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 DBUS_OBJ
=dbusbind.o
11707 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11711 if test "$PKG_CONFIG" = "no" ; then
11714 PKG_CONFIG_MIN_VERSION
=0.9.0
11715 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11717 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11719 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11720 GSETTINGS_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11721 GSETTINGS_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11728 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11729 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11731 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735 $as_echo "no" >&6; }
11736 GSETTINGS_CFLAGS
=""
11738 ## If we have a custom action on failure, don't print errors, but
11739 ## do set a variable so people can do so. Do it in a subshell
11740 ## to capture any diagnostics in invoking pkg-config.
11741 GSETTINGS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11753 if test $succeeded = yes; then
11759 if test "$HAVE_GSETTINGS" = "yes"; then
11761 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11763 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
11764 SETTINGS_LIBS
="$GSETTINGS_LIBS"
11769 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11773 if test "$PKG_CONFIG" = "no" ; then
11776 PKG_CONFIG_MIN_VERSION
=0.9.0
11777 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11779 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11781 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11782 GCONF_CFLAGS
=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11783 GCONF_LIBS
=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11790 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11791 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11793 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11800 ## If we have a custom action on failure, don't print errors, but
11801 ## do set a variable so people can do so. Do it in a subshell
11802 ## to capture any diagnostics in invoking pkg-config.
11803 GCONF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11815 if test $succeeded = yes; then
11821 if test "$HAVE_GCONF" = yes; then
11823 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11825 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11826 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
11830 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
11834 if test "$PKG_CONFIG" = "no" ; then
11837 PKG_CONFIG_MIN_VERSION
=0.9.0
11838 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11840 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11842 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11843 GOBJECT_CFLAGS
=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11844 GOBJECT_LIBS
=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11851 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11852 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11854 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11861 ## If we have a custom action on failure, don't print errors, but
11862 ## do set a variable so people can do so. Do it in a subshell
11863 ## to capture any diagnostics in invoking pkg-config.
11864 GOBJECT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11876 if test $succeeded = yes; then
11882 if test "$HAVE_GOBJECT" = "yes"; then
11883 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11884 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11886 SAVE_CFLAGS
="$CFLAGS"
11888 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11889 LIBS
="$SETTINGS_LIBS $LIBS"
11890 for ac_func
in g_type_init
11892 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11893 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11894 cat >>confdefs.h
<<_ACEOF
11895 #define HAVE_G_TYPE_INIT 1
11901 CFLAGS
="$SAVE_CFLAGS"
11910 if test "${with_selinux}" = "yes"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11912 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11913 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11916 ac_check_lib_save_LIBS
=$LIBS
11917 LIBS
="-lselinux $LIBS"
11918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11927 char lgetfilecon ();
11931 return lgetfilecon ();
11936 if ac_fn_c_try_link
"$LINENO"; then :
11937 ac_cv_lib_selinux_lgetfilecon
=yes
11939 ac_cv_lib_selinux_lgetfilecon
=no
11941 rm -f core conftest.err conftest.
$ac_objext \
11942 conftest
$ac_exeext conftest.
$ac_ext
11943 LIBS
=$ac_check_lib_save_LIBS
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11946 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11947 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11948 HAVE_LIBSELINUX
=yes
11953 if test "$HAVE_LIBSELINUX" = yes; then
11955 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11957 LIBSELINUX_LIBS
=-lselinux
11963 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11964 if test "${with_gnutls}" = "yes" ; then
11968 if test "$PKG_CONFIG" = "no" ; then
11971 PKG_CONFIG_MIN_VERSION
=0.9.0
11972 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11974 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11976 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11977 LIBGNUTLS_CFLAGS
=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11978 LIBGNUTLS_LIBS
=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11985 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11986 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11988 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 LIBGNUTLS_CFLAGS
=""
11995 ## If we have a custom action on failure, don't print errors, but
11996 ## do set a variable so people can do so. Do it in a subshell
11997 ## to capture any diagnostics in invoking pkg-config.
11998 LIBGNUTLS_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12005 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12006 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12010 if test $succeeded = yes; then
12016 if test "${HAVE_GNUTLS}" = "yes"; then
12018 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12024 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12025 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12026 for ac_func
in gnutls_certificate_set_verify_function
12028 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12029 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
12030 cat >>confdefs.h
<<_ACEOF
12031 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12033 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
12038 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12040 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12044 # Windows loads GnuTLS dynamically
12045 if test "${opsys}" = "mingw32"; then
12058 if test "${with_file_notification}" = "yes"; then
12059 if test "${opsys}" = "mingw32"; then
12060 with_file_notification
=w32
12062 if test "${with_ns}" != yes; then
12063 with_file_notification
=gfile
12068 if test "${with_file_notification}" = "gfile"; then
12072 if test "$PKG_CONFIG" = "no" ; then
12073 HAVE_GFILENOTIFY
=no
12075 PKG_CONFIG_MIN_VERSION
=0.9.0
12076 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12078 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12080 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12081 GFILENOTIFY_CFLAGS
=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12082 GFILENOTIFY_LIBS
=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12089 GFILENOTIFY_CFLAGS
=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12090 GFILENOTIFY_LIBS
=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12092 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097 GFILENOTIFY_CFLAGS
=""
12098 GFILENOTIFY_LIBS
=""
12099 ## If we have a custom action on failure, don't print errors, but
12100 ## do set a variable so people can do so. Do it in a subshell
12101 ## to capture any diagnostics in invoking pkg-config.
12102 GFILENOTIFY_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12114 if test $succeeded = yes; then
12115 HAVE_GFILENOTIFY
=yes
12117 HAVE_GFILENOTIFY
=no
12120 if test "$HAVE_GFILENOTIFY" = "yes"; then
12122 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12124 NOTIFY_OBJ
=gfilenotify.o
12125 NOTIFY_SUMMARY
="yes -lgio (gfile)"
12128 if test "${with_file_notification}" = "inotify"; then
12129 ac_fn_c_check_header_mongrel
"$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12130 if test "x$ac_cv_header_sys_inotify_h" = x
""yes; then :
12135 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12136 ac_fn_c_check_func
"$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12137 if test "x$ac_cv_func_inotify_init1" = x
""yes; then :
12141 if test "$ac_cv_func_inotify_init1" = yes; then
12143 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12145 NOTIFY_OBJ
=inotify.o
12146 NOTIFY_SUMMARY
="yes -lglibc (inotify)"
12150 if test "${with_file_notification}" = "w32"; then
12151 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12152 if test "x$ac_cv_header_windows_h" = x
""yes; then :
12157 if test "$ac_cv_header_windows_h" = yes ; then
12159 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12161 NOTIFY_OBJ
=w32notify.o
12162 NOTIFY_SUMMARY
="yes (w32)"
12165 if test -n "$NOTIFY_OBJ"; then
12167 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12176 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12177 if test "$with_xaw3d" != no
; then
12178 if test "${emacs_cv_xaw3d+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12184 #include <X11/Intrinsic.h>
12185 #include <X11/Xaw3d/Simple.h>
12194 if ac_fn_c_try_link
"$LINENO"; then :
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12196 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12197 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_check_lib_save_LIBS
=$LIBS
12201 LIBS
="-lXaw3d $LIBS"
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12211 char XawScrollbarSetThumb ();
12215 return XawScrollbarSetThumb ();
12220 if ac_fn_c_try_link
"$LINENO"; then :
12221 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12223 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12225 rm -f core conftest.err conftest.
$ac_objext \
12226 conftest
$ac_exeext conftest.
$ac_ext
12227 LIBS
=$ac_check_lib_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12230 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12231 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12240 rm -f core conftest.err conftest.
$ac_objext \
12241 conftest
$ac_exeext conftest.
$ac_ext
12247 if test $emacs_cv_xaw3d = yes; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12249 $as_echo_n "checking for xaw3d... " >&6; }
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12251 $as_echo "yes; using Lucid toolkit" >&6; }
12252 USE_X_TOOLKIT
=LUCID
12256 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12260 $as_echo_n "checking for xaw3d... " >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12264 $as_echo_n "checking for libXaw... " >&6; }
12265 if test "${emacs_cv_xaw+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 #include <X11/Intrinsic.h>
12272 #include <X11/Xaw/Simple.h>
12281 if ac_fn_c_try_link
"$LINENO"; then :
12286 rm -f core conftest.err conftest.
$ac_objext \
12287 conftest
$ac_exeext conftest.
$ac_ext
12290 if test $emacs_cv_xaw = yes; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12292 $as_echo "yes; using Lucid toolkit" >&6; }
12293 USE_X_TOOLKIT
=LUCID
12295 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12296 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12298 as_fn_error
"No X toolkit could be found.
12299 If you are sure you want Emacs compiled without an X toolkit, pass
12300 --with-x-toolkit=no
12301 to configure. Otherwise, install the development libraries for the toolkit
12302 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12307 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12310 if test "${USE_X_TOOLKIT}" != "none"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12312 $as_echo_n "checking X11 toolkit version... " >&6; }
12313 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #include <X11/Intrinsic.h>
12322 #if XtSpecificationRelease < 6
12330 if ac_fn_c_try_link
"$LINENO"; then :
12331 emacs_cv_x11_toolkit_version_6
=yes
12333 emacs_cv_x11_toolkit_version_6
=no
12335 rm -f core conftest.err conftest.
$ac_objext \
12336 conftest
$ac_exeext conftest.
$ac_ext
12339 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12340 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12342 $as_echo "6 or newer" >&6; }
12344 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12346 LIBXTR6
="-lSM -lICE"
12348 ## Use libw.a along with X11R6 Xt.
12349 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12353 $as_echo "before 6" >&6; }
12357 if test x
$HAVE_X11XTR6 = xyes
; then
12358 LIBS
="-lXt -lSM -lICE $LIBS"
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12363 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12364 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12367 ac_check_lib_save_LIBS
=$LIBS
12369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12372 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */
12378 char XmuConvertStandardSelection ();
12382 return XmuConvertStandardSelection ();
12387 if ac_fn_c_try_link
"$LINENO"; then :
12388 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12390 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12392 rm -f core conftest.err conftest.
$ac_objext \
12393 conftest
$ac_exeext conftest.
$ac_ext
12394 LIBS
=$ac_check_lib_save_LIBS
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12397 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12398 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12399 cat >>confdefs.h
<<_ACEOF
12400 #define HAVE_LIBXMU 1
12407 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12413 ## These systems don't supply Xmu.
12415 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12423 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12424 if test "${HAVE_X11}" = "yes"; then
12425 if test "${USE_X_TOOLKIT}" != "none"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12427 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12428 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 ac_check_lib_save_LIBS
=$LIBS
12432 LIBS
="-lXext $LIBS"
12433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12442 char XShapeQueryExtension ();
12446 return XShapeQueryExtension ();
12451 if ac_fn_c_try_link
"$LINENO"; then :
12452 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12454 ac_cv_lib_Xext_XShapeQueryExtension
=no
12456 rm -f core conftest.err conftest.
$ac_objext \
12457 conftest
$ac_exeext conftest.
$ac_ext
12458 LIBS
=$ac_check_lib_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12461 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12462 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12463 cat >>confdefs.h
<<_ACEOF
12464 #define HAVE_LIBXEXT 1
12467 LIBS
="-lXext $LIBS"
12475 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12476 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12477 if test -d /usr
/include
/openmotif
; then
12478 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
12479 emacs_cv_openmotif
=yes
12480 case "$canonical" in
12481 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
12482 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
12485 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
12488 emacs_cv_openmotif
=no
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12491 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12492 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12501 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12504 Motif version prior to 2.1.
12510 if ac_fn_c_try_compile
"$LINENO"; then :
12511 emacs_cv_motif_version_2_1
=yes
12513 emacs_cv_motif_version_2_1
=no
12515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12518 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12519 if test $emacs_cv_motif_version_2_1 = yes; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12521 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12522 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 ac_check_lib_save_LIBS
=$LIBS
12527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12536 char XpCreateContext ();
12540 return XpCreateContext ();
12545 if ac_fn_c_try_link
"$LINENO"; then :
12546 ac_cv_lib_Xp_XpCreateContext
=yes
12548 ac_cv_lib_Xp_XpCreateContext
=no
12550 rm -f core conftest.err conftest.
$ac_objext \
12551 conftest
$ac_exeext conftest.
$ac_ext
12552 LIBS
=$ac_check_lib_save_LIBS
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12555 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12556 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12560 if test x
$emacs_cv_openmotif = xyes
; then
12561 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12565 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12566 if test "${emacs_cv_lesstif+set}" = set; then :
12567 $as_echo_n "(cached) " >&6
12569 # We put this in CFLAGS temporarily to precede other -I options
12570 # that might be in CFLAGS temporarily.
12571 # We put this in CPPFLAGS where it precedes the other -I options.
12572 OLD_CPPFLAGS
=$CPPFLAGS
12574 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12575 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12587 if ac_fn_c_try_compile
"$LINENO"; then :
12588 emacs_cv_lesstif
=yes
12590 emacs_cv_lesstif
=no
12592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12595 $as_echo "$emacs_cv_lesstif" >&6; }
12596 if test $emacs_cv_lesstif = yes; then
12597 # Make sure this -I option remains in CPPFLAGS after it is set
12598 # back to REAL_CPPFLAGS.
12599 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12600 # have those other -I options anyway. Ultimately, having this
12601 # directory ultimately in CPPFLAGS will be enough.
12602 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12603 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12606 CPPFLAGS
=$OLD_CPPFLAGS
12609 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12610 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12613 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12620 USE_TOOLKIT_SCROLL_BARS
=no
12621 if test "${with_toolkit_scroll_bars}" != "no"; then
12622 if test "${USE_X_TOOLKIT}" != "none"; then
12623 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12624 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12627 USE_TOOLKIT_SCROLL_BARS
=yes
12628 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12629 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12631 USE_TOOLKIT_SCROLL_BARS
=yes
12633 elif test "${HAVE_GTK}" = "yes"; then
12634 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12636 USE_TOOLKIT_SCROLL_BARS
=yes
12637 elif test "${HAVE_NS}" = "yes"; then
12638 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12640 USE_TOOLKIT_SCROLL_BARS
=yes
12641 elif test "${HAVE_W32}" = "yes"; then
12642 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12644 USE_TOOLKIT_SCROLL_BARS
=yes
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12651 #include <X11/Xlib.h>
12652 #include <X11/Xresource.h>
12661 if ac_fn_c_try_compile
"$LINENO"; then :
12664 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12672 if test "${with_xim}" != "no"; then
12674 $as_echo "#define USE_XIM 1" >>confdefs.h
12679 if test "${HAVE_XIM}" != "no"; then
12680 late_CFLAGS
=$CFLAGS
12681 if test "$GCC" = yes; then
12682 CFLAGS
="$CFLAGS --pedantic-errors"
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 #include <X11/Xlib.h>
12688 #include <X11/Xresource.h>
12697 XPointer *client_data;
12699 /* If we're not using GCC, it's probably not XFree86, and this is
12700 probably right, but we can't use something like --pedantic-errors. */
12701 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12702 char*, XIMProc, XPointer*);
12704 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12710 if ac_fn_c_try_compile
"$LINENO"; then :
12711 emacs_cv_arg6_star
=yes
12713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12714 if test "$emacs_cv_arg6_star" = yes; then
12715 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12718 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12721 CFLAGS
=$late_CFLAGS
12724 ### Start of font-backend (under any platform) section.
12725 # (nothing here yet -- this is a placeholder)
12726 ### End of font-backend (under any platform) section.
12728 ### Start of font-backend (under X11) section.
12729 if test "${HAVE_X11}" = "yes"; then
12733 if test "$PKG_CONFIG" = "no" ; then
12736 PKG_CONFIG_MIN_VERSION
=0.9.0
12737 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12739 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12741 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12742 FONTCONFIG_CFLAGS
=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12743 FONTCONFIG_LIBS
=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12750 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12751 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12753 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 FONTCONFIG_CFLAGS
=""
12760 ## If we have a custom action on failure, don't print errors, but
12761 ## do set a variable so people can do so. Do it in a subshell
12762 ## to capture any diagnostics in invoking pkg-config.
12763 FONTCONFIG_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12775 if test $succeeded = yes; then
12782 ## Use -lXft if available, unless `--with-xft=no'.
12784 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12787 if test "x${with_xft}" != "xno"; then
12792 if test "$PKG_CONFIG" = "no" ; then
12795 PKG_CONFIG_MIN_VERSION
=0.9.0
12796 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12798 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12800 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12801 XFT_CFLAGS
=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12802 XFT_LIBS
=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12809 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12810 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12812 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 ## If we have a custom action on failure, don't print errors, but
12820 ## do set a variable so people can do so. Do it in a subshell
12821 ## to capture any diagnostics in invoking pkg-config.
12822 XFT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12834 if test $succeeded = yes; then
12840 ## Because xftfont.c uses XRenderQueryExtension, we also
12841 ## need to link to -lXrender.
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12844 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12845 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_check_lib_save_LIBS
=$LIBS
12849 LIBS
="-lXrender $LIBS"
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12859 char XRenderQueryExtension ();
12863 return XRenderQueryExtension ();
12868 if ac_fn_c_try_link
"$LINENO"; then :
12869 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
12871 ac_cv_lib_Xrender_XRenderQueryExtension
=no
12873 rm -f core conftest.err conftest.
$ac_objext \
12874 conftest
$ac_exeext conftest.
$ac_ext
12875 LIBS
=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12878 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12879 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
12883 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
12884 OLD_CPPFLAGS
="$CPPFLAGS"
12885 OLD_CFLAGS
="$CFLAGS"
12887 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12888 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12889 XFT_LIBS
="-lXrender $XFT_LIBS"
12890 LIBS
="$XFT_LIBS $LIBS"
12891 ac_fn_c_check_header_compile
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12893 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12895 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12896 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12900 LIBS
="-lXft $XFT_LIBS $LIBS"
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char XftFontOpen ();
12914 return XftFontOpen ();
12919 if ac_fn_c_try_link
"$LINENO"; then :
12920 ac_cv_lib_Xft_XftFontOpen
=yes
12922 ac_cv_lib_Xft_XftFontOpen
=no
12924 rm -f core conftest.err conftest.
$ac_objext \
12925 conftest
$ac_exeext conftest.
$ac_ext
12926 LIBS
=$ac_check_lib_save_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12929 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12930 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
12938 if test "${HAVE_XFT}" = "yes"; then
12940 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12943 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12945 CPPFLAGS
="$OLD_CPPFLAGS"
12946 CFLAGS
="$OLD_CFLAGS"
12948 fi # "${HAVE_XFT}" = "yes"
12949 fi # "$HAVE_XFT" != no
12950 fi # "x${with_xft}" != "xno"
12952 ## We used to allow building with FreeType and without Xft.
12953 ## However, the ftx font backend driver is not in good shape.
12954 if test "$HAVE_XFT" != "yes"; then
12961 if test "$PKG_CONFIG" = "no" ; then
12964 PKG_CONFIG_MIN_VERSION
=0.9.0
12965 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12967 $as_echo_n "checking for freetype2... " >&6; }
12969 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12970 FREETYPE_CFLAGS
=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12971 FREETYPE_LIBS
=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12978 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12979 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12981 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12988 ## If we have a custom action on failure, don't print errors, but
12989 ## do set a variable so people can do so. Do it in a subshell
12990 ## to capture any diagnostics in invoking pkg-config.
12991 FREETYPE_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13003 if test $succeeded = yes; then
13010 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13014 if test "${HAVE_FREETYPE}" = "yes"; then
13016 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13018 if test "${with_libotf}" != "no"; then
13022 if test "$PKG_CONFIG" = "no" ; then
13025 PKG_CONFIG_MIN_VERSION
=0.9.0
13026 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13028 $as_echo_n "checking for libotf... " >&6; }
13030 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13031 LIBOTF_CFLAGS
=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13032 LIBOTF_LIBS
=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13039 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13040 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13042 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13049 ## If we have a custom action on failure, don't print errors, but
13050 ## do set a variable so people can do so. Do it in a subshell
13051 ## to capture any diagnostics in invoking pkg-config.
13052 LIBOTF_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13064 if test $succeeded = yes; then
13070 if test "$HAVE_LIBOTF" = "yes"; then
13072 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13075 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13076 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13079 ac_check_lib_save_LIBS
=$LIBS
13081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13090 char OTF_get_variation_glyphs ();
13094 return OTF_get_variation_glyphs ();
13099 if ac_fn_c_try_link
"$LINENO"; then :
13100 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13102 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13104 rm -f core conftest.err conftest.
$ac_objext \
13105 conftest
$ac_exeext conftest.
$ac_ext
13106 LIBS
=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13109 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13110 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13111 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13113 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13116 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13118 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13126 if test "${HAVE_LIBOTF}" = yes; then
13127 if test "${with_m17n_flt}" != "no"; then
13131 if test "$PKG_CONFIG" = "no" ; then
13134 PKG_CONFIG_MIN_VERSION
=0.9.0
13135 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13137 $as_echo_n "checking for m17n-flt... " >&6; }
13139 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13140 M17N_FLT_CFLAGS
=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13141 M17N_FLT_LIBS
=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13148 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13149 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13151 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13158 ## If we have a custom action on failure, don't print errors, but
13159 ## do set a variable so people can do so. Do it in a subshell
13160 ## to capture any diagnostics in invoking pkg-config.
13161 M17N_FLT_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13173 if test $succeeded = yes; then
13179 if test "$HAVE_M17N_FLT" = "yes"; then
13181 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13193 ### End of font-backend (under X11) section.
13204 ### Use -lXpm if available, unless `--with-xpm=no'.
13205 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13208 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13209 if test "${with_xpm}" != "no"; then
13210 SAVE_CPPFLAGS
="$CPPFLAGS"
13211 SAVE_LDFLAGS
="$LDFLAGS"
13212 CPPFLAGS
="$CPPFLAGS -I/usr/include/noX"
13213 LDFLAGS
="$LDFLAGS -L/usr/lib/noX"
13214 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13215 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13217 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13218 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13219 $as_echo_n "(cached) " >&6
13221 ac_check_lib_save_LIBS
=$LIBS
13223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13232 char XpmReadFileToImage ();
13236 return XpmReadFileToImage ();
13241 if ac_fn_c_try_link
"$LINENO"; then :
13242 ac_cv_lib_Xpm_XpmReadFileToImage
=yes
13244 ac_cv_lib_Xpm_XpmReadFileToImage
=no
13246 rm -f core conftest.err conftest.
$ac_objext \
13247 conftest
$ac_exeext conftest.
$ac_ext
13248 LIBS
=$ac_check_lib_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13251 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13252 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x
""yes; then :
13259 if test "${HAVE_XPM}" = "yes"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13261 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include "X11/xpm.h"
13265 #ifndef XpmReturnAllocPixels
13266 no_return_alloc_pixels
13270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13271 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13279 if test "${HAVE_XPM}" = "yes"; then
13280 REAL_CPPFLAGS
="$REAL_CPPFLAGS -I/usr/include/noX"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 CPPFLAGS
="$SAVE_CPPFLAGS"
13287 LDFLAGS
="$SAVE_LDFLAGS"
13292 if test "${HAVE_XPM}" = "yes"; then
13294 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13300 if test "${HAVE_X11}" = "yes"; then
13301 if test "${with_xpm}" != "no"; then
13302 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13303 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13305 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13306 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13309 ac_check_lib_save_LIBS
=$LIBS
13310 LIBS
="-lXpm -lX11 $LIBS"
13311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13320 char XpmReadFileToPixmap ();
13324 return XpmReadFileToPixmap ();
13329 if ac_fn_c_try_link
"$LINENO"; then :
13330 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13332 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13334 rm -f core conftest.err conftest.
$ac_objext \
13335 conftest
$ac_exeext conftest.
$ac_ext
13336 LIBS
=$ac_check_lib_save_LIBS
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13339 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13340 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13347 if test "${HAVE_XPM}" = "yes"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13349 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include "X11/xpm.h"
13353 #ifndef XpmReturnAllocPixels
13354 no_return_alloc_pixels
13358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13359 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13367 if test "${HAVE_XPM}" = "yes"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13377 if test "${HAVE_XPM}" = "yes"; then
13379 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13385 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13386 ### slightly different requirements wrt image libraries (it doesn't
13387 ### use -lXpm because it loads the xpm shared library dynamically at
13389 if test "${opsys}" = "mingw32"; then
13390 if test "${with_xpm}" != "no"; then
13391 ac_fn_c_check_header_compile
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13394 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13403 if test "${HAVE_XPM}" = "yes"; then
13405 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13412 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13413 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13416 if test "${opsys}" = "mingw32"; then
13417 if test "${with_jpeg}" != "no"; then
13418 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13419 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13427 if test "${HAVE_JPEG}" = "yes"; then
13428 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 #include <jpeglib.h>
13433 version=JPEG_LIB_VERSION
13436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13437 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13438 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13442 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13448 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13449 if test "${with_jpeg}" != "no"; then
13450 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13451 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13453 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13454 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13457 ac_check_lib_save_LIBS
=$LIBS
13458 LIBS
="-ljpeg $LIBS"
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13468 char jpeg_destroy_compress ();
13472 return jpeg_destroy_compress ();
13477 if ac_fn_c_try_link
"$LINENO"; then :
13478 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13480 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13482 rm -f core conftest.err conftest.
$ac_objext \
13483 conftest
$ac_exeext conftest.
$ac_ext
13484 LIBS
=$ac_check_lib_save_LIBS
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13487 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13488 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13497 if test "${HAVE_JPEG}" = "yes"; then
13498 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <jpeglib.h>
13503 version=JPEG_LIB_VERSION
13506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13508 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13512 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13518 if test "${HAVE_JPEG}" = "yes"; then
13524 ### Use -lpng if available, unless `--with-png=no'.
13525 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13528 if test "${opsys}" = "mingw32"; then
13529 if test "${with_png}" != "no"; then
13530 ac_fn_c_check_header_mongrel
"$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_png_h" = x
""yes; then :
13539 if test "${HAVE_PNG}" = "yes"; then
13541 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13544 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13545 # include <libpng/png.h>
13551 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13555 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13560 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13561 if test "${with_png}" != "no"; then
13562 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13563 # in /usr/include/libpng.
13564 for ac_header
in png.h libpng
/png.h
13566 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13567 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13568 eval as_val
=\$
$as_ac_Header
13569 if test "x$as_val" = x
""yes; then :
13570 cat >>confdefs.h
<<_ACEOF
13571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13578 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13580 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13581 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13584 ac_check_lib_save_LIBS
=$LIBS
13585 LIBS
="-lpng -lz -lm $LIBS"
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply. */
13595 char png_get_channels ();
13599 return png_get_channels ();
13604 if ac_fn_c_try_link
"$LINENO"; then :
13605 ac_cv_lib_png_png_get_channels
=yes
13607 ac_cv_lib_png_png_get_channels
=no
13609 rm -f core conftest.err conftest.
$ac_objext \
13610 conftest
$ac_exeext conftest.
$ac_ext
13611 LIBS
=$ac_check_lib_save_LIBS
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13614 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13615 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13622 if test "${HAVE_PNG}" = "yes"; then
13624 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13626 LIBPNG
="-lpng -lz -lm"
13628 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13629 # include <libpng/png.h>
13635 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
13639 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13647 ### Use -ltiff if available, unless `--with-tiff=no'.
13648 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13651 if test "${opsys}" = "mingw32"; then
13652 if test "${with_tiff}" != "no"; then
13653 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13654 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13662 if test "${HAVE_TIFF}" = "yes"; then
13664 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13667 elif test "${HAVE_X11}" = "yes" ||
test "${HAVE_W32}" = "yes"; then
13668 if test "${with_tiff}" != "no"; then
13669 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13670 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13672 # At least one tiff package requires the jpeg library.
13673 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13675 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13676 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13679 ac_check_lib_save_LIBS
=$LIBS
13680 LIBS
="-ltiff $tifflibs $LIBS"
13681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 /* Override any GCC internal prototype to avoid an error.
13685 Use char because int might match the return type of a GCC
13686 builtin and then its argument prototype would still apply. */
13690 char TIFFGetVersion ();
13694 return TIFFGetVersion ();
13699 if ac_fn_c_try_link
"$LINENO"; then :
13700 ac_cv_lib_tiff_TIFFGetVersion
=yes
13702 ac_cv_lib_tiff_TIFFGetVersion
=no
13704 rm -f core conftest.err conftest.
$ac_objext \
13705 conftest
$ac_exeext conftest.
$ac_ext
13706 LIBS
=$ac_check_lib_save_LIBS
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13709 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13710 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13719 if test "${HAVE_TIFF}" = "yes"; then
13721 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13728 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13729 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13732 if test "${opsys}" = "mingw32"; then
13733 if test "${with_gif}" != "no"; then
13734 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13735 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13743 if test "${HAVE_GIF}" = "yes"; then
13745 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13748 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13749 ||
test "${HAVE_W32}" = "yes"; then
13750 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13752 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13753 # Earlier versions can crash Emacs.
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13755 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13756 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13759 ac_check_lib_save_LIBS
=$LIBS
13761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 /* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply. */
13770 char EGifPutExtensionLast ();
13774 return EGifPutExtensionLast ();
13779 if ac_fn_c_try_link
"$LINENO"; then :
13780 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13782 ac_cv_lib_gif_EGifPutExtensionLast
=no
13784 rm -f core conftest.err conftest.
$ac_objext \
13785 conftest
$ac_exeext conftest.
$ac_ext
13786 LIBS
=$ac_check_lib_save_LIBS
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13789 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13790 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13800 if test "$HAVE_GIF" = yes; then
13802 elif test "$HAVE_GIF" = maybe
; then
13803 # If gif_lib.h but no libgif, try libungif.
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13805 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13806 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13809 ac_check_lib_save_LIBS
=$LIBS
13810 LIBS
="-lungif $LIBS"
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 /* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
13820 char EGifPutExtensionLast ();
13824 return EGifPutExtensionLast ();
13829 if ac_fn_c_try_link
"$LINENO"; then :
13830 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13832 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13834 rm -f core conftest.err conftest.
$ac_objext \
13835 conftest
$ac_exeext conftest.
$ac_ext
13836 LIBS
=$ac_check_lib_save_LIBS
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13839 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13840 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13846 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13849 if test "${HAVE_GIF}" = "yes"; then
13851 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13857 if test "${HAVE_X11}" = "yes"; then
13860 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13861 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13862 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13863 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13864 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13865 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13866 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13867 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13868 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13869 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13871 if test "X${MISSING}" != X
; then
13872 as_fn_error
"The following required libraries were not found:
13874 Maybe some development libraries/packages are missing?
13875 If you don't want to link with them give
13877 as options to configure" "$LINENO" 5
13881 ### Use -lgpm if available, unless `--with-gpm=no'.
13884 if test "${with_gpm}" != "no"; then
13885 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13886 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13888 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13889 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13890 $as_echo_n "(cached) " >&6
13892 ac_check_lib_save_LIBS
=$LIBS
13894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 /* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13907 return Gpm_Open ();
13912 if ac_fn_c_try_link
"$LINENO"; then :
13913 ac_cv_lib_gpm_Gpm_Open
=yes
13915 ac_cv_lib_gpm_Gpm_Open
=no
13917 rm -f core conftest.err conftest.
$ac_objext \
13918 conftest
$ac_exeext conftest.
$ac_ext
13919 LIBS
=$ac_check_lib_save_LIBS
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13922 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13923 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
13931 if test "${HAVE_GPM}" = "yes"; then
13933 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13945 ### Use NeXTstep API to implement GUI.
13946 if test "${HAVE_NS}" = "yes"; then
13948 $as_echo "#define HAVE_NS 1" >>confdefs.h
13950 if test "${NS_IMPL_COCOA}" = "yes"; then
13952 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13955 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13957 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13959 # See also .m.o rule in Makefile.in */
13960 # FIXME: are all these flags really needed? Document here why. */
13961 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13962 ## Extra CFLAGS applied to src/*.m files.
13963 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"
13965 # We also have mouse menus.
13970 if test "${HAVE_W32}" = "yes"; then
13974 ### Use session management (-lSM -lICE) if available
13977 if test "${HAVE_X11}" = "yes"; then
13978 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13979 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13981 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13982 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13985 ac_check_lib_save_LIBS
=$LIBS
13986 LIBS
="-lSM -lICE $LIBS"
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
13996 char SmcOpenConnection ();
14000 return SmcOpenConnection ();
14005 if ac_fn_c_try_link
"$LINENO"; then :
14006 ac_cv_lib_SM_SmcOpenConnection
=yes
14008 ac_cv_lib_SM_SmcOpenConnection
=no
14010 rm -f core conftest.err conftest.
$ac_objext \
14011 conftest
$ac_exeext conftest.
$ac_ext
14012 LIBS
=$ac_check_lib_save_LIBS
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14015 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14016 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14024 if test "${HAVE_X_SM}" = "yes"; then
14026 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14028 LIBXSM
="-lSM -lICE"
14031 *) LIBS
="$LIBXSM $LIBS" ;;
14037 ### Use XRandr (-lXrandr) if available
14039 if test "${HAVE_X11}" = "yes"; then
14040 XRANDR_REQUIRED
=1.2.2
14041 XRANDR_MODULES
="xrandr >= $XRANDR_REQUIRED"
14045 if test "$PKG_CONFIG" = "no" ; then
14048 PKG_CONFIG_MIN_VERSION
=0.9.0
14049 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14051 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14053 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14054 XRANDR_CFLAGS
=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14055 XRANDR_LIBS
=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14062 XRANDR_CFLAGS
=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14063 XRANDR_LIBS
=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14065 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14072 ## If we have a custom action on failure, don't print errors, but
14073 ## do set a variable so people can do so. Do it in a subshell
14074 ## to capture any diagnostics in invoking pkg-config.
14075 XRANDR_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14087 if test $succeeded = yes; then
14093 if test $HAVE_XRANDR = no
; then
14094 # Test old way in case pkg-config doesn't have it (older machines).
14095 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14096 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x
""yes; then :
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14098 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14099 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14102 ac_check_lib_save_LIBS
=$LIBS
14103 LIBS
="-lXrandr $LIBS"
14104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14107 /* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
14113 char XRRGetScreenResources ();
14117 return XRRGetScreenResources ();
14122 if ac_fn_c_try_link
"$LINENO"; then :
14123 ac_cv_lib_Xrandr_XRRGetScreenResources
=yes
14125 ac_cv_lib_Xrandr_XRRGetScreenResources
=no
14127 rm -f core conftest.err conftest.
$ac_objext \
14128 conftest
$ac_exeext conftest.
$ac_ext
14129 LIBS
=$ac_check_lib_save_LIBS
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14132 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14133 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x
""yes; then :
14140 if test $HAVE_XRANDR = yes; then
14141 XRANDR_LIBS
=-lXrandr
14145 if test $HAVE_XRANDR = yes; then
14146 SAVE_CFLAGS
="$CFLAGS"
14148 CFLAGS
="$XRANDR_CFLAGS $CFLAGS"
14149 LIBS
="$XRANDR_LIBS $LIBS"
14150 for ac_func
in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14152 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14153 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14154 eval as_val
=\$
$as_ac_var
14155 if test "x$as_val" = x
""yes; then :
14156 cat >>confdefs.h
<<_ACEOF
14157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14163 CFLAGS
="$SAVE_CFLAGS"
14167 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14172 ### Use Xinerama (-lXinerama) if available
14174 if test "${HAVE_X11}" = "yes"; then
14175 XINERAMA_REQUIRED
=1.0.2
14176 XINERAMA_MODULES
="xinerama >= $XINERAMA_REQUIRED"
14180 if test "$PKG_CONFIG" = "no" ; then
14183 PKG_CONFIG_MIN_VERSION
=0.9.0
14184 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14186 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14188 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14189 XINERAMA_CFLAGS
=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14190 XINERAMA_LIBS
=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14197 XINERAMA_CFLAGS
=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14198 XINERAMA_LIBS
=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14200 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14207 ## If we have a custom action on failure, don't print errors, but
14208 ## do set a variable so people can do so. Do it in a subshell
14209 ## to capture any diagnostics in invoking pkg-config.
14210 XINERAMA_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14222 if test $succeeded = yes; then
14228 if test $HAVE_XINERAMA = no
; then
14229 # Test old way in case pkg-config doesn't have it (older machines).
14230 ac_fn_c_check_header_mongrel
"$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14231 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x
""yes; then :
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14233 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14234 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14235 $as_echo_n "(cached) " >&6
14237 ac_check_lib_save_LIBS
=$LIBS
14238 LIBS
="-lXinerama $LIBS"
14239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14248 char XineramaQueryExtension ();
14252 return XineramaQueryExtension ();
14257 if ac_fn_c_try_link
"$LINENO"; then :
14258 ac_cv_lib_Xinerama_XineramaQueryExtension
=yes
14260 ac_cv_lib_Xinerama_XineramaQueryExtension
=no
14262 rm -f core conftest.err conftest.
$ac_objext \
14263 conftest
$ac_exeext conftest.
$ac_ext
14264 LIBS
=$ac_check_lib_save_LIBS
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14267 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14268 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x
""yes; then :
14275 if test $HAVE_XINERAMA = yes; then
14276 XINERAMA_LIBS
=-lXinerama
14280 if test $HAVE_XINERAMA = yes; then
14282 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14288 ### Use libxml (-lxml2) if available
14289 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14291 if test "${with_xml2}" != "no"; then
14292 ### I'm not sure what the version number should be, so I just guessed.
14296 if test "$PKG_CONFIG" = "no" ; then
14299 PKG_CONFIG_MIN_VERSION
=0.9.0
14300 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14302 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14304 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14305 LIBXML2_CFLAGS
=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14306 LIBXML2_LIBS
=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14313 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14314 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14316 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14323 ## If we have a custom action on failure, don't print errors, but
14324 ## do set a variable so people can do so. Do it in a subshell
14325 ## to capture any diagnostics in invoking pkg-config.
14326 LIBXML2_PKG_ERRORS
=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14338 if test $succeeded = yes; then
14344 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14345 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14346 SAVE_CPPFLAGS
="$CPPFLAGS"
14347 CPPFLAGS
="$CPPFLAGS -I/usr/include/libxml2"
14348 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14349 if test "x$ac_cv_header_libxml_HTMLparser_h" = x
""yes; then :
14350 ac_fn_c_check_decl
"$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14352 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x
""yes; then :
14359 CPPFLAGS
="$SAVE_CPPFLAGS"
14360 if test "${HAVE_LIBXML2}" = "yes"; then
14361 LIBXML2_LIBS
="-lxml2"
14362 LIBXML2_CFLAGS
="-I/usr/include/libxml2"
14365 if test "${HAVE_LIBXML2}" = "yes"; then
14366 if test "${opsys}" != "mingw32"; then
14367 LIBS
="$LIBXML2_LIBS $LIBS"
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14369 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14370 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14373 ac_check_lib_save_LIBS
=$LIBS
14374 LIBS
="-lxml2 $LIBS"
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14384 char htmlReadMemory ();
14388 return htmlReadMemory ();
14393 if ac_fn_c_try_link
"$LINENO"; then :
14394 ac_cv_lib_xml2_htmlReadMemory
=yes
14396 ac_cv_lib_xml2_htmlReadMemory
=no
14398 rm -f core conftest.err conftest.
$ac_objext \
14399 conftest
$ac_exeext conftest.
$ac_ext
14400 LIBS
=$ac_check_lib_save_LIBS
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14403 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14404 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14413 if test "${HAVE_LIBXML2}" = "yes"; then
14415 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14426 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14427 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14428 if test "${opsys}" = "mingw32"; then
14429 emacs_cv_netdb_declares_h_errno
=yes
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14432 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14433 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14447 if ac_fn_c_try_link
"$LINENO"; then :
14448 emacs_cv_netdb_declares_h_errno
=yes
14450 emacs_cv_netdb_declares_h_errno
=no
14452 rm -f core conftest.err conftest.
$ac_objext \
14453 conftest
$ac_exeext conftest.
$ac_ext
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14456 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14457 if test $emacs_cv_netdb_declares_h_errno = yes; then
14459 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14463 # sqrt and other floating-point functions such as fmod and frexp
14464 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14465 if test "${opsys}" != "mingw32"; then
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14467 $as_echo_n "checking for sqrt in -lm... " >&6; }
14468 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14471 ac_check_lib_save_LIBS
=$LIBS
14473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14476 /* Override any GCC internal prototype to avoid an error.
14477 Use char because int might match the return type of a GCC
14478 builtin and then its argument prototype would still apply. */
14491 if ac_fn_c_try_link
"$LINENO"; then :
14492 ac_cv_lib_m_sqrt
=yes
14494 ac_cv_lib_m_sqrt
=no
14496 rm -f core conftest.err conftest.
$ac_objext \
14497 conftest
$ac_exeext conftest.
$ac_ext
14498 LIBS
=$ac_check_lib_save_LIBS
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14501 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14502 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14503 cat >>confdefs.h
<<_ACEOF
14504 #define HAVE_LIBM 1
14513 # Check for mail-locking functions in a "mail" library. Probably this should
14514 # have the same check as for liblockfile below.
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14516 $as_echo_n "checking for maillock in -lmail... " >&6; }
14517 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14518 $as_echo_n "(cached) " >&6
14520 ac_check_lib_save_LIBS
=$LIBS
14521 LIBS
="-lmail $LIBS"
14522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14525 /* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply. */
14535 return maillock ();
14540 if ac_fn_c_try_link
"$LINENO"; then :
14541 ac_cv_lib_mail_maillock
=yes
14543 ac_cv_lib_mail_maillock
=no
14545 rm -f core conftest.err conftest.
$ac_objext \
14546 conftest
$ac_exeext conftest.
$ac_ext
14547 LIBS
=$ac_check_lib_save_LIBS
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14550 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14551 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14557 if test $have_mail = yes; then
14559 LIBS
="$LIBS_MAIL $LIBS"
14561 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14567 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14568 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14571 ac_check_lib_save_LIBS
=$LIBS
14572 LIBS
="-llockfile $LIBS"
14573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14576 /* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14586 return maillock ();
14591 if ac_fn_c_try_link
"$LINENO"; then :
14592 ac_cv_lib_lockfile_maillock
=yes
14594 ac_cv_lib_lockfile_maillock
=no
14596 rm -f core conftest.err conftest.
$ac_objext \
14597 conftest
$ac_exeext conftest.
$ac_ext
14598 LIBS
=$ac_check_lib_save_LIBS
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14601 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14602 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14608 if test $have_lockfile = yes; then
14609 LIBS_MAIL
=-llockfile
14610 LIBS
="$LIBS_MAIL $LIBS"
14612 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14615 # If we have the shared liblockfile, assume we must use it for mail
14616 # locking (e.g. Debian). If we couldn't link against liblockfile
14617 # (no liblockfile.a installed), ensure that we don't need to.
14618 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14619 set dummy liblockfile.so
; ac_word
=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14623 $as_echo_n "(cached) " >&6
14625 if test -n "$liblockfile"; then
14626 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14629 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14630 for as_dir
in $as_dummy
14633 test -z "$as_dir" && as_dir
=.
14634 for ac_exec_ext
in '' $ac_executable_extensions; do
14635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14636 ac_cv_prog_liblockfile
="yes"
14637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14644 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14647 liblockfile
=$ac_cv_prog_liblockfile
14648 if test -n "$liblockfile"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14650 $as_echo "$liblockfile" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14657 if test $ac_cv_prog_liblockfile = yes; then
14658 as_fn_error
"Shared liblockfile found but can't link against it.
14659 This probably means that movemail could lose mail.
14660 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14668 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14669 ## interlock access to the mail spool. The alternative is a lock file named
14670 ## /usr/spool/mail/$USER.lock.
14673 aix4-2
) mail_lock
="lockf" ;;
14675 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14677 ## On GNU/Linux systems, both methods are used by various mail programs.
14678 ## I assume most people are using newer mailers that have heard of flock.
14679 ## Change this if you need to.
14680 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14681 ## configure gets the right answers, and that means *NOT* using flock.
14682 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14683 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14684 ## Debian maintainer hasn't provided a clean fix for Emacs.
14685 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14686 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14687 ## correct logic. -- fx
14688 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14689 ## liblockfile is a Free Software replacement for libmail, used on
14690 ## Debian systems and elsewhere. -rfr.
14693 if test $have_mail = yes ||
test $have_lockfile = yes; then
14694 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14699 mail_lock
="none-needed" ;;
14703 case "$mail_lock" in
14705 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14709 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14714 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14719 for ac_func
in gethostname \
14720 getrusage get_current_dir_name \
14722 select getpagesize setlocale \
14723 utimes getrlimit setrlimit shutdown getaddrinfo \
14724 strsignal setitimer \
14725 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14726 gai_strerror mkstemp getline getdelim sync \
14727 difftime posix_memalign \
14728 getpwent endpwent getgrent endgrent \
14730 cfmakeraw cfsetspeed copysign __executable_start log2
14732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14733 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14734 eval as_val
=\$
$as_ac_var
14735 if test "x$as_val" = x
""yes; then :
14736 cat >>confdefs.h
<<_ACEOF
14737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14745 ## has a broken `rint' in some library versions including math library
14746 ## version number A.09.05.
14747 ## You can fix the math library by installing patch number PHSS_4630.
14748 ## But we can fix it more reliably for Emacs by just not using rint.
14749 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14752 *) for ac_func
in random rint
14754 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14756 eval as_val
=\$
$as_ac_var
14757 if test "x$as_val" = x
""yes; then :
14758 cat >>confdefs.h
<<_ACEOF
14759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14768 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14769 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14778 __builtin_unwind_init ();
14783 if ac_fn_c_try_link
"$LINENO"; then :
14784 emacs_cv_func___builtin_unwind_init
=yes
14786 emacs_cv_func___builtin_unwind_init
=no
14788 rm -f core conftest.err conftest.
$ac_objext \
14789 conftest
$ac_exeext conftest.
$ac_ext
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14792 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14793 if test $emacs_cv_func___builtin_unwind_init = yes; then
14795 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14804 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14805 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14806 $as_echo_n "(cached) " >&6
14809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 #include <sys/types.h> /* for off_t */
14816 int (*fp) (FILE *, off_t, int) = fseeko;
14817 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14822 if ac_fn_c_try_link
"$LINENO"; then :
14823 ac_cv_sys_largefile_source
=no
; break
14825 rm -f core conftest.err conftest.
$ac_objext \
14826 conftest
$ac_exeext conftest.
$ac_ext
14827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829 #define _LARGEFILE_SOURCE 1
14830 #include <sys/types.h> /* for off_t */
14835 int (*fp) (FILE *, off_t, int) = fseeko;
14836 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14841 if ac_fn_c_try_link
"$LINENO"; then :
14842 ac_cv_sys_largefile_source
=1; break
14844 rm -f core conftest.err conftest.
$ac_objext \
14845 conftest
$ac_exeext conftest.
$ac_ext
14846 ac_cv_sys_largefile_source
=unknown
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14851 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14852 case $ac_cv_sys_largefile_source in #(
14855 cat >>confdefs.h
<<_ACEOF
14856 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14862 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14863 # in glibc 2.1.3, but that breaks too many other things.
14864 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14865 if test $ac_cv_sys_largefile_source != unknown
; then
14867 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14873 for ac_func
in grantpt
14875 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14876 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14877 cat >>confdefs.h
<<_ACEOF
14878 #define HAVE_GRANTPT 1
14885 # PTY-related GNU extensions.
14886 for ac_func
in getpt posix_openpt
14888 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14889 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14890 eval as_val
=\$
$as_ac_var
14891 if test "x$as_val" = x
""yes; then :
14892 cat >>confdefs.h
<<_ACEOF
14893 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 # Check this now, so that we will NOT find the above functions in ncurses.
14901 # That is because we have not set up to link ncurses in lib-src.
14902 # It's better to believe a function is not available
14903 # than to expect to find it in ncurses.
14904 # Also we need tputs and friends to be able to build at all.
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14906 $as_echo_n "checking for library containing tputs... " >&6; }
14907 # Run a test program that contains a call to tputs, a call that is
14908 # never executed. This tests whether a pre-'main' dynamic linker
14909 # works with the library. It's too much trouble to actually call
14910 # tputs in the test program, due to portability hassles. When
14911 # cross-compiling, assume the test program will run if it links.
14913 if test "${opsys}" = "mingw32"; then
14914 msg
='none required'
14916 # Maybe curses should be tried earlier?
14917 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14918 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14920 if test -z "$tputs_library"; then
14922 msg
='none required'
14924 LIBS_TERMCAP
=-l$tputs_library
14926 LIBS
="$LIBS_TERMCAP $LIBS"
14928 if test "$cross_compiling" = yes; then :
14929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14932 extern void tputs (const char *, int, int (*)(int));
14933 int main (int argc, char **argv)
14936 tputs (argv[0], 0, 0);
14941 if ac_fn_c_try_link
"$LINENO"; then :
14946 rm -f core conftest.err conftest.
$ac_objext \
14947 conftest
$ac_exeext conftest.
$ac_ext
14949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14952 extern void tputs (const char *, int, int (*)(int));
14953 int main (int argc, char **argv)
14956 tputs (argv[0], 0, 0);
14961 if ac_fn_c_try_run
"$LINENO"; then :
14966 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14967 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14971 if test "X$msg" != Xno
; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14977 $as_echo "$msg" >&6; }
14978 if test "X$msg" = Xno
; then
14979 as_fn_error
"The required function \`tputs' was not found in any library.
14980 The following libraries were tried (in order):
14981 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14982 Please try installing whichever of these libraries is most appropriate
14983 for your system, together with its header files.
14984 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14987 ## Use termcap instead of terminfo?
14988 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14990 ## FIXME? In the cases below where we unconditionally set
14991 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14992 ## if that was found above to have tputs.
14993 ## Should we use the gnu* logic everywhere?
14995 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14996 ## The ncurses library has been moved out of the System framework in
14997 ## Mac OS X 10.2. So if configure detects it, set the command-line
14998 ## option to use it.
14999 darwin
) LIBS_TERMCAP
="-lncurses" ;;
15001 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15005 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15006 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15007 $as_echo_n "(cached) " >&6
15009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 #include <osreldate.h>
15015 #if __FreeBSD_version < 400000
15023 if ac_fn_c_try_link
"$LINENO"; then :
15024 emacs_cv_freebsd_terminfo
=yes
15026 emacs_cv_freebsd_terminfo
=no
15028 rm -f core conftest.err conftest.
$ac_objext \
15029 conftest
$ac_exeext conftest.
$ac_ext
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15034 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15036 if test $emacs_cv_freebsd_terminfo = yes; then
15037 LIBS_TERMCAP
="-lncurses"
15040 LIBS_TERMCAP
="-ltermcap"
15050 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15052 LIBS_TERMCAP
="-ltermcap"
15056 openbsd | dragonfly
) LIBS_TERMCAP
="-lncurses" ;;
15058 ## hpux: Make sure we get select from libc rather than from libcurses
15059 ## because libcurses on HPUX 10.10 has a broken version of select.
15060 ## We used to use -lc -lcurses, but this may be cleaner.
15061 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15062 # set that way, now it uses the default). Isn't this a contradiction?
15063 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15067 TERMCAP_OBJ
=tparam.o
15068 if test $TERMINFO = yes; then
15070 $as_echo "#define TERMINFO 1" >>confdefs.h
15072 TERMCAP_OBJ
=terminfo.o
15078 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15079 # On Darwin, res_init appears not to be useful: see bug#562 and
15080 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15083 if test $opsys != darwin
; then
15085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #include <netinet/in.h>
15088 #include <arpa/nameser.h>
15089 #include <resolv.h>
15098 if ac_fn_c_try_link
"$LINENO"; then :
15103 rm -f core conftest.err conftest.
$ac_objext \
15104 conftest
$ac_exeext conftest.
$ac_ext
15105 if test "$have_res_init" = no
; then
15107 LIBS
="$LIBS -lresolv"
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15109 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 #include <netinet/in.h>
15113 #include <arpa/nameser.h>
15114 #include <resolv.h>
15123 if ac_fn_c_try_link
"$LINENO"; then :
15128 rm -f core conftest.err conftest.
$ac_objext \
15129 conftest
$ac_exeext conftest.
$ac_ext
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15131 $as_echo "$have_res_init" >&6; }
15132 if test "$have_res_init" = yes ; then
15138 if test "$have_res_init" = yes; then
15140 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15144 # Do we need the Hesiod library to provide the support routines?
15146 if test "$with_hesiod" != no
; then
15147 # Don't set $LIBS here -- see comments above. FIXME which comments?
15148 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15149 if test "x$ac_cv_func_res_send" = x
""yes; then :
15152 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15153 if test "x$ac_cv_func___res_send" = x
""yes; then :
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15157 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15158 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15159 $as_echo_n "(cached) " >&6
15161 ac_check_lib_save_LIBS
=$LIBS
15162 LIBS
="-lresolv $LIBS"
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15176 return res_send ();
15181 if ac_fn_c_try_link
"$LINENO"; then :
15182 ac_cv_lib_resolv_res_send
=yes
15184 ac_cv_lib_resolv_res_send
=no
15186 rm -f core conftest.err conftest.
$ac_objext \
15187 conftest
$ac_exeext conftest.
$ac_ext
15188 LIBS
=$ac_check_lib_save_LIBS
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15191 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15192 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15196 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15197 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15198 $as_echo_n "(cached) " >&6
15200 ac_check_lib_save_LIBS
=$LIBS
15201 LIBS
="-lresolv $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 __res_send ();
15215 return __res_send ();
15220 if ac_fn_c_try_link
"$LINENO"; then :
15221 ac_cv_lib_resolv___res_send
=yes
15223 ac_cv_lib_resolv___res_send
=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_resolv___res_send" >&5
15230 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15231 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15241 if test "$resolv" = yes ; then
15246 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15247 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15251 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15252 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15255 ac_check_lib_save_LIBS
=$LIBS
15256 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15260 /* Override any GCC internal prototype to avoid an error.
15261 Use char because int might match the return type of a GCC
15262 builtin and then its argument prototype would still apply. */
15266 char hes_getmailhost ();
15270 return hes_getmailhost ();
15275 if ac_fn_c_try_link
"$LINENO"; then :
15276 ac_cv_lib_hesiod_hes_getmailhost
=yes
15278 ac_cv_lib_hesiod_hes_getmailhost
=no
15280 rm -f core conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15282 LIBS
=$ac_check_lib_save_LIBS
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15285 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15286 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15295 if test x
"$hesiod" = xyes
; then
15297 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15304 # Do we need libresolv (due to res_init or Hesiod)?
15305 if test "$resolv" = yes && test $opsys != darwin
; then
15307 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15315 # These tell us which Kerberos-related libraries to use.
15322 if test "${with_kerberos}" != no
; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15324 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15326 $as_echo_n "(cached) " >&6
15328 ac_check_lib_save_LIBS
=$LIBS
15329 LIBS
="-lcom_err $LIBS"
15330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15348 if ac_fn_c_try_link
"$LINENO"; then :
15349 ac_cv_lib_com_err_com_err
=yes
15351 ac_cv_lib_com_err_com_err
=no
15353 rm -f core conftest.err conftest.
$ac_objext \
15354 conftest
$ac_exeext conftest.
$ac_ext
15355 LIBS
=$ac_check_lib_save_LIBS
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15358 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15359 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15365 if test $have_com_err = yes; then
15366 COM_ERRLIB
=-lcom_err
15367 LIBS
="$COM_ERRLIB $LIBS"
15369 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15373 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15374 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15377 ac_check_lib_save_LIBS
=$LIBS
15378 LIBS
="-lcrypto $LIBS"
15379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15388 char mit_des_cbc_encrypt ();
15392 return mit_des_cbc_encrypt ();
15397 if ac_fn_c_try_link
"$LINENO"; then :
15398 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15400 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15402 rm -f core conftest.err conftest.
$ac_objext \
15403 conftest
$ac_exeext conftest.
$ac_ext
15404 LIBS
=$ac_check_lib_save_LIBS
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15407 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15408 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15414 if test $have_crypto = yes; then
15416 LIBS
="$CRYPTOLIB $LIBS"
15418 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15424 $as_echo_n "(cached) " >&6
15426 ac_check_lib_save_LIBS
=$LIBS
15427 LIBS
="-lk5crypto $LIBS"
15428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15431 /* Override any GCC internal prototype to avoid an error.
15432 Use char because int might match the return type of a GCC
15433 builtin and then its argument prototype would still apply. */
15437 char mit_des_cbc_encrypt ();
15441 return mit_des_cbc_encrypt ();
15446 if ac_fn_c_try_link
"$LINENO"; then :
15447 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15451 rm -f core conftest.err conftest.
$ac_objext \
15452 conftest
$ac_exeext conftest.
$ac_ext
15453 LIBS
=$ac_check_lib_save_LIBS
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15456 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15457 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15463 if test $have_k5crypto = yes; then
15464 CRYPTOLIB
=-lk5crypto
15465 LIBS
="$CRYPTOLIB $LIBS"
15467 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15471 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15473 $as_echo_n "(cached) " >&6
15475 ac_check_lib_save_LIBS
=$LIBS
15476 LIBS
="-lkrb5 $LIBS"
15477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15480 /* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply. */
15486 char krb5_init_context ();
15490 return krb5_init_context ();
15495 if ac_fn_c_try_link
"$LINENO"; then :
15496 ac_cv_lib_krb5_krb5_init_context
=yes
15498 ac_cv_lib_krb5_krb5_init_context
=no
15500 rm -f core conftest.err conftest.
$ac_objext \
15501 conftest
$ac_exeext conftest.
$ac_ext
15502 LIBS
=$ac_check_lib_save_LIBS
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15505 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15506 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15512 if test $have_krb5=yes; then
15514 LIBS
="$KRB5LIB $LIBS"
15516 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15519 if test "${with_kerberos5}" = no
; then
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15521 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15522 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15523 $as_echo_n "(cached) " >&6
15525 ac_check_lib_save_LIBS
=$LIBS
15526 LIBS
="-ldes425 $LIBS"
15527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15536 char des_cbc_encrypt ();
15540 return des_cbc_encrypt ();
15545 if ac_fn_c_try_link
"$LINENO"; then :
15546 ac_cv_lib_des425_des_cbc_encrypt
=yes
15548 ac_cv_lib_des425_des_cbc_encrypt
=no
15550 rm -f core conftest.err conftest.
$ac_objext \
15551 conftest
$ac_exeext conftest.
$ac_ext
15552 LIBS
=$ac_check_lib_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15555 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15556 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15562 if test $have_des425 = yes; then
15564 LIBS
="$DESLIB $LIBS"
15566 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15570 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15571 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15572 $as_echo_n "(cached) " >&6
15574 ac_check_lib_save_LIBS
=$LIBS
15576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15585 char des_cbc_encrypt ();
15589 return des_cbc_encrypt ();
15594 if ac_fn_c_try_link
"$LINENO"; then :
15595 ac_cv_lib_des_des_cbc_encrypt
=yes
15597 ac_cv_lib_des_des_cbc_encrypt
=no
15599 rm -f core conftest.err conftest.
$ac_objext \
15600 conftest
$ac_exeext conftest.
$ac_ext
15601 LIBS
=$ac_check_lib_save_LIBS
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15604 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15605 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15611 if test $have_des = yes; then
15613 LIBS
="$DESLIB $LIBS"
15615 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15620 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15621 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15622 $as_echo_n "(cached) " >&6
15624 ac_check_lib_save_LIBS
=$LIBS
15625 LIBS
="-lkrb4 $LIBS"
15626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15629 /* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
15635 char krb_get_cred ();
15639 return krb_get_cred ();
15644 if ac_fn_c_try_link
"$LINENO"; then :
15645 ac_cv_lib_krb4_krb_get_cred
=yes
15647 ac_cv_lib_krb4_krb_get_cred
=no
15649 rm -f core conftest.err conftest.
$ac_objext \
15650 conftest
$ac_exeext conftest.
$ac_ext
15651 LIBS
=$ac_check_lib_save_LIBS
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15654 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15655 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15661 if test $have_krb4 = yes; then
15663 LIBS
="$KRB4LIB $LIBS"
15665 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15669 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15673 ac_check_lib_save_LIBS
=$LIBS
15675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15678 /* Override any GCC internal prototype to avoid an error.
15679 Use char because int might match the return type of a GCC
15680 builtin and then its argument prototype would still apply. */
15684 char krb_get_cred ();
15688 return krb_get_cred ();
15693 if ac_fn_c_try_link
"$LINENO"; then :
15694 ac_cv_lib_krb_krb_get_cred
=yes
15696 ac_cv_lib_krb_krb_get_cred
=no
15698 rm -f core conftest.err conftest.
$ac_objext \
15699 conftest
$ac_exeext conftest.
$ac_ext
15700 LIBS
=$ac_check_lib_save_LIBS
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15703 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15704 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15710 if test $have_krb = yes; then
15712 LIBS
="$KRB4LIB $LIBS"
15714 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15720 if test "${with_kerberos5}" != no
; then
15721 for ac_header
in krb5.h
15723 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15725 cat >>confdefs.h
<<_ACEOF
15726 #define HAVE_KRB5_H 1
15728 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15730 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15732 cat >>confdefs.h
<<_ACEOF
15733 #define HAVE_KRB5_ERROR_TEXT 1
15738 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15740 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15742 cat >>confdefs.h
<<_ACEOF
15743 #define HAVE_KRB5_ERROR_E_TEXT 1
15754 for ac_header
in des.h
15756 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15757 if test "x$ac_cv_header_des_h" = x
""yes; then :
15758 cat >>confdefs.h
<<_ACEOF
15759 #define HAVE_DES_H 1
15763 for ac_header
in kerberosIV
/des.h
15765 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15766 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15767 cat >>confdefs.h
<<_ACEOF
15768 #define HAVE_KERBEROSIV_DES_H 1
15772 for ac_header
in kerberos
/des.h
15774 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15775 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15776 cat >>confdefs.h
<<_ACEOF
15777 #define HAVE_KERBEROS_DES_H 1
15792 for ac_header
in krb.h
15794 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15795 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15796 cat >>confdefs.h
<<_ACEOF
15797 #define HAVE_KRB_H 1
15801 for ac_header
in kerberosIV
/krb.h
15803 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15804 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15805 cat >>confdefs.h
<<_ACEOF
15806 #define HAVE_KERBEROSIV_KRB_H 1
15810 for ac_header
in kerberos
/krb.h
15812 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15813 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15814 cat >>confdefs.h
<<_ACEOF
15815 #define HAVE_KERBEROS_KRB_H 1
15831 for ac_header
in com_err.h
15833 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15834 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15835 cat >>confdefs.h
<<_ACEOF
15836 #define HAVE_COM_ERR_H 1
15854 for ac_func
in $ac_func_list
15856 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15857 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15858 eval as_val
=\$
$as_ac_var
15859 if test "x$as_val" = x
""yes; then :
15860 cat >>confdefs.h
<<_ACEOF
15861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15871 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15872 if test "${emacs_cv_localtime_cache+set}" = set; then :
15873 $as_echo_n "(cached) " >&6
15875 if test x
$ac_cv_func_tzset = xyes
; then
15876 if test "$cross_compiling" = yes; then :
15877 # If we have tzset, assume the worst when cross-compiling.
15878 emacs_cv_localtime_cache
=yes
15880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15883 char TZ_GMT0[] = "TZ=GMT0";
15884 char TZ_PST8[] = "TZ=PST8";
15887 time_t now = time ((time_t *) 0);
15888 int hour_GMT0, hour_unset;
15889 if (putenv (TZ_GMT0) != 0)
15891 hour_GMT0 = localtime (&now)->tm_hour;
15893 hour_unset = localtime (&now)->tm_hour;
15894 if (putenv (TZ_PST8) != 0)
15896 if (localtime (&now)->tm_hour == hour_GMT0)
15899 if (localtime (&now)->tm_hour != hour_unset)
15904 if ac_fn_c_try_run
"$LINENO"; then :
15905 emacs_cv_localtime_cache
=no
15907 emacs_cv_localtime_cache
=yes
15909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15914 # If we lack tzset, report that localtime does not cache TZ,
15915 # since we can't invalidate the cache if we don't have tzset.
15916 emacs_cv_localtime_cache
=no
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15920 $as_echo "$emacs_cv_localtime_cache" >&6; }
15921 if test $emacs_cv_localtime_cache = yes; then
15923 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15928 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15929 if test "x$ac_cv_func_socket" = x
""yes; then :
15935 if test $ok_so_far = yes; then
15936 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15937 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15945 if test $ok_so_far = yes; then
15946 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15947 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15955 if test $ok_so_far = yes; then
15957 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15961 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15963 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15968 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15969 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15971 $as_echo "yes" >&6; }
15973 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977 $as_echo "no" >&6; }
15981 *-solaris2.4 |
*-solaris2.4.
*)
15982 : ${ac_cv_func_vfork_works=no};;
15985 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15986 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15990 cat >>confdefs.h
<<_ACEOF
15996 for ac_header
in vfork.h
15998 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15999 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
16000 cat >>confdefs.h
<<_ACEOF
16001 #define HAVE_VFORK_H 1
16008 for ac_func
in fork vfork
16010 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16011 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16012 eval as_val
=\$
$as_ac_var
16013 if test "x$as_val" = x
""yes; then :
16014 cat >>confdefs.h
<<_ACEOF
16015 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16021 if test "x$ac_cv_func_fork" = xyes
; then
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16023 $as_echo_n "checking for working fork... " >&6; }
16024 if test "${ac_cv_func_fork_works+set}" = set; then :
16025 $as_echo_n "(cached) " >&6
16027 if test "$cross_compiling" = yes; then :
16028 ac_cv_func_fork_works
=cross
16030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16032 $ac_includes_default
16037 /* By Ruediger Kuhlmann. */
16038 return fork () < 0;
16044 if ac_fn_c_try_run
"$LINENO"; then :
16045 ac_cv_func_fork_works
=yes
16047 ac_cv_func_fork_works
=no
16049 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16050 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16055 $as_echo "$ac_cv_func_fork_works" >&6; }
16058 ac_cv_func_fork_works
=$ac_cv_func_fork
16060 if test "x$ac_cv_func_fork_works" = xcross
; then
16062 *-*-amigaos* |
*-*-msdosdjgpp*)
16063 # Override, as these systems have only a dummy fork() stub
16064 ac_cv_func_fork_works
=no
16067 ac_cv_func_fork_works
=yes
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16071 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16073 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16074 if test "x$ac_cv_func_vfork" = xyes
; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16076 $as_echo_n "checking for working vfork... " >&6; }
16077 if test "${ac_cv_func_vfork_works+set}" = set; then :
16078 $as_echo_n "(cached) " >&6
16080 if test "$cross_compiling" = yes; then :
16081 ac_cv_func_vfork_works
=cross
16083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 /* Thanks to Paul Eggert for this test. */
16086 $ac_includes_default
16087 #include <sys/wait.h>
16088 #ifdef HAVE_VFORK_H
16089 # include <vfork.h>
16091 /* On some sparc systems, changes by the child to local and incoming
16092 argument registers are propagated back to the parent. The compiler
16093 is told about this with #include <vfork.h>, but some compilers
16094 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16095 static variable whose address is put into a register that is
16096 clobbered by the vfork. */
16099 sparc_address_test (int arg)
16101 sparc_address_test (arg) int arg;
16104 static pid_t child;
16122 pid_t parent = getpid ();
16125 sparc_address_test (0);
16130 /* Here is another test for sparc vfork register problems. This
16131 test uses lots of local variables, at least as many local
16132 variables as main has allocated so far including compiler
16133 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16134 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16135 reuse the register of parent for one of the local variables,
16136 since it will think that parent can't possibly be used any more
16137 in this routine. Assigning to the local variable will thus
16138 munge parent in the parent process. */
16140 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16141 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16142 /* Convince the compiler that p..p7 are live; otherwise, it might
16143 use the same hardware register for all 8 local variables. */
16144 if (p != p1 || p != p2 || p != p3 || p != p4
16145 || p != p5 || p != p6 || p != p7)
16148 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16149 from child file descriptors. If the child closes a descriptor
16150 before it execs or exits, this munges the parent's descriptor
16151 as well. Test for this by closing stdout in the child. */
16152 _exit(close(fileno(stdout)) != 0);
16157 while (wait(&status) != child)
16160 /* Was there some problem with vforking? */
16163 /* Did the child fail? (This shouldn't happen.) */
16166 /* Did the vfork/compiler bug occur? */
16167 || parent != getpid()
16169 /* Did the file descriptor bug occur? */
16170 || fstat(fileno(stdout), &st) != 0
16175 if ac_fn_c_try_run
"$LINENO"; then :
16176 ac_cv_func_vfork_works
=yes
16178 ac_cv_func_vfork_works
=no
16180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16186 $as_echo "$ac_cv_func_vfork_works" >&6; }
16189 if test "x$ac_cv_func_fork_works" = xcross
; then
16190 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16192 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16195 if test "x$ac_cv_func_vfork_works" = xyes
; then
16197 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16201 $as_echo "#define vfork fork" >>confdefs.h
16204 if test "x$ac_cv_func_fork_works" = xyes
; then
16206 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16211 for ac_func
in snprintf
16213 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16214 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16215 cat >>confdefs.h
<<_ACEOF
16216 #define HAVE_SNPRINTF 1
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16225 $as_echo_n "checking whether GLib is linked in... " >&6; }
16226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16233 g_print ("Hello world");
16238 if ac_fn_c_try_link
"$LINENO"; then :
16243 rm -f core conftest.err conftest.
$ac_objext \
16244 conftest
$ac_exeext conftest.
$ac_ext
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16246 $as_echo "$links_glib" >&6; }
16247 if test "${links_glib}" = "yes"; then
16249 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16251 if test "$HAVE_NS" = no
;then
16252 XGSELOBJ
=xgselect.o
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16258 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16259 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16260 $as_echo_n "(cached) " >&6
16262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16264 #include <langinfo.h>
16268 char* cs = nl_langinfo(CODESET);
16273 if ac_fn_c_try_link
"$LINENO"; then :
16274 emacs_cv_langinfo_codeset
=yes
16276 emacs_cv_langinfo_codeset
=no
16278 rm -f core conftest.err conftest.
$ac_objext \
16279 conftest
$ac_exeext conftest.
$ac_ext
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16283 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16284 if test $emacs_cv_langinfo_codeset = yes; then
16286 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16291 $as_echo_n "checking for mbstate_t... " >&6; }
16292 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16293 $as_echo_n "(cached) " >&6
16295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297 $ac_includes_default
16298 # include <wchar.h>
16302 mbstate_t x; return sizeof x;
16307 if ac_fn_c_try_compile
"$LINENO"; then :
16308 ac_cv_type_mbstate_t
=yes
16310 ac_cv_type_mbstate_t
=no
16312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16315 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16316 if test $ac_cv_type_mbstate_t = yes; then
16318 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16322 $as_echo "#define mbstate_t int" >>confdefs.h
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16327 $as_echo_n "checking for C restricted array declarations... " >&6; }
16328 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16329 $as_echo_n "(cached) " >&6
16331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16333 void fred (int x[__restrict]);
16342 if ac_fn_c_try_compile
"$LINENO"; then :
16343 emacs_cv_c_restrict_arr
=yes
16345 emacs_cv_c_restrict_arr
=no
16347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16350 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16351 if test "$emacs_cv_c_restrict_arr" = yes; then
16353 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16358 if test "${opsys}" != "mingw32"; then
16360 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16365 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16368 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16369 if test "${opsys}" != "mingw32"; then
16371 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16376 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16382 if test "${opsys}" = "mingw32"; then
16383 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16386 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16391 if test "${opsys}" = "mingw32"; then
16392 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16395 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16400 $as_echo "#define subprocesses 1" >>confdefs.h
16404 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16409 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16413 if test "${opsys}" = "mingw32"; then
16414 $as_echo "#define DEVICE_SEP ':'" >>confdefs.h
16417 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)" >>confdefs.h
16421 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16425 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16429 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16433 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16437 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16445 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
16446 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16452 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16459 irix6-5 | sol2
* | unixware
)
16461 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16466 emacs_broken_SIGIO
=no
16469 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
16470 emacs_broken_SIGIO
=yes
16475 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16481 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16489 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16495 darwin | dragonfly | freebsd | netbsd | openbsd
)
16497 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16503 netbsd | openbsd
) sound_device
="/dev/audio" ;;
16504 *) sound_device
="/dev/dsp" ;;
16508 cat >>confdefs.h
<<_ACEOF
16509 #define DEFAULT_SOUND_DEVICE "$sound_device"
16515 darwin | gnu-linux | gnu-kfreebsd
)
16517 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16524 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
16526 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16540 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16542 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16544 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16549 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16551 $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
16553 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16555 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16560 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16562 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16564 $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
16566 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16568 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16573 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16577 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd
)
16578 if test "x$ac_cv_func_grantpt" = xyes
; then
16580 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16582 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16584 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
16586 if test "x$ac_cv_func_posix_openpt" = xyes
; then
16587 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
16589 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16591 elif test "x$ac_cv_func_getpt" = xyes
; then
16592 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16594 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16597 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16601 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16607 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16609 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16611 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16616 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16618 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16620 $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
16622 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16624 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16629 $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
16634 $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
16642 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16644 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16647 $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
16656 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin
)
16657 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16661 gnu-linux | gnu-kfreebsd
)
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16664 $as_echo_n "checking for signals via characters... " >&6; }
16665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16668 #include <linux/version.h>
16669 #if LINUX_VERSION_CODE < 0x20400
16670 # error "Linux version too old"
16681 if ac_fn_c_try_cpp
"$LINENO"; then :
16682 emacs_signals_via_chars
=yes
16684 emacs_signals_via_chars
=no
16686 rm -f conftest.err conftest.
$ac_ext
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16689 $as_echo "$emacs_signals_via_chars" >&6; }
16690 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16700 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16704 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16708 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16717 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16720 gnu | dragonfly | freebsd | netbsd | openbsd
)
16722 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16724 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16728 gnu-linux | gnu-kfreebsd
)
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16744 if ac_fn_c_try_cpp
"$LINENO"; then :
16746 $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
16749 rm -f conftest.err conftest.
$ac_ext
16754 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16764 gnu-linux | gnu-kfreebsd
)
16765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16768 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16769 || defined __alpha__ || defined __mips__ || defined __s390__ \
16770 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16771 || defined __ia64__ || defined __sh__
16774 # error "setjmp not known to work on this arch"
16785 if ac_fn_c_try_cpp
"$LINENO"; then :
16786 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16789 rm -f conftest.err conftest.
$ac_ext
16794 if test x
$GCC = xyes
; then
16795 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16799 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2
* )
16800 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16806 $as_echo_n "checking for _setjmp... " >&6; }
16807 if test "${emacs_cv_func__setjmp+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 #include <setjmp.h>
16814 # define _longjmp longjmp
16827 if ac_fn_c_try_link
"$LINENO"; then :
16828 emacs_cv_func__setjmp
=yes
16830 emacs_cv_func__setjmp
=no
16832 rm -f core conftest.err conftest.
$ac_objext \
16833 conftest
$ac_exeext conftest.
$ac_ext
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16836 $as_echo "$emacs_cv_func__setjmp" >&6; }
16837 if test $emacs_cv_func__setjmp = yes; then
16839 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16843 $as_echo_n "checking for sigsetjmp... " >&6; }
16844 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16845 $as_echo_n "(cached) " >&6
16847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16849 #include <setjmp.h>
16855 if (! sigsetjmp (j, 1))
16861 if ac_fn_c_try_link
"$LINENO"; then :
16862 emacs_cv_func_sigsetjmp
=yes
16864 emacs_cv_func_sigsetjmp
=no
16866 rm -f core conftest.err conftest.
$ac_objext \
16867 conftest
$ac_exeext conftest.
$ac_ext
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16870 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16871 if test $emacs_cv_func_sigsetjmp = yes; then
16873 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16881 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16890 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16904 $as_echo "#define USG /**/" >>confdefs.h
16906 $as_echo "#define USG5 /**/" >>confdefs.h
16908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16912 # error "_AIX not defined"
16923 if ac_fn_c_try_cpp
"$LINENO"; then :
16927 $as_echo "#define _AIX /**/" >>confdefs.h
16930 rm -f conftest.err conftest.
$ac_ext
16935 $as_echo "#define CYGWIN 1" >>confdefs.h
16941 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16945 gnu-linux | gnu-kfreebsd
)
16946 $as_echo "#define USG /**/" >>confdefs.h
16949 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16954 $as_echo "#define USG /**/" >>confdefs.h
16956 $as_echo "#define USG5 /**/" >>confdefs.h
16959 $as_echo "#define HPUX /**/" >>confdefs.h
16964 $as_echo "#define USG /**/" >>confdefs.h
16966 $as_echo "#define USG5 /**/" >>confdefs.h
16968 $as_echo "#define USG5_4 /**/" >>confdefs.h
16971 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16976 $as_echo "#define DOS_NT /**/" >>confdefs.h
16979 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16981 if test "x$ac_enable_checking" != "x" ; then
16983 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16989 $as_echo "#define USG /**/" >>confdefs.h
16991 $as_echo "#define USG5 /**/" >>confdefs.h
16993 $as_echo "#define USG5_4 /**/" >>confdefs.h
16996 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17001 $as_echo "#define USG /**/" >>confdefs.h
17003 $as_echo "#define USG5 /**/" >>confdefs.h
17005 $as_echo "#define USG5_4 /**/" >>confdefs.h
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17011 $as_echo_n "checking for usable FIONREAD... " >&6; }
17012 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17017 emacs_cv_usable_FIONREAD
=no
17021 emacs_cv_usable_FIONREAD
=yes
17025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 #include <sys/types.h>
17028 #include <sys/ioctl.h>
17030 # include <sys/filio.h>
17036 int foo = ioctl (0, FIONREAD, &foo);
17041 if ac_fn_c_try_compile
"$LINENO"; then :
17042 emacs_cv_usable_FIONREAD
=yes
17044 emacs_cv_usable_FIONREAD
=no
17046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17051 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17052 if test $emacs_cv_usable_FIONREAD = yes; then
17054 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17057 if test $emacs_broken_SIGIO = no
; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17059 $as_echo_n "checking for usable SIGIO... " >&6; }
17060 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17061 $as_echo_n "(cached) " >&6
17063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17066 #include <signal.h>
17071 int foo = SIGIO | F_SETFL | FASYNC;
17076 if ac_fn_c_try_compile
"$LINENO"; then :
17077 emacs_cv_usable_SIGIO
=yes
17079 emacs_cv_usable_SIGIO
=no
17081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17084 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17085 if test $emacs_cv_usable_SIGIO = yes; then
17087 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17097 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17103 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17109 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17115 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17120 # Set up the CFLAGS for real compilation, so we can substitute it.
17121 CFLAGS
="$REAL_CFLAGS"
17122 CPPFLAGS
="$REAL_CPPFLAGS"
17124 ## Hack to detect a buggy GCC version.
17125 if test "x$GCC" = xyes \
17126 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17127 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
17128 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
17129 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17132 version
=$PACKAGE_VERSION
17134 copyright
="Copyright (C) 2013 Free Software Foundation, Inc."
17136 cat >>confdefs.h
<<_ACEOF
17137 #define COPYRIGHT "$copyright"
17142 ### Specify what sort of things we'll be editing into Makefile and config.h.
17143 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17169 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17170 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17171 ## end of LIBX_BASE, but nothing ever set it.
17176 ## Used in lwlib/Makefile.in.
17185 if test -n "${term_header}"; then
17187 cat >>confdefs.h
<<_ACEOF
17188 #define TERM_HEADER "${term_header}"
17194 cat >>confdefs.h
<<_ACEOF
17195 #define EMACS_CONFIGURATION "${canonical}"
17198 emacs_config_options
=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
17200 cat >>confdefs.h
<<_ACEOF
17201 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17208 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17216 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17218 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17221 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17223 if test "$HAVE_XFT" = "yes"; then
17224 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17225 elif test "$HAVE_FREETYPE" = "yes"; then
17226 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17236 if test "${USE_X_TOOLKIT}" != "none" ; then
17237 WIDGET_OBJ
=widget.o
17239 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17241 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17243 $as_echo "#define USE_LUCID 1" >>confdefs.h
17245 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17247 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17252 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17253 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17257 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17258 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17259 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17263 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17264 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17267 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17273 case "$USE_X_TOOLKIT" in
17274 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17275 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17276 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17280 if test "${opsys}" != "mingw32"; then
17281 if test "$USE_X_TOOLKIT" = "none"; then
17282 LIBXT_OTHER
="\$(LIBXSM)"
17283 OLDXMENU_TARGET
="really-oldXMenu"
17285 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17286 OLDXMENU_TARGET
="really-lwlib"
17291 ## The X Menu stuff is present in the X10 distribution, but missing
17292 ## from X11. If we have X10, just use the installed library;
17293 ## otherwise, use our own copy.
17294 if test "${HAVE_X11}" = "yes" ; then
17296 $as_echo "#define HAVE_X11 1" >>confdefs.h
17299 if test "$USE_X_TOOLKIT" = "none"; then
17300 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17302 OLDXMENU
="\${lwlibdir}/liblw.a"
17304 LIBXMENU
="\$(OLDXMENU)"
17305 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17306 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17308 ## For a syntactically valid Makefile; not actually used for anything.
17309 ## See comments in src/Makefile.in.
17311 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17312 if test "${HAVE_X_WINDOWS}" = "yes"; then
17321 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17334 if test "${HAVE_MENUS}" = "yes" ; then
17336 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17340 if test "${GNU_MALLOC}" = "yes" ; then
17342 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17347 if test "${REL_ALLOC}" = "yes" ; then
17349 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17352 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17356 if test "$opsys" = "cygwin"; then
17357 CYGWIN_OBJ
="sheap.o cygw32.o"
17358 ## Cygwin differs because of its unexec().
17360 POST_ALLOC_OBJ
=lastfile.o
17361 elif test "$opsys" = "mingw32"; then
17364 POST_ALLOC_OBJ
=lastfile.o
17367 PRE_ALLOC_OBJ
=lastfile.o
17374 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17375 # it temporarily reverts them to their pre-pkg-config values,
17376 # because gnulib needs to work with both src (which uses the
17377 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17378 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17379 # and it therefore needs to run in an environment where LIBS does not
17380 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17381 # for some package unrelated to lib-src.
17382 SAVE_CFLAGS
=$CFLAGS
17384 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
17385 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17397 LIBC_FATAL_STDERR_
=1
17398 export LIBC_FATAL_STDERR_
17400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17401 # for constant arguments. Useless!
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17403 $as_echo_n "checking for working alloca.h... " >&6; }
17404 if test "${ac_cv_working_alloca_h+set}" = set; then :
17405 $as_echo_n "(cached) " >&6
17407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17409 #include <alloca.h>
17413 char *p = (char *) alloca (2 * sizeof (int));
17419 if ac_fn_c_try_link
"$LINENO"; then :
17420 ac_cv_working_alloca_h
=yes
17422 ac_cv_working_alloca_h
=no
17424 rm -f core conftest.err conftest.
$ac_objext \
17425 conftest
$ac_exeext conftest.
$ac_ext
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17428 $as_echo "$ac_cv_working_alloca_h" >&6; }
17429 if test $ac_cv_working_alloca_h = yes; then
17431 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17436 $as_echo_n "checking for alloca... " >&6; }
17437 if test "${ac_cv_func_alloca_works+set}" = set; then :
17438 $as_echo_n "(cached) " >&6
17440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17443 # define alloca __builtin_alloca
17446 # include <malloc.h>
17447 # define alloca _alloca
17449 # ifdef HAVE_ALLOCA_H
17450 # include <alloca.h>
17455 # ifndef alloca /* predefined by HP cc +Olibcalls */
17466 char *p = (char *) alloca (1);
17472 if ac_fn_c_try_link
"$LINENO"; then :
17473 ac_cv_func_alloca_works
=yes
17475 ac_cv_func_alloca_works
=no
17477 rm -f core conftest.err conftest.
$ac_objext \
17478 conftest
$ac_exeext conftest.
$ac_ext
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17481 $as_echo "$ac_cv_func_alloca_works" >&6; }
17483 if test $ac_cv_func_alloca_works = yes; then
17485 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17488 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17489 # that cause trouble. Some versions do not even contain alloca or
17490 # contain a buggy version. If you still want to use their alloca,
17491 # use ar to extract alloca.o from them instead of compiling alloca.c.
17497 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
17499 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17503 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17504 if test "${ac_cv_os_cray+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 #if defined CRAY && ! defined CRAY2
17516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17517 $EGREP "webecray" >/dev
/null
2>&1; then :
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17526 $as_echo "$ac_cv_os_cray" >&6; }
17527 if test $ac_cv_os_cray = yes; then
17528 for ac_func
in _getb67 GETB67 getb67
; do
17529 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17531 eval as_val
=\$
$as_ac_var
17532 if test "x$as_val" = x
""yes; then :
17534 cat >>confdefs.h
<<_ACEOF
17535 #define CRAY_STACKSEG_END $ac_func
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17545 $as_echo_n "checking stack direction for C alloca... " >&6; }
17546 if test "${ac_cv_c_stack_direction+set}" = set; then :
17547 $as_echo_n "(cached) " >&6
17549 if test "$cross_compiling" = yes; then :
17550 ac_cv_c_stack_direction
=0
17552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17554 $ac_includes_default
17556 find_stack_direction (int *addr, int depth)
17558 int dir, dummy = 0;
17561 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17562 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17563 return dir + dummy;
17567 main (int argc, char **argv)
17569 return find_stack_direction (0, argc + !argv + 20) < 0;
17572 if ac_fn_c_try_run
"$LINENO"; then :
17573 ac_cv_c_stack_direction
=1
17575 ac_cv_c_stack_direction
=-1
17577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17583 $as_echo "$ac_cv_c_stack_direction" >&6; }
17584 cat >>confdefs.h
<<_ACEOF
17585 #define STACK_DIRECTION $ac_cv_c_stack_direction
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17595 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17596 if test "${ac_cv_c_bigendian+set}" = set; then :
17597 $as_echo_n "(cached) " >&6
17599 ac_cv_c_bigendian
=unknown
17600 # See if we're dealing with a universal compiler.
17601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603 #ifndef __APPLE_CC__
17604 not a universal capable compiler
17609 if ac_fn_c_try_compile
"$LINENO"; then :
17611 # Check for potential -arch flags. It is not universal unless
17612 # there are at least two -arch flags with different values.
17615 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17616 if test -n "$ac_prev"; then
17618 i?
86 | x86_64 | ppc | ppc64
)
17619 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
17622 ac_cv_c_bigendian
=universal
17628 elif test "x$ac_word" = "x-arch"; then
17633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17634 if test $ac_cv_c_bigendian = unknown
; then
17635 # See if sys/param.h defines the BYTE_ORDER macro.
17636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638 #include <sys/types.h>
17639 #include <sys/param.h>
17644 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17645 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17647 bogus endian macros
17654 if ac_fn_c_try_compile
"$LINENO"; then :
17655 # It does; now see whether it defined to BIG_ENDIAN or not.
17656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658 #include <sys/types.h>
17659 #include <sys/param.h>
17664 #if BYTE_ORDER != BIG_ENDIAN
17672 if ac_fn_c_try_compile
"$LINENO"; then :
17673 ac_cv_c_bigendian
=yes
17675 ac_cv_c_bigendian
=no
17677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17681 if test $ac_cv_c_bigendian = unknown
; then
17682 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17685 #include <limits.h>
17690 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17691 bogus endian macros
17698 if ac_fn_c_try_compile
"$LINENO"; then :
17699 # It does; now see whether it defined to _BIG_ENDIAN or not.
17700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17702 #include <limits.h>
17707 #ifndef _BIG_ENDIAN
17715 if ac_fn_c_try_compile
"$LINENO"; then :
17716 ac_cv_c_bigendian
=yes
17718 ac_cv_c_bigendian
=no
17720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17724 if test $ac_cv_c_bigendian = unknown
; then
17725 # Compile a test program.
17726 if test "$cross_compiling" = yes; then :
17727 # Try to guess by grepping values from an object file.
17728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730 short int ascii_mm[] =
17731 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17732 short int ascii_ii[] =
17733 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17734 int use_ascii (int i) {
17735 return ascii_mm[i] + ascii_ii[i];
17737 short int ebcdic_ii[] =
17738 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17739 short int ebcdic_mm[] =
17740 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17741 int use_ebcdic (int i) {
17742 return ebcdic_mm[i] + ebcdic_ii[i];
17749 return use_ascii (foo) == use_ebcdic (foo);
17754 if ac_fn_c_try_compile
"$LINENO"; then :
17755 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
17756 ac_cv_c_bigendian
=yes
17758 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
17759 if test "$ac_cv_c_bigendian" = unknown
; then
17760 ac_cv_c_bigendian
=no
17762 # finding both strings is unlikely to happen, but who knows?
17763 ac_cv_c_bigendian
=unknown
17767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771 $ac_includes_default
17776 /* Are we little or big endian? From Harbison&Steele. */
17780 char c[sizeof (long int)];
17783 return u.c[sizeof (long int) - 1] == 1;
17789 if ac_fn_c_try_run
"$LINENO"; then :
17790 ac_cv_c_bigendian
=no
17792 ac_cv_c_bigendian
=yes
17794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17801 $as_echo "$ac_cv_c_bigendian" >&6; }
17802 case $ac_cv_c_bigendian in #(
17804 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17810 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17814 as_fn_error
"unknown endianness
17815 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17827 GNULIB_EUIDACCESS
=0;
17828 GNULIB_FACCESSAT
=0;
17831 GNULIB_FDATASYNC
=0;
17833 GNULIB_FTRUNCATE
=0;
17835 GNULIB_GETDOMAINNAME
=0;
17836 GNULIB_GETDTABLESIZE
=0;
17837 GNULIB_GETGROUPS
=0;
17838 GNULIB_GETHOSTNAME
=0;
17840 GNULIB_GETLOGIN_R
=0;
17841 GNULIB_GETPAGESIZE
=0;
17842 GNULIB_GETUSERSHELL
=0;
17843 GNULIB_GROUP_MEMBER
=0;
17855 GNULIB_READLINKAT
=0;
17857 GNULIB_SETHOSTNAME
=0;
17860 GNULIB_SYMLINKAT
=0;
17861 GNULIB_TTYNAME_R
=0;
17862 GNULIB_UNISTD_H_NONBLOCKING
=0;
17863 GNULIB_UNISTD_H_SIGPIPE
=0;
17878 HAVE_GETDTABLESIZE
=1;
17880 HAVE_GETHOSTNAME
=1;
17882 HAVE_GETPAGESIZE
=1;
17883 HAVE_GROUP_MEMBER
=1;
17893 HAVE_SETHOSTNAME
=1;
17899 HAVE_DECL_ENVIRON
=1;
17900 HAVE_DECL_FCHDIR
=1;
17901 HAVE_DECL_FDATASYNC
=1;
17902 HAVE_DECL_GETDOMAINNAME
=1;
17903 HAVE_DECL_GETLOGIN_R
=1;
17904 HAVE_DECL_GETPAGESIZE
=1;
17905 HAVE_DECL_GETUSERSHELL
=1;
17906 HAVE_DECL_SETHOSTNAME
=1;
17907 HAVE_DECL_TTYNAME_R
=1;
17909 HAVE_SYS_PARAM_H
=0;
17914 REPLACE_FCHOWNAT
=0;
17915 REPLACE_FTRUNCATE
=0;
17917 REPLACE_GETDOMAINNAME
=0;
17918 REPLACE_GETLOGIN_R
=0;
17919 REPLACE_GETGROUPS
=0;
17920 REPLACE_GETPAGESIZE
=0;
17929 REPLACE_READLINK
=0;
17933 REPLACE_TTYNAME_R
=0;
17935 REPLACE_UNLINKAT
=0;
17938 UNISTD_H_HAVE_WINSOCK2_H
=0;
17939 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17945 GNULIB_REWINDDIR
=0;
17948 GNULIB_FDOPENDIR
=0;
17950 GNULIB_ALPHASORT
=0;
17956 HAVE_DECL_FDOPENDIR
=1;
17961 REPLACE_CLOSEDIR
=0;
17963 REPLACE_FDOPENDIR
=0;
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17968 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17969 if test "${gl_cv_have_include_next+set}" = set; then :
17970 $as_echo_n "(cached) " >&6
17972 rm -rf conftestd1a conftestd1b conftestd2
17973 mkdir conftestd1a conftestd1b conftestd2
17974 cat <<EOF > conftestd1a/conftest.h
17975 #define DEFINED_IN_CONFTESTD1
17976 #include_next <conftest.h>
17977 #ifdef DEFINED_IN_CONFTESTD2
17980 #error "include_next doesn't work"
17983 cat <<EOF > conftestd1b/conftest.h
17984 #define DEFINED_IN_CONFTESTD1
17986 #include_next <conftest.h>
17987 #ifdef DEFINED_IN_CONFTESTD2
17990 #error "include_next doesn't work"
17993 cat <<EOF > conftestd2/conftest.h
17994 #ifndef DEFINED_IN_CONFTESTD1
17995 #error "include_next test doesn't work"
17997 #define DEFINED_IN_CONFTESTD2
17999 gl_save_CPPFLAGS
="$CPPFLAGS"
18000 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h. */
18003 #include <conftest.h>
18005 if ac_fn_c_try_compile
"$LINENO"; then :
18006 gl_cv_have_include_next
=yes
18008 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18011 #include <conftest.h>
18013 if ac_fn_c_try_compile
"$LINENO"; then :
18014 gl_cv_have_include_next
=buggy
18016 gl_cv_have_include_next
=no
18018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18022 CPPFLAGS
="$gl_save_CPPFLAGS"
18023 rm -rf conftestd1a conftestd1b conftestd2
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18027 $as_echo "$gl_cv_have_include_next" >&6; }
18028 PRAGMA_SYSTEM_HEADER
=
18029 if test $gl_cv_have_include_next = yes; then
18030 INCLUDE_NEXT
=include_next
18031 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18032 if test -n "$GCC"; then
18033 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
18036 if test $gl_cv_have_include_next = buggy
; then
18037 INCLUDE_NEXT
=include
18038 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
18040 INCLUDE_NEXT
=include
18041 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18048 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18049 if test "${gl_cv_pragma_columns+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18061 $EGREP "choke me" >/dev
/null
2>&1; then :
18062 gl_cv_pragma_columns
=yes
18064 gl_cv_pragma_columns
=no
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18071 $as_echo "$gl_cv_pragma_columns" >&6; }
18072 if test $gl_cv_pragma_columns = yes; then
18073 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18083 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18084 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18085 $as_echo_n "(cached) " >&6
18087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18088 /* end confdefs.h. */
18089 /* On HP-UX before 11.23, strtold returns a struct instead of
18090 long double. Reject implementations like that, by requiring
18091 compatibility with the C99 prototype. */
18092 #include <stdlib.h>
18093 static long double (*p) (char const *, char **) = strtold;
18095 test (char const *nptr, char **endptr)
18098 r = strtold (nptr, endptr);
18104 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18109 if ac_fn_c_try_link
"$LINENO"; then :
18110 gl_cv_func_c99_strtold
=yes
18112 gl_cv_func_c99_strtold
=no
18114 rm -f core conftest.err conftest.
$ac_objext \
18115 conftest
$ac_exeext conftest.
$ac_ext
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18118 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18119 if test $gl_cv_func_c99_strtold = yes; then
18121 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18133 $as_echo_n "checking if environ is properly declared... " >&6; }
18134 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18141 #include <unistd.h>
18143 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18144 #include <stdlib.h>
18146 extern struct { int foo; } environ;
18155 if ac_fn_c_try_compile
"$LINENO"; then :
18156 gt_cv_var_environ_declaration
=no
18158 gt_cv_var_environ_declaration
=yes
18160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18164 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18165 if test $gt_cv_var_environ_declaration = yes; then
18167 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18172 if test $gt_cv_var_environ_declaration != yes; then
18173 HAVE_DECL_ENVIRON
=0
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18179 $as_echo_n "checking for complete errno.h... " >&6; }
18180 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18181 $as_echo_n "(cached) " >&6
18184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18188 #if !defined ETXTBSY
18191 #if !defined ENOMSG
18197 #if !defined ENOLINK
18200 #if !defined EPROTO
18203 #if !defined EMULTIHOP
18206 #if !defined EBADMSG
18209 #if !defined EOVERFLOW
18212 #if !defined ENOTSUP
18215 #if !defined ENETRESET
18218 #if !defined ECONNABORTED
18221 #if !defined ESTALE
18224 #if !defined EDQUOT
18227 #if !defined ECANCELED
18230 #if !defined EOWNERDEAD
18233 #if !defined ENOTRECOVERABLE
18236 #if !defined EILSEQ
18241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18242 $EGREP "booboo" >/dev
/null
2>&1; then :
18243 gl_cv_header_errno_h_complete
=no
18245 gl_cv_header_errno_h_complete
=yes
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18252 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18253 if test $gl_cv_header_errno_h_complete = yes; then
18264 if test $gl_cv_have_include_next = yes; then
18265 gl_cv_next_errno_h
='<'errno.h
'>'
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18268 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18269 if test "${gl_cv_next_errno_h+set}" = set; then :
18270 $as_echo_n "(cached) " >&6
18273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18279 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18280 *) gl_absname_cpp
="$ac_cpp" ;;
18285 gl_dirsep_regex
='[/\\]'
18288 gl_dirsep_regex
='\/'
18291 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18293 gl_header_literal_regex
=`echo 'errno.h' \
18294 | sed -e "$gl_make_literal_regex_sed"`
18295 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18296 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18301 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18302 sed -n "$gl_absolute_header_sed"`'"'
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18307 $as_echo "$gl_cv_next_errno_h" >&6; }
18309 NEXT_ERRNO_H
=$gl_cv_next_errno_h
18311 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18312 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18313 gl_next_as_first_directive
='<'errno.h
'>'
18315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18316 gl_next_as_first_directive
=$gl_cv_next_errno_h
18318 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
18326 if test -n "$ERRNO_H"; then
18327 GL_GENERATE_ERRNO_H_TRUE
=
18328 GL_GENERATE_ERRNO_H_FALSE
='#'
18330 GL_GENERATE_ERRNO_H_TRUE
='#'
18331 GL_GENERATE_ERRNO_H_FALSE
=
18335 if test -n "$ERRNO_H"; then
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18337 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18338 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18352 $EGREP "yes" >/dev
/null
2>&1; then :
18353 gl_cv_header_errno_h_EMULTIHOP
=yes
18355 gl_cv_header_errno_h_EMULTIHOP
=no
18359 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
18360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18363 #define _XOPEN_SOURCE_EXTENDED 1
18370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18371 $EGREP "yes" >/dev
/null
2>&1; then :
18372 gl_cv_header_errno_h_EMULTIHOP
=hidden
18376 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
18377 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18378 #define _XOPEN_SOURCE_EXTENDED 1
18380 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18382 #include <stdlib.h>
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18392 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18393 case $gl_cv_header_errno_h_EMULTIHOP in
18395 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
18398 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
18406 if test -n "$ERRNO_H"; then
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18408 $as_echo_n "checking for ENOLINK value... " >&6; }
18409 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18423 $EGREP "yes" >/dev
/null
2>&1; then :
18424 gl_cv_header_errno_h_ENOLINK
=yes
18426 gl_cv_header_errno_h_ENOLINK
=no
18430 if test $gl_cv_header_errno_h_ENOLINK = no
; then
18431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18434 #define _XOPEN_SOURCE_EXTENDED 1
18441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18442 $EGREP "yes" >/dev
/null
2>&1; then :
18443 gl_cv_header_errno_h_ENOLINK
=hidden
18447 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
18448 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18449 #define _XOPEN_SOURCE_EXTENDED 1
18451 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18453 #include <stdlib.h>
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18463 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18464 case $gl_cv_header_errno_h_ENOLINK in
18466 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
18469 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
18477 if test -n "$ERRNO_H"; then
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18479 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18480 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18481 $as_echo_n "(cached) " >&6
18484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18494 $EGREP "yes" >/dev
/null
2>&1; then :
18495 gl_cv_header_errno_h_EOVERFLOW
=yes
18497 gl_cv_header_errno_h_EOVERFLOW
=no
18501 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
18502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18505 #define _XOPEN_SOURCE_EXTENDED 1
18512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18513 $EGREP "yes" >/dev
/null
2>&1; then :
18514 gl_cv_header_errno_h_EOVERFLOW
=hidden
18518 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
18519 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18520 #define _XOPEN_SOURCE_EXTENDED 1
18522 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18524 #include <stdlib.h>
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18534 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18535 case $gl_cv_header_errno_h_EOVERFLOW in
18537 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
18540 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
18557 GNULIB_NONBLOCKING
=0;
18567 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18568 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18572 cat >>confdefs.h
<<_ACEOF
18578 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18579 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then :
18585 cat >>confdefs.h
<<_ACEOF
18586 #define HAVE_DECL_FDATASYNC $ac_have_decl
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18592 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18593 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18594 $as_echo_n "(cached) " >&6
18596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18599 #include <sys/types.h>
18600 #include <sys/stat.h>
18604 struct stat s; s.st_dm_mode;
18609 if ac_fn_c_try_compile
"$LINENO"; then :
18610 ac_cv_struct_st_dm_mode
=yes
18612 ac_cv_struct_st_dm_mode
=no
18614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18617 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18619 if test $ac_cv_struct_st_dm_mode = yes; then
18621 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18626 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18627 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
18633 cat >>confdefs.h
<<_ACEOF
18634 #define HAVE_DECL_STRMODE $ac_have_decl
18654 GNULIB_UTIMENSAT
=0;
18668 REPLACE_FUTIMENS
=0;
18674 REPLACE_UTIMENSAT
=0;
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18678 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18679 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18680 $as_echo_n "(cached) " >&6
18682 rm -f conftest.sym conftest.
file
18683 echo >conftest.
file
18684 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18685 if test "$cross_compiling" = yes; then :
18687 # Guess yes on glibc systems.
18688 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18689 # If we don't know, assume the worst.
18690 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18695 /* end confdefs.h. */
18696 $ac_includes_default
18701 /* Linux will dereference the symlink and fail, as required by
18702 POSIX. That is better in the sense that it means we will not
18703 have to compile and use the lstat wrapper. */
18704 return lstat ("conftest.sym/", &sbuf) == 0;
18710 if ac_fn_c_try_run
"$LINENO"; then :
18711 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18713 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18715 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18716 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18720 # If the 'ln -s' command failed, then we probably don't even
18721 # have an lstat function.
18722 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18724 rm -f conftest.sym conftest.
file
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18728 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18729 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18732 cat >>confdefs.h
<<_ACEOF
18733 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18746 GNULIB_CALLOC_POSIX
=0;
18747 GNULIB_CANONICALIZE_FILE_NAME
=0;
18748 GNULIB_GETLOADAVG
=0;
18749 GNULIB_GETSUBOPT
=0;
18751 GNULIB_MALLOC_POSIX
=0;
18755 GNULIB_MKOSTEMPS
=0;
18758 GNULIB_POSIX_OPENPT
=0;
18760 GNULIB_PTSNAME_R
=0;
18764 GNULIB_REALLOC_POSIX
=0;
18767 GNULIB_SECURE_GETENV
=0;
18772 GNULIB_SYSTEM_POSIX
=0;
18778 HAVE_CANONICALIZE_FILE_NAME
=1;
18779 HAVE_DECL_GETLOADAVG
=1;
18787 HAVE_POSIX_OPENPT
=1;
18795 HAVE_SECURE_GETENV
=1;
18797 HAVE_DECL_SETENV
=1;
18801 HAVE_STRUCT_RANDOM_DATA
=1;
18802 HAVE_SYS_LOADAVG_H
=0;
18804 HAVE_DECL_UNSETENV
=1;
18806 REPLACE_CANONICALIZE_FILE_NAME
=0;
18811 REPLACE_PTSNAME_R
=0;
18813 REPLACE_RANDOM_R
=0;
18815 REPLACE_REALPATH
=0;
18818 REPLACE_UNSETENV
=0;
18836 if test $gl_cv_have_include_next = yes; then
18837 gl_cv_next_getopt_h
='<'getopt.h
'>'
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18840 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18841 if test "${gl_cv_next_getopt_h+set}" = set; then :
18842 $as_echo_n "(cached) " >&6
18845 if test $ac_cv_header_getopt_h = yes; then
18848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18849 /* end confdefs.h. */
18850 #include <getopt.h>
18854 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18855 *) gl_absname_cpp
="$ac_cpp" ;;
18860 gl_dirsep_regex
='[/\\]'
18863 gl_dirsep_regex
='\/'
18866 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18868 gl_header_literal_regex
=`echo 'getopt.h' \
18869 | sed -e "$gl_make_literal_regex_sed"`
18870 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18871 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18876 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18877 sed -n "$gl_absolute_header_sed"`'"'
18879 gl_cv_next_getopt_h
='<'getopt.h
'>'
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18885 $as_echo "$gl_cv_next_getopt_h" >&6; }
18887 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
18889 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18891 gl_next_as_first_directive
='<'getopt.h
'>'
18893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18894 gl_next_as_first_directive
=$gl_cv_next_getopt_h
18896 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
18901 if test $ac_cv_header_getopt_h = yes; then
18910 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18911 for ac_header
in getopt.h
18913 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18914 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
18915 cat >>confdefs.h
<<_ACEOF
18916 #define HAVE_GETOPT_H 1
18920 gl_replace_getopt
=yes
18927 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
18928 for ac_func
in getopt_long_only
18930 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18931 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
18932 cat >>confdefs.h
<<_ACEOF
18933 #define HAVE_GETOPT_LONG_ONLY 1
18937 gl_replace_getopt
=yes
18943 if test -z "$gl_replace_getopt"; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18945 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18946 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18950 if test $cross_compiling = no
; then
18951 if test "$cross_compiling" = yes; then :
18952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18954 as_fn_error
"cannot run test program while cross compiling
18955 See \`config.log' for more details." "$LINENO" 5; }
18957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18960 #include <unistd.h>
18961 #include <stdlib.h>
18962 #include <string.h>
18967 static char program[] = "program";
18968 static char a[] = "-a";
18969 static char foo[] = "foo";
18970 static char bar[] = "bar";
18971 char *argv[] = { program, a, foo, bar, NULL };
18974 c = getopt (4, argv, "ab");
18977 c = getopt (4, argv, "ab");
18980 if (!(optind == 2))
18986 if ac_fn_c_try_run
"$LINENO"; then :
18987 gl_cv_func_getopt_posix
=maybe
18989 gl_cv_func_getopt_posix
=no
18991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18995 if test $gl_cv_func_getopt_posix = maybe
; then
18996 if test "$cross_compiling" = yes; then :
18997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18999 as_fn_error
"cannot run test program while cross compiling
19000 See \`config.log' for more details." "$LINENO" 5; }
19002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19003 /* end confdefs.h. */
19005 #include <unistd.h>
19006 #include <stdlib.h>
19007 #include <string.h>
19012 static char program[] = "program";
19013 static char donald[] = "donald";
19014 static char p[] = "-p";
19015 static char billy[] = "billy";
19016 static char duck[] = "duck";
19017 static char a[] = "-a";
19018 static char bar[] = "bar";
19019 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19022 c = getopt (7, argv, "+abp:q:");
19025 if (!(strcmp (argv[0], "program") == 0))
19027 if (!(strcmp (argv[1], "donald") == 0))
19029 if (!(strcmp (argv[2], "-p") == 0))
19031 if (!(strcmp (argv[3], "billy") == 0))
19033 if (!(strcmp (argv[4], "duck") == 0))
19035 if (!(strcmp (argv[5], "-a") == 0))
19037 if (!(strcmp (argv[6], "bar") == 0))
19039 if (!(optind == 1))
19045 if ac_fn_c_try_run
"$LINENO"; then :
19046 gl_cv_func_getopt_posix
=maybe
19048 gl_cv_func_getopt_posix
=no
19050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19055 if test $gl_cv_func_getopt_posix = maybe
; then
19056 if test "$cross_compiling" = yes; then :
19057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19059 as_fn_error
"cannot run test program while cross compiling
19060 See \`config.log' for more details." "$LINENO" 5; }
19062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19065 #include <unistd.h>
19066 #include <stdlib.h>
19067 #include <string.h>
19072 static char program[] = "program";
19073 static char ab[] = "-ab";
19074 char *argv[3] = { program, ab, NULL };
19075 if (getopt (2, argv, "ab:") != 'a')
19077 if (getopt (2, argv, "ab:") != '?')
19087 if ac_fn_c_try_run
"$LINENO"; then :
19088 gl_cv_func_getopt_posix
=yes
19090 gl_cv_func_getopt_posix
=no
19092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19099 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
19100 *) gl_cv_func_getopt_posix
="guessing yes";;
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19106 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19107 case "$gl_cv_func_getopt_posix" in
19108 *no
) gl_replace_getopt
=yes ;;
19112 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19114 $as_echo_n "checking for working GNU getopt function... " >&6; }
19115 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19116 $as_echo_n "(cached) " >&6
19118 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19119 # optstring is necessary for programs like m4 that have POSIX-mandated
19120 # semantics for supporting options interspersed with files.
19121 # Also, since getopt_long is a GNU extension, we require optind=0.
19122 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19123 # so take care to revert to the correct (non-)export state.
19124 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19125 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19126 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
19127 x
) gl_had_POSIXLY_CORRECT
=yes ;;
19128 *) gl_had_POSIXLY_CORRECT
= ;;
19131 export POSIXLY_CORRECT
19132 if test "$cross_compiling" = yes; then :
19133 gl_cv_func_getopt_gnu
="guessing no"
19136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19138 #include <getopt.h>
19139 #include <stddef.h>
19140 #include <string.h>
19142 #include <stdlib.h>
19143 #if defined __MACH__ && defined __APPLE__
19144 /* Avoid a crash on Mac OS X. */
19145 #include <mach/mach.h>
19146 #include <mach/mach_error.h>
19147 #include <mach/thread_status.h>
19148 #include <mach/exception.h>
19149 #include <mach/task.h>
19150 #include <pthread.h>
19151 /* The exception port on which our thread listens. */
19152 static mach_port_t our_exception_port;
19153 /* The main function of the thread listening for exceptions of type
19156 mach_exception_thread (void *arg)
19158 /* Buffer for a message to be received. */
19160 mach_msg_header_t head;
19161 mach_msg_body_t msgh_body;
19164 mach_msg_return_t retval;
19165 /* Wait for a message on the exception port. */
19166 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19167 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19168 if (retval != MACH_MSG_SUCCESS)
19173 nocrash_init (void)
19175 mach_port_t self = mach_task_self ();
19176 /* Allocate a port on which the thread shall listen for exceptions. */
19177 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19179 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19180 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19181 MACH_MSG_TYPE_MAKE_SEND)
19183 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19185 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19186 /* Create the thread listening on the exception port. */
19187 pthread_attr_t attr;
19189 if (pthread_attr_init (&attr) == 0
19190 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19191 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19192 pthread_attr_destroy (&attr);
19193 /* Replace the exception port info for these exceptions with our own.
19194 Note that we replace the exception port for the entire task, not only
19195 for a particular thread. This has the effect that when our exception
19196 port gets the message, the thread specific exception port has already
19197 been asked, and we don't need to bother about it.
19198 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19199 task_set_exception_ports (self, mask, our_exception_port,
19200 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19205 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19206 /* Avoid a crash on native Windows. */
19207 #define WIN32_LEAN_AND_MEAN
19208 #include <windows.h>
19209 #include <winerror.h>
19211 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19213 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19215 case EXCEPTION_ACCESS_VIOLATION:
19216 case EXCEPTION_IN_PAGE_ERROR:
19217 case EXCEPTION_STACK_OVERFLOW:
19218 case EXCEPTION_GUARD_PAGE:
19219 case EXCEPTION_PRIV_INSTRUCTION:
19220 case EXCEPTION_ILLEGAL_INSTRUCTION:
19221 case EXCEPTION_DATATYPE_MISALIGNMENT:
19222 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19223 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19226 return EXCEPTION_CONTINUE_SEARCH;
19229 nocrash_init (void)
19231 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19234 /* Avoid a crash on POSIX systems. */
19235 #include <signal.h>
19236 /* A POSIX signal handler. */
19238 exception_handler (int sig)
19243 nocrash_init (void)
19246 signal (SIGSEGV, exception_handler);
19249 signal (SIGBUS, exception_handler);
19263 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19264 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19265 OSF/1 5.1, Solaris 10. */
19267 static char conftest[] = "conftest";
19268 static char plus[] = "-+";
19269 char *argv[3] = { conftest, plus, NULL };
19271 if (getopt (2, argv, "+a") != '?')
19274 /* This code succeeds on glibc 2.8, mingw,
19275 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19276 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19278 static char program[] = "program";
19279 static char p[] = "-p";
19280 static char foo[] = "foo";
19281 static char bar[] = "bar";
19282 char *argv[] = { program, p, foo, bar, NULL };
19285 if (getopt (4, argv, "p::") != 'p')
19287 else if (optarg != NULL)
19289 else if (getopt (4, argv, "p::") != -1)
19291 else if (optind != 2)
19294 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19296 static char program[] = "program";
19297 static char foo[] = "foo";
19298 static char p[] = "-p";
19299 char *argv[] = { program, foo, p, NULL };
19301 if (getopt (3, argv, "-p") != 1)
19303 else if (getopt (3, argv, "-p") != 'p')
19306 /* This code fails on glibc 2.11. */
19308 static char program[] = "program";
19309 static char b[] = "-b";
19310 static char a[] = "-a";
19311 char *argv[] = { program, b, a, NULL };
19312 optind = opterr = 0;
19313 if (getopt (3, argv, "+:a:b") != 'b')
19315 else if (getopt (3, argv, "+:a:b") != ':')
19318 /* This code dumps core on glibc 2.14. */
19320 static char program[] = "program";
19321 static char w[] = "-W";
19322 static char dummy[] = "dummy";
19323 char *argv[] = { program, w, dummy, NULL };
19324 optind = opterr = 1;
19325 if (getopt (3, argv, "W;") != 'W')
19334 if ac_fn_c_try_run
"$LINENO"; then :
19335 gl_cv_func_getopt_gnu
=yes
19337 gl_cv_func_getopt_gnu
=no
19339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19343 case $gl_had_POSIXLY_CORRECT in
19345 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
19346 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19351 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19352 if test "$gl_cv_func_getopt_gnu" != yes; then
19353 gl_replace_getopt
=yes
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19356 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19357 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19358 $as_echo_n "(cached) " >&6
19360 if test "$cross_compiling" = yes; then :
19362 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
19363 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <getopt.h>
19370 #include <stddef.h>
19371 #include <string.h>
19376 static const struct option long_options[] =
19378 { "xtremely-",no_argument, NULL, 1003 },
19379 { "xtra", no_argument, NULL, 1001 },
19380 { "xtreme", no_argument, NULL, 1002 },
19381 { "xtremely", no_argument, NULL, 1003 },
19382 { NULL, 0, NULL, 0 }
19384 /* This code fails on OpenBSD 5.0. */
19386 static char program[] = "program";
19387 static char xtremel[] = "--xtremel";
19388 char *argv[] = { program, xtremel, NULL };
19390 optind = 1; opterr = 0;
19391 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19400 if ac_fn_c_try_run
"$LINENO"; then :
19401 gl_cv_func_getopt_long_gnu
=yes
19403 gl_cv_func_getopt_long_gnu
=no
19405 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19406 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19412 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19413 case "$gl_cv_func_getopt_long_gnu" in
19415 *) gl_replace_getopt
=yes ;;
19426 if test -n "$gl_replace_getopt"; then
19430 if test $REPLACE_GETOPT = 1; then
19434 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19440 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19441 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
19447 cat >>confdefs.h
<<_ACEOF
19448 #define HAVE_DECL_GETENV $ac_have_decl
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19457 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19458 if test "${ac_cv_c_restrict+set}" = set; then :
19459 $as_echo_n "(cached) " >&6
19461 ac_cv_c_restrict
=no
19462 # The order here caters to the fact that C++ does not require restrict.
19463 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19466 typedef int * int_ptr;
19467 int foo (int_ptr $ac_kw ip) {
19474 int * $ac_kw t = s;
19481 if ac_fn_c_try_compile
"$LINENO"; then :
19482 ac_cv_c_restrict
=$ac_kw
19484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19485 test "$ac_cv_c_restrict" != no
&& break
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19490 $as_echo "$ac_cv_c_restrict" >&6; }
19492 case $ac_cv_c_restrict in
19494 no
) $as_echo "#define restrict /**/" >>confdefs.h
19496 *) cat >>confdefs.h
<<_ACEOF
19497 #define restrict $ac_cv_c_restrict
19503 GNULIB_GETTIMEOFDAY
=0;
19504 HAVE_GETTIMEOFDAY
=1;
19505 HAVE_STRUCT_TIMEVAL
=1;
19507 REPLACE_GETTIMEOFDAY
=0;
19508 REPLACE_STRUCT_TIMEVAL
=0;
19525 if test $gl_cv_have_include_next = yes; then
19526 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19529 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19530 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19531 $as_echo_n "(cached) " >&6
19534 if test $ac_cv_header_sys_time_h = yes; then
19537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19539 #include <sys/time.h>
19543 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19544 *) gl_absname_cpp
="$ac_cpp" ;;
19549 gl_dirsep_regex
='[/\\]'
19552 gl_dirsep_regex
='\/'
19555 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19557 gl_header_literal_regex
=`echo 'sys/time.h' \
19558 | sed -e "$gl_make_literal_regex_sed"`
19559 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19560 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19565 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19566 sed -n "$gl_absolute_header_sed"`'"'
19568 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19574 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19576 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
19578 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19580 gl_next_as_first_directive
='<'sys
/time.h
'>'
19582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19583 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
19585 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
19591 if test $ac_cv_header_sys_time_h != yes; then
19599 if test $ac_cv_header_sys_socket_h != yes; then
19600 for ac_header
in winsock2.h
19602 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19603 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19604 cat >>confdefs.h
<<_ACEOF
19605 #define HAVE_WINSOCK2_H 1
19613 if test "$ac_cv_header_winsock2_h" = yes; then
19615 UNISTD_H_HAVE_WINSOCK2_H
=1
19616 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19623 $as_echo_n "checking for struct timeval... " >&6; }
19624 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h. */
19629 #if HAVE_SYS_TIME_H
19630 #include <sys/time.h>
19633 #if HAVE_WINSOCK2_H
19634 # include <winsock2.h>
19640 static struct timeval x; x.tv_sec = x.tv_usec;
19645 if ac_fn_c_try_compile
"$LINENO"; then :
19646 gl_cv_sys_struct_timeval
=yes
19648 gl_cv_sys_struct_timeval
=no
19650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19654 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19655 if test $gl_cv_sys_struct_timeval != yes; then
19656 HAVE_STRUCT_TIMEVAL
=0
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19659 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19660 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19665 #if HAVE_SYS_TIME_H
19666 #include <sys/time.h>
19669 #if HAVE_WINSOCK2_H
19670 # include <winsock2.h>
19676 static struct timeval x;
19677 typedef int verify_tv_sec_type[
19678 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19685 if ac_fn_c_try_compile
"$LINENO"; then :
19686 gl_cv_sys_struct_timeval_tv_sec
=yes
19688 gl_cv_sys_struct_timeval_tv_sec
=no
19690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19694 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19695 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19696 REPLACE_STRUCT_TIMEVAL
=1
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19707 $as_echo_n "checking for unsigned long long int... " >&6; }
19708 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19709 $as_echo_n "(cached) " >&6
19711 ac_cv_type_unsigned_long_long_int
=yes
19712 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19714 /* end confdefs.h. */
19716 /* For now, do not test the preprocessor; as of 2007 there are too many
19717 implementations with broken preprocessors. Perhaps this can
19718 be revisited in 2012. In the meantime, code should not expect
19719 #if to work with literals wider than 32 bits. */
19720 /* Test literals. */
19721 long long int ll = 9223372036854775807ll;
19722 long long int nll = -9223372036854775807LL;
19723 unsigned long long int ull = 18446744073709551615ULL;
19724 /* Test constant expressions. */
19725 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19727 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19733 /* Test availability of runtime routines for shift and division. */
19734 long long int llmax = 9223372036854775807ll;
19735 unsigned long long int ullmax = 18446744073709551615ull;
19736 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19737 | (llmax / ll) | (llmax % ll)
19738 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19739 | (ullmax / ull) | (ullmax % ull));
19745 if ac_fn_c_try_link
"$LINENO"; then :
19748 ac_cv_type_unsigned_long_long_int
=no
19750 rm -f core conftest.err conftest.
$ac_objext \
19751 conftest
$ac_exeext conftest.
$ac_ext
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19755 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19756 if test $ac_cv_type_unsigned_long_long_int = yes; then
19758 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19765 $as_echo_n "checking for long long int... " >&6; }
19766 if test "${ac_cv_type_long_long_int+set}" = set; then :
19767 $as_echo_n "(cached) " >&6
19769 ac_cv_type_long_long_int
=yes
19770 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
19771 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
19772 if test $ac_cv_type_long_long_int = yes; then
19773 if test "$cross_compiling" = yes; then :
19776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19778 #include <limits.h>
19781 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19782 # define LLONG_MAX (HALF - 1 + HALF)
19787 long long int n = 1;
19791 long long int m = n << i;
19794 if (LLONG_MAX / 2 < m)
19802 if ac_fn_c_try_run
"$LINENO"; then :
19805 ac_cv_type_long_long_int
=no
19807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19815 $as_echo "$ac_cv_type_long_long_int" >&6; }
19816 if test $ac_cv_type_long_long_int = yes; then
19818 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19827 gl_cv_c_multiarch
=no
19828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #ifndef __APPLE_CC__
19831 not a universal capable compiler
19836 if ac_fn_c_try_compile
"$LINENO"; then :
19840 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19841 if test -n "$prev"; then
19843 i?
86 | x86_64 | ppc | ppc64
)
19844 if test -z "$arch" ||
test "$arch" = "$word"; then
19847 gl_cv_c_multiarch
=yes
19853 if test "x$word" = "x-arch"; then
19860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19861 if test $gl_cv_c_multiarch = yes; then
19862 APPLE_UNIVERSAL_BUILD
=1
19864 APPLE_UNIVERSAL_BUILD
=0
19871 if test $ac_cv_type_long_long_int = yes; then
19872 HAVE_LONG_LONG_INT
=1
19874 HAVE_LONG_LONG_INT
=0
19878 if test $ac_cv_type_unsigned_long_long_int = yes; then
19879 HAVE_UNSIGNED_LONG_LONG_INT
=1
19881 HAVE_UNSIGNED_LONG_LONG_INT
=0
19886 if test $ac_cv_header_wchar_h = yes; then
19893 if test $ac_cv_header_inttypes_h = yes; then
19900 if test $ac_cv_header_sys_types_h = yes; then
19916 if test $gl_cv_have_include_next = yes; then
19917 gl_cv_next_stdint_h
='<'stdint.h
'>'
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19920 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19921 if test "${gl_cv_next_stdint_h+set}" = set; then :
19922 $as_echo_n "(cached) " >&6
19925 if test $ac_cv_header_stdint_h = yes; then
19928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930 #include <stdint.h>
19934 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19935 *) gl_absname_cpp
="$ac_cpp" ;;
19940 gl_dirsep_regex
='[/\\]'
19943 gl_dirsep_regex
='\/'
19946 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19948 gl_header_literal_regex
=`echo 'stdint.h' \
19949 | sed -e "$gl_make_literal_regex_sed"`
19950 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19951 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19956 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19957 sed -n "$gl_absolute_header_sed"`'"'
19959 gl_cv_next_stdint_h
='<'stdint.h
'>'
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19965 $as_echo "$gl_cv_next_stdint_h" >&6; }
19967 NEXT_STDINT_H
=$gl_cv_next_stdint_h
19969 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19971 gl_next_as_first_directive
='<'stdint.h
'>'
19973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19974 gl_next_as_first_directive
=$gl_cv_next_stdint_h
19976 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
19981 if test $ac_cv_header_stdint_h = yes; then
19988 if test $ac_cv_header_stdint_h = yes; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19990 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19991 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19992 $as_echo_n "(cached) " >&6
19994 gl_cv_header_working_stdint_h
=no
19995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19996 /* end confdefs.h. */
19999 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20000 #include <stdint.h>
20001 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20002 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20003 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20007 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20008 included before <wchar.h>. */
20009 #include <stddef.h>
20010 #include <signal.h>
20012 # include <stdio.h>
20014 # include <wchar.h>
20019 int8_t a1 = INT8_MAX;
20020 int8_t a1min = INT8_MIN;
20023 int16_t a2 = INT16_MAX;
20024 int16_t a2min = INT16_MIN;
20027 int32_t a3 = INT32_MAX;
20028 int32_t a3min = INT32_MIN;
20031 int64_t a4 = INT64_MAX;
20032 int64_t a4min = INT64_MIN;
20035 uint8_t b1 = UINT8_MAX;
20037 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20040 uint16_t b2 = UINT16_MAX;
20043 uint32_t b3 = UINT32_MAX;
20046 uint64_t b4 = UINT64_MAX;
20048 int_least8_t c1 = INT8_C (0x7f);
20049 int_least8_t c1max = INT_LEAST8_MAX;
20050 int_least8_t c1min = INT_LEAST8_MIN;
20051 int_least16_t c2 = INT16_C (0x7fff);
20052 int_least16_t c2max = INT_LEAST16_MAX;
20053 int_least16_t c2min = INT_LEAST16_MIN;
20054 int_least32_t c3 = INT32_C (0x7fffffff);
20055 int_least32_t c3max = INT_LEAST32_MAX;
20056 int_least32_t c3min = INT_LEAST32_MIN;
20057 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20058 int_least64_t c4max = INT_LEAST64_MAX;
20059 int_least64_t c4min = INT_LEAST64_MIN;
20060 uint_least8_t d1 = UINT8_C (0xff);
20061 uint_least8_t d1max = UINT_LEAST8_MAX;
20062 uint_least16_t d2 = UINT16_C (0xffff);
20063 uint_least16_t d2max = UINT_LEAST16_MAX;
20064 uint_least32_t d3 = UINT32_C (0xffffffff);
20065 uint_least32_t d3max = UINT_LEAST32_MAX;
20066 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20067 uint_least64_t d4max = UINT_LEAST64_MAX;
20068 int_fast8_t e1 = INT_FAST8_MAX;
20069 int_fast8_t e1min = INT_FAST8_MIN;
20070 int_fast16_t e2 = INT_FAST16_MAX;
20071 int_fast16_t e2min = INT_FAST16_MIN;
20072 int_fast32_t e3 = INT_FAST32_MAX;
20073 int_fast32_t e3min = INT_FAST32_MIN;
20074 int_fast64_t e4 = INT_FAST64_MAX;
20075 int_fast64_t e4min = INT_FAST64_MIN;
20076 uint_fast8_t f1 = UINT_FAST8_MAX;
20077 uint_fast16_t f2 = UINT_FAST16_MAX;
20078 uint_fast32_t f3 = UINT_FAST32_MAX;
20079 uint_fast64_t f4 = UINT_FAST64_MAX;
20081 intptr_t g = INTPTR_MAX;
20082 intptr_t gmin = INTPTR_MIN;
20085 uintptr_t h = UINTPTR_MAX;
20087 intmax_t i = INTMAX_MAX;
20088 uintmax_t j = UINTMAX_MAX;
20090 #include <limits.h> /* for CHAR_BIT */
20091 #define TYPE_MINIMUM(t) \
20092 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20093 #define TYPE_MAXIMUM(t) \
20094 ((t) ((t) 0 < (t) -1 \
20096 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20099 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20100 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20102 /* Detect bug in FreeBSD 6.0 / ia64. */
20103 int check_SIG_ATOMIC:
20104 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20105 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20107 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20109 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20110 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20112 /* Detect bug in mingw. */
20114 WINT_MIN == TYPE_MINIMUM (wint_t)
20115 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20118 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20120 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20121 int check_UINT16_C:
20122 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20124 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20126 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20129 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20132 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20135 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20137 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20138 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20139 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20140 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20141 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20142 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20143 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20144 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20145 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20146 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20147 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20158 if ac_fn_c_try_compile
"$LINENO"; then :
20159 if test "$cross_compiling" = yes; then :
20160 gl_cv_header_working_stdint_h
=yes
20163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20167 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20168 #include <stdint.h>
20171 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20172 included before <wchar.h>. */
20173 #include <stddef.h>
20174 #include <signal.h>
20176 # include <stdio.h>
20178 # include <wchar.h>
20183 #include <string.h>
20184 #define MVAL(macro) MVAL1(macro)
20185 #define MVAL1(expression) #expression
20186 static const char *macro_values[] =
20220 for (mv = macro_values; *mv != NULL; mv++)
20222 const char *value = *mv;
20223 /* Test whether it looks like a cast expression. */
20224 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20225 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20226 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20227 || strncmp (value, "((int)"/*)*/, 6) == 0
20228 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20229 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20230 return mv - macro_values + 1;
20238 if ac_fn_c_try_run
"$LINENO"; then :
20239 gl_cv_header_working_stdint_h
=yes
20241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20251 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20253 if test "$gl_cv_header_working_stdint_h" = yes; then
20256 for ac_header
in sys
/inttypes.h sys
/bitypes.h
20258 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20259 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20260 eval as_val
=\$
$as_ac_Header
20261 if test "x$as_val" = x
""yes; then :
20262 cat >>confdefs.h
<<_ACEOF
20263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20270 if test $ac_cv_header_sys_inttypes_h = yes; then
20271 HAVE_SYS_INTTYPES_H
=1
20273 HAVE_SYS_INTTYPES_H
=0
20276 if test $ac_cv_header_sys_bitypes_h = yes; then
20277 HAVE_SYS_BITYPES_H
=1
20279 HAVE_SYS_BITYPES_H
=0
20285 if test $APPLE_UNIVERSAL_BUILD = 0; then
20288 for gltype
in ptrdiff_t size_t
; do
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20290 $as_echo_n "checking for bit size of $gltype... " >&6; }
20291 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20292 $as_echo_n "(cached) " >&6
20294 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20295 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20296 included before <wchar.h>. */
20297 #include <stddef.h>
20298 #include <signal.h>
20300 # include <stdio.h>
20302 # include <wchar.h>
20305 #include <limits.h>"; then :
20311 eval gl_cv_bitsizeof_
${gltype}=\
$result
20314 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20316 $as_echo "$ac_res" >&6; }
20317 eval result
=\
$gl_cv_bitsizeof_${gltype}
20318 if test $result = unknown
; then
20321 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20322 cat >>confdefs.h
<<_ACEOF
20323 #define BITSIZEOF_${GLTYPE} $result
20326 eval BITSIZEOF_
${GLTYPE}=\
$result
20333 for gltype
in sig_atomic_t wchar_t wint_t
; do
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20335 $as_echo_n "checking for bit size of $gltype... " >&6; }
20336 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20337 $as_echo_n "(cached) " >&6
20339 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20340 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20341 included before <wchar.h>. */
20342 #include <stddef.h>
20343 #include <signal.h>
20345 # include <stdio.h>
20347 # include <wchar.h>
20350 #include <limits.h>"; then :
20356 eval gl_cv_bitsizeof_
${gltype}=\
$result
20359 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20361 $as_echo "$ac_res" >&6; }
20362 eval result
=\
$gl_cv_bitsizeof_${gltype}
20363 if test $result = unknown
; then
20366 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20367 cat >>confdefs.h
<<_ACEOF
20368 #define BITSIZEOF_${GLTYPE} $result
20371 eval BITSIZEOF_
${GLTYPE}=\
$result
20377 for gltype
in sig_atomic_t wchar_t wint_t
; do
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20379 $as_echo_n "checking whether $gltype is signed... " >&6; }
20380 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20381 $as_echo_n "(cached) " >&6
20383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20384 /* end confdefs.h. */
20386 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20387 included before <wchar.h>. */
20388 #include <stddef.h>
20389 #include <signal.h>
20391 # include <stdio.h>
20393 # include <wchar.h>
20396 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20405 if ac_fn_c_try_compile
"$LINENO"; then :
20410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20411 eval gl_cv_type_
${gltype}_signed
=\
$result
20414 eval ac_res
=\
$gl_cv_type_${gltype}_signed
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20416 $as_echo "$ac_res" >&6; }
20417 eval result
=\
$gl_cv_type_${gltype}_signed
20418 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20419 if test "$result" = yes; then
20420 cat >>confdefs.h
<<_ACEOF
20421 #define HAVE_SIGNED_${GLTYPE} 1
20424 eval HAVE_SIGNED_
${GLTYPE}=1
20426 eval HAVE_SIGNED_
${GLTYPE}=0
20431 gl_cv_type_ptrdiff_t_signed
=yes
20432 gl_cv_type_size_t_signed
=no
20433 if test $APPLE_UNIVERSAL_BUILD = 0; then
20436 for gltype
in ptrdiff_t size_t
; do
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20438 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20439 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20440 $as_echo_n "(cached) " >&6
20442 eval gl_cv_type_
${gltype}_suffix
=no
20443 eval result
=\
$gl_cv_type_${gltype}_signed
20444 if test "$result" = yes; then
20449 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20451 '') gltype1
='int';;
20452 l
) gltype1
='long int';;
20453 ll
) gltype1
='long long int';;
20454 i64
) gltype1
='__int64';;
20455 u
) gltype1
='unsigned int';;
20456 ul
) gltype1
='unsigned long int';;
20457 ull
) gltype1
='unsigned long long int';;
20458 ui64
)gltype1
='unsigned __int64';;
20460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20463 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20464 included before <wchar.h>. */
20465 #include <stddef.h>
20466 #include <signal.h>
20468 # include <stdio.h>
20470 # include <wchar.h>
20473 extern $gltype foo;
20474 extern $gltype1 foo;
20483 if ac_fn_c_try_compile
"$LINENO"; then :
20484 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20487 eval result
=\
$gl_cv_type_${gltype}_suffix
20488 test "$result" != no
&& break
20491 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20493 $as_echo "$ac_res" >&6; }
20494 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20495 eval result
=\
$gl_cv_type_${gltype}_suffix
20496 test "$result" = no
&& result
=
20497 eval ${GLTYPE}_SUFFIX
=\
$result
20498 cat >>confdefs.h
<<_ACEOF
20499 #define ${GLTYPE}_SUFFIX $result
20508 for gltype
in sig_atomic_t wchar_t wint_t
; do
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20510 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20511 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20512 $as_echo_n "(cached) " >&6
20514 eval gl_cv_type_
${gltype}_suffix
=no
20515 eval result
=\
$gl_cv_type_${gltype}_signed
20516 if test "$result" = yes; then
20521 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
20523 '') gltype1
='int';;
20524 l
) gltype1
='long int';;
20525 ll
) gltype1
='long long int';;
20526 i64
) gltype1
='__int64';;
20527 u
) gltype1
='unsigned int';;
20528 ul
) gltype1
='unsigned long int';;
20529 ull
) gltype1
='unsigned long long int';;
20530 ui64
)gltype1
='unsigned __int64';;
20532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20536 included before <wchar.h>. */
20537 #include <stddef.h>
20538 #include <signal.h>
20540 # include <stdio.h>
20542 # include <wchar.h>
20545 extern $gltype foo;
20546 extern $gltype1 foo;
20555 if ac_fn_c_try_compile
"$LINENO"; then :
20556 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
20558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20559 eval result
=\
$gl_cv_type_${gltype}_suffix
20560 test "$result" != no
&& break
20563 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20565 $as_echo "$ac_res" >&6; }
20566 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20567 eval result
=\
$gl_cv_type_${gltype}_suffix
20568 test "$result" = no
&& result
=
20569 eval ${GLTYPE}_SUFFIX
=\
$result
20570 cat >>confdefs.h
<<_ACEOF
20571 #define ${GLTYPE}_SUFFIX $result
20578 if test $BITSIZEOF_WINT_T -lt 32; then
20579 BITSIZEOF_WINT_T
=32
20585 if test -n "$STDINT_H"; then
20586 GL_GENERATE_STDINT_H_TRUE
=
20587 GL_GENERATE_STDINT_H_FALSE
='#'
20589 GL_GENERATE_STDINT_H_TRUE
='#'
20590 GL_GENERATE_STDINT_H_FALSE
=
20599 GNULIB_STRTOIMAX
=0;
20600 GNULIB_STRTOUMAX
=0;
20601 HAVE_DECL_IMAXABS
=1;
20602 HAVE_DECL_IMAXDIV
=1;
20603 HAVE_DECL_STRTOIMAX
=1;
20604 HAVE_DECL_STRTOUMAX
=1;
20605 REPLACE_STRTOIMAX
=0;
20606 INT32_MAX_LT_INTMAX_MAX
=1;
20607 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
20608 PRI_MACROS_BROKEN
=0;
20609 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
20610 UINT32_MAX_LT_UINTMAX_MAX
=1;
20611 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
20627 if test $gl_cv_have_include_next = yes; then
20628 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20631 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20632 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20633 $as_echo_n "(cached) " >&6
20636 if test $ac_cv_header_inttypes_h = yes; then
20639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20641 #include <inttypes.h>
20645 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20646 *) gl_absname_cpp
="$ac_cpp" ;;
20651 gl_dirsep_regex
='[/\\]'
20654 gl_dirsep_regex
='\/'
20657 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20659 gl_header_literal_regex
=`echo 'inttypes.h' \
20660 | sed -e "$gl_make_literal_regex_sed"`
20661 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20662 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20667 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20668 sed -n "$gl_absolute_header_sed"`'"'
20670 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20676 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20678 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
20680 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20682 gl_next_as_first_directive
='<'inttypes.h
'>'
20684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20685 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
20687 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20702 $as_echo_n "checking for 64-bit off_t... " >&6; }
20703 if test "${gl_cv_type_off_t_64+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20707 /* end confdefs.h. */
20708 #include <sys/types.h>
20709 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20719 if ac_fn_c_try_compile
"$LINENO"; then :
20720 gl_cv_type_off_t_64
=yes
20722 gl_cv_type_off_t_64
=no
20724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20728 $as_echo "$gl_cv_type_off_t_64" >&6; }
20729 if test $gl_cv_type_off_t_64 = no
; then
20730 WINDOWS_64_BIT_OFF_T
=1
20732 WINDOWS_64_BIT_OFF_T
=0
20734 WINDOWS_64_BIT_ST_SIZE
=1
20737 WINDOWS_64_BIT_OFF_T
=0
20738 WINDOWS_64_BIT_ST_SIZE
=0
20751 GNULIB_RAWMEMCHR
=0;
20754 GNULIB_STRCHRNUL
=0;
20762 GNULIB_STRCASESTR
=0;
20769 GNULIB_MBSCASECMP
=0;
20770 GNULIB_MBSNCASECMP
=0;
20771 GNULIB_MBSPCASECMP
=0;
20772 GNULIB_MBSCASESTR
=0;
20779 GNULIB_STRERROR_R
=0;
20780 GNULIB_STRSIGNAL
=0;
20781 GNULIB_STRVERSCMP
=0;
20786 HAVE_DECL_MEMMEM
=1;
20788 HAVE_DECL_MEMRCHR
=1;
20793 HAVE_DECL_STRDUP
=1;
20794 HAVE_DECL_STRNDUP
=1;
20795 HAVE_DECL_STRNLEN
=1;
20799 HAVE_DECL_STRTOK_R
=1;
20800 HAVE_DECL_STRERROR_R
=1;
20801 HAVE_DECL_STRSIGNAL
=1;
20808 REPLACE_STRCASESTR
=0;
20809 REPLACE_STRCHRNUL
=0;
20810 REPLACE_STRERROR
=0;
20811 REPLACE_STRERROR_R
=0;
20815 REPLACE_STRSIGNAL
=0;
20816 REPLACE_STRTOK_R
=0;
20817 UNDEFINE_STRTOK_R
=0;
20819 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20820 if test "x$ac_cv_have_decl_memrchr" = x
""yes; then :
20826 cat >>confdefs.h
<<_ACEOF
20827 #define HAVE_DECL_MEMRCHR $ac_have_decl
20832 GNULIB_NANOSLEEP
=0;
20836 HAVE_DECL_LOCALTIME_R
=1;
20840 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
20841 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
20842 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
20843 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
20845 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20846 if test "x$ac_cv_have_decl_alarm" = x
""yes; then :
20852 cat >>confdefs.h
<<_ACEOF
20853 #define HAVE_DECL_ALARM $ac_have_decl
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20869 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20870 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20871 $as_echo_n "(cached) " >&6
20874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20876 #include <sys/select.h>
20885 if ac_fn_c_try_compile
"$LINENO"; then :
20886 gl_cv_header_sys_select_h_selfcontained
=yes
20888 gl_cv_header_sys_select_h_selfcontained
=no
20890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20891 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20893 /* end confdefs.h. */
20894 #include <sys/select.h>
20898 int memset; int bzero;
20904 if ac_fn_c_try_compile
"$LINENO"; then :
20905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907 #include <sys/select.h>
20913 #define memset nonexistent_memset
20918 void *memset (void *, int, unsigned long);
20920 #define bzero nonexistent_bzero
20925 void bzero (void *, unsigned long);
20934 if ac_fn_c_try_link
"$LINENO"; then :
20937 gl_cv_header_sys_select_h_selfcontained
=no
20939 rm -f core conftest.err conftest.
$ac_objext \
20940 conftest
$ac_exeext conftest.
$ac_ext
20943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20948 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20958 if test $gl_cv_have_include_next = yes; then
20959 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20962 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20963 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20964 $as_echo_n "(cached) " >&6
20967 if test $ac_cv_header_sys_select_h = yes; then
20970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20972 #include <sys/select.h>
20976 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20977 *) gl_absname_cpp
="$ac_cpp" ;;
20982 gl_dirsep_regex
='[/\\]'
20985 gl_dirsep_regex
='\/'
20988 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20990 gl_header_literal_regex
=`echo 'sys/select.h' \
20991 | sed -e "$gl_make_literal_regex_sed"`
20992 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20998 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20999 sed -n "$gl_absolute_header_sed"`'"'
21001 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21007 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21009 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
21011 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21013 gl_next_as_first_directive
='<'sys
/select.h
'>'
21015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21016 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
21018 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
21023 if test $ac_cv_header_sys_select_h = yes; then
21024 HAVE_SYS_SELECT_H
=1
21026 HAVE_SYS_SELECT_H
=0
21033 if test $ac_cv_header_sys_socket_h != yes; then
21034 for ac_header
in winsock2.h
21036 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21037 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
21038 cat >>confdefs.h
<<_ACEOF
21039 #define HAVE_WINSOCK2_H 1
21047 if test "$ac_cv_header_winsock2_h" = yes; then
21049 UNISTD_H_HAVE_WINSOCK2_H
=1
21050 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21062 GNULIB_PTHREAD_SIGMASK
=0;
21064 GNULIB_SIGNAL_H_SIGPIPE
=0;
21065 GNULIB_SIGPROCMASK
=0;
21066 GNULIB_SIGACTION
=0;
21067 HAVE_POSIX_SIGNALBLOCKING
=1;
21068 HAVE_PTHREAD_SIGMASK
=1;
21073 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
21075 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
21077 HAVE_SIGHANDLER_T
=1;
21078 REPLACE_PTHREAD_SIGMASK
=0;
21087 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21088 #include <signal.h>
21089 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21090 #include <sys/types.h>
21093 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
21095 cat >>confdefs.h
<<_ACEOF
21096 #define HAVE_SIGSET_T 1
21099 gl_cv_type_sigset_t
=yes
21101 gl_cv_type_sigset_t
=no
21104 if test $gl_cv_type_sigset_t != yes; then
21110 if test $ac_cv_header_sys_socket_h = no
; then
21111 for ac_header
in ws2tcpip.h
21113 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21114 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
21115 cat >>confdefs.h
<<_ACEOF
21116 #define HAVE_WS2TCPIP_H 1
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21126 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21127 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21128 $as_echo_n "(cached) " >&6
21130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21133 #include <stdbool.h>
21135 "error: bool is not defined"
21138 "error: false is not defined"
21141 "error: false is not 0"
21144 "error: true is not defined"
21147 "error: true is not 1"
21149 #ifndef __bool_true_false_are_defined
21150 "error: __bool_true_false_are_defined is not defined"
21153 struct s { _Bool s: 1; _Bool t; } s;
21155 char a[true == 1 ? 1 : -1];
21156 char b[false == 0 ? 1 : -1];
21157 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21158 char d[(bool) 0.5 == true ? 1 : -1];
21159 /* See body of main program for 'e'. */
21160 char f[(_Bool) 0.0 == false ? 1 : -1];
21162 char h[sizeof (_Bool)];
21163 char i[sizeof s.t];
21164 enum { j = false, k = true, l = false * true, m = true * 256 };
21165 /* The following fails for
21166 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21168 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21169 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21170 /* Catch a bug in an HP-UX C compiler. See
21171 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21172 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21184 /* Refer to every declared value, to avoid compiler optimizations. */
21185 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21186 + !m + !n + !o + !p + !q + !pq);
21192 if ac_fn_c_try_compile
"$LINENO"; then :
21193 ac_cv_header_stdbool_h
=yes
21195 ac_cv_header_stdbool_h
=no
21197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21200 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21201 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21202 if test "x$ac_cv_type__Bool" = x
""yes; then :
21204 cat >>confdefs.h
<<_ACEOF
21205 #define HAVE__BOOL 1
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21218 $as_echo_n "checking for wchar_t... " >&6; }
21219 if test "${gt_cv_c_wchar_t+set}" = set; then :
21220 $as_echo_n "(cached) " >&6
21222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #include <stddef.h>
21225 wchar_t foo = (wchar_t)'\0';
21234 if ac_fn_c_try_compile
"$LINENO"; then :
21235 gt_cv_c_wchar_t
=yes
21239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21242 $as_echo "$gt_cv_c_wchar_t" >&6; }
21243 if test $gt_cv_c_wchar_t = yes; then
21245 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21258 GNULIB_FPRINTF_POSIX
=0;
21274 GNULIB_OBSTACK_PRINTF
=0;
21275 GNULIB_OBSTACK_PRINTF_POSIX
=0;
21280 GNULIB_PRINTF_POSIX
=0;
21289 GNULIB_SPRINTF_POSIX
=0;
21290 GNULIB_STDIO_H_NONBLOCKING
=0;
21291 GNULIB_STDIO_H_SIGPIPE
=0;
21293 GNULIB_VASPRINTF
=0;
21298 GNULIB_VFPRINTF_POSIX
=0;
21300 GNULIB_VPRINTF_POSIX
=0;
21301 GNULIB_VSNPRINTF
=0;
21302 GNULIB_VSPRINTF_POSIX
=0;
21303 HAVE_DECL_FPURGE
=1;
21304 HAVE_DECL_FSEEKO
=1;
21305 HAVE_DECL_FTELLO
=1;
21306 HAVE_DECL_GETDELIM
=1;
21307 HAVE_DECL_GETLINE
=1;
21308 HAVE_DECL_OBSTACK_PRINTF
=1;
21309 HAVE_DECL_SNPRINTF
=1;
21310 HAVE_DECL_VSNPRINTF
=1;
21331 REPLACE_GETDELIM
=0;
21333 REPLACE_OBSTACK_PRINTF
=0;
21339 REPLACE_RENAMEAT
=0;
21340 REPLACE_SNPRINTF
=0;
21342 REPLACE_STDIO_READ_FUNCS
=0;
21343 REPLACE_STDIO_WRITE_FUNCS
=0;
21345 REPLACE_VASPRINTF
=0;
21346 REPLACE_VDPRINTF
=0;
21347 REPLACE_VFPRINTF
=0;
21349 REPLACE_VSNPRINTF
=0;
21350 REPLACE_VSPRINTF
=0;
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21353 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21354 if test "${ac_cv_struct_tm+set}" = set; then :
21355 $as_echo_n "(cached) " >&6
21357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21358 /* end confdefs.h. */
21359 #include <sys/types.h>
21366 int *p = &tm.tm_sec;
21372 if ac_fn_c_try_compile
"$LINENO"; then :
21373 ac_cv_struct_tm
=time.h
21375 ac_cv_struct_tm
=sys
/time.h
21377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21380 $as_echo "$ac_cv_struct_tm" >&6; }
21381 if test $ac_cv_struct_tm = sys
/time.h
; then
21383 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21387 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21388 #include <$ac_cv_struct_tm>
21391 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
21393 cat >>confdefs.h
<<_ACEOF
21394 #define HAVE_STRUCT_TM_TM_ZONE 1
21400 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21402 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21405 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21407 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
21413 cat >>confdefs.h
<<_ACEOF
21414 #define HAVE_DECL_TZNAME $ac_have_decl
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21418 $as_echo_n "checking for tzname... " >&6; }
21419 if test "${ac_cv_var_tzname+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21423 /* end confdefs.h. */
21425 #if !HAVE_DECL_TZNAME
21426 extern char *tzname[];
21432 return tzname[0][0];
21437 if ac_fn_c_try_link
"$LINENO"; then :
21438 ac_cv_var_tzname
=yes
21440 ac_cv_var_tzname
=no
21442 rm -f core conftest.err conftest.
$ac_objext \
21443 conftest
$ac_exeext conftest.
$ac_ext
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21446 $as_echo "$ac_cv_var_tzname" >&6; }
21447 if test $ac_cv_var_tzname = yes; then
21449 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21455 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21457 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
21459 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21475 if test $gl_cv_have_include_next = yes; then
21476 gl_cv_next_string_h
='<'string.h
'>'
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21479 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21480 if test "${gl_cv_next_string_h+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <string.h>
21490 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21491 *) gl_absname_cpp
="$ac_cpp" ;;
21496 gl_dirsep_regex
='[/\\]'
21499 gl_dirsep_regex
='\/'
21502 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21504 gl_header_literal_regex
=`echo 'string.h' \
21505 | sed -e "$gl_make_literal_regex_sed"`
21506 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21507 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21512 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21513 sed -n "$gl_absolute_header_sed"`'"'
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21518 $as_echo "$gl_cv_next_string_h" >&6; }
21520 NEXT_STRING_H
=$gl_cv_next_string_h
21522 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21524 gl_next_as_first_directive
='<'string.h
'>'
21526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21527 gl_next_as_first_directive
=$gl_cv_next_string_h
21529 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
21539 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21540 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
21546 cat >>confdefs.h
<<_ACEOF
21547 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21552 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21553 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
21559 cat >>confdefs.h
<<_ACEOF
21560 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21566 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21567 if test "${ac_cv_header_stat_broken+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <sys/types.h>
21573 #include <sys/stat.h>
21575 #if defined S_ISBLK && defined S_IFDIR
21576 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21579 #if defined S_ISBLK && defined S_IFCHR
21580 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21583 #if defined S_ISLNK && defined S_IFREG
21584 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21587 #if defined S_ISSOCK && defined S_IFREG
21588 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21592 if ac_fn_c_try_compile
"$LINENO"; then :
21593 ac_cv_header_stat_broken
=no
21595 ac_cv_header_stat_broken
=yes
21597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21600 $as_echo "$ac_cv_header_stat_broken" >&6; }
21601 if test $ac_cv_header_stat_broken = yes; then
21603 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21612 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21613 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21617 /* end confdefs.h. */
21623 static struct timespec x; x.tv_sec = x.tv_nsec;
21628 if ac_fn_c_try_compile
"$LINENO"; then :
21629 gl_cv_sys_struct_timespec_in_time_h
=yes
21631 gl_cv_sys_struct_timespec_in_time_h
=no
21633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21636 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21638 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21639 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
21640 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
21641 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21642 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21645 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21646 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21651 #include <sys/time.h>
21656 static struct timespec x; x.tv_sec = x.tv_nsec;
21661 if ac_fn_c_try_compile
"$LINENO"; then :
21662 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
21664 gl_cv_sys_struct_timespec_in_sys_time_h
=no
21666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21669 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21670 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21671 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21674 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21675 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21676 $as_echo_n "(cached) " >&6
21678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21680 #include <pthread.h>
21685 static struct timespec x; x.tv_sec = x.tv_nsec;
21690 if ac_fn_c_try_compile
"$LINENO"; then :
21691 gl_cv_sys_struct_timespec_in_pthread_h
=yes
21693 gl_cv_sys_struct_timespec_in_pthread_h
=no
21695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21698 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21699 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21700 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
21719 if test $gl_cv_have_include_next = yes; then
21720 gl_cv_next_time_h
='<'time.h
'>'
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21723 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21724 if test "${gl_cv_next_time_h+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21734 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21735 *) gl_absname_cpp
="$ac_cpp" ;;
21740 gl_dirsep_regex
='[/\\]'
21743 gl_dirsep_regex
='\/'
21746 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21748 gl_header_literal_regex
=`echo 'time.h' \
21749 | sed -e "$gl_make_literal_regex_sed"`
21750 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21751 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21756 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21757 sed -n "$gl_absolute_header_sed"`'"'
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21762 $as_echo "$gl_cv_next_time_h" >&6; }
21764 NEXT_TIME_H
=$gl_cv_next_time_h
21766 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21767 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21768 gl_next_as_first_directive
='<'time.h
'>'
21770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21771 gl_next_as_first_directive
=$gl_cv_next_time_h
21773 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
21788 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21789 if test "x$ac_cv_have_decl_unsetenv" = x
""yes; then :
21795 cat >>confdefs.h
<<_ACEOF
21796 #define HAVE_DECL_UNSETENV $ac_have_decl
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21801 $as_echo_n "checking whether the utimes function works... " >&6; }
21802 if test "${gl_cv_func_working_utimes+set}" = set; then :
21803 $as_echo_n "(cached) " >&6
21806 if test "$cross_compiling" = yes; then :
21807 gl_cv_func_working_utimes
=no
21809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21810 /* end confdefs.h. */
21812 #include <sys/types.h>
21813 #include <sys/stat.h>
21815 #include <sys/time.h>
21817 #include <unistd.h>
21818 #include <stdlib.h>
21823 inorder (time_t a, time_t b, time_t c)
21825 return a <= b && b <= c;
21832 char const *file = "conftest.utimes";
21833 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21835 /* Test whether utimes() essentially works. */
21838 FILE *f = fopen (file, "w");
21841 else if (fclose (f) != 0)
21843 else if (utimes (file, timeval) != 0)
21845 else if (lstat (file, &sbuf) != 0)
21847 else if (!(sbuf.st_atime == timeval[0].tv_sec
21848 && sbuf.st_mtime == timeval[1].tv_sec))
21850 if (unlink (file) != 0)
21854 /* Test whether utimes() with a NULL argument sets the file's timestamp
21855 to the current time. Use 'fstat' as well as 'time' to
21856 determine the "current" time, to accommodate NFS file systems
21857 if there is a time skew between the host and the NFS server. */
21859 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21865 struct stat st0, st1, st2;
21866 if (time (&t0) == (time_t) -1)
21868 else if (fstat (fd, &st0) != 0)
21870 else if (utimes (file, timeval) != 0)
21872 else if (utimes (file, NULL) != 0)
21874 else if (fstat (fd, &st1) != 0)
21876 else if (write (fd, "\n", 1) != 1)
21878 else if (fstat (fd, &st2) != 0)
21880 else if (time (&t2) == (time_t) -1)
21884 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21885 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21886 if (! (st1.st_atime == st1.st_mtime))
21888 if (! (m_ok_POSIX || m_ok_NFS))
21891 if (close (fd) != 0)
21894 if (unlink (file) != 0)
21898 /* Test whether utimes() with a NULL argument works on read-only files. */
21900 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21903 else if (close (fd) != 0)
21905 else if (utimes (file, NULL) != 0)
21907 if (unlink (file) != 0)
21915 if ac_fn_c_try_run
"$LINENO"; then :
21916 gl_cv_func_working_utimes
=yes
21918 gl_cv_func_working_utimes
=no
21920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21926 $as_echo "$gl_cv_func_working_utimes" >&6; }
21928 if test $gl_cv_func_working_utimes = yes; then
21930 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21939 $as_echo_n "checking for struct utimbuf... " >&6; }
21940 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21941 $as_echo_n "(cached) " >&6
21943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21944 /* end confdefs.h. */
21945 #if HAVE_SYS_TIME_H
21946 #include <sys/time.h>
21949 #ifdef HAVE_UTIME_H
21956 static struct utimbuf x; x.actime = x.modtime;
21961 if ac_fn_c_try_compile
"$LINENO"; then :
21962 gl_cv_sys_struct_utimbuf
=yes
21964 gl_cv_sys_struct_utimbuf
=no
21966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21969 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21971 if test $gl_cv_sys_struct_utimbuf = yes; then
21973 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21988 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21989 if test "${ac_cv_type_getgroups+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21992 if test "$cross_compiling" = yes; then :
21993 ac_cv_type_getgroups
=cross
21995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21997 /* Thanks to Mike Rendell for this test. */
21998 $ac_includes_default
22001 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22006 gid_t gidset[NGID];
22008 union { gid_t gval; long int lval; } val;
22011 for (i = 0; i < NGID; i++)
22012 gidset[i] = val.gval;
22013 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22015 /* Exit non-zero if getgroups seems to require an array of ints. This
22016 happens when gid_t is short int but getgroups modifies an array
22018 return n > 0 && gidset[n] != val.gval;
22021 if ac_fn_c_try_run
"$LINENO"; then :
22022 ac_cv_type_getgroups
=gid_t
22024 ac_cv_type_getgroups
=int
22026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22030 if test $ac_cv_type_getgroups = cross
; then
22031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <unistd.h>
22036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22037 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
22038 ac_cv_type_getgroups
=gid_t
22040 ac_cv_type_getgroups
=int
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22047 $as_echo "$ac_cv_type_getgroups" >&6; }
22049 cat >>confdefs.h
<<_ACEOF
22050 #define GETGROUPS_T $ac_cv_type_getgroups
22057 GL_COND_LIBTOOL_TRUE
=
22058 GL_COND_LIBTOOL_FALSE
='#'
22060 GL_COND_LIBTOOL_TRUE
='#'
22061 GL_COND_LIBTOOL_FALSE
=
22064 gl_cond_libtool
=false
22077 gl_source_base
='lib'
22080 if test $ac_cv_func_alloca_works = no
; then
22084 # Define an additional variable used in the Makefile substitution.
22085 if test $ac_cv_working_alloca_h = yes; then
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22087 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22088 if test "${gl_cv_rpl_alloca+set}" = set; then :
22089 $as_echo_n "(cached) " >&6
22092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h. */
22095 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22101 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
22102 gl_cv_rpl_alloca
=yes
22104 gl_cv_rpl_alloca
=no
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22111 $as_echo "$gl_cv_rpl_alloca" >&6; }
22112 if test $gl_cv_rpl_alloca = yes; then
22114 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22124 if test -n "$ALLOCA_H"; then
22125 GL_GENERATE_ALLOCA_H_TRUE
=
22126 GL_GENERATE_ALLOCA_H_FALSE
='#'
22128 GL_GENERATE_ALLOCA_H_TRUE
='#'
22129 GL_GENERATE_ALLOCA_H_FALSE
=
22137 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22138 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22140 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22141 # programs in the package would end up linked with that potentially-shared
22142 # library, inducing unnecessary run-time overhead.
22145 gl_saved_libs
=$LIBS
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22147 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22148 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22151 ac_func_search_save_LIBS
=$LIBS
22152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22153 /* end confdefs.h. */
22155 /* Override any GCC internal prototype to avoid an error.
22156 Use char because int might match the return type of a GCC
22157 builtin and then its argument prototype would still apply. */
22161 char clock_gettime ();
22165 return clock_gettime ();
22170 for ac_lib
in '' rt posix4
; do
22171 if test -z "$ac_lib"; then
22172 ac_res
="none required"
22175 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22177 if ac_fn_c_try_link
"$LINENO"; then :
22178 ac_cv_search_clock_gettime
=$ac_res
22180 rm -f core conftest.err conftest.
$ac_objext \
22182 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22186 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22189 ac_cv_search_clock_gettime
=no
22191 rm conftest.
$ac_ext
22192 LIBS
=$ac_func_search_save_LIBS
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22195 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22196 ac_res
=$ac_cv_search_clock_gettime
22197 if test "$ac_res" != no
; then :
22198 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22199 test "$ac_cv_search_clock_gettime" = "none required" ||
22200 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
22203 for ac_func
in clock_gettime clock_settime
22205 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22206 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
22207 eval as_val
=\$
$as_ac_var
22208 if test "x$as_val" = x
""yes; then :
22209 cat >>confdefs.h
<<_ACEOF
22210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22216 LIBS
=$gl_saved_libs
22223 cat >>confdefs.h
<<_ACEOF
22224 #define GNULIB_CLOSE_STREAM 1
22254 if test $gl_cv_have_include_next = yes; then
22255 gl_cv_next_dirent_h
='<'dirent.h
'>'
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22258 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22259 if test "${gl_cv_next_dirent_h+set}" = set; then :
22260 $as_echo_n "(cached) " >&6
22263 if test $ac_cv_header_dirent_h = yes; then
22266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22267 /* end confdefs.h. */
22268 #include <dirent.h>
22272 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22273 *) gl_absname_cpp
="$ac_cpp" ;;
22278 gl_dirsep_regex
='[/\\]'
22281 gl_dirsep_regex
='\/'
22284 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22286 gl_header_literal_regex
=`echo 'dirent.h' \
22287 | sed -e "$gl_make_literal_regex_sed"`
22288 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22289 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22294 gl_cv_next_dirent_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22295 sed -n "$gl_absolute_header_sed"`'"'
22297 gl_cv_next_dirent_h
='<'dirent.h
'>'
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22303 $as_echo "$gl_cv_next_dirent_h" >&6; }
22305 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
22307 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22309 gl_next_as_first_directive
='<'dirent.h
'>'
22311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22312 gl_next_as_first_directive
=$gl_cv_next_dirent_h
22314 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
22319 if test $ac_cv_header_dirent_h = yes; then
22334 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22337 if test $HAVE_DUP2 = 1; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22339 $as_echo_n "checking whether dup2 works... " >&6; }
22340 if test "${gl_cv_func_dup2_works+set}" = set; then :
22341 $as_echo_n "(cached) " >&6
22343 if test "$cross_compiling" = yes; then :
22345 mingw
*) # on this platform, dup2 always returns 0 for success
22346 gl_cv_func_dup2_works
="guessing no" ;;
22347 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
22348 gl_cv_func_dup2_works
="guessing no" ;;
22349 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22350 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22351 gl_cv_func_dup2_works
="guessing no" ;;
22352 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22353 gl_cv_func_dup2_works
="guessing no" ;;
22354 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22355 gl_cv_func_dup2_works
="guessing no" ;;
22356 *) gl_cv_func_dup2_works
="guessing yes" ;;
22359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22360 /* end confdefs.h. */
22362 #include <unistd.h>
22370 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22373 if (dup2 (1, 1) == 0)
22376 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22380 if (dup2 (0, 0) != -1)
22382 /* Many gnulib modules require POSIX conformance of EBADF. */
22383 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22385 /* Flush out a cygwin core dump. */
22386 if (dup2 (2, -1) != -1 || errno != EBADF)
22395 if ac_fn_c_try_run
"$LINENO"; then :
22396 gl_cv_func_dup2_works
=yes
22398 gl_cv_func_dup2_works
=no
22400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22407 $as_echo "$gl_cv_func_dup2_works" >&6; }
22408 case "$gl_cv_func_dup2_works" in
22417 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
22426 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
22458 EXECINFO_H
='execinfo.h'
22460 if test $ac_cv_header_execinfo_h = yes; then
22461 gl_saved_libs
=$LIBS
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22463 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22464 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22467 ac_func_search_save_LIBS
=$LIBS
22468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22477 char backtrace_symbols_fd ();
22481 return backtrace_symbols_fd ();
22486 for ac_lib
in '' execinfo
; do
22487 if test -z "$ac_lib"; then
22488 ac_res
="none required"
22491 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22493 if ac_fn_c_try_link
"$LINENO"; then :
22494 ac_cv_search_backtrace_symbols_fd
=$ac_res
22496 rm -f core conftest.err conftest.
$ac_objext \
22498 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22502 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22505 ac_cv_search_backtrace_symbols_fd
=no
22507 rm conftest.
$ac_ext
22508 LIBS
=$ac_func_search_save_LIBS
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22511 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22512 ac_res
=$ac_cv_search_backtrace_symbols_fd
22513 if test "$ac_res" != no
; then :
22514 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22515 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22516 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
22519 LIBS
=$gl_saved_libs
22520 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
22523 if test -n "$EXECINFO_H"; then
22532 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
22538 if test -n "$EXECINFO_H"; then
22539 GL_GENERATE_EXECINFO_H_TRUE
=
22540 GL_GENERATE_EXECINFO_H_FALSE
='#'
22542 GL_GENERATE_EXECINFO_H_TRUE
='#'
22543 GL_GENERATE_EXECINFO_H_FALSE
=
22554 if test $ac_cv_func_faccessat = no
; then
22558 if test $HAVE_FACCESSAT = 0; then
22567 gl_LIBOBJS
="$gl_LIBOBJS faccessat.$ac_objext"
22570 for ac_func
in access
22572 ac_fn_c_check_func
"$LINENO" "access" "ac_cv_func_access"
22573 if test "x$ac_cv_func_access" = x
""yes; then :
22574 cat >>confdefs.h
<<_ACEOF
22575 #define HAVE_ACCESS 1
22585 cat >>confdefs.h
<<_ACEOF
22586 #define GNULIB_FACCESSAT 1
22612 if test $gl_cv_have_include_next = yes; then
22613 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22616 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22617 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22622 /* end confdefs.h. */
22627 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22628 *) gl_absname_cpp
="$ac_cpp" ;;
22633 gl_dirsep_regex
='[/\\]'
22636 gl_dirsep_regex
='\/'
22639 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22641 gl_header_literal_regex
=`echo 'fcntl.h' \
22642 | sed -e "$gl_make_literal_regex_sed"`
22643 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22644 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22649 gl_cv_next_fcntl_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22650 sed -n "$gl_absolute_header_sed"`'"'
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22655 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22657 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
22659 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22661 gl_next_as_first_directive
='<'fcntl.h
'>'
22663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22664 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
22666 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
22685 if test $ac_cv_have_decl_fdatasync = no
; then
22686 HAVE_DECL_FDATASYNC
=0
22687 for ac_func
in fdatasync
22689 ac_fn_c_check_func
"$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22690 if test "x$ac_cv_func_fdatasync" = x
""yes; then :
22691 cat >>confdefs.h
<<_ACEOF
22692 #define HAVE_FDATASYNC 1
22698 if test $ac_cv_func_fdatasync = no
; then
22702 gl_saved_libs
=$LIBS
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22704 $as_echo_n "checking for library containing fdatasync... " >&6; }
22705 if test "${ac_cv_search_fdatasync+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22708 ac_func_search_save_LIBS
=$LIBS
22709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22722 return fdatasync ();
22727 for ac_lib
in '' rt posix4
; do
22728 if test -z "$ac_lib"; then
22729 ac_res
="none required"
22732 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22734 if ac_fn_c_try_link
"$LINENO"; then :
22735 ac_cv_search_fdatasync
=$ac_res
22737 rm -f core conftest.err conftest.
$ac_objext \
22739 if test "${ac_cv_search_fdatasync+set}" = set; then :
22743 if test "${ac_cv_search_fdatasync+set}" = set; then :
22746 ac_cv_search_fdatasync
=no
22748 rm conftest.
$ac_ext
22749 LIBS
=$ac_func_search_save_LIBS
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22752 $as_echo "$ac_cv_search_fdatasync" >&6; }
22753 ac_res
=$ac_cv_search_fdatasync
22754 if test "$ac_res" != no
; then :
22755 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22756 test "$ac_cv_search_fdatasync" = "none required" ||
22757 LIB_FDATASYNC
=$ac_cv_search_fdatasync
22760 LIBS
=$gl_saved_libs
22763 if test $HAVE_FDATASYNC = 0; then
22772 gl_LIBOBJS
="$gl_LIBOBJS fdatasync.$ac_objext"
22791 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22792 #include <dirent.h>
22795 if test "x$ac_cv_have_decl_fdopendir" = x
""yes; then :
22801 cat >>confdefs.h
<<_ACEOF
22802 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22804 if test $ac_have_decl = 1; then :
22807 HAVE_DECL_FDOPENDIR
=0
22811 if test $ac_cv_func_fdopendir = no
; then
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22815 $as_echo_n "checking whether fdopendir works... " >&6; }
22816 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22817 $as_echo_n "(cached) " >&6
22819 if test "$cross_compiling" = yes; then :
22821 # Guess yes on glibc systems.
22822 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
22823 # If we don't know, assume the worst.
22824 *) gl_cv_func_fdopendir_works
="guessing no" ;;
22828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h. */
22831 #include <dirent.h>
22833 #include <unistd.h>
22834 #if !HAVE_DECL_FDOPENDIR
22836 # ifdef __cplusplus
22839 DIR *fdopendir (int);
22846 int fd = open ("conftest.c", O_RDONLY);
22847 if (fd < 0) result |= 1;
22848 if (fdopendir (fd)) result |= 2;
22849 if (close (fd)) result |= 4;
22855 if ac_fn_c_try_run
"$LINENO"; then :
22856 gl_cv_func_fdopendir_works
=yes
22858 gl_cv_func_fdopendir_works
=no
22860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22866 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22867 case "$gl_cv_func_fdopendir_works" in
22870 REPLACE_FDOPENDIR
=1
22875 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
22884 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
22900 cat >>confdefs.h
<<_ACEOF
22901 #define GNULIB_FDOPENDIR 1
22913 # include <stdio.h>
22914 # if HAVE_STDIO_EXT_H
22915 # include <stdio_ext.h>
22918 ac_fn_c_check_decl
"$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22920 if test "x$ac_cv_have_decl___fpending" = x
""yes; then :
22926 cat >>confdefs.h
<<_ACEOF
22927 #define HAVE_DECL___FPENDING $ac_have_decl
22931 if test $ac_cv_func___fpending = no
; then
22940 gl_LIBOBJS
="$gl_LIBOBJS fpending.$ac_objext"
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
22944 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
22945 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22952 'fp->_IO_write_ptr - fp->_IO_write_base' \
22954 '# traditional Unix' \
22955 'fp->_ptr - fp->_base' \
22958 'fp->_p - fp->_bf._base' \
22960 '# SCO, Unixware' \
22961 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
22964 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
22967 'fp->__bufp - fp->__buffer' \
22969 '# old glibc iostream?' \
22970 'fp->_pptr - fp->_pbase' \
22973 'fp->_ptr - fp->_buffer' \
22976 'fp->_ptr - fp->_buf' \
22979 'fp->wp - fp->buf' \
22982 '(*fp)->_ptr - (*fp)->_base' \
22984 '# e.g., DGUX R4.11; the info is not available' \
22988 # Skip each embedded comment.
22989 case "$ac_expr" in '#'*) continue;; esac
22991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22997 FILE *fp = stdin; (void) ($ac_expr);
23002 if ac_fn_c_try_compile
"$LINENO"; then :
23006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23007 test "$fp_done" = yes && break
23010 ac_cv_sys_pending_output_n_bytes
=$ac_expr
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23015 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23017 cat >>confdefs.h
<<_ACEOF
23018 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23029 if test $ac_cv_func_fstatat = no
; then
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23033 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23034 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23037 if test "$cross_compiling" = yes; then :
23039 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
23040 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
23044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23048 #include <sys/stat.h>
23053 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23057 if ac_fn_c_try_run
"$LINENO"; then :
23058 gl_cv_func_fstatat_zero_flag
=yes
23060 gl_cv_func_fstatat_zero_flag
=no
23062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23069 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23071 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23073 *) REPLACE_FSTATAT
=1
23074 case $gl_cv_func_fstatat_zero_flag in
23077 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23085 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
23094 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
23111 if test $ac_cv_func_fsync = no
; then
23115 if test $HAVE_FSYNC = 0; then
23124 gl_LIBOBJS
="$gl_LIBOBJS fsync.$ac_objext"
23141 # Persuade glibc <stdlib.h> to declare getloadavg().
23146 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23147 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23149 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23150 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
23153 gl_func_getloadavg_done
=no
23155 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23156 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23157 # to get the right answer into the cache.
23158 # For kstat on solaris, we need to test for libelf and libkvm to force the
23159 # definition of SVR4 below.
23160 if test $gl_func_getloadavg_done = no
; then
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23162 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23163 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23164 $as_echo_n "(cached) " >&6
23166 ac_check_lib_save_LIBS
=$LIBS
23168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23171 /* Override any GCC internal prototype to avoid an error.
23172 Use char because int might match the return type of a GCC
23173 builtin and then its argument prototype would still apply. */
23181 return elf_begin ();
23186 if ac_fn_c_try_link
"$LINENO"; then :
23187 ac_cv_lib_elf_elf_begin
=yes
23189 ac_cv_lib_elf_elf_begin
=no
23191 rm -f core conftest.err conftest.
$ac_objext \
23192 conftest
$ac_exeext conftest.
$ac_ext
23193 LIBS
=$ac_check_lib_save_LIBS
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23196 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23197 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23202 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23203 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23204 $as_echo_n "(cached) " >&6
23206 ac_check_lib_save_LIBS
=$LIBS
23208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23209 /* end confdefs.h. */
23211 /* Override any GCC internal prototype to avoid an error.
23212 Use char because int might match the return type of a GCC
23213 builtin and then its argument prototype would still apply. */
23221 return kvm_open ();
23226 if ac_fn_c_try_link
"$LINENO"; then :
23227 ac_cv_lib_kvm_kvm_open
=yes
23229 ac_cv_lib_kvm_kvm_open
=no
23231 rm -f core conftest.err conftest.
$ac_objext \
23232 conftest
$ac_exeext conftest.
$ac_ext
23233 LIBS
=$ac_check_lib_save_LIBS
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23236 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23237 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
23241 # Check for the 4.4BSD definition of getloadavg.
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23243 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23247 ac_check_lib_save_LIBS
=$LIBS
23248 LIBS
="-lutil $LIBS"
23249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h. */
23252 /* Override any GCC internal prototype to avoid an error.
23253 Use char because int might match the return type of a GCC
23254 builtin and then its argument prototype would still apply. */
23258 char getloadavg ();
23262 return getloadavg ();
23267 if ac_fn_c_try_link
"$LINENO"; then :
23268 ac_cv_lib_util_getloadavg
=yes
23270 ac_cv_lib_util_getloadavg
=no
23272 rm -f core conftest.err conftest.
$ac_objext \
23273 conftest
$ac_exeext conftest.
$ac_ext
23274 LIBS
=$ac_check_lib_save_LIBS
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23277 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23278 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
23279 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
23284 if test $gl_func_getloadavg_done = no
; then
23285 # There is a commonly available library for RS/6000 AIX.
23286 # Since it is not a standard part of AIX, it might be installed locally.
23287 gl_getloadavg_LIBS
=$LIBS
23288 LIBS
="-L/usr/local/lib $LIBS"
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23290 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23291 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23292 $as_echo_n "(cached) " >&6
23294 ac_check_lib_save_LIBS
=$LIBS
23295 LIBS
="-lgetloadavg $LIBS"
23296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23297 /* end confdefs.h. */
23299 /* Override any GCC internal prototype to avoid an error.
23300 Use char because int might match the return type of a GCC
23301 builtin and then its argument prototype would still apply. */
23305 char getloadavg ();
23309 return getloadavg ();
23314 if ac_fn_c_try_link
"$LINENO"; then :
23315 ac_cv_lib_getloadavg_getloadavg
=yes
23317 ac_cv_lib_getloadavg_getloadavg
=no
23319 rm -f core conftest.err conftest.
$ac_objext \
23320 conftest
$ac_exeext conftest.
$ac_ext
23321 LIBS
=$ac_check_lib_save_LIBS
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23324 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23325 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
23326 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
23328 LIBS
=$gl_getloadavg_LIBS
23333 # Set up the replacement function if necessary.
23334 if test $gl_func_getloadavg_done = no
; then
23337 # Solaris has libkstat which does not require root.
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23339 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23340 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23341 $as_echo_n "(cached) " >&6
23343 ac_check_lib_save_LIBS
=$LIBS
23344 LIBS
="-lkstat $LIBS"
23345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23346 /* end confdefs.h. */
23348 /* Override any GCC internal prototype to avoid an error.
23349 Use char because int might match the return type of a GCC
23350 builtin and then its argument prototype would still apply. */
23354 char kstat_open ();
23358 return kstat_open ();
23363 if ac_fn_c_try_link
"$LINENO"; then :
23364 ac_cv_lib_kstat_kstat_open
=yes
23366 ac_cv_lib_kstat_kstat_open
=no
23368 rm -f core conftest.err conftest.
$ac_objext \
23369 conftest
$ac_exeext conftest.
$ac_ext
23370 LIBS
=$ac_check_lib_save_LIBS
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23373 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23374 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
23375 cat >>confdefs.h
<<_ACEOF
23376 #define HAVE_LIBKSTAT 1
23379 LIBS
="-lkstat $LIBS"
23383 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
23385 # AIX has libperfstat which does not require root
23386 if test $gl_func_getloadavg_done = no
; then
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23388 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23389 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23392 ac_check_lib_save_LIBS
=$LIBS
23393 LIBS
="-lperfstat $LIBS"
23394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23397 /* Override any GCC internal prototype to avoid an error.
23398 Use char because int might match the return type of a GCC
23399 builtin and then its argument prototype would still apply. */
23403 char perfstat_cpu_total ();
23407 return perfstat_cpu_total ();
23412 if ac_fn_c_try_link
"$LINENO"; then :
23413 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
23415 ac_cv_lib_perfstat_perfstat_cpu_total
=no
23417 rm -f core conftest.err conftest.
$ac_objext \
23418 conftest
$ac_exeext conftest.
$ac_ext
23419 LIBS
=$ac_check_lib_save_LIBS
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23422 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23423 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
23424 cat >>confdefs.h
<<_ACEOF
23425 #define HAVE_LIBPERFSTAT 1
23428 LIBS
="-lperfstat $LIBS"
23432 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
23435 if test $gl_func_getloadavg_done = no
; then
23436 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23437 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
23438 gl_func_getloadavg_done
=yes
23440 $as_echo "#define DGUX 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23443 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23444 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23445 $as_echo_n "(cached) " >&6
23447 ac_check_lib_save_LIBS
=$LIBS
23449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23450 /* end confdefs.h. */
23452 /* Override any GCC internal prototype to avoid an error.
23453 Use char because int might match the return type of a GCC
23454 builtin and then its argument prototype would still apply. */
23458 char dg_sys_info ();
23462 return dg_sys_info ();
23467 if ac_fn_c_try_link
"$LINENO"; then :
23468 ac_cv_lib_dgc_dg_sys_info
=yes
23470 ac_cv_lib_dgc_dg_sys_info
=no
23472 rm -f core conftest.err conftest.
$ac_objext \
23473 conftest
$ac_exeext conftest.
$ac_ext
23474 LIBS
=$ac_check_lib_save_LIBS
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23477 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23478 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
23479 cat >>confdefs.h
<<_ACEOF
23480 #define HAVE_LIBDGC 1
23495 if test "x$gl_save_LIBS" = x
; then
23496 GETLOADAVG_LIBS
=$LIBS
23498 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23503 # Test whether the system declares getloadavg. Solaris has the function
23504 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23505 for ac_header
in sys
/loadavg.h
23507 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23508 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
23509 cat >>confdefs.h
<<_ACEOF
23510 #define HAVE_SYS_LOADAVG_H 1
23517 if test $ac_cv_header_sys_loadavg_h = yes; then
23518 HAVE_SYS_LOADAVG_H
=1
23520 HAVE_SYS_LOADAVG_H
=0
23522 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23523 # include <sys/loadavg.h>
23525 #include <stdlib.h>
23527 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
23530 HAVE_DECL_GETLOADAVG
=0
23534 if test $HAVE_GETLOADAVG = 0; then
23543 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
23546 # Figure out what our getloadavg.c needs.
23550 # On HPUX9, an unprivileged user can get load averages this way.
23551 if test $gl_func_getloadavg_done = no
; then
23552 for ac_func
in pstat_getdynamic
23554 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23555 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
23556 cat >>confdefs.h
<<_ACEOF
23557 #define HAVE_PSTAT_GETDYNAMIC 1
23559 gl_func_getloadavg_done
=yes
23565 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23566 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23567 # Irix 4.0.5F has the header but not the library.
23568 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
23569 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23570 gl_func_getloadavg_done
=yes
23572 $as_echo "#define SVR4 1" >>confdefs.h
23576 if test $gl_func_getloadavg_done = no
; then
23577 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23578 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
23579 gl_func_getloadavg_done
=yes
23581 $as_echo "#define UMAX 1" >>confdefs.h
23584 $as_echo "#define UMAX4_3 1" >>confdefs.h
23591 if test $gl_func_getloadavg_done = no
; then
23592 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23593 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
23594 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
23601 if test $gl_func_getloadavg_done = no
; then
23602 for ac_header
in mach
/mach.h
23604 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23605 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
23606 cat >>confdefs.h
<<_ACEOF
23607 #define HAVE_MACH_MACH_H 1
23616 for ac_header
in nlist.h
23618 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23619 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
23620 cat >>confdefs.h
<<_ACEOF
23621 #define HAVE_NLIST_H 1
23623 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23625 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
23627 cat >>confdefs.h
<<_ACEOF
23628 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23635 /* end confdefs.h. */
23641 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23642 x.n_un.n_name = "";
23650 if ac_fn_c_try_link
"$LINENO"; then :
23652 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23655 rm -f core conftest.err conftest.
$ac_objext \
23656 conftest
$ac_exeext conftest.
$ac_ext
23668 GNULIB_GETLOADAVG
=1
23679 if test $REPLACE_GETOPT = 1; then
23688 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23698 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23703 GNULIB_GL_UNISTD_H_GETOPT
=1
23713 if test -n "$gl_replace_getopt"; then
23717 if test $REPLACE_GETOPT = 1; then
23721 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23727 if test $REPLACE_GETOPT = 1; then
23736 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
23746 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
23751 GNULIB_GL_UNISTD_H_GETOPT
=1
23765 gl_gettimeofday_timezone
=void
23766 if test $ac_cv_func_gettimeofday != yes; then
23767 HAVE_GETTIMEOFDAY
=0
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23773 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23774 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23775 $as_echo_n "(cached) " >&6
23777 if test "$cross_compiling" = yes; then :
23778 # When cross-compiling:
23780 # Guess all is fine on glibc systems.
23781 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
23782 # If we don't know, assume the worst.
23783 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
23787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h. */
23789 #include <string.h>
23790 #include <sys/time.h>
23792 #include <stdlib.h>
23800 struct tm saved_lt;
23802 lt = localtime (&t);
23804 gettimeofday (&tv, NULL);
23805 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23811 if ac_fn_c_try_run
"$LINENO"; then :
23812 gl_cv_func_gettimeofday_clobber
=no
23814 gl_cv_func_gettimeofday_clobber
=yes
23816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23822 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23824 case "$gl_cv_func_gettimeofday_clobber" in
23826 REPLACE_GETTIMEOFDAY
=1
23829 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23832 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23836 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23842 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23843 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848 #include <sys/time.h>
23850 int gettimeofday (struct timeval *restrict, void *restrict);
23855 /* glibc uses struct timezone * rather than the POSIX void *
23856 if _GNU_SOURCE is defined. However, since the only portable
23857 use of gettimeofday uses NULL as the second parameter, and
23858 since the glibc definition is actually more typesafe, it is
23859 not worth wrapping this to get a compliant signature. */
23860 int (*f) (struct timeval *restrict, void *restrict)
23863 return !(x | c.tv_sec | c.tv_usec);
23869 if ac_fn_c_try_compile
"$LINENO"; then :
23870 gl_cv_func_gettimeofday_posix_signature
=yes
23872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23873 /* end confdefs.h. */
23874 #include <sys/time.h>
23875 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23885 if ac_fn_c_try_compile
"$LINENO"; then :
23886 gl_cv_func_gettimeofday_posix_signature
=almost
23888 gl_cv_func_gettimeofday_posix_signature
=no
23890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23895 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23896 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
23897 gl_gettimeofday_timezone
='struct timezone'
23898 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23899 REPLACE_GETTIMEOFDAY
=1
23901 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23902 REPLACE_GETTIMEOFDAY
=1
23907 cat >>confdefs.h
<<_ACEOF
23908 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23912 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
23921 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
23924 for ac_header
in sys
/timeb.h
23926 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23927 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
23928 cat >>confdefs.h
<<_ACEOF
23929 #define HAVE_SYS_TIMEB_H 1
23936 for ac_func
in _ftime
23938 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
23939 if test "x$ac_cv_func__ftime" = x
""yes; then :
23940 cat >>confdefs.h
<<_ACEOF
23941 #define HAVE__FTIME 1
23954 GNULIB_GETTIMEOFDAY
=1
23965 if test $ac_cv_func_lstat = yes; then
23967 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23976 if test $REPLACE_LSTAT = 1; then
23985 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24005 if test $ac_cv_have_decl_memrchr = no
; then
24006 HAVE_DECL_MEMRCHR
=0
24009 for ac_func
in memrchr
24011 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24012 if test "x$ac_cv_func_memrchr" = x
""yes; then :
24013 cat >>confdefs.h
<<_ACEOF
24014 #define HAVE_MEMRCHR 1
24021 if test $ac_cv_func_memrchr = no
; then
24030 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24051 if test $APPLE_UNIVERSAL_BUILD = 1; then
24052 # A universal build on Apple Mac OS X platforms.
24053 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24054 # But we need a configuration result that is valid in both modes.
24055 gl_cv_func_working_mktime
=no
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24058 $as_echo_n "checking for working mktime... " >&6; }
24059 if test "${gl_cv_func_working_mktime+set}" = set; then :
24060 $as_echo_n "(cached) " >&6
24062 if test "$cross_compiling" = yes; then :
24063 gl_cv_func_working_mktime
=no
24065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24066 /* end confdefs.h. */
24067 /* Test program from Paul Eggert and Tony Leneis. */
24068 #include <limits.h>
24069 #include <stdlib.h>
24072 #ifdef HAVE_UNISTD_H
24073 # include <unistd.h>
24076 #if HAVE_DECL_ALARM
24077 # include <signal.h>
24080 /* Work around redefinition to rpl_putenv by other config tests. */
24083 static time_t time_t_max;
24084 static time_t time_t_min;
24086 /* Values we'll use to set the TZ environment variable. */
24087 static char *tz_strings[] = {
24088 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24089 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24091 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24093 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24094 Based on a problem report from Andreas Jaeger. */
24096 spring_forward_gap ()
24098 /* glibc (up to about 1998-10-07) failed this test. */
24101 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24102 instead of "TZ=America/Vancouver" in order to detect the bug even
24103 on systems that don't support the Olson extension, or don't have the
24104 full zoneinfo tables installed. */
24105 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24114 return mktime (&tm) != (time_t) -1;
24118 mktime_test1 (time_t now)
24121 return ! (lt = localtime (&now)) || mktime (lt) == now;
24125 mktime_test (time_t now)
24127 return (mktime_test1 (now)
24128 && mktime_test1 ((time_t) (time_t_max - now))
24129 && mktime_test1 ((time_t) (time_t_min + now)));
24135 /* Based on code from Ariel Faigon. */
24145 return tm.tm_mon == 2 && tm.tm_mday == 31;
24149 bigtime_test (int j)
24153 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24154 now = mktime (&tm);
24155 if (now != (time_t) -1)
24157 struct tm *lt = localtime (&now);
24159 && lt->tm_year == tm.tm_year
24160 && lt->tm_mon == tm.tm_mon
24161 && lt->tm_mday == tm.tm_mday
24162 && lt->tm_hour == tm.tm_hour
24163 && lt->tm_min == tm.tm_min
24164 && lt->tm_sec == tm.tm_sec
24165 && lt->tm_yday == tm.tm_yday
24166 && lt->tm_wday == tm.tm_wday
24167 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24168 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24177 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24178 ignoring leap seconds. */
24179 unsigned long int answer = 2527315200UL;
24183 tm.tm_year = 2050 - 1900;
24186 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24189 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24190 instead of "TZ=America/Vancouver" in order to detect the bug even
24191 on systems that don't support the Olson extension, or don't have the
24192 full zoneinfo tables installed. */
24193 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24197 /* Check that the result is either a failure, or close enough
24198 to the correct answer that we can assume the discrepancy is
24199 due to leap seconds. */
24200 return (t == (time_t) -1
24201 || (0 < t && answer - 120 <= t && t <= answer + 120));
24210 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24211 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24213 #if HAVE_DECL_ALARM
24214 /* This test makes some buggy mktime implementations loop.
24215 Give up after 60 seconds; a mktime slower than that
24216 isn't worth using anyway. */
24217 signal (SIGALRM, SIG_DFL);
24221 time_t_max = (! time_t_signed
24223 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24225 time_t_min = (! time_t_signed
24227 : time_t_signed_magnitude
24231 delta = time_t_max / 997; /* a suitable prime number */
24232 for (i = 0; i < N_STRINGS; i++)
24235 putenv (tz_strings[i]);
24237 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24238 if (! mktime_test (t))
24240 if ((result & 2) == 0
24241 && ! (mktime_test ((time_t) 1)
24242 && mktime_test ((time_t) (60 * 60))
24243 && mktime_test ((time_t) (60 * 60 * 24))))
24246 for (j = 1; (result & 4) == 0; j <<= 1)
24248 if (! bigtime_test (j))
24250 if (INT_MAX / 2 < j)
24253 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24256 if (! irix_6_4_bug ())
24258 if (! spring_forward_gap ())
24260 if (! year_2050_test ())
24265 if ac_fn_c_try_run
"$LINENO"; then :
24266 gl_cv_func_working_mktime
=yes
24268 gl_cv_func_working_mktime
=no
24270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24277 $as_echo "$gl_cv_func_working_mktime" >&6; }
24279 if test $gl_cv_func_working_mktime = no
; then
24285 if test $REPLACE_MKTIME = 1; then
24294 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
24315 if test $ac_cv_func_pselect = yes; then
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24317 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24318 if test "${gl_cv_sig_pselect+set}" = set; then :
24319 $as_echo_n "(cached) " >&6
24321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24323 #include <sys/select.h>
24328 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24329 struct timespec const *restrict,
24330 sigset_t const *restrict) = pselect;
24336 if ac_fn_c_try_link
"$LINENO"; then :
24337 gl_cv_sig_pselect
=yes
24339 gl_cv_sig_pselect
=no
24341 rm -f core conftest.err conftest.
$ac_objext \
24342 conftest
$ac_exeext conftest.
$ac_ext
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24345 $as_echo "$gl_cv_sig_pselect" >&6; }
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24348 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24349 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24350 $as_echo_n "(cached) " >&6
24353 if test "$cross_compiling" = yes; then :
24356 # Guess yes on glibc systems.
24357 *-gnu*) gl_cv_func_pselect_detects_ebadf
="guessing yes" ;;
24358 # If we don't know, assume the worst.
24359 *) gl_cv_func_pselect_detects_ebadf
="guessing no" ;;
24363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24364 /* end confdefs.h. */
24366 #include <sys/types.h>
24367 #include <sys/time.h>
24368 #if HAVE_SYS_SELECT_H
24369 # include <sys/select.h>
24371 #include <unistd.h>
24383 struct timespec timeout;
24384 timeout.tv_sec = 0;
24385 timeout.tv_nsec = 5000;
24386 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24392 if ac_fn_c_try_run
"$LINENO"; then :
24393 gl_cv_func_pselect_detects_ebadf
=yes
24395 gl_cv_func_pselect_detects_ebadf
=no
24397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24404 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24405 case $gl_cv_func_pselect_detects_ebadf in
24407 *) REPLACE_PSELECT
=1 ;;
24411 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
24415 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
24424 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
24442 LIB_PTHREAD_SIGMASK
=
24447 if test "$gl_threads_api" = posix
; then
24448 if test $ac_cv_func_pthread_sigmask = yes; then
24451 if test -n "$LIBMULTITHREAD"; then
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24453 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24454 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gl_save_LIBS
="$LIBS"
24458 LIBS
="$LIBS $LIBMULTITHREAD"
24459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h. */
24461 #include <pthread.h>
24462 #include <signal.h>
24467 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24473 if ac_fn_c_try_link
"$LINENO"; then :
24474 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=yes
24476 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD
=no
24478 rm -f core conftest.err conftest.
$ac_objext \
24479 conftest
$ac_exeext conftest.
$ac_ext
24480 LIBS
="$gl_save_LIBS"
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24484 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24485 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24486 LIB_PTHREAD_SIGMASK
="$LIBMULTITHREAD"
24488 HAVE_PTHREAD_SIGMASK
=0
24491 HAVE_PTHREAD_SIGMASK
=0
24495 if test $ac_cv_func_pthread_sigmask = yes; then
24496 REPLACE_PTHREAD_SIGMASK
=1
24498 HAVE_PTHREAD_SIGMASK
=0
24505 if test $HAVE_PTHREAD_SIGMASK = 1; then
24508 if test -z "$LIB_PTHREAD_SIGMASK"; then
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24510 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24511 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24512 $as_echo_n "(cached) " >&6
24515 if test "$cross_compiling" = yes; then :
24518 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
24519 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
24521 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
24525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24528 #include <pthread.h>
24529 #include <signal.h>
24530 #include <stddef.h>
24534 sigemptyset (&set);
24535 return pthread_sigmask (1729, &set, NULL) != 0;
24538 if ac_fn_c_try_run
"$LINENO"; then :
24539 gl_cv_func_pthread_sigmask_in_libc_works
=no
24541 gl_cv_func_pthread_sigmask_in_libc_works
=yes
24543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24550 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24551 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24553 REPLACE_PTHREAD_SIGMASK
=1
24555 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24562 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24563 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24567 gl_save_LIBS
="$LIBS"
24568 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
24569 if test "$cross_compiling" = yes; then :
24572 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
24574 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
24578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 #include <pthread.h>
24582 #include <signal.h>
24583 #include <stddef.h>
24587 sigemptyset (&set);
24588 if (pthread_sigmask (1729, &set, NULL) == -1)
24593 if ac_fn_c_try_run
"$LINENO"; then :
24594 gl_cv_func_pthread_sigmask_return_works
=yes
24596 gl_cv_func_pthread_sigmask_return_works
=no
24598 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24599 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24602 LIBS
="$gl_save_LIBS"
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24606 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24607 case "$gl_cv_func_pthread_sigmask_return_works" in
24609 REPLACE_PTHREAD_SIGMASK
=1
24611 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24617 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24618 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24619 $as_echo_n "(cached) " >&6
24624 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
24626 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
24628 gl_save_LIBS
="$LIBS"
24629 LIBS
="$LIBS $LIBMULTITHREAD"
24630 if test "$cross_compiling" = yes; then :
24633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24634 /* end confdefs.h. */
24636 #include <pthread.h>
24637 #include <signal.h>
24639 #include <stdlib.h>
24640 #include <unistd.h>
24641 static volatile int sigint_occurred;
24643 sigint_handler (int sig)
24650 int pid = getpid ();
24652 signal (SIGINT, sigint_handler);
24653 sigemptyset (&set);
24654 sigaddset (&set, SIGINT);
24655 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24657 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24658 if (!(system (command) == 0))
24661 if (!(sigint_occurred == 0))
24663 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24665 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24670 if ac_fn_c_try_run
"$LINENO"; then :
24673 gl_cv_func_pthread_sigmask_unblock_works
=no
24675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24679 LIBS
="$gl_save_LIBS"
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24683 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24684 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24686 REPLACE_PTHREAD_SIGMASK
=1
24688 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24694 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
24703 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24706 if test $HAVE_PTHREAD_SIGMASK = 1; then
24708 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24718 GNULIB_PTHREAD_SIGMASK
=1
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24727 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24728 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24729 $as_echo_n "(cached) " >&6
24731 if test "$cross_compiling" = yes; then :
24733 # Guess yes on glibc systems.
24734 *-gnu*) gl_cv_func_svid_putenv
="guessing yes" ;;
24735 # If we don't know, assume the worst.
24736 *) gl_cv_func_svid_putenv
="guessing no" ;;
24740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24741 /* end confdefs.h. */
24742 $ac_includes_default
24747 /* Put it in env. */
24748 if (putenv ("CONFTEST_putenv=val"))
24751 /* Try to remove it. */
24752 if (putenv ("CONFTEST_putenv"))
24755 /* Make sure it was deleted. */
24756 if (getenv ("CONFTEST_putenv") != 0)
24765 if ac_fn_c_try_run
"$LINENO"; then :
24766 gl_cv_func_svid_putenv
=yes
24768 gl_cv_func_svid_putenv
=no
24770 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24771 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24777 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24778 case "$gl_cv_func_svid_putenv" in
24785 if test $REPLACE_PUTENV = 1; then
24794 gl_LIBOBJS
="$gl_LIBOBJS putenv.$ac_objext"
24797 ac_fn_c_check_decl
"$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24798 if test "x$ac_cv_have_decl__putenv" = x
""yes; then :
24804 cat >>confdefs.h
<<_ACEOF
24805 #define HAVE_DECL__PUTENV $ac_have_decl
24822 # Check whether --enable-acl was given.
24823 if test "${enable_acl+set}" = set; then :
24824 enableval
=$enable_acl;
24832 if test "x$enable_acl" != "xno"; then
24833 for ac_header
in sys
/acl.h
24835 ac_fn_c_check_header_mongrel
"$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24836 if test "x$ac_cv_header_sys_acl_h" = x
""yes; then :
24837 cat >>confdefs.h
<<_ACEOF
24838 #define HAVE_SYS_ACL_H 1
24845 if test $ac_cv_header_sys_acl_h = yes; then
24848 if test $use_acl = 0; then
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24850 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24851 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24852 $as_echo_n "(cached) " >&6
24854 ac_func_search_save_LIBS
=$LIBS
24855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24856 /* end confdefs.h. */
24858 /* Override any GCC internal prototype to avoid an error.
24859 Use char because int might match the return type of a GCC
24860 builtin and then its argument prototype would still apply. */
24864 char acl_get_file ();
24868 return acl_get_file ();
24873 for ac_lib
in '' acl pacl
; do
24874 if test -z "$ac_lib"; then
24875 ac_res
="none required"
24878 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24880 if ac_fn_c_try_link
"$LINENO"; then :
24881 ac_cv_search_acl_get_file
=$ac_res
24883 rm -f core conftest.err conftest.
$ac_objext \
24885 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24889 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24892 ac_cv_search_acl_get_file
=no
24894 rm conftest.
$ac_ext
24895 LIBS
=$ac_func_search_save_LIBS
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
24898 $as_echo "$ac_cv_search_acl_get_file" >&6; }
24899 ac_res
=$ac_cv_search_acl_get_file
24900 if test "$ac_res" != no
; then :
24901 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24902 if test "$ac_cv_search_acl_get_file" != "none required"; then
24903 LIB_ACL
=$ac_cv_search_acl_get_file
24905 for ac_func
in acl_get_file acl_get_fd acl_set_file acl_set_fd \
24906 acl_free acl_from_mode acl_from_text \
24907 acl_delete_def_file acl_extended_file \
24908 acl_delete_fd_np acl_delete_file_np \
24909 acl_copy_ext_native acl_create_entry_np \
24910 acl_to_short_text acl_free_text
24912 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24913 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24914 eval as_val
=\$
$as_ac_var
24915 if test "x$as_val" = x
""yes; then :
24916 cat >>confdefs.h
<<_ACEOF
24917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24923 # If the acl_get_file bug is detected, don't enable the ACL support.
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
24926 $as_echo_n "checking for working acl_get_file... " >&6; }
24927 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
24928 $as_echo_n "(cached) " >&6
24930 if test "$cross_compiling" = yes; then :
24931 gl_cv_func_working_acl_get_file
=cross-compiling
24933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24935 #include <sys/types.h>
24936 #include <sys/acl.h>
24942 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
24950 if ac_fn_c_try_run
"$LINENO"; then :
24951 gl_cv_func_working_acl_get_file
=yes
24953 gl_cv_func_working_acl_get_file
=no
24955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
24961 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
24963 if test $gl_cv_func_working_acl_get_file = yes; then :
24967 if test $use_acl = 1; then
24968 for ac_header
in acl
/libacl.h
24970 ac_fn_c_check_header_mongrel
"$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
24971 if test "x$ac_cv_header_acl_libacl_h" = x
""yes; then :
24972 cat >>confdefs.h
<<_ACEOF
24973 #define HAVE_ACL_LIBACL_H 1
24988 for ac_func
in acl_entries
24990 ac_fn_c_check_func
"$LINENO" "acl_entries" "ac_cv_func_acl_entries"
24991 if test "x$ac_cv_func_acl_entries" = x
""yes; then :
24992 cat >>confdefs.h
<<_ACEOF
24993 #define HAVE_ACL_ENTRIES 1
24998 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25005 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25006 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25011 #include <sys/types.h>
25012 #include <sys/acl.h>
25013 int type = ACL_FIRST_ENTRY;
25022 if ac_fn_c_try_compile
"$LINENO"; then :
25023 gl_cv_acl_ACL_FIRST_ENTRY
=yes
25025 gl_cv_acl_ACL_FIRST_ENTRY
=no
25027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25030 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25031 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25033 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25037 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25038 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25042 /* end confdefs.h. */
25043 #include <sys/types.h>
25044 #include <sys/acl.h>
25045 int type = ACL_TYPE_EXTENDED;
25054 if ac_fn_c_try_compile
"$LINENO"; then :
25055 gl_cv_acl_ACL_TYPE_EXTENDED
=yes
25057 gl_cv_acl_ACL_TYPE_EXTENDED
=no
25059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25062 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25063 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25065 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25076 if test $use_acl = 0; then
25077 for ac_func
in facl
25079 ac_fn_c_check_func
"$LINENO" "facl" "ac_cv_func_facl"
25080 if test "x$ac_cv_func_facl" = x
""yes; then :
25081 cat >>confdefs.h
<<_ACEOF
25082 #define HAVE_FACL 1
25088 if test $ac_cv_func_facl = yes; then
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25090 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25091 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25092 $as_echo_n "(cached) " >&6
25094 ac_func_search_save_LIBS
=$LIBS
25095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h. */
25098 /* Override any GCC internal prototype to avoid an error.
25099 Use char because int might match the return type of a GCC
25100 builtin and then its argument prototype would still apply. */
25104 char acl_trivial ();
25108 return acl_trivial ();
25113 for ac_lib
in '' sec
; do
25114 if test -z "$ac_lib"; then
25115 ac_res
="none required"
25118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25120 if ac_fn_c_try_link
"$LINENO"; then :
25121 ac_cv_search_acl_trivial
=$ac_res
25123 rm -f core conftest.err conftest.
$ac_objext \
25125 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25129 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25132 ac_cv_search_acl_trivial
=no
25134 rm conftest.
$ac_ext
25135 LIBS
=$ac_func_search_save_LIBS
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25138 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25139 ac_res
=$ac_cv_search_acl_trivial
25140 if test "$ac_res" != no
; then :
25141 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25142 if test "$ac_cv_search_acl_trivial" != "none required"; then
25143 LIB_ACL
=$ac_cv_search_acl_trivial
25148 for ac_func
in acl_trivial
25150 ac_fn_c_check_func
"$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25151 if test "x$ac_cv_func_acl_trivial" = x
""yes; then :
25152 cat >>confdefs.h
<<_ACEOF
25153 #define HAVE_ACL_TRIVIAL 1
25163 if test $use_acl = 0; then
25164 for ac_func
in getacl
25166 ac_fn_c_check_func
"$LINENO" "getacl" "ac_cv_func_getacl"
25167 if test "x$ac_cv_func_getacl" = x
""yes; then :
25168 cat >>confdefs.h
<<_ACEOF
25169 #define HAVE_GETACL 1
25175 if test $ac_cv_func_getacl = yes; then
25178 for ac_header
in aclv.h
25180 ac_fn_c_check_header_compile
"$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25182 if test "x$ac_cv_header_aclv_h" = x
""yes; then :
25183 cat >>confdefs.h
<<_ACEOF
25184 #define HAVE_ACLV_H 1
25193 if test $use_acl = 0; then
25194 for ac_func
in aclx_get
25196 ac_fn_c_check_func
"$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25197 if test "x$ac_cv_func_aclx_get" = x
""yes; then :
25198 cat >>confdefs.h
<<_ACEOF
25199 #define HAVE_ACLX_GET 1
25205 if test $ac_cv_func_aclx_get = yes; then
25210 if test $use_acl = 0 ||
test "$ac_cv_func_aclx_get" = yes; then
25211 for ac_func
in statacl
25213 ac_fn_c_check_func
"$LINENO" "statacl" "ac_cv_func_statacl"
25214 if test "x$ac_cv_func_statacl" = x
""yes; then :
25215 cat >>confdefs.h
<<_ACEOF
25216 #define HAVE_STATACL 1
25222 if test $ac_cv_func_statacl = yes; then
25227 if test $use_acl = 0; then
25228 for ac_func
in aclsort
25230 ac_fn_c_check_func
"$LINENO" "aclsort" "ac_cv_func_aclsort"
25231 if test "x$ac_cv_func_aclsort" = x
""yes; then :
25232 cat >>confdefs.h
<<_ACEOF
25233 #define HAVE_ACLSORT 1
25239 if test $ac_cv_func_aclsort = yes; then
25246 if test "x$enable_acl$use_acl" = "xyes0"; then
25247 as_fn_error
"ACLs enabled but support not detected" "$LINENO" 5
25248 elif test "x$enable_acl$use_acl" = "xauto0"; then
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25250 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25252 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25257 cat >>confdefs.h
<<_ACEOF
25258 #define USE_ACL $use_acl
25267 if test $ac_cv_func_readlink = no
; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25271 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25272 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25273 $as_echo_n "(cached) " >&6
25275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25277 #include <unistd.h>
25278 /* Cause compilation failure if original declaration has wrong type. */
25279 ssize_t readlink (const char *, char *, size_t);
25288 if ac_fn_c_try_compile
"$LINENO"; then :
25289 gl_cv_decl_readlink_works
=yes
25291 gl_cv_decl_readlink_works
=no
25293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25296 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25298 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25299 if test "${gl_cv_func_readlink_works+set}" = set; then :
25300 $as_echo_n "(cached) " >&6
25302 # We have readlink, so assume ln -s works.
25303 ln -s conftest.no-such conftest.link
25304 ln -s conftest.link conftest.lnk2
25305 if test "$cross_compiling" = yes; then :
25307 # Guess yes on glibc systems.
25308 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
25309 # If we don't know, assume the worst.
25310 *) gl_cv_func_readlink_works
="guessing no" ;;
25314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h. */
25316 #include <unistd.h>
25322 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25327 if ac_fn_c_try_run
"$LINENO"; then :
25328 gl_cv_func_readlink_works
=yes
25330 gl_cv_func_readlink_works
=no
25332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25336 rm -f conftest.link conftest.lnk2
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25339 $as_echo "$gl_cv_func_readlink_works" >&6; }
25340 case "$gl_cv_func_readlink_works" in
25342 if test "$gl_cv_decl_readlink_works" != yes; then
25348 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25355 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25364 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25385 if test $ac_cv_func_readlinkat = no
; then
25389 if test $HAVE_READLINKAT = 0; then
25398 gl_LIBOBJS
="$gl_LIBOBJS readlinkat.$ac_objext"
25406 GNULIB_READLINKAT
=1
25413 for ac_func
in sig2str
25415 ac_fn_c_check_func
"$LINENO" "sig2str" "ac_cv_func_sig2str"
25416 if test "x$ac_cv_func_sig2str" = x
""yes; then :
25417 cat >>confdefs.h
<<_ACEOF
25418 #define HAVE_SIG2STR 1
25425 if test $ac_cv_func_sig2str = no
; then
25434 gl_LIBOBJS
="$gl_LIBOBJS sig2str.$ac_objext"
25451 if test $gl_cv_have_include_next = yes; then
25452 gl_cv_next_signal_h
='<'signal.h
'>'
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25455 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25456 if test "${gl_cv_next_signal_h+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h. */
25462 #include <signal.h>
25466 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25467 *) gl_absname_cpp
="$ac_cpp" ;;
25472 gl_dirsep_regex
='[/\\]'
25475 gl_dirsep_regex
='\/'
25478 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25480 gl_header_literal_regex
=`echo 'signal.h' \
25481 | sed -e "$gl_make_literal_regex_sed"`
25482 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25483 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25488 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25489 sed -n "$gl_absolute_header_sed"`'"'
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25494 $as_echo "$gl_cv_next_signal_h" >&6; }
25496 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25498 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25500 gl_next_as_first_directive
='<'signal.h
'>'
25502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25503 gl_next_as_first_directive
=$gl_cv_next_signal_h
25505 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25511 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25512 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25513 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25514 #include <signal.h>
25517 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
25520 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25529 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25530 #include <signal.h>
25533 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
25536 HAVE_SIGHANDLER_T
=0
25542 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25543 /* <sys/types.h> is not needed according to POSIX, but the
25544 <sys/socket.h> in i386-unknown-freebsd4.10 and
25545 powerpc-apple-darwin5.5 required it. */
25546 #include <sys/types.h>
25547 #if HAVE_SYS_SOCKET_H
25548 # include <sys/socket.h>
25549 #elif HAVE_WS2TCPIP_H
25550 # include <ws2tcpip.h>
25554 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25558 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25559 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25562 # Systems have either "struct sockaddr *" or
25563 # "void *" as the second argument to getpeername
25564 gl_cv_socklen_t_equiv
=
25565 for arg2
in "struct sockaddr" void
; do
25566 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h. */
25569 #include <sys/types.h>
25570 #include <sys/socket.h>
25572 int getpeername (int, $arg2 *, $t *);
25577 getpeername (0, 0, &len);
25582 if ac_fn_c_try_compile
"$LINENO"; then :
25583 gl_cv_socklen_t_equiv
="$t"
25585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25586 test "$gl_cv_socklen_t_equiv" != "" && break
25588 test "$gl_cv_socklen_t_equiv" != "" && break
25593 if test "$gl_cv_socklen_t_equiv" = ""; then
25594 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25597 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25599 cat >>confdefs.h
<<_ACEOF
25600 #define socklen_t $gl_cv_socklen_t_equiv
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25607 $as_echo_n "checking for ssize_t... " >&6; }
25608 if test "${gt_cv_ssize_t+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25613 #include <sys/types.h>
25617 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25623 if ac_fn_c_try_compile
"$LINENO"; then :
25628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25631 $as_echo "$gt_cv_ssize_t" >&6; }
25632 if test $gt_cv_ssize_t = no
; then
25634 $as_echo "#define ssize_t int" >>confdefs.h
25642 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>
25643 #include <sys/stat.h>
25645 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
25647 cat >>confdefs.h
<<_ACEOF
25648 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25652 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25653 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25654 $as_echo_n "(cached) " >&6
25656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h. */
25659 #include <sys/types.h>
25660 #include <sys/stat.h>
25661 #if HAVE_SYS_TIME_H
25662 # include <sys/time.h>
25665 struct timespec ts;
25678 if ac_fn_c_try_compile
"$LINENO"; then :
25679 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
25681 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
25683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25686 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25687 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25689 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25693 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>
25694 #include <sys/stat.h>
25696 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
25698 cat >>confdefs.h
<<_ACEOF
25699 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25704 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25705 #include <sys/stat.h>
25707 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
25709 cat >>confdefs.h
<<_ACEOF
25710 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25715 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>
25716 #include <sys/stat.h>
25718 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
25720 cat >>confdefs.h
<<_ACEOF
25721 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25737 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>
25738 #include <sys/stat.h>
25740 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
25742 cat >>confdefs.h
<<_ACEOF
25743 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25748 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25749 #include <sys/stat.h>
25751 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
25753 cat >>confdefs.h
<<_ACEOF
25754 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25759 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>
25760 #include <sys/stat.h>
25762 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
25764 cat >>confdefs.h
<<_ACEOF
25765 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25778 $as_echo_n "checking for working stdalign.h... " >&6; }
25779 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h. */
25784 #include <stdalign.h>
25785 #include <stddef.h>
25787 /* Test that alignof yields a result consistent with offsetof.
25788 This catches GCC bug 52023
25789 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25791 template <class t> struct alignof_helper { char a; t b; };
25792 # define ao(type) offsetof (alignof_helper<type>, b)
25794 # define ao(type) offsetof (struct { char a; type b; }, b)
25796 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25797 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25798 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25800 /* Test _Alignas only on platforms where gnulib can help. */
25802 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25803 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25804 struct alignas_test { char c; char alignas (8) alignas_8; };
25805 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25817 if ac_fn_c_try_compile
"$LINENO"; then :
25818 gl_cv_header_working_stdalign_h
=yes
25820 gl_cv_header_working_stdalign_h
=no
25822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25825 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25827 if test $gl_cv_header_working_stdalign_h = yes; then
25830 STDALIGN_H
='stdalign.h'
25834 if test -n "$STDALIGN_H"; then
25835 GL_GENERATE_STDALIGN_H_TRUE
=
25836 GL_GENERATE_STDALIGN_H_FALSE
='#'
25838 GL_GENERATE_STDALIGN_H_TRUE
='#'
25839 GL_GENERATE_STDALIGN_H_FALSE
=
25845 NEXT_STDARG_H
='<stdarg.h>'
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25847 $as_echo_n "checking for va_copy... " >&6; }
25848 if test "${gl_cv_func_va_copy+set}" = set; then :
25849 $as_echo_n "(cached) " >&6
25852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25854 #include <stdarg.h>
25860 void (*func) (va_list, va_list) = va_copy;
25867 if ac_fn_c_try_compile
"$LINENO"; then :
25868 gl_cv_func_va_copy
=yes
25870 gl_cv_func_va_copy
=no
25872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25876 $as_echo "$gl_cv_func_va_copy" >&6; }
25877 if test $gl_cv_func_va_copy = no
; then
25878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25879 /* end confdefs.h. */
25880 #if defined _AIX && !defined __GNUC__
25885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25886 $EGREP "vaccine" >/dev
/null
2>&1; then :
25893 if test $gl_aixcc = yes; then
25903 if test $gl_cv_have_include_next = yes; then
25904 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25907 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25908 if test "${gl_cv_next_stdarg_h+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25913 /* end confdefs.h. */
25914 #include <stdarg.h>
25918 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25919 *) gl_absname_cpp
="$ac_cpp" ;;
25924 gl_dirsep_regex
='[/\\]'
25927 gl_dirsep_regex
='\/'
25930 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25932 gl_header_literal_regex
=`echo 'stdarg.h' \
25933 | sed -e "$gl_make_literal_regex_sed"`
25934 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25940 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25941 sed -n "$gl_absolute_header_sed"`'"'
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25946 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25948 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
25950 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25952 gl_next_as_first_directive
='<'stdarg.h
'>'
25954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25955 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
25957 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
25962 if test "$gl_cv_next_stdarg_h" = '""'; then
25963 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
25964 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
25968 saved_as_echo_n
="$as_echo_n"
25970 if test "${gl_cv_func___va_copy+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25975 /* end confdefs.h. */
25976 #include <stdarg.h>
25989 if ac_fn_c_try_compile
"$LINENO"; then :
25990 gl_cv_func___va_copy
=yes
25992 gl_cv_func___va_copy
=no
25994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25997 as_echo_n
="$saved_as_echo_n"
25999 if test $gl_cv_func___va_copy = yes; then
26001 $as_echo "#define va_copy __va_copy" >>confdefs.h
26006 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26012 if test -n "$STDARG_H"; then
26013 GL_GENERATE_STDARG_H_TRUE
=
26014 GL_GENERATE_STDARG_H_FALSE
='#'
26016 GL_GENERATE_STDARG_H_TRUE
='#'
26017 GL_GENERATE_STDARG_H_FALSE
=
26025 # Define two additional variables used in the Makefile substitution.
26027 if test "$ac_cv_header_stdbool_h" = yes; then
26030 STDBOOL_H
='stdbool.h'
26033 if test -n "$STDBOOL_H"; then
26034 GL_GENERATE_STDBOOL_H_TRUE
=
26035 GL_GENERATE_STDBOOL_H_FALSE
='#'
26037 GL_GENERATE_STDBOOL_H_TRUE
='#'
26038 GL_GENERATE_STDBOOL_H_FALSE
=
26042 if test "$ac_cv_type__Bool" = yes; then
26053 if test $gt_cv_c_wchar_t = no
; then
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26058 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26059 if test "${gl_cv_decl_null_works+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26063 /* end confdefs.h. */
26064 #include <stddef.h>
26065 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26075 if ac_fn_c_try_compile
"$LINENO"; then :
26076 gl_cv_decl_null_works
=yes
26078 gl_cv_decl_null_works
=no
26080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26083 $as_echo "$gl_cv_decl_null_works" >&6; }
26084 if test $gl_cv_decl_null_works = no
; then
26089 if test -n "$STDDEF_H"; then
26090 GL_GENERATE_STDDEF_H_TRUE
=
26091 GL_GENERATE_STDDEF_H_FALSE
='#'
26093 GL_GENERATE_STDDEF_H_TRUE
='#'
26094 GL_GENERATE_STDDEF_H_FALSE
=
26097 if test -n "$STDDEF_H"; then
26106 if test $gl_cv_have_include_next = yes; then
26107 gl_cv_next_stddef_h
='<'stddef.h
'>'
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26110 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26111 if test "${gl_cv_next_stddef_h+set}" = set; then :
26112 $as_echo_n "(cached) " >&6
26115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26116 /* end confdefs.h. */
26117 #include <stddef.h>
26121 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26122 *) gl_absname_cpp
="$ac_cpp" ;;
26127 gl_dirsep_regex
='[/\\]'
26130 gl_dirsep_regex
='\/'
26133 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26135 gl_header_literal_regex
=`echo 'stddef.h' \
26136 | sed -e "$gl_make_literal_regex_sed"`
26137 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26143 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26144 sed -n "$gl_absolute_header_sed"`'"'
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26149 $as_echo "$gl_cv_next_stddef_h" >&6; }
26151 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26153 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26155 gl_next_as_first_directive
='<'stddef.h
'>'
26157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26158 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26160 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26178 if test $gl_cv_have_include_next = yes; then
26179 gl_cv_next_stdio_h
='<'stdio.h
'>'
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26182 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26183 if test "${gl_cv_next_stdio_h+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26188 /* end confdefs.h. */
26193 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26194 *) gl_absname_cpp
="$ac_cpp" ;;
26199 gl_dirsep_regex
='[/\\]'
26202 gl_dirsep_regex
='\/'
26205 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26207 gl_header_literal_regex
=`echo 'stdio.h' \
26208 | sed -e "$gl_make_literal_regex_sed"`
26209 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26215 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26216 sed -n "$gl_absolute_header_sed"`'"'
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26221 $as_echo "$gl_cv_next_stdio_h" >&6; }
26223 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26225 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26227 gl_next_as_first_directive
='<'stdio.h
'>'
26229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26230 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26232 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26241 cat >>confdefs.h
<<_ACEOF
26242 #define GNULIB_FSCANF 1
26249 cat >>confdefs.h
<<_ACEOF
26250 #define GNULIB_SCANF 1
26286 if test $gl_cv_have_include_next = yes; then
26287 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26290 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26291 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26296 /* end confdefs.h. */
26297 #include <stdlib.h>
26301 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26302 *) gl_absname_cpp
="$ac_cpp" ;;
26307 gl_dirsep_regex
='[/\\]'
26310 gl_dirsep_regex
='\/'
26313 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26315 gl_header_literal_regex
=`echo 'stdlib.h' \
26316 | sed -e "$gl_make_literal_regex_sed"`
26317 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26318 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26323 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26324 sed -n "$gl_absolute_header_sed"`'"'
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26329 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26331 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
26333 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26335 gl_next_as_first_directive
='<'stdlib.h
'>'
26337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26338 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
26340 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
26350 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26358 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26370 if test "$ac_cv_have_decl_strtoimax" != yes; then
26371 HAVE_DECL_STRTOIMAX
=0
26374 if test $ac_cv_func_strtoimax = yes; then
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26377 $as_echo_n "checking whether strtoimax works... " >&6; }
26378 if test "${gl_cv_func_strtoimax+set}" = set; then :
26379 $as_echo_n "(cached) " >&6
26381 if test "$cross_compiling" = yes; then :
26383 # Guess no on AIX 5.
26384 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
26385 # Guess yes otherwise.
26386 *) gl_cv_func_strtoimax
="guessing yes" ;;
26390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26394 #include <string.h>
26395 #include <inttypes.h>
26398 if (sizeof (intmax_t) > sizeof (int))
26400 const char *s = "4294967295";
26404 res = strtoimax (s, &p, 10);
26405 if (p != s + strlen (s))
26409 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26414 const char *s = "2147483647";
26418 res = strtoimax (s, &p, 10);
26419 if (p != s + strlen (s))
26423 if (res != 2147483647)
26430 if ac_fn_c_try_run
"$LINENO"; then :
26431 gl_cv_func_strtoimax
=yes
26433 gl_cv_func_strtoimax
=no
26435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26442 $as_echo "$gl_cv_func_strtoimax" >&6; }
26443 case "$gl_cv_func_strtoimax" in
26444 *no
) REPLACE_STRTOIMAX
=1 ;;
26450 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
26459 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
26462 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26463 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
26469 cat >>confdefs.h
<<_ACEOF
26470 #define HAVE_DECL_STRTOLL $ac_have_decl
26491 if test "$ac_cv_have_decl_strtoumax" != yes; then
26492 HAVE_DECL_STRTOUMAX
=0
26495 if test $ac_cv_func_strtoumax = no
; then
26504 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
26507 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26508 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
26514 cat >>confdefs.h
<<_ACEOF
26515 #define HAVE_DECL_STRTOULL $ac_have_decl
26534 if test $ac_cv_func_symlink = no
; then
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26538 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26539 if test "${gl_cv_func_symlink_works+set}" = set; then :
26540 $as_echo_n "(cached) " >&6
26542 if test "$cross_compiling" = yes; then :
26544 # Guess yes on glibc systems.
26545 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
26546 # If we don't know, assume the worst.
26547 *) gl_cv_func_symlink_works
="guessing no" ;;
26551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26553 #include <unistd.h>
26559 if (!symlink ("a", "conftest.link/"))
26561 if (symlink ("conftest.f", "conftest.lnk2"))
26563 else if (!symlink ("a", "conftest.lnk2/"))
26571 if ac_fn_c_try_run
"$LINENO"; then :
26572 gl_cv_func_symlink_works
=yes
26574 gl_cv_func_symlink_works
=no
26576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26580 rm -f conftest.f conftest.link conftest.lnk2
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26583 $as_echo "$gl_cv_func_symlink_works" >&6; }
26584 case "$gl_cv_func_symlink_works" in
26592 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
26601 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26619 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26620 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26625 /* end confdefs.h. */
26626 #include <sys/select.h>
26635 if ac_fn_c_try_compile
"$LINENO"; then :
26636 gl_cv_header_sys_select_h_selfcontained
=yes
26638 gl_cv_header_sys_select_h_selfcontained
=no
26640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26641 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h. */
26644 #include <sys/select.h>
26648 int memset; int bzero;
26654 if ac_fn_c_try_compile
"$LINENO"; then :
26655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26656 /* end confdefs.h. */
26657 #include <sys/select.h>
26663 #define memset nonexistent_memset
26668 void *memset (void *, int, unsigned long);
26670 #define bzero nonexistent_bzero
26675 void bzero (void *, unsigned long);
26684 if ac_fn_c_try_link
"$LINENO"; then :
26687 gl_cv_header_sys_select_h_selfcontained
=no
26689 rm -f core conftest.err conftest.
$ac_objext \
26690 conftest
$ac_exeext conftest.
$ac_ext
26693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26698 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26708 if test $gl_cv_have_include_next = yes; then
26709 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26712 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26713 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26717 if test $ac_cv_header_sys_select_h = yes; then
26720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26721 /* end confdefs.h. */
26722 #include <sys/select.h>
26726 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26727 *) gl_absname_cpp
="$ac_cpp" ;;
26732 gl_dirsep_regex
='[/\\]'
26735 gl_dirsep_regex
='\/'
26738 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26740 gl_header_literal_regex
=`echo 'sys/select.h' \
26741 | sed -e "$gl_make_literal_regex_sed"`
26742 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26743 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26748 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26749 sed -n "$gl_absolute_header_sed"`'"'
26751 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26757 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26759 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
26761 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26762 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26763 gl_next_as_first_directive
='<'sys
/select.h
'>'
26765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26766 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
26768 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
26773 if test $ac_cv_header_sys_select_h = yes; then
26774 HAVE_SYS_SELECT_H
=1
26776 HAVE_SYS_SELECT_H
=0
26783 if test $ac_cv_header_sys_socket_h != yes; then
26784 for ac_header
in winsock2.h
26786 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26787 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
26788 cat >>confdefs.h
<<_ACEOF
26789 #define HAVE_WINSOCK2_H 1
26797 if test "$ac_cv_header_winsock2_h" = yes; then
26799 UNISTD_H_HAVE_WINSOCK2_H
=1
26800 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26824 if test $gl_cv_have_include_next = yes; then
26825 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26828 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26829 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26830 $as_echo_n "(cached) " >&6
26833 if test $ac_cv_header_sys_stat_h = yes; then
26836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26837 /* end confdefs.h. */
26838 #include <sys/stat.h>
26842 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26843 *) gl_absname_cpp
="$ac_cpp" ;;
26848 gl_dirsep_regex
='[/\\]'
26851 gl_dirsep_regex
='\/'
26854 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26856 gl_header_literal_regex
=`echo 'sys/stat.h' \
26857 | sed -e "$gl_make_literal_regex_sed"`
26858 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26859 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26864 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26865 sed -n "$gl_absolute_header_sed"`'"'
26867 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26873 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26875 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26877 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26879 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26882 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26884 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26896 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26898 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26902 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26903 #include <sys/stat.h>
26905 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
26909 $as_echo "#define nlink_t int" >>confdefs.h
26930 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
26932 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
26938 cat >>confdefs.h
<<_ACEOF
26939 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26942 if test $ac_cv_have_decl_localtime_r = no
; then
26943 HAVE_DECL_LOCALTIME_R
=0
26947 if test $ac_cv_func_localtime_r = yes; then
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26950 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26951 if test "${gl_cv_time_r_posix+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h. */
26960 /* We don't need to append 'restrict's to the argument types,
26961 even though the POSIX signature has the 'restrict's,
26962 since C99 says they can't affect type compatibility. */
26963 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26965 /* Check the return type is a pointer.
26966 On HP-UX 10 it is 'int'. */
26967 *localtime_r (0, 0);
26973 if ac_fn_c_try_compile
"$LINENO"; then :
26974 gl_cv_time_r_posix
=yes
26976 gl_cv_time_r_posix
=no
26978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26982 $as_echo "$gl_cv_time_r_posix" >&6; }
26983 if test $gl_cv_time_r_posix = yes; then
26984 REPLACE_LOCALTIME_R
=0
26986 REPLACE_LOCALTIME_R
=1
26992 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27001 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27025 gl_saved_libs
=$LIBS
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27027 $as_echo_n "checking for library containing timer_settime... " >&6; }
27028 if test "${ac_cv_search_timer_settime+set}" = set; then :
27029 $as_echo_n "(cached) " >&6
27031 ac_func_search_save_LIBS
=$LIBS
27032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27035 /* Override any GCC internal prototype to avoid an error.
27036 Use char because int might match the return type of a GCC
27037 builtin and then its argument prototype would still apply. */
27041 char timer_settime ();
27045 return timer_settime ();
27050 for ac_lib
in '' rt posix4
; do
27051 if test -z "$ac_lib"; then
27052 ac_res
="none required"
27055 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27057 if ac_fn_c_try_link
"$LINENO"; then :
27058 ac_cv_search_timer_settime
=$ac_res
27060 rm -f core conftest.err conftest.
$ac_objext \
27062 if test "${ac_cv_search_timer_settime+set}" = set; then :
27066 if test "${ac_cv_search_timer_settime+set}" = set; then :
27069 ac_cv_search_timer_settime
=no
27071 rm conftest.
$ac_ext
27072 LIBS
=$ac_func_search_save_LIBS
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27075 $as_echo "$ac_cv_search_timer_settime" >&6; }
27076 ac_res
=$ac_cv_search_timer_settime
27077 if test "$ac_res" != no
; then :
27078 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27079 test "$ac_cv_search_timer_settime" = "none required" ||
27080 LIB_TIMER_TIME
=$ac_cv_search_timer_settime
27083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27086 #include <features.h>
27087 #ifdef __GNU_LIBRARY__
27088 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27089 && !defined __UCLIBC__
27090 Thread emulation available
27095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27096 $EGREP "Thread" >/dev
/null
2>&1; then :
27097 LIB_TIMER_TIME
="$LIB_TIMER_TIME $LIBMULTITHREAD"
27101 for ac_func
in timer_settime
27103 ac_fn_c_check_func
"$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27104 if test "x$ac_cv_func_timer_settime" = x
""yes; then :
27105 cat >>confdefs.h
<<_ACEOF
27106 #define HAVE_TIMER_SETTIME 1
27112 LIBS
=$gl_saved_libs
27127 if test $gl_cv_have_include_next = yes; then
27128 gl_cv_next_unistd_h
='<'unistd.h
'>'
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27131 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27132 if test "${gl_cv_next_unistd_h+set}" = set; then :
27133 $as_echo_n "(cached) " >&6
27136 if test $ac_cv_header_unistd_h = yes; then
27139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27140 /* end confdefs.h. */
27141 #include <unistd.h>
27145 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27146 *) gl_absname_cpp
="$ac_cpp" ;;
27151 gl_dirsep_regex
='[/\\]'
27154 gl_dirsep_regex
='\/'
27157 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27159 gl_header_literal_regex
=`echo 'unistd.h' \
27160 | sed -e "$gl_make_literal_regex_sed"`
27161 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27162 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27167 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27168 sed -n "$gl_absolute_header_sed"`'"'
27170 gl_cv_next_unistd_h
='<'unistd.h
'>'
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27176 $as_echo "$gl_cv_next_unistd_h" >&6; }
27178 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27180 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27182 gl_next_as_first_directive
='<'unistd.h
'>'
27184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27185 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27187 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27192 if test $ac_cv_header_unistd_h = yes; then
27208 if test $ac_cv_have_decl_unsetenv = no
; then
27209 HAVE_DECL_UNSETENV
=0
27211 for ac_func
in unsetenv
27213 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27214 if test "x$ac_cv_func_unsetenv" = x
""yes; then :
27215 cat >>confdefs.h
<<_ACEOF
27216 #define HAVE_UNSETENV 1
27222 if test $ac_cv_func_unsetenv = no
; then
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27227 $as_echo_n "checking for unsetenv() return type... " >&6; }
27228 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27229 $as_echo_n "(cached) " >&6
27231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27232 /* end confdefs.h. */
27235 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27236 #include <stdlib.h>
27241 int unsetenv (const char *name);
27251 if ac_fn_c_try_compile
"$LINENO"; then :
27252 gt_cv_func_unsetenv_ret
='int'
27254 gt_cv_func_unsetenv_ret
='void'
27256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27259 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27260 if test $gt_cv_func_unsetenv_ret = 'void'; then
27262 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27268 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27269 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27270 $as_echo_n "(cached) " >&6
27272 if test "$cross_compiling" = yes; then :
27274 # Guess yes on glibc systems.
27275 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27276 # If we don't know, assume the worst.
27277 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27282 /* end confdefs.h. */
27284 #include <stdlib.h>
27286 extern char **environ;
27292 char entry1[] = "a=1";
27293 char entry2[] = "b=2";
27294 char *env[] = { entry1, entry2, NULL };
27295 if (putenv ((char *) "a=1")) return 1;
27296 if (putenv (entry2)) return 2;
27299 if (getenv ("a")) return 3;
27300 if (!unsetenv ("") || errno != EINVAL) return 4;
27303 if (!getenv ("a")) return 5;
27306 if (getenv ("a")) return 6;
27312 if ac_fn_c_try_run
"$LINENO"; then :
27313 gl_cv_func_unsetenv_works
=yes
27315 gl_cv_func_unsetenv_works
=no
27317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27323 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27324 case "$gl_cv_func_unsetenv_works" in
27332 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27341 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27365 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27367 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27368 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27371 touch conftest.
file
27372 if test "$cross_compiling" = yes; then :
27374 # Guess yes on glibc systems.
27375 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
27376 # If we don't know, assume the worst.
27377 *) gl_cv_func_futimesat_works
="guessing no" ;;
27381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27382 /* end confdefs.h. */
27384 #include <stddef.h>
27385 #include <sys/times.h>
27391 int fd = open ("conftest.file", O_RDWR);
27392 if (fd < 0) return 1;
27393 if (futimesat (fd, NULL, NULL)) return 2;
27399 if ac_fn_c_try_run
"$LINENO"; then :
27400 gl_cv_func_futimesat_works
=yes
27402 gl_cv_func_futimesat_works
=no
27404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27408 rm -f conftest.
file
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27411 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27412 case "$gl_cv_func_futimesat_works" in
27416 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27422 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=false
27423 gl_gnulib_enabled_dosname
=false
27424 gl_gnulib_enabled_euidaccess
=false
27425 gl_gnulib_enabled_getgroups
=false
27426 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
27427 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=false
27428 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=false
27429 gl_gnulib_enabled_pathmax
=false
27430 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=false
27431 gl_gnulib_enabled_stat
=false
27432 gl_gnulib_enabled_strtoll
=false
27433 gl_gnulib_enabled_strtoull
=false
27434 gl_gnulib_enabled_verify
=false
27435 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=false
27436 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
()
27438 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27447 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
27449 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b
=true
27452 func_gl_gnulib_m4code_dosname
()
27454 if ! $gl_gnulib_enabled_dosname; then
27455 gl_gnulib_enabled_dosname
=true
27458 func_gl_gnulib_m4code_euidaccess
()
27460 if ! $gl_gnulib_enabled_euidaccess; then
27466 for ac_func
in euidaccess
27468 ac_fn_c_check_func
"$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27469 if test "x$ac_cv_func_euidaccess" = x
""yes; then :
27470 cat >>confdefs.h
<<_ACEOF
27471 #define HAVE_EUIDACCESS 1
27477 if test $ac_cv_func_euidaccess = no
; then
27481 if test $HAVE_EUIDACCESS = 0; then
27490 gl_LIBOBJS
="$gl_LIBOBJS euidaccess.$ac_objext"
27494 for ac_header
in libgen.h
27496 ac_fn_c_check_header_mongrel
"$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27497 if test "x$ac_cv_header_libgen_h" = x
""yes; then :
27498 cat >>confdefs.h
<<_ACEOF
27499 #define HAVE_LIBGEN_H 1
27507 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27508 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27513 # If we don't yet have getgroups, see if it's in -lbsd.
27514 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27516 if test $ac_cv_func_getgroups = no
; then
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27518 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27519 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27520 $as_echo_n "(cached) " >&6
27522 ac_check_lib_save_LIBS
=$LIBS
27524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27525 /* end confdefs.h. */
27527 /* Override any GCC internal prototype to avoid an error.
27528 Use char because int might match the return type of a GCC
27529 builtin and then its argument prototype would still apply. */
27537 return getgroups ();
27542 if ac_fn_c_try_link
"$LINENO"; then :
27543 ac_cv_lib_bsd_getgroups
=yes
27545 ac_cv_lib_bsd_getgroups
=no
27547 rm -f core conftest.err conftest.
$ac_objext \
27548 conftest
$ac_exeext conftest.
$ac_ext
27549 LIBS
=$ac_check_lib_save_LIBS
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27552 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27553 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27554 GETGROUPS_LIB
=-lbsd
27559 # Run the program to test the functionality of the system-supplied
27560 # getgroups function only if there is such a function.
27561 if test $ac_cv_func_getgroups = yes; then
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27563 $as_echo_n "checking for working getgroups... " >&6; }
27564 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27565 $as_echo_n "(cached) " >&6
27567 if test "$cross_compiling" = yes; then :
27568 case "$host_os" in # ((
27569 # Guess yes on glibc systems.
27570 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27571 # If we don't know, assume the worst.
27572 *) ac_cv_func_getgroups_works
="guessing no" ;;
27576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27577 /* end confdefs.h. */
27578 $ac_includes_default
27582 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27583 return getgroups (0, 0) == -1;
27589 if ac_fn_c_try_run
"$LINENO"; then :
27590 ac_cv_func_getgroups_works
=yes
27592 ac_cv_func_getgroups_works
=no
27594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27601 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27603 ac_cv_func_getgroups_works
=no
27605 case "$ac_cv_func_getgroups_works" in
27608 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27615 # Solaris 9 and 10 need -lgen to get the eaccess function.
27616 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27617 # programs in the package would end up linked with that potentially-shared
27618 # library, inducing unnecessary run-time overhead.
27621 gl_saved_libs
=$LIBS
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27623 $as_echo_n "checking for library containing eaccess... " >&6; }
27624 if test "${ac_cv_search_eaccess+set}" = set; then :
27625 $as_echo_n "(cached) " >&6
27627 ac_func_search_save_LIBS
=$LIBS
27628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27631 /* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27646 for ac_lib
in '' gen
; do
27647 if test -z "$ac_lib"; then
27648 ac_res
="none required"
27651 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27653 if ac_fn_c_try_link
"$LINENO"; then :
27654 ac_cv_search_eaccess
=$ac_res
27656 rm -f core conftest.err conftest.
$ac_objext \
27658 if test "${ac_cv_search_eaccess+set}" = set; then :
27662 if test "${ac_cv_search_eaccess+set}" = set; then :
27665 ac_cv_search_eaccess
=no
27667 rm conftest.
$ac_ext
27668 LIBS
=$ac_func_search_save_LIBS
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27671 $as_echo "$ac_cv_search_eaccess" >&6; }
27672 ac_res
=$ac_cv_search_eaccess
27673 if test "$ac_res" != no
; then :
27674 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27675 test "$ac_cv_search_eaccess" = "none required" ||
27676 LIB_EACCESS
=$ac_cv_search_eaccess
27679 for ac_func
in eaccess
27681 ac_fn_c_check_func
"$LINENO" "eaccess" "ac_cv_func_eaccess"
27682 if test "x$ac_cv_func_eaccess" = x
""yes; then :
27683 cat >>confdefs.h
<<_ACEOF
27684 #define HAVE_EACCESS 1
27690 LIBS
=$gl_saved_libs
27698 GNULIB_EUIDACCESS
=1
27704 gl_gnulib_enabled_euidaccess
=true
27705 if test $HAVE_EUIDACCESS = 0; then
27706 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27708 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27709 if test $HAVE_EUIDACCESS = 0; then
27710 func_gl_gnulib_m4code_stat
27714 func_gl_gnulib_m4code_getgroups
()
27716 if ! $gl_gnulib_enabled_getgroups; then
27722 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
27723 if test "x$ac_cv_func_getgroups" = x
""yes; then :
27728 # If we don't yet have getgroups, see if it's in -lbsd.
27729 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27731 if test $ac_cv_func_getgroups = no
; then
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27733 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27734 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27735 $as_echo_n "(cached) " >&6
27737 ac_check_lib_save_LIBS
=$LIBS
27739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27740 /* end confdefs.h. */
27742 /* Override any GCC internal prototype to avoid an error.
27743 Use char because int might match the return type of a GCC
27744 builtin and then its argument prototype would still apply. */
27752 return getgroups ();
27757 if ac_fn_c_try_link
"$LINENO"; then :
27758 ac_cv_lib_bsd_getgroups
=yes
27760 ac_cv_lib_bsd_getgroups
=no
27762 rm -f core conftest.err conftest.
$ac_objext \
27763 conftest
$ac_exeext conftest.
$ac_ext
27764 LIBS
=$ac_check_lib_save_LIBS
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27767 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27768 if test "x$ac_cv_lib_bsd_getgroups" = x
""yes; then :
27769 GETGROUPS_LIB
=-lbsd
27774 # Run the program to test the functionality of the system-supplied
27775 # getgroups function only if there is such a function.
27776 if test $ac_cv_func_getgroups = yes; then
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27778 $as_echo_n "checking for working getgroups... " >&6; }
27779 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27780 $as_echo_n "(cached) " >&6
27782 if test "$cross_compiling" = yes; then :
27783 case "$host_os" in # ((
27784 # Guess yes on glibc systems.
27785 *-gnu*) ac_cv_func_getgroups_works
="guessing yes" ;;
27786 # If we don't know, assume the worst.
27787 *) ac_cv_func_getgroups_works
="guessing no" ;;
27791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27792 /* end confdefs.h. */
27793 $ac_includes_default
27797 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27798 return getgroups (0, 0) == -1;
27804 if ac_fn_c_try_run
"$LINENO"; then :
27805 ac_cv_func_getgroups_works
=yes
27807 ac_cv_func_getgroups_works
=no
27809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27816 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27818 ac_cv_func_getgroups_works
=no
27820 case "$ac_cv_func_getgroups_works" in
27823 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27829 if test $ac_cv_func_getgroups != yes; then
27832 if test "$ac_cv_type_getgroups" != gid_t \
27833 ||
{ case "$ac_cv_func_getgroups_works" in
27838 REPLACE_GETGROUPS
=1
27840 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
27844 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
27845 if test "${gl_cv_func_getgroups_works+set}" = set; then :
27846 $as_echo_n "(cached) " >&6
27848 if test "$cross_compiling" = yes; then :
27850 # Guess yes on glibc systems.
27851 *-gnu*) gl_cv_func_getgroups_works
="guessing yes" ;;
27852 # If we don't know, assume the worst.
27853 *) gl_cv_func_getgroups_works
="guessing no" ;;
27857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27858 /* end confdefs.h. */
27859 $ac_includes_default
27863 int size = getgroups (0, 0);
27864 gid_t *list = malloc (size * sizeof *list);
27865 return getgroups (-1, list) != -1;
27870 if ac_fn_c_try_run
"$LINENO"; then :
27871 gl_cv_func_getgroups_works
=yes
27873 gl_cv_func_getgroups_works
=no
27875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
27881 $as_echo "$gl_cv_func_getgroups_works" >&6; }
27882 case "$gl_cv_func_getgroups_works" in
27884 *) REPLACE_GETGROUPS
=1 ;;
27888 test -n "$GETGROUPS_LIB" && LIBS
="$GETGROUPS_LIB $LIBS"
27890 if test $HAVE_GETGROUPS = 0 ||
test $REPLACE_GETGROUPS = 1; then
27899 gl_LIBOBJS
="$gl_LIBOBJS getgroups.$ac_objext"
27913 gl_gnulib_enabled_getgroups
=true
27916 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
27918 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
27921 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
27924 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
()
27926 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
27932 ac_fn_c_check_func
"$LINENO" "group_member" "ac_cv_func_group_member"
27933 if test "x$ac_cv_func_group_member" = x
""yes; then :
27937 HAVE_GROUP_MEMBER
=0
27942 if test $HAVE_GROUP_MEMBER = 0; then
27951 gl_LIBOBJS
="$gl_LIBOBJS group-member.$ac_objext"
27962 GNULIB_GROUP_MEMBER
=1
27968 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1
=true
27969 if test $HAVE_GROUP_MEMBER = 0; then
27970 func_gl_gnulib_m4code_getgroups
27972 if test $HAVE_GROUP_MEMBER = 0; then
27973 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
27977 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
()
27979 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
27980 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7
=true
27983 func_gl_gnulib_m4code_pathmax
()
27985 if ! $gl_gnulib_enabled_pathmax; then
27989 gl_gnulib_enabled_pathmax
=true
27992 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
()
27994 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
27995 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c
=true
27998 func_gl_gnulib_m4code_stat
()
28000 if ! $gl_gnulib_enabled_stat; then
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28005 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28006 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28007 $as_echo_n "(cached) " >&6
28009 if test "$cross_compiling" = yes; then :
28011 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
28012 *) gl_cv_func_stat_dir_slash
="guessing yes";;
28015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28016 /* end confdefs.h. */
28017 #include <sys/stat.h>
28022 struct stat st; return stat (".", &st) != stat ("./", &st);
28027 if ac_fn_c_try_run
"$LINENO"; then :
28028 gl_cv_func_stat_dir_slash
=yes
28030 gl_cv_func_stat_dir_slash
=no
28032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28033 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28038 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28040 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28041 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28042 $as_echo_n "(cached) " >&6
28045 # Assume that if we have lstat, we can also check symlinks.
28046 if test $ac_cv_func_lstat = yes; then
28047 ln -s conftest.tmp conftest.lnk
28049 if test "$cross_compiling" = yes; then :
28051 # Guess yes on glibc systems.
28052 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
28053 # If we don't know, assume the worst.
28054 *) gl_cv_func_stat_file_slash
="guessing no" ;;
28058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28059 /* end confdefs.h. */
28060 #include <sys/stat.h>
28067 if (!stat ("conftest.tmp/", &st))
28070 if (!stat ("conftest.lnk/", &st))
28079 if ac_fn_c_try_run
"$LINENO"; then :
28080 gl_cv_func_stat_file_slash
=yes
28082 gl_cv_func_stat_file_slash
=no
28084 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28085 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28088 rm -f conftest.tmp conftest.lnk
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28091 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28092 case $gl_cv_func_stat_dir_slash in
28093 *no
) REPLACE_STAT
=1
28095 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28098 case $gl_cv_func_stat_file_slash in
28099 *no
) REPLACE_STAT
=1
28101 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28105 if test $REPLACE_STAT = 1; then
28114 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
28129 gl_gnulib_enabled_stat
=true
28130 if test $REPLACE_STAT = 1; then
28131 func_gl_gnulib_m4code_dosname
28133 if test $REPLACE_STAT = 1; then
28134 func_gl_gnulib_m4code_pathmax
28136 if test $REPLACE_STAT = 1; then
28137 func_gl_gnulib_m4code_verify
28141 func_gl_gnulib_m4code_strtoll
()
28143 if ! $gl_gnulib_enabled_strtoll; then
28147 if test "$ac_cv_type_long_long_int" = yes; then
28148 for ac_func
in strtoll
28150 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
28151 if test "x$ac_cv_func_strtoll" = x
""yes; then :
28152 cat >>confdefs.h
<<_ACEOF
28153 #define HAVE_STRTOLL 1
28159 if test $ac_cv_func_strtoll = no
; then
28164 if test $HAVE_STRTOLL = 0; then
28173 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
28190 gl_gnulib_enabled_strtoll
=true
28193 func_gl_gnulib_m4code_strtoull
()
28195 if ! $gl_gnulib_enabled_strtoull; then
28199 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28200 for ac_func
in strtoull
28202 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
28203 if test "x$ac_cv_func_strtoull" = x
""yes; then :
28204 cat >>confdefs.h
<<_ACEOF
28205 #define HAVE_STRTOULL 1
28211 if test $ac_cv_func_strtoull = no
; then
28216 if test $HAVE_STRTOULL = 0; then
28225 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
28242 gl_gnulib_enabled_strtoull
=true
28245 func_gl_gnulib_m4code_verify
()
28247 if ! $gl_gnulib_enabled_verify; then
28248 gl_gnulib_enabled_verify
=true
28251 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
()
28253 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28254 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec
=true
28257 if test $HAVE_FACCESSAT = 0; then
28258 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28260 if test $HAVE_FACCESSAT = 0; then
28261 func_gl_gnulib_m4code_dosname
28263 if test $HAVE_FACCESSAT = 0; then
28264 func_gl_gnulib_m4code_euidaccess
28266 if test $HAVE_FACCESSAT = 0; then
28267 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28269 if test $HAVE_FDOPENDIR = 0; then
28270 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28272 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28273 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28275 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28276 func_gl_gnulib_m4code_dosname
28278 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
28279 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28281 if test $REPLACE_GETOPT = 1; then
28282 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28284 if test $REPLACE_LSTAT = 1; then
28285 func_gl_gnulib_m4code_dosname
28287 if test $REPLACE_LSTAT = 1; then
28288 func_gl_gnulib_m4code_stat
28290 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
28291 func_gl_gnulib_m4code_stat
28293 if test $HAVE_READLINKAT = 0; then
28294 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28296 if test $HAVE_READLINKAT = 0; then
28297 func_gl_gnulib_m4code_dosname
28299 if test $HAVE_READLINKAT = 0; then
28300 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28302 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28303 func_gl_gnulib_m4code_strtoll
28305 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
28306 func_gl_gnulib_m4code_verify
28308 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
28309 func_gl_gnulib_m4code_strtoull
28311 if test $ac_cv_func_strtoumax = no
; then
28312 func_gl_gnulib_m4code_verify
28315 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28316 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
=
28317 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
='#'
28319 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
='#'
28320 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
=
28323 if $gl_gnulib_enabled_dosname; then
28324 gl_GNULIB_ENABLED_dosname_TRUE
=
28325 gl_GNULIB_ENABLED_dosname_FALSE
='#'
28327 gl_GNULIB_ENABLED_dosname_TRUE
='#'
28328 gl_GNULIB_ENABLED_dosname_FALSE
=
28331 if $gl_gnulib_enabled_euidaccess; then
28332 gl_GNULIB_ENABLED_euidaccess_TRUE
=
28333 gl_GNULIB_ENABLED_euidaccess_FALSE
='#'
28335 gl_GNULIB_ENABLED_euidaccess_TRUE
='#'
28336 gl_GNULIB_ENABLED_euidaccess_FALSE
=
28339 if $gl_gnulib_enabled_getgroups; then
28340 gl_GNULIB_ENABLED_getgroups_TRUE
=
28341 gl_GNULIB_ENABLED_getgroups_FALSE
='#'
28343 gl_GNULIB_ENABLED_getgroups_TRUE
='#'
28344 gl_GNULIB_ENABLED_getgroups_FALSE
=
28347 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28348 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
28349 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
28351 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
28352 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
28355 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28356 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
=
28357 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
='#'
28359 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
='#'
28360 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
=
28363 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28364 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
=
28365 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
='#'
28367 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
='#'
28368 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
=
28371 if $gl_gnulib_enabled_pathmax; then
28372 gl_GNULIB_ENABLED_pathmax_TRUE
=
28373 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
28375 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
28376 gl_GNULIB_ENABLED_pathmax_FALSE
=
28379 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28380 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
=
28381 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
='#'
28383 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
='#'
28384 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
=
28387 if $gl_gnulib_enabled_stat; then
28388 gl_GNULIB_ENABLED_stat_TRUE
=
28389 gl_GNULIB_ENABLED_stat_FALSE
='#'
28391 gl_GNULIB_ENABLED_stat_TRUE
='#'
28392 gl_GNULIB_ENABLED_stat_FALSE
=
28395 if $gl_gnulib_enabled_strtoll; then
28396 gl_GNULIB_ENABLED_strtoll_TRUE
=
28397 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
28399 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
28400 gl_GNULIB_ENABLED_strtoll_FALSE
=
28403 if $gl_gnulib_enabled_strtoull; then
28404 gl_GNULIB_ENABLED_strtoull_TRUE
=
28405 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
28407 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
28408 gl_GNULIB_ENABLED_strtoull_FALSE
=
28411 if $gl_gnulib_enabled_verify; then
28412 gl_GNULIB_ENABLED_verify_TRUE
=
28413 gl_GNULIB_ENABLED_verify_FALSE
='#'
28415 gl_GNULIB_ENABLED_verify_TRUE
='#'
28416 gl_GNULIB_ENABLED_verify_FALSE
=
28419 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28420 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
=
28421 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
='#'
28423 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
='#'
28424 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
=
28427 # End of code from modules
28448 gl_source_base
='tests'
28449 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
28451 gl_module_indicator_condition
=$gltests_WITNESS
28462 LIBGNU_LIBDEPS
="$gl_libdeps"
28464 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28467 CFLAGS
=$SAVE_CFLAGS
28470 if test "${opsys}" = "mingw32"; then
28471 CPPFLAGS
="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28472 # Remove unneeded switches from the value of CC that goes to Makefiles
28473 CC
=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28477 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
28480 ## The -headerpad option tells ld (see man page) to leave room at the
28481 ## end of the header for adding load commands. Needed for dumping.
28482 ## 0x690 is the total size of 30 segment load commands (at 56
28483 ## each); under Cocoa 31 commands are required.
28484 if test "$HAVE_NS" = "yes"; then
28485 libs_nsgui
="-framework AppKit"
28486 if test "$NS_IMPL_COCOA" = "yes"; then
28487 libs_nsgui
="$libs_nsgui -framework IOKit"
28489 headerpad_extra
=6C8
28492 headerpad_extra
=690
28494 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28496 ## This is here because src/Makefile.in did some extra fiddling around
28497 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28498 ## LD_SWITCH_SYSTEM_TEMACS instead,
28499 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28500 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
28503 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28504 ## find X at run-time.
28505 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28506 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28507 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28508 ## had different values in configure (in ac_link) and src/Makefile.in.
28509 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28510 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28513 ## MinGW64 does not prepend an underscore to symbols, so we must
28514 ## pass a different -entry switch to linker. FIXME: It is better
28515 ## to make the entry points the same by changing unexw32.c.
28516 case "$canonical" in
28517 x86_64-
*-*) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28518 *) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28522 openbsd
) LD_SWITCH_SYSTEM_TEMACS
='-nopie' ;;
28524 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
28527 if test x
$ac_enable_profiling != x
; then
28529 *freebsd | gnu-linux
) ;;
28530 *) LD_SWITCH_SYSTEM_TEMACS
="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28536 ## MinGW-specific post-link processing of temacs.
28537 TEMACS_POST_LINK
=":"
28540 if test "${opsys}" = "mingw32"; then
28541 TEMACS_POST_LINK
="\$(MINGW_TEMACS_POST_LINK)"
28542 ADDSECTION
="../nt/addsection\$(EXEEXT)"
28543 ## Preload heap size of temacs.exe in MB.
28544 case "$canonical" in
28545 x86_64-
*-*) EMACS_HEAPSIZE
=42 ;;
28546 *) EMACS_HEAPSIZE
=27 ;;
28554 ## Common for all window systems
28555 if test "$window_system" != "none"; then
28557 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28559 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
28566 #### Report on what we decided to do.
28567 #### Report GTK as a toolkit, even if it doesn't use Xt.
28568 #### It makes printing result more understandable as using GTK sets
28569 #### toolkit_scroll_bars to yes by default.
28570 if test "${HAVE_GTK}" = "yes"; then
28571 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
28574 if test $USE_ACL -ne 0; then
28575 acl_summary
="yes $LIB_ACL"
28581 Configured for \`${canonical}'.
28583 Where should the build process find the source code? ${srcdir}
28584 What compiler should emacs be built with? ${CC} ${CFLAGS}
28585 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28586 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28587 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28588 What window system should Emacs use? ${window_system}
28589 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28591 if test -n "${x_includes}"; then
28592 echo " Where do we find X Windows header files? ${x_includes}"
28594 echo " Where do we find X Windows header files? Standard dirs"
28596 if test -n "${x_libraries}"; then
28597 echo " Where do we find X Windows libraries? ${x_libraries}"
28599 echo " Where do we find X Windows libraries? Standard dirs"
28602 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28603 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28604 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28605 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28606 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28607 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28608 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28609 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28611 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28612 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28613 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28614 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28615 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28616 echo " Does Emacs use access control lists? ${acl_summary}"
28617 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28618 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28619 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28621 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28622 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28623 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28624 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28626 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28629 if test -n "${EMACSDATA}"; then
28630 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28632 if test -n "${EMACSDOC}"; then
28633 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28638 if test "$HAVE_NS" = "yes"; then
28640 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28641 The installed application will go to nextstep/Emacs.app and can be
28642 run or moved from there."
28643 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28644 echo "The application will be fully self-contained."
28646 echo "The lisp resources for the application will be installed under ${prefix}.
28647 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28648 to run if these resources are not installed."
28653 if test "${opsys}" = "cygwin"; then
28655 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
28656 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
28662 # Remove any trailing slashes in these variables.
28663 test "${prefix}" != NONE
&&
28664 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
28665 test "${exec_prefix}" != NONE
&&
28666 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
28668 if test "$HAVE_NS" = "yes"; then
28669 if test "$NS_IMPL_GNUSTEP" = yes; then
28670 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"
28673 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"
28678 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"
28680 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"
28683 opt_makefile
=test
/automated
/Makefile
28685 if test -f "$srcdir/$opt_makefile.in"; then
28686 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28687 ac_config_files
="$ac_config_files test/automated/Makefile"
28692 opt_makefile
=admin
/unidata
/Makefile
28694 if test -f "$srcdir/$opt_makefile.in"; then
28695 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
28696 ac_config_files
="$ac_config_files admin/unidata/Makefile"
28701 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
28705 ac_config_commands
="$ac_config_commands mkdirs"
28708 ac_config_commands
="$ac_config_commands epaths"
28711 ac_config_commands
="$ac_config_commands gdbinit"
28714 cat >confcache
<<\_ACEOF
28715 # This file is a shell script that caches the results of configure
28716 # tests run on this system so they can be shared between configure
28717 # scripts and configure runs, see configure's option --config-cache.
28718 # It is not useful on other systems. If it contains results you don't
28719 # want to keep, you may remove or edit it.
28721 # config.status only pays attention to the cache file if you give it
28722 # the --recheck option to rerun configure.
28724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28726 # following values.
28730 # The following way of writing the cache mishandles newlines in values,
28731 # but we know of no workaround that is simple, portable, and efficient.
28732 # So, we kill variables containing newlines.
28733 # Ultrix sh set writes to stderr and can't be redirected directly,
28734 # and sets the high bit in the cache file unless we assign to the vars.
28736 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28737 eval ac_val
=\$
$ac_var
28741 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28745 _ | IFS | as_nl
) ;; #(
28746 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28747 *) { eval $ac_var=; unset $ac_var;} ;;
28753 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28754 *${as_nl}ac_space
=\
*)
28755 # `set' does not quote correctly, so add quotes: double-quote
28756 # substitution turns \\\\ into \\, and sed turns \\ into \.
28759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28762 # `set' quotes correctly as required by POSIX, so do not add quotes.
28763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28774 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28776 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28777 if test -w "$cache_file"; then
28778 test "x$cache_file" != "x/dev/null" &&
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28780 $as_echo "$as_me: updating cache $cache_file" >&6;}
28781 cat confcache
>$cache_file
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28784 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28789 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28790 # Let make expand exec_prefix.
28791 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28793 DEFS
=-DHAVE_CONFIG_H
28797 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28798 # 1. Remove the extension, and $U if already installed.
28799 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28800 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28802 # will be set to the directory where LIBOBJS objects are built.
28803 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28804 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28806 LIBOBJS
=$ac_libobjs
28808 LTLIBOBJS
=$ac_ltlibobjs
28811 if test -n "$EXEEXT"; then
28813 am__EXEEXT_FALSE
='#'
28815 am__EXEEXT_TRUE
='#'
28819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28820 as_fn_error
"conditional \"AMDEP\" was never defined.
28821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28823 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28824 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
28825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28827 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
28828 as_fn_error
"conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
28829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28831 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28832 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
28833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28835 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28836 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28841 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
28845 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
28846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28849 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28853 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28857 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
28858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28861 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28865 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
28869 as_fn_error
"conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
28870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28872 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
28873 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
28874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28876 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
28877 as_fn_error
"conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
28878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28880 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
28881 as_fn_error
"conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
28882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28884 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
28885 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
28886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28888 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
28889 as_fn_error
"conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
28890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28892 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
28893 as_fn_error
"conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
28894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28896 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
28897 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
28898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28900 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
28901 as_fn_error
"conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
28902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28904 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
28905 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
28906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28908 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
28909 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
28910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28912 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
28913 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
28914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28916 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
28917 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
28918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28920 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
28921 as_fn_error
"conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
28922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28927 if test -n "$gl_LIBOBJS"; then
28928 # Remove the extension.
28929 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28930 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28931 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28932 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28935 gl_LIBOBJS
=$gl_libobjs
28937 gl_LTLIBOBJS
=$gl_ltlibobjs
28943 if test -n "$gltests_LIBOBJS"; then
28944 # Remove the extension.
28945 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28946 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28947 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
28948 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
28951 gltests_LIBOBJS
=$gltests_libobjs
28953 gltests_LTLIBOBJS
=$gltests_ltlibobjs
28957 : ${CONFIG_STATUS=./config.status}
28959 ac_clean_files_save
=$ac_clean_files
28960 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28966 # Generated by $as_me.
28967 # Run this file to recreate the current configuration.
28968 # Compiler output produced by configure, useful for debugging
28969 # configure, is in config.log if it exists.
28972 ac_cs_recheck=false
28975 SHELL=\${CONFIG_SHELL-$SHELL}
28978 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28979 ## -------------------- ##
28980 ## M4sh Initialization. ##
28981 ## -------------------- ##
28983 # Be more Bourne compatible
28984 DUALCASE
=1; export DUALCASE
# for MKS sh
28985 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28988 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28989 # is contrary to our usage. Disable this feature.
28990 alias -g '${1+"$@"}'='"$@"'
28991 setopt NO_GLOB_SUBST
28993 case `(set -o) 2>/dev/null` in #(
29005 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29006 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29009 # Prefer a ksh shell builtin over an external printf program on Solaris,
29010 # but without wasting forks for bash or zsh.
29011 if test -z "$BASH_VERSION$ZSH_VERSION" \
29012 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29013 as_echo='print
-r --'
29014 as_echo_n='print
-rn --'
29015 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29016 as_echo='printf %s
\n'
29017 as_echo_n='printf %s
'
29019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29020 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29021 as_echo_n='/usr
/ucb
/echo -n'
29023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29024 as_echo_n_body='eval
29028 expr "X$arg" : "X\\(.*\\)$as_nl";
29029 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29031 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29033 export as_echo_n_body
29034 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29036 export as_echo_body
29037 as_echo='sh
-c $as_echo_body as_echo
'
29040 # The user is always right.
29041 if test "${PATH_SEPARATOR+set}" != set; then
29043 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29044 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29051 # We need space, tab and new line, in precisely that order. Quoting is
29052 # there to prevent editors from complaining about space-tab.
29053 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29054 # splitting by setting IFS to empty value.)
29057 # Find who we are. Look in the path if we contain no directory separator.
29059 *[\\/]* ) as_myself=$0 ;;
29060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29061 for as_dir in $PATH
29064 test -z "$as_dir" && as_dir=.
29065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29071 # We did not find ourselves, most probably we were run as `sh COMMAND'
29072 # in which case we are not to be found in the path.
29073 if test "x$as_myself" = x
; then
29076 if test ! -f "$as_myself"; then
29077 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29081 # Unset variables that we do not need and which cause bugs (e.g. in
29082 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29083 # suppresses any "Segmentation fault" message there. '((' could
29084 # trigger a bug in pdksh 5.2.14.
29085 for as_var
in BASH_ENV ENV MAIL MAILPATH
29086 do eval test x\
${$as_var+set} = xset \
29087 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29100 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29103 # as_fn_error ERROR [LINENO LOG_FD]
29104 # ---------------------------------
29105 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29106 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29107 # script with status $?, using 1 if that was 0.
29110 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29112 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29113 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29115 $as_echo "$as_me: error: $1" >&2
29116 as_fn_exit
$as_status
29120 # as_fn_set_status STATUS
29121 # -----------------------
29122 # Set $? to STATUS, without forking.
29123 as_fn_set_status
()
29126 } # as_fn_set_status
29128 # as_fn_exit STATUS
29129 # -----------------
29130 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29134 as_fn_set_status
$1
29140 # Portably unset VAR.
29143 { eval $1=; unset $1;}
29145 as_unset
=as_fn_unset
29146 # as_fn_append VAR VALUE
29147 # ----------------------
29148 # Append the text in VALUE to the end of the definition contained in VAR. Take
29149 # advantage of any shell optimizations that allow amortized linear growth over
29150 # repeated appends, instead of the typical quadratic growth present in naive
29152 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29153 eval 'as_fn_append ()
29164 # as_fn_arith ARG...
29165 # ------------------
29166 # Perform arithmetic evaluation on the ARGs, and store the result in the
29167 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29168 # must be portable across $(()) and expr.
29169 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29170 eval 'as_fn_arith ()
29177 as_val
=`expr "$@" || test $? -eq 1`
29182 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29183 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29189 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29190 as_basename
=basename
29195 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29201 as_me
=`$as_basename -- "$0" ||
29202 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29203 X"$0" : 'X\(//\)$' \| \
29204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29206 sed '/^.*\/\([^/][^/]*\)\/*$/{
29220 # Avoid depending upon Character Ranges.
29221 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29222 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29223 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29224 as_cr_digits
='0123456789'
29225 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29227 ECHO_C
= ECHO_N
= ECHO_T
=
29228 case `echo -n x` in #(((((
29230 case `echo 'xy\c'` in
29231 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29233 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29240 rm -f conf$$ conf$$.exe conf$$.
file
29241 if test -d conf$$.dir
; then
29242 rm -f conf$$.dir
/conf$$.
file
29245 mkdir conf$$.dir
2>/dev
/null
29247 if (echo >conf$$.
file) 2>/dev
/null
; then
29248 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29250 # ... but there are two gotchas:
29251 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29252 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29253 # In both cases, we have to default to `cp -p'.
29254 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29256 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29264 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29265 rmdir conf$$.dir
2>/dev
/null
29270 # Create "$as_dir" as a directory, including parents if necessary.
29275 -*) as_dir
=.
/$as_dir;;
29277 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29281 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29282 *) as_qdir
=$as_dir;;
29284 as_dirs
="'$as_qdir' $as_dirs"
29285 as_dir
=`$as_dirname -- "$as_dir" ||
29286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29287 X"$as_dir" : 'X\(//\)[^/]' \| \
29288 X"$as_dir" : 'X\(//\)$' \| \
29289 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29290 $as_echo X"$as_dir" |
29291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29295 /^X\(\/\/\)[^/].*/{
29308 test -d "$as_dir" && break
29310 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29311 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29315 if mkdir
-p .
2>/dev
/null
; then
29316 as_mkdir_p
='mkdir -p "$as_dir"'
29318 test -d .
/-p && rmdir .
/-p
29322 if test -x / >/dev
/null
2>&1; then
29323 as_test_x
='test -x'
29325 if ls -dL / >/dev
/null
2>&1; then
29332 if test -d "$1"; then
29338 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29339 ???[sx]*):;;*)false;;esac;fi
29343 as_executable_p
=$as_test_x
29345 # Sed expression to map a string onto a valid CPP name.
29346 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29348 # Sed expression to map a string onto a valid variable name.
29349 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29353 ## ----------------------------------- ##
29354 ## Main body of $CONFIG_STATUS script. ##
29355 ## ----------------------------------- ##
29357 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29360 # Save the log message, to keep $0 and so on meaningful, and to
29361 # report actual input values of CONFIG_FILES etc. instead of their
29362 # values after options handling.
29364 This file was extended by emacs $as_me 24.3.50, which was
29365 generated by GNU Autoconf 2.65. Invocation command line was
29367 CONFIG_FILES = $CONFIG_FILES
29368 CONFIG_HEADERS = $CONFIG_HEADERS
29369 CONFIG_LINKS = $CONFIG_LINKS
29370 CONFIG_COMMANDS = $CONFIG_COMMANDS
29373 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29378 case $ac_config_files in *"
29379 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29382 case $ac_config_headers in *"
29383 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29388 # Files that config.status was made for.
29389 config_files="$ac_config_files"
29390 config_headers="$ac_config_headers"
29391 config_commands="$ac_config_commands"
29395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29397 \`$as_me' instantiates files and other configuration actions
29398 from templates according to the current configuration. Unless the files
29399 and actions are specified as TAGs, all are instantiated by default.
29401 Usage: $0 [OPTION]... [TAG]...
29403 -h, --help print this help, then exit
29404 -V, --version print version number and configuration settings, then exit
29405 --config print configuration, then exit
29406 -q, --quiet, --silent
29407 do not print progress messages
29408 -d, --debug don't remove temporary files
29409 --recheck update $as_me by reconfiguring in the same conditions
29410 --file=FILE[:TEMPLATE]
29411 instantiate the configuration file FILE
29412 --header=FILE[:TEMPLATE]
29413 instantiate the configuration header FILE
29415 Configuration files:
29418 Configuration headers:
29421 Configuration commands:
29424 Report bugs to the package provider."
29427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29428 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29430 emacs config.status 24.3.50
29431 configured by $0, generated by GNU Autoconf 2.65,
29432 with options \\"\$ac_cs_config\\"
29434 Copyright (C) 2009 Free Software Foundation, Inc.
29435 This config.status script is free software; the Free Software Foundation
29436 gives unlimited permission to copy, distribute and modify it."
29443 test -n "\$AWK" || AWK=awk
29446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29447 # The default lists apply if the user does not specify any file.
29453 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29454 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29465 # Handling of the options.
29466 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29468 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29469 $as_echo "$ac_cs_version"; exit ;;
29470 --config |
--confi |
--conf |
--con |
--co |
--c )
29471 $as_echo "$ac_cs_config"; exit ;;
29472 --debug |
--debu |
--deb |
--de |
--d |
-d )
29474 --file |
--fil |
--fi |
--f )
29477 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29479 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29480 ac_need_defaults
=false
;;
29481 --header |
--heade |
--head |
--hea )
29484 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29486 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29487 ac_need_defaults
=false
;;
29489 # Conflict between --help and --header
29490 as_fn_error
"ambiguous option: \`$1'
29491 Try \`$0 --help' for more information.";;
29492 --help |
--hel |
-h )
29493 $as_echo "$ac_cs_usage"; exit ;;
29494 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29495 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29498 # This is an error.
29499 -*) as_fn_error
"unrecognized option: \`$1'
29500 Try \`$0 --help' for more information." ;;
29502 *) as_fn_append ac_config_targets
" $1"
29503 ac_need_defaults
=false
;;
29509 ac_configure_extra_args
=
29511 if $ac_cs_silent; then
29513 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29518 if \$ac_cs_recheck; then
29519 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29521 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29522 CONFIG_SHELL='$SHELL'
29523 export CONFIG_SHELL
29528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29533 ## Running $as_me. ##
29539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29543 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29544 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29550 # Handling of arguments.
29551 for ac_config_target
in $ac_config_targets
29553 case $ac_config_target in
29554 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29555 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29556 "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" ;;
29557 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29558 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29559 "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" ;;
29560 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29561 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
29562 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
29563 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
29564 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
29565 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
29566 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
29567 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
29568 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
29569 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
29570 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
29571 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
29572 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
29573 "nt/Makefile") CONFIG_FILES
="$CONFIG_FILES nt/Makefile" ;;
29574 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
29575 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
29576 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
29577 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
29578 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
29580 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29585 # If the user did not use the arguments to specify the items to instantiate,
29586 # then the envvar interface is used. Set only those that are not.
29587 # We use the long form for the default assignment because of an extremely
29588 # bizarre bug on SunOS 4.1.3.
29589 if $ac_need_defaults; then
29590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29595 # Have a temporary directory for convenience. Make it in the build tree
29596 # simply because there is no reason against having it here, and in addition,
29597 # creating and moving files from /tmp can sometimes cause problems.
29598 # Hook for its removal unless debugging.
29599 # Note that there is a small window in which the directory will not be cleaned:
29600 # after its creation but before its name has been assigned to `$tmp'.
29604 trap 'exit_status=$?
29605 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29607 trap 'as_fn_exit 1' 1 2 13 15
29609 # Create a (secure) tmp directory for tmp files.
29612 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29613 test -n "$tmp" && test -d "$tmp"
29616 tmp
=.
/conf$$
-$RANDOM
29617 (umask 077 && mkdir
"$tmp")
29618 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29620 # Set up the scripts for CONFIG_FILES section.
29621 # No need to generate them if there are no CONFIG_FILES.
29622 # This happens for instance with `./config.status config.h'.
29623 if test -n "$CONFIG_FILES"; then
29625 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29626 ac_cs_awk_getline
=:
29627 ac_cs_awk_pipe_init
=
29628 ac_cs_awk_read_file
='
29629 while ((getline aline < (F[key])) > 0)
29632 ac_cs_awk_pipe_fini
=
29634 ac_cs_awk_getline
=false
29635 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29636 ac_cs_awk_read_file
='
29638 print "cat " F[key] " &&"
29639 '$ac_cs_awk_pipe_init
29640 # The final `:' finishes the AND list.
29641 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29643 ac_cr
=`echo X | tr X '\015'`
29644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29645 # But we know of no other shell where ac_cr would be empty at this
29646 # point, so we can use a bashism as a fallback.
29647 if test "x$ac_cr" = x
; then
29648 eval ac_cr
=\$
\'\\r
\'
29650 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29654 ac_cs_awk_cr
=$ac_cr
29657 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29660 # Create commands to substitute file output variables.
29662 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29663 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29664 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29667 } >conf$
$files.sh
&&
29668 . .
/conf$
$files.sh ||
29669 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29670 rm -f conf$
$files.sh
29673 echo "cat >conf$$subs.awk <<_ACEOF" &&
29674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29676 } >conf$$subs.sh ||
29677 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29680 for ac_last_try in false false false false false :; do
29681 . ./conf$$subs.sh ||
29682 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29684 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29685 if test $ac_delim_n = $ac_delim_num; then
29687 elif $ac_last_try; then
29688 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29690 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29693 rm -f conf$$subs.sh
29695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29696 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29700 s/^/S["/; s
/!.
*/"]=/
29710 s/\(.\{148\}\)..*/\1/
29712 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29717 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29724 s/\(.\{148\}\)..*/\1/
29726 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29730 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29735 ' <conf$$subs.awk | sed '
29740 ' >>$CONFIG_STATUS || ac_write_fail=1
29741 rm -f conf$$subs.awk
29742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29744 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29745 for (key in S) S_is_set[key] = 1
29747 \$ac_cs_awk_pipe_init
29751 nfields = split(line, field, "@
")
29753 len = length(field[1])
29754 for (i = 2; i < nfields; i++) {
29756 keylen = length(key)
29757 if (S_is_set[key]) {
29759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29760 len += length(value) + length(field[++i])
29765 if (nfields == 3 && !substed) {
29767 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29768 \$ac_cs_awk_read_file
29774 \$ac_cs_awk_pipe_fini
29777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29778 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29779 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29782 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29783 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29788 # trailing colons and then remove the whole line if VPATH becomes empty
29789 # (actually we leave an empty line to preserve line numbers).
29790 if test "x
$srcdir" = x.; then
29791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29792 s/:*\$(srcdir):*/:/
29793 s/:*\${srcdir}:*/:/
29795 s/^\([^=]*=[ ]*\):*/\1/
29801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29802 fi # test -n "$CONFIG_FILES"
29804 # Set up the scripts for CONFIG_HEADERS section.
29805 # No need to generate them if there are no CONFIG_HEADERS.
29806 # This happens for instance with `./config.status Makefile'.
29807 if test -n "$CONFIG_HEADERS"; then
29808 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29812 # Transform confdefs.h into an awk script `defines.awk', embedded as
29813 # here-document in config.status, that substitutes the proper values into
29814 # config.h.in to produce config.h.
29816 # Create a delimiter string that does not exist in confdefs.h, to ease
29817 # handling of long lines.
29819 for ac_last_try in false false :; do
29820 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29821 if test -z "$ac_t"; then
29823 elif $ac_last_try; then
29824 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29826 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29830 # For the awk script, D is an array of macro values keyed by name,
29831 # likewise P contains macro parameters if any. Preserve backslash
29832 # newline sequences.
29834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29836 s/.\{148\}/&'"$ac_delim"'/g
29839 s/^[ ]*#[ ]*define[ ][ ]*/ /
29846 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29848 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29853 D["\
1"]=" \
3\\\\\\n
"\\/p
29855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29860 s/.\{148\}/&'"$ac_delim"'/g
29865 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29868 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29870 ' <confdefs.h | sed '
29871 s/'"$ac_delim"'/"\\\
29872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29875 for (key in D) D_is_set[key] = 1
29878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29880 split(line, arg, " ")
29881 if (arg[1] == "#") {
29885 defundef
= substr
(arg
[1], 2)
29888 split(mac1
, mac2
, "(") #)
29890 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29891 if (D_is_set
[macro
]) {
29892 # Preserve the white space surrounding the "#".
29893 print prefix
"define", macro P
[macro
] D
[macro
]
29896 # Replace #undef with comments. This is necessary, for example,
29897 # in the case of _POSIX_SOURCE, which is predefined and required
29898 # on some systems where configure will not decide to define it.
29899 if (defundef
== "undef") {
29900 print
"/*", prefix defundef
, macro
, "*/"
29908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29909 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29910 fi # test -n "$CONFIG_HEADERS"
29913 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29918 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29920 case $ac_mode$ac_tag in
29922 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29923 :[FH
]-) ac_tag
=-:-;;
29924 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29941 -) ac_f
="$tmp/stdin";;
29942 *) # Look for the file first in the build tree, then in the source tree
29943 # (if the path is not absolute). The absolute path cannot be DOS-style,
29944 # because $ac_f cannot contain `:'.
29948 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29950 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29952 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29953 as_fn_append ac_file_inputs
" '$ac_f'"
29956 # Let's still pretend it is `configure' which instantiates (i.e., don't
29957 # use $as_me), people would be surprised to read:
29958 # /* config.h. Generated by config.status. */
29959 configure_input
='Generated from '`
29960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29962 if test x
"$ac_file" != x-
; then
29963 configure_input
="$ac_file. $configure_input"
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29965 $as_echo "$as_me: creating $ac_file" >&6;}
29967 # Neutralize special characters interpreted by sed in replacement strings.
29968 case $configure_input in #(
29969 *\
&* |
*\|
* |
*\\* )
29970 ac_sed_conf_input
=`$as_echo "$configure_input" |
29971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29972 *) ac_sed_conf_input
=$configure_input;;
29976 *:-:* |
*:-) cat >"$tmp/stdin" \
29977 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29982 ac_dir
=`$as_dirname -- "$ac_file" ||
29983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29984 X"$ac_file" : 'X\(//\)[^/]' \| \
29985 X"$ac_file" : 'X\(//\)$' \| \
29986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29987 $as_echo X"$ac_file" |
29988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29992 /^X\(\/\/\)[^/].*/{
30005 as_dir
="$ac_dir"; as_fn_mkdir_p
30009 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30011 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30012 # A ".." for each directory in $ac_dir_suffix.
30013 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30014 case $ac_top_builddir_sub in
30015 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30016 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30019 ac_abs_top_builddir
=$ac_pwd
30020 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30021 # for backward compatibility:
30022 ac_top_builddir
=$ac_top_build_prefix
30025 .
) # We are building in place.
30027 ac_top_srcdir
=$ac_top_builddir_sub
30028 ac_abs_top_srcdir
=$ac_pwd ;;
30029 [\\/]* | ?
:[\\/]* ) # Absolute name.
30030 ac_srcdir
=$srcdir$ac_dir_suffix;
30031 ac_top_srcdir
=$srcdir
30032 ac_abs_top_srcdir
=$srcdir ;;
30033 *) # Relative name.
30034 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30035 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30036 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30038 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30048 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30049 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30051 ac_MKDIR_P
=$MKDIR_P
30053 [\\/$
]* | ?
:[\\/]* ) ;;
30054 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30059 # If the template does not know about datarootdir, expand it.
30060 # FIXME: This hack should be removed a few years after 2.60.
30061 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30073 *datarootdir
*) ac_datarootdir_seen
=yes;;
30074 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30079 ac_datarootdir_hack='
30080 s&@datadir@&$datadir&g
30081 s&@docdir@&$docdir&g
30082 s&@infodir@&$infodir&g
30083 s&@localedir@&$localedir&g
30084 s&@mandir@&$mandir&g
30085 s&\\\${datarootdir}&$datarootdir&g' ;;
30089 # Neutralize VPATH when `$srcdir' = `.'.
30090 # Shell code in configure.ac might set extrasub.
30091 # FIXME: do we really want to maintain this feature?
30092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30093 ac_sed_extra="$ac_vpsub
30096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30098 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30099 s|@configure_input@|
$ac_sed_conf_input|
;t t
30100 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30101 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30102 s
&@srcdir@
&$ac_srcdir&;t t
30103 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30104 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30105 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30106 s
&@builddir@
&$ac_builddir&;t t
30107 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30108 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30109 s
&@INSTALL@
&$ac_INSTALL&;t t
30110 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30111 $ac_datarootdir_hack
30113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30114 if $ac_cs_awk_getline; then
30115 $AWK -f "$tmp/subs.
awk"
30117 $AWK -f "$tmp/subs.
awk" | $SHELL
30119 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30122 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30125 which seems to be undefined. Please make sure it is defined." >&5
30126 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30127 which seems to be undefined. Please make sure it is defined." >&2;}
30131 -) cat "$tmp/out" && rm -f "$tmp/out";;
30132 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30134 || as_fn_error "could not create $ac_file" "$LINENO" 5
30140 if test x"$ac_file" != x-; then
30142 $as_echo "/* $configure_input */" \
30143 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30144 } >"$tmp/config.h" \
30145 || as_fn_error "could not create $ac_file" "$LINENO" 5
30146 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30147 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30148 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30151 mv "$tmp/config.h" "$ac_file" \
30152 || as_fn_error "could not create $ac_file" "$LINENO" 5
30155 $as_echo "/* $configure_input */" \
30156 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30157 || as_fn_error "could not create -" "$LINENO" 5
30159 # Compute "$ac_file"'s index
in $config_headers.
30162 for _am_header
in $config_headers :; do
30163 case $_am_header in
30164 $_am_arg |
$_am_arg:* )
30167 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30170 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30171 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30172 X"$_am_arg" : 'X\(//\)[^/]' \| \
30173 X"$_am_arg" : 'X\(//\)$' \| \
30174 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30175 $as_echo X"$_am_arg" |
30176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30180 /^X\(\/\/\)[^/].*/{
30192 s/.*/./; q'`/stamp-h
$_am_stamp_count
30195 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30196 $as_echo "$as_me: executing $ac_file commands" >&6;}
30201 case $ac_file$ac_mode in
30202 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30203 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30204 # are listed without --file. Let's play safe and only enable the eval
30205 # if we detect the quoting.
30206 case $CONFIG_FILES in
30207 *\'*) eval set x
"$CONFIG_FILES" ;;
30208 *) set x
$CONFIG_FILES ;;
30213 # Strip MF so we end up with the name of the file.
30214 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30215 # Check whether this is an Automake generated Makefile or not.
30216 # We used to match only the files named `Makefile.in', but
30217 # some people rename them; so instead we look at the file content.
30218 # Grep'ing the first line is not enough: some people post-process
30219 # each Makefile.in and add a new line on top of each file to say so.
30220 # Grep'ing the whole file is not good either: AIX grep has a line
30221 # limit of 2048, but all sed's we know have understand at least 4000.
30222 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30223 dirpart
=`$as_dirname -- "$mf" ||
30224 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30225 X"$mf" : 'X\(//\)[^/]' \| \
30226 X"$mf" : 'X\(//\)$' \| \
30227 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30233 /^X\(\/\/\)[^/].*/{
30249 # Extract the definition of DEPDIR, am__include, and am__quote
30250 # from the Makefile without running `make'.
30251 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30252 test -z "$DEPDIR" && continue
30253 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30254 test -z "am__include" && continue
30255 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30256 # When using ansi2knr, U may be empty or an underscore; expand it
30257 U
=`sed -n 's/^U = //p' < "$mf"`
30258 # Find all dependency output files, they are included files with
30259 # $(DEPDIR) in their names. We invoke sed twice because it is the
30260 # simplest approach to changing $(DEPDIR) to its actual value in the
30262 for file in `sed -n "
30263 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30264 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30265 # Make sure the directory exists.
30266 test -f "$dirpart/$file" && continue
30267 fdir
=`$as_dirname -- "$file" ||
30268 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30269 X"$file" : 'X\(//\)[^/]' \| \
30270 X"$file" : 'X\(//\)$' \| \
30271 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30272 $as_echo X"$file" |
30273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30277 /^X\(\/\/\)[^/].*/{
30290 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30291 # echo "creating $dirpart/$file"
30292 echo '# dummy' > "$dirpart/$file"
30298 for dir
in etc lisp
; do
30299 test -d ${dir} || mkdir
${dir}
30303 echo creating src
/epaths.h
30304 if test "${opsys}" = "mingw32"; then
30305 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force-w32
30307 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
30311 if test ! -f src
/.gdbinit
&& test -f "$srcdir/src/.gdbinit"; then
30312 echo creating src
/.gdbinit
30313 echo "source $srcdir/src/.gdbinit" > src
/.gdbinit
30323 ac_clean_files
=$ac_clean_files_save
30325 test $ac_write_fail = 0 ||
30326 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30329 # configure is writing to config.log, and then calls config.status.
30330 # config.status does its own redirection, appending to config.log.
30331 # Unfortunately, on DOS this fails, as config.log is still kept open
30332 # by configure, so config.status won't be able to write to it; its
30333 # output is simply discarded. So we exec the FD to /dev/null,
30334 # effectively closing config.log, so it can be properly (re)opened and
30335 # appended to by config.status. When coming back to configure, we
30336 # need to make the FD available again.
30337 if test "$no_create" != yes; then
30339 ac_config_status_args
=
30340 test "$silent" = yes &&
30341 ac_config_status_args
="$ac_config_status_args --quiet"
30343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30346 # would make configure fail if this is the last instruction.
30347 $ac_cs_success || as_fn_exit $?
30349 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30351 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}